Class UserMenuViewImpl

  • All Implemented Interfaces:
    com.google.gwt.event.dom.client.HasClickHandlers, 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.Focusable, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasText, 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.HasActive, org.gwtbootstrap3.client.ui.base.HasBadge, org.gwtbootstrap3.client.ui.base.HasDataToggle, org.gwtbootstrap3.client.ui.base.HasHref, org.gwtbootstrap3.client.ui.base.HasIcon, org.gwtbootstrap3.client.ui.base.HasIconPosition, org.gwtbootstrap3.client.ui.base.HasId, org.gwtbootstrap3.client.ui.base.HasInlineStyle, org.gwtbootstrap3.client.ui.base.HasPull, org.gwtbootstrap3.client.ui.base.HasResponsiveness, org.gwtbootstrap3.client.ui.base.HasTarget, org.gwtbootstrap3.client.ui.base.HasTargetHistoryToken, HasMenuItems, UserMenu.UserMenuView

    @Dependent
    public class UserMenuViewImpl
    extends org.gwtbootstrap3.client.ui.AnchorListItem
    implements UserMenu.UserMenuView
    • 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 org.gwtbootstrap3.client.ui.base.AbstractAnchorListItem

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

        DEBUG_ID_PREFIX
      • Fields inherited from interface org.gwtbootstrap3.client.ui.base.HasHref

        EMPTY_HREF, HREF
      • Fields inherited from interface org.gwtbootstrap3.client.ui.base.HasTarget

        BLANK
    • 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 clearMenuItems()  
      void setup()  
      void setUserName​(String userName)  
      • Methods inherited from class org.gwtbootstrap3.client.ui.AnchorListItem

        getText, setText
      • Methods inherited from class org.gwtbootstrap3.client.ui.base.AbstractAnchorListItem

        addClickHandler, getBadgePosition, getBadgeText, getDataToggle, getHref, getIcon, getIconFlip, getIconPosition, getIconRotate, getIconSize, getTabIndex, getTarget, getTargetHistoryToken, isIconBordered, isIconFixedWidth, isIconInverse, isIconPulse, isIconSpin, setAccessKey, setBadgePosition, setBadgeText, setDataToggle, setEnabled, setFocus, setHref, setIcon, setIconBordered, setIconColor, setIconFixedWidth, setIconFlip, setIconInverse, setIconPosition, setIconPulse, setIconRotate, setIconSize, setIconSpin, setTabIndex, setTarget, setTargetHistoryToken
      • Methods inherited from class org.gwtbootstrap3.client.ui.base.AbstractListItem

        getId, getPull, isActive, isEnabled, setActive, setHiddenOn, setId, setPull, setVisibleOn
      • Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget

        add, insert, insert, remove, setColor, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop
      • 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.event.shared.HasHandlers

        fireEvent
      • Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

        asWidget
    • Constructor Detail

      • UserMenuViewImpl

        public UserMenuViewImpl()
    • Method Detail

      • 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.