|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ButtonModel
State model for buttons.
| 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. |
void |
doAction()
Notifies the model of the button's action having been invoked. |
java.lang.String |
getActionCommand()
Returns the action command for this button. |
ButtonGroup |
getGroup()
|
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 |
|---|
void addActionListener(ActionListener l)
ActionListener to the button.
l - The ActionListener to be added.void addChangeListener(ChangeListener l)
ChangeListener to the button.
l - The ChangeListener to be added.void addItemListener(ItemListener l)
ItemListener to the button.
l - The ItemListener to be added.void doAction()
java.lang.String getActionCommand()
boolean isSelected()
void removeActionListener(ActionListener l)
ActionListener from the button.
l - The ActionListener to be removed.void removeChangeListener(ChangeListener l)
ChangeListener from the button.
l - The ChangeListener to be removed.void removeItemListener(ItemListener l)
ItemListener from the button.
l - The ItemListener to be removed.void setActionCommand(java.lang.String actionCommand)
actionCommand - The new action command for this button.void setGroup(ButtonGroup newValue)
newValue - The button's new group.ButtonGroup getGroup()
void setSelected(boolean selected)
selected - The new selection state of the button.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||