EchoPoint
1.0

echopoint.model
Class DefaultMenuItemModel

java.lang.Object
  extended byechopoint.model.DefaultMenuItemModel
All Implemented Interfaces:
nextapp.echo.ButtonModel, java.io.Serializable

public class DefaultMenuItemModel
extends java.lang.Object
implements nextapp.echo.ButtonModel, java.io.Serializable

The default implementation of a menu item data model.

See Also:
Serialized Form

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

DefaultMenuItemModel

public DefaultMenuItemModel()
Creates a new default menu item model.

Method Detail

addActionListener

public void addActionListener(nextapp.echo.event.ActionListener l)
Adds an ActionListener to the menu item model.

Specified by:
addActionListener in interface nextapp.echo.ButtonModel
Parameters:
l - The ActionListener to be added.

addChangeListener

public void addChangeListener(nextapp.echo.event.ChangeListener l)
Adds a ChangeListener to the menu item model.

Specified by:
addChangeListener in interface nextapp.echo.ButtonModel
Parameters:
l - The ChangeListener to be added.

addItemListener

public void addItemListener(nextapp.echo.event.ItemListener l)
Adds a ItemListener to the menu item model.

Specified by:
addItemListener in interface nextapp.echo.ButtonModel
Parameters:
l - The ItemListener to be added.

fireActionPerformed

public void fireActionPerformed(nextapp.echo.event.ActionEvent e)
Notifies all listeners that have registered for this event type.

Parameters:
e - The ActionEvent to send.

fireItemStateChanged

public void fireItemStateChanged(nextapp.echo.event.ItemEvent e)
Notifies all listeners that have registered for this event type.

Parameters:
e - The ItemEvent to send.

fireStateChanged

public void fireStateChanged()
Notifies all listeners that have registered for this event type.


getActionCommand

public java.lang.String getActionCommand()
Returns the action command for this menu item model.

Specified by:
getActionCommand in interface nextapp.echo.ButtonModel
Returns:
The action command for this menu item model.

getGroup

public nextapp.echo.ButtonGroup getGroup()
Returns the ButtonGroup to which this menu item model belongs, if any.

Returns:
The group which contains this menu item model.

isSelected

public boolean isSelected()
Returns the menu item model's selection state.

Specified by:
isSelected in interface nextapp.echo.ButtonModel
Returns:
The menu item model's selection state.

removeActionListener

public void removeActionListener(nextapp.echo.event.ActionListener l)
Removes an ActionListener from the menu item model.

Specified by:
removeActionListener in interface nextapp.echo.ButtonModel
Parameters:
l - The ActionListener to be removed.

removeChangeListener

public void removeChangeListener(nextapp.echo.event.ChangeListener l)
Removes a ChangeListener from the menu item model.

Specified by:
removeChangeListener in interface nextapp.echo.ButtonModel
Parameters:
l - The ChangeListener to be removed.

removeItemListener

public void removeItemListener(nextapp.echo.event.ItemListener l)
Removes a ItemListener from the menu item model.

Specified by:
removeItemListener in interface nextapp.echo.ButtonModel
Parameters:
l - The ItemListener to be removed.

setActionCommand

public void setActionCommand(java.lang.String actionCommand)
Sets the menu item model's action command.

Specified by:
setActionCommand in interface nextapp.echo.ButtonModel
Parameters:
actionCommand - The new action command for this menu item model.

setGroup

public void setGroup(nextapp.echo.ButtonGroup group)
Sets the ButtonGroup to which this menu item model belongs.

Specified by:
setGroup in interface nextapp.echo.ButtonModel
Parameters:
group - The group to which this menu item model belongs.

setSelected

public void setSelected(boolean selected)
Sets the menu item model's selection state.

Specified by:
setSelected in interface nextapp.echo.ButtonModel
Parameters:
selected - The new selection state of the menu item model.

doAction

public void doAction()
Our default doAction


EchoPoint
1.0