Extras
MenuStateModel
Class Hierarchy:

Representation of menu model state, describing which items are selected and/or disabled.

Constructor Summary
Public Extras.MenuStateModel()
Creates a new MenuStateModel.

Instance Field Summary
Internal _disabledItems
Disabled menu item ids.
Internal _selectedItems
Selected menu item ids.

Instance Method Summary
Public isEnabled()
Determines if the specified menu item is enabled.
Public isSelected()
Determines if the specified menu item is selected.
Public setEnabled()
Sets the enabled state of a menu item.
Public setSelected()
Sets the selection state of a menu item.

Constructor Detail
Extras.MenuStateModel()
Creates a new MenuStateModel.

Instance Method Detail
isEnabled
Determines if the specified menu item is enabled.
Parameters:
modelId (String) - the item model id
Returns:
(Boolean) true if the item is enabled

isSelected
Determines if the specified menu item is selected.
Parameters:
modelId (String) - the item model id
Returns:
(Boolean) true if the item is selected

setEnabled
Sets the enabled state of a menu item.
Parameters:
modelId (String) - the item model id
enabled (Boolean) - the enabled state

setSelected
Sets the selection state of a menu item.
Parameters:
modelId (String) - the item model id
selected (Boolean) - the selection state