@JsType
public interface Menus
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()
Deprecated.
|
int |
getOrder()
Defines the order on what these menus will be inserted.
|
List<MenuItem> getItems()
@Deprecated Map<Object,MenuItem> getItemsMap()
void accept(MenuVisitor visitor)
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 getItems()
.int getOrder()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.