Interface HasMenuItems

  • All Superinterfaces:
    com.google.gwt.user.client.ui.IsWidget
    All Known Subinterfaces:
    UserMenu.UserMenuView
    All Known Implementing Classes:
    UserMenuViewImpl, UtilityMenuBarView

    public interface HasMenuItems
    extends com.google.gwt.user.client.ui.IsWidget
    Widgets that can contain menu items implement this interface.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addMenuItem​(org.uberfire.workbench.model.menu.MenuPosition position, com.google.gwt.user.client.ui.Widget menuContent)
      Adds a new menu item to the end of the current list of menu items at the given position.
      • Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

        asWidget
    • Method Detail

      • addMenuItem

        void addMenuItem​(org.uberfire.workbench.model.menu.MenuPosition position,
                         com.google.gwt.user.client.ui.Widget menuContent)
        Adds a new menu item to the end of the current list of menu items at the given position.
        Parameters:
        position - the position to append the menu item at. Not all menu containers support positioning; those that don't will ignore this parameter. Null is always allowed and should be treated the same as CENTER by position-aware containers.
        menuContent - the content that should appear in the given menu item. Should have an Anchor element as its only direct child, or should be an AnchorListItem which is a convenient shorthand for an Anchor inside a ListItem.