|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.app.button.DefaultButtonModel
public class DefaultButtonModel
Default ButtonModel
implementation.
Constructor Summary | |
---|---|
DefaultButtonModel()
|
Method Summary | |
---|---|
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 ActionListener s 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultButtonModel()
Method Detail |
---|
public void addActionListener(ActionListener l)
ButtonModel
ActionListener
to receive notification of user
actions, i.e., button presses.
addActionListener
in interface ButtonModel
l
- the listener to addButtonModel.addActionListener(nextapp.echo.app.event.ActionListener)
public void doAction()
ButtonModel
doAction
in interface ButtonModel
ButtonModel.doAction()
public void fireActionPerformed(ActionEvent e)
ActionListener
s of an
ActionEvent
.
e
- The ActionEvent
to send.public java.lang.String getActionCommand()
ButtonModel
getActionCommand
in interface ButtonModel
ButtonModel.getActionCommand()
protected EventListenerList getEventListenerList()
EventListenerList
.
public void removeActionListener(ActionListener l)
ButtonModel
ActionListener
from being notified of user
actions, i.e., button presses.
removeActionListener
in interface ButtonModel
l
- the listener to removeButtonModel.removeActionListener(nextapp.echo.app.event.ActionListener)
public void setActionCommand(java.lang.String actionCommand)
ButtonModel
setActionCommand
in interface ButtonModel
actionCommand
- the new action commandButtonModel.setActionCommand(java.lang.String)
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |