NextApp Echo2 Extras
v2.1.0

nextapp.echo2.extras.app.menu
Class DefaultMenuStateModel

java.lang.Object
  extended by nextapp.echo2.extras.app.menu.AbstractMenuStateModel
      extended by nextapp.echo2.extras.app.menu.DefaultMenuStateModel
All Implemented Interfaces:
java.io.Serializable, MenuStateModel

public class DefaultMenuStateModel
extends AbstractMenuStateModel

Default MenuStateModel implementation.

See Also:
Serialized Form

Constructor Summary
DefaultMenuStateModel()
           
 
Method Summary
 boolean isEnabled(java.lang.String id)
          Determines if a specific menu option is enabled.
 boolean isSelected(java.lang.String id)
          Determines if a specific menu option is selected.
 void setEnabled(java.lang.String id, boolean enabled)
          Sets the enabled state of a specific menu option.
 void setSelected(java.lang.String id, boolean selected)
          Sets the selection state of a specific menu option.
 
Methods inherited from class nextapp.echo2.extras.app.menu.AbstractMenuStateModel
addChangeListener, fireStateChanged, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMenuStateModel

public DefaultMenuStateModel()
Method Detail

isEnabled

public boolean isEnabled(java.lang.String id)
Description copied from interface: MenuStateModel
Determines if a specific menu option is enabled.

Parameters:
id - the id of the menu option
Returns:
true if it is enabled
See Also:
MenuStateModel.isEnabled(java.lang.String)

isSelected

public boolean isSelected(java.lang.String id)
Description copied from interface: MenuStateModel
Determines if a specific menu option is selected.

Parameters:
id - the id of the menu option
Returns:
true if it is selected
See Also:
MenuStateModel.isSelected(java.lang.String)

setEnabled

public void setEnabled(java.lang.String id,
                       boolean enabled)
Description copied from interface: MenuStateModel
Sets the enabled state of a specific menu option.

Parameters:
id - the id of the menu option
enabled - the new enabled state
See Also:
MenuStateModel.setEnabled(java.lang.String, boolean)

setSelected

public void setSelected(java.lang.String id,
                        boolean selected)
Description copied from interface: MenuStateModel
Sets the selection state of a specific menu option.

Parameters:
id - the id of the menu option
selected - the new selection state
See Also:
MenuStateModel.setSelected(java.lang.String, boolean)

NextApp Echo2 Extras
v2.1.0