Class UtilityMenuBarView

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>, org.gwtbootstrap3.client.ui.base.HasId, org.gwtbootstrap3.client.ui.base.HasInlineStyle, org.gwtbootstrap3.client.ui.base.HasPull, org.gwtbootstrap3.client.ui.base.HasResponsiveness, HasMenuItems, org.uberfire.client.workbench.widgets.menu.HasMenus, org.uberfire.client.workbench.widgets.menu.UtilityMenuBarPresenter.View

    @ApplicationScoped
    public class UtilityMenuBarView
    extends org.gwtbootstrap3.client.ui.html.UnorderedList
    implements org.uberfire.client.workbench.widgets.menu.UtilityMenuBarPresenter.View, HasMenuItems
    Goes inside the collapsible navbar container, and can contain a status menu (not implemented yet) and the UserMenu.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

        com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Method Summary

      All Methods Instance Methods Concrete 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.
      void addMenus​(org.uberfire.workbench.model.menu.Menus menus)  
      void setup()  
      • Methods inherited from class org.gwtbootstrap3.client.ui.html.UnorderedList

        isInline, isUnstyled, setInline, setUnstyled
      • Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget

        add, getId, getPull, insert, insert, remove, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn
      • Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel

        add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Panel

        add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
      • Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

        asWidget
      • Methods inherited from interface org.uberfire.client.workbench.widgets.menu.UtilityMenuBarPresenter.View

        clear
    • Constructor Detail

      • UtilityMenuBarView

        public UtilityMenuBarView()
    • Method Detail

      • addMenus

        public void addMenus​(org.uberfire.workbench.model.menu.Menus menus)
        Specified by:
        addMenus in interface org.uberfire.client.workbench.widgets.menu.HasMenus
      • addMenuItem

        public void addMenuItem​(org.uberfire.workbench.model.menu.MenuPosition position,
                                com.google.gwt.user.client.ui.Widget menuContent)
        Description copied from interface: HasMenuItems
        Adds a new menu item to the end of the current list of menu items at the given position.
        Specified by:
        addMenuItem in interface HasMenuItems
        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.