Class DefaultMenus
- java.lang.Object
-
- org.uberfire.workbench.model.menu.impl.DefaultMenus
-
-
Constructor Summary
Constructors Constructor Description DefaultMenus(List<MenuItem> menuItems, int order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MenuVisitor visitor)Causes the givenMenuVisitorto 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()intgetOrder()Defines the order on what these menus will be inserted.
-
-
-
Method Detail
-
getItems
@JsIgnore public List<MenuItem> getItems()
Description copied from interface:MenusReturns the items in this collection of menus, in the order they should appear in the user interface.
-
accept
public void accept(MenuVisitor visitor)
Description copied from interface:MenusCauses the givenMenuVisitorto 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 fromMenus.getItems().
-
getItemsMap
@JsIgnore public Map<Object,MenuItem> getItemsMap()
- Specified by:
getItemsMapin interfaceMenus
-
-