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()
Menus
public void accept(MenuVisitor visitor)
Menus
MenuVisitor
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 Menus
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.