|
NextApp Echo 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
State model for buttons.
This class provides an optional void doAction()
method which may be
overridden to notify ActionListener
s that a user action has
occurred. To make use of this feature, the implementing class must be
publicly accessible, and the method must be public.
Method Summary | |
void |
addActionListener(ActionListener l)
Adds an ActionListener to the button. |
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener to the button. |
void |
addItemListener(ItemListener l)
Adds a ItemListener to the button. |
java.lang.String |
getActionCommand()
Returns the action command for this button. |
boolean |
isSelected()
Returns the button's selection state. |
void |
removeActionListener(ActionListener l)
Removes an ActionListener from the button. |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from the button. |
void |
removeItemListener(ItemListener l)
Removes a ItemListener from the button. |
void |
setActionCommand(java.lang.String actionCommand)
Sets the button's action command. |
void |
setGroup(ButtonGroup newValue)
Sets the button's group. |
void |
setSelected(boolean selected)
Sets the button's selection state. |
Method Detail |
public void addActionListener(ActionListener l)
ActionListener
to the button.
l
- The ActionListener
to be added.public void addChangeListener(ChangeListener l)
ChangeListener
to the button.
l
- The ChangeListener
to be added.public void addItemListener(ItemListener l)
ItemListener
to the button.
l
- The ItemListener
to be added.public java.lang.String getActionCommand()
public boolean isSelected()
public void removeActionListener(ActionListener l)
ActionListener
from the button.
l
- The ActionListener
to be removed.public void removeChangeListener(ChangeListener l)
ChangeListener
from the button.
l
- The ChangeListener
to be removed.public void removeItemListener(ItemListener l)
ItemListener
from the button.
l
- The ItemListener
to be removed.public void setActionCommand(java.lang.String actionCommand)
actionCommand
- The new action command for this button.public void setGroup(ButtonGroup newValue)
newValue
- The button's new group.public void setSelected(boolean selected)
selected
- The new selection state of the button.
|
NextApp Echo 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |