| Constructor and Description |
|---|
DefaultMenus(List<MenuItem> menuItems,
int order) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MenuVisitor visitor)
Causes the given
MenuVisitor to visit this menu, then each item in turn (they will pass the visitor to
their descendants). |
List<MenuItem> |
getItems()
Returns the items in this collection of menus, in the order they should appear in the user interface.
|
Map<Object,MenuItem> |
getItemsMap() |
int |
getOrder()
Defines the order on what these menus will be inserted.
|
@JsIgnore public List<MenuItem> getItems()
Menuspublic void accept(MenuVisitor visitor)
MenusMenuVisitor to visit this menu, then each item in turn (they will pass the visitor to
their descendants). The menu items will be visited via an pre-order traversal (parents are visited before their
children). Top-level menu items are visited in the same order as they are returned from Menus.getItems().@JsIgnore public Map<Object,MenuItem> getItemsMap()
getItemsMap in interface MenusCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.