Class DefaultMenus

  • All Implemented Interfaces:
    Menus

    @JsType
    public class DefaultMenus
    extends Object
    implements Menus
    • Constructor Detail

      • DefaultMenus

        @JsIgnore
        public DefaultMenus​(List<MenuItem> menuItems,
                            int order)
    • Method Detail

      • getItems

        @JsIgnore
        public List<MenuItem> getItems()
        Description copied from interface: Menus
        Returns the items in this collection of menus, in the order they should appear in the user interface.
        Specified by:
        getItems in interface Menus
      • accept

        public void accept​(MenuVisitor visitor)
        Description copied from interface: Menus
        Causes the given 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().
        Specified by:
        accept in interface Menus
      • getOrder

        public int getOrder()
        Description copied from interface: Menus
        Defines the order on what these menus will be inserted.
        Specified by:
        getOrder in interface Menus