public class MenuItemState extends State<MenuItem> implements AbsrtactHierarchialItem<MenuItemState>
MenuItem
is simply a definition. The State of the Menu implies the definition
and the state of the MenuItem
and its children. The children in the MenuState
correspond
to the children that are applicable to be shown. And hence this class represents the valid menu ite3ms with their
state only.Constructor and Description |
---|
MenuItemState() |
MenuItemState(MenuItem menuItem) |
Modifier and Type | Method and Description |
---|---|
List<MenuItemState> |
getChildren()
Get the List of Children in order under this Item
|
Integer |
getLevel()
Indicate how down in the hierarchy is this.
|
MenuItem |
getMenuItem() |
void |
setChildren(List<MenuItemState> children) |
void |
setMenuItem(MenuItem menuItem) |
String |
toString() |
getItem, isDisabled, isFocussed, isHidden, isSelected, setDisabled, setFocussed, setHidden, setItem, setSelected
public MenuItemState()
public MenuItemState(MenuItem menuItem)
public MenuItem getMenuItem()
public void setMenuItem(MenuItem menuItem)
public List<MenuItemState> getChildren()
AbsrtactHierarchialItem
getChildren
in interface AbsrtactHierarchialItem<MenuItemState>
public void setChildren(List<MenuItemState> children)
public Integer getLevel()
AbsrtactHierarchialItem
getLevel
in interface AbsrtactHierarchialItem<MenuItemState>
Copyright © 2018. All rights reserved.