|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object echopoint.model.DefaultMenuItemModel
The default implementation of a menu item data model.
Constructor Summary | |
DefaultMenuItemModel()
Creates a new default menu item model. |
Method Summary | |
void |
addActionListener(nextapp.echo.event.ActionListener l)
Adds an ActionListener to the menu item model. |
void |
addChangeListener(nextapp.echo.event.ChangeListener l)
Adds a ChangeListener to the menu item model. |
void |
addItemListener(nextapp.echo.event.ItemListener l)
Adds a ItemListener to the menu item model. |
void |
doAction()
Our default doAction |
void |
fireActionPerformed(nextapp.echo.event.ActionEvent e)
Notifies all listeners that have registered for this event type. |
void |
fireItemStateChanged(nextapp.echo.event.ItemEvent e)
Notifies all listeners that have registered for this event type. |
void |
fireStateChanged()
Notifies all listeners that have registered for this event type. |
java.lang.String |
getActionCommand()
Returns the action command for this menu item model. |
nextapp.echo.ButtonGroup |
getGroup()
Returns the ButtonGroup to which this menu item model belongs, if
any. |
boolean |
isSelected()
Returns the menu item model's selection state. |
void |
removeActionListener(nextapp.echo.event.ActionListener l)
Removes an ActionListener from the menu item model. |
void |
removeChangeListener(nextapp.echo.event.ChangeListener l)
Removes a ChangeListener from the menu item model. |
void |
removeItemListener(nextapp.echo.event.ItemListener l)
Removes a ItemListener from the menu item model. |
void |
setActionCommand(java.lang.String actionCommand)
Sets the menu item model's action command. |
void |
setGroup(nextapp.echo.ButtonGroup group)
Sets the ButtonGroup to which this menu item model belongs.
|
void |
setSelected(boolean selected)
Sets the menu item model's selection state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultMenuItemModel()
Method Detail |
public void addActionListener(nextapp.echo.event.ActionListener l)
ActionListener
to the menu item model.
addActionListener
in interface nextapp.echo.ButtonModel
l
- The ActionListener
to be added.public void addChangeListener(nextapp.echo.event.ChangeListener l)
ChangeListener
to the menu item model.
addChangeListener
in interface nextapp.echo.ButtonModel
l
- The ChangeListener
to be added.public void addItemListener(nextapp.echo.event.ItemListener l)
ItemListener
to the menu item model.
addItemListener
in interface nextapp.echo.ButtonModel
l
- The ItemListener
to be added.public void fireActionPerformed(nextapp.echo.event.ActionEvent e)
e
- The ActionEvent
to send.public void fireItemStateChanged(nextapp.echo.event.ItemEvent e)
e
- The ItemEvent
to send.public void fireStateChanged()
public java.lang.String getActionCommand()
getActionCommand
in interface nextapp.echo.ButtonModel
public nextapp.echo.ButtonGroup getGroup()
ButtonGroup
to which this menu item model belongs, if
any.
public boolean isSelected()
isSelected
in interface nextapp.echo.ButtonModel
public void removeActionListener(nextapp.echo.event.ActionListener l)
ActionListener
from the menu item model.
removeActionListener
in interface nextapp.echo.ButtonModel
l
- The ActionListener
to be removed.public void removeChangeListener(nextapp.echo.event.ChangeListener l)
ChangeListener
from the menu item model.
removeChangeListener
in interface nextapp.echo.ButtonModel
l
- The ChangeListener
to be removed.public void removeItemListener(nextapp.echo.event.ItemListener l)
ItemListener
from the menu item model.
removeItemListener
in interface nextapp.echo.ButtonModel
l
- The ItemListener
to be removed.public void setActionCommand(java.lang.String actionCommand)
setActionCommand
in interface nextapp.echo.ButtonModel
actionCommand
- The new action command for this menu item model.public void setGroup(nextapp.echo.ButtonGroup group)
ButtonGroup
to which this menu item model belongs.
setGroup
in interface nextapp.echo.ButtonModel
group
- The group to which this menu item model belongs.public void setSelected(boolean selected)
setSelected
in interface nextapp.echo.ButtonModel
selected
- The new selection state of the menu item model.public void doAction()
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |