public class DefaultButtonModel extends java.lang.Object implements ButtonModel
ButtonModel implementation.| Constructor and Description |
|---|
DefaultButtonModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener l)
Adds an
ActionListener to receive notification of user
actions, i.e., button presses. |
void |
doAction()
Notifies the model of the button's action having been invoked.
|
void |
fireActionPerformed(ActionEvent e)
Notifies registered
ActionListeners of an
ActionEvent. |
java.lang.String |
getActionCommand()
Returns the action command.
|
protected EventListenerList |
getEventListenerList()
Returns the local
EventListenerList. |
void |
removeActionListener(ActionListener l)
Removes an
ActionListener from being notified of user
actions, i.e., button presses. |
void |
setActionCommand(java.lang.String actionCommand)
Sets the action command.
|
public void addActionListener(ActionListener l)
ButtonModelActionListener to receive notification of user
actions, i.e., button presses.addActionListener in interface ButtonModell - the listener to addButtonModel.addActionListener(nextapp.echo.app.event.ActionListener)public void doAction()
ButtonModeldoAction in interface ButtonModelButtonModel.doAction()public void fireActionPerformed(ActionEvent e)
ActionListeners of an
ActionEvent.e - The ActionEvent to send.public java.lang.String getActionCommand()
ButtonModelgetActionCommand in interface ButtonModelButtonModel.getActionCommand()protected EventListenerList getEventListenerList()
EventListenerList.public void removeActionListener(ActionListener l)
ButtonModelActionListener from being notified of user
actions, i.e., button presses.removeActionListener in interface ButtonModell - the listener to removeButtonModel.removeActionListener(nextapp.echo.app.event.ActionListener)public void setActionCommand(java.lang.String actionCommand)
ButtonModelsetActionCommand in interface ButtonModelactionCommand - the new action commandButtonModel.setActionCommand(java.lang.String)