org.jdesktop.wonderland.client.hud
Interface HUDButton

All Superinterfaces:
HUDComponent, HUDEventSource, HUDObject

public interface HUDButton
extends HUDComponent

A HUD component consisting of a clickable button.

Author:
nsimpson

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jdesktop.wonderland.client.hud.HUDObject
HUDObject.DisplayMode
 
Method Summary
 void addActionListener(java.awt.event.ActionListener listener)
          Adds an action listener to be notified when the button is pressed
 java.lang.String getLabel()
          Gets the text label
 void removeActionListener(java.awt.event.ActionListener listener)
          Removes an action listener from this button
 void setLabel(java.lang.String label)
          Sets the label on the button
 
Methods inherited from interface org.jdesktop.wonderland.client.hud.HUDObject
changeTransparency, changeTransparency, getBounds, getDecoratable, getDisplayMode, getHeight, getIcon, getLocation, getName, getPreferredLocation, getPreferredTransparency, getSize, getTransparency, getWidth, getWorldLocation, getX, getY, hasControl, isEnabled, isMinimized, isVisible, isWorldVisible, setBounds, setBounds, setClosed, setDecoratable, setDisplayMode, setEnabled, setHeight, setIcon, setLocation, setLocation, setLocation, setMaximized, setMinimized, setName, setPreferredLocation, setPreferredTransparency, setSize, setSize, setTransparency, setVisible, setVisible, setWidth, setWorldLocation, setWorldVisible, setWorldVisible, setX, setY
 
Methods inherited from interface org.jdesktop.wonderland.client.hud.HUDEventSource
addEventListener, getEventListeners, notifyEventListeners, notifyEventListeners, removeEventListener
 

Method Detail

setLabel

void setLabel(java.lang.String label)
Sets the label on the button

Parameters:
label - the text to display on the button

getLabel

java.lang.String getLabel()
Gets the text label

Returns:
the label text

addActionListener

void addActionListener(java.awt.event.ActionListener listener)
Adds an action listener to be notified when the button is pressed

Parameters:
listener - the listener to add

removeActionListener

void removeActionListener(java.awt.event.ActionListener listener)
Removes an action listener from this button

Parameters:
listener - the listener to remove


Open Wonderland - http://openwonderland.org