Class UserMenuViewImpl
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.ComplexPanel
-
- org.gwtbootstrap3.client.ui.base.ComplexWidget
-
- org.gwtbootstrap3.client.ui.base.AbstractListItem
-
- org.gwtbootstrap3.client.ui.base.AbstractAnchorListItem
-
- org.gwtbootstrap3.client.ui.AnchorListItem
-
- org.uberfire.client.views.pfly.menu.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
-
-
Constructor Summary
Constructors Constructor Description UserMenuViewImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMenuItem(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.voidclearMenuItems()voidsetup()voidsetUserName(String userName)-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
setup
@PostConstruct public void setup()
-
setUserName
public void setUserName(String userName)
- Specified by:
setUserNamein interfaceUserMenu.UserMenuView
-
clearMenuItems
public void clearMenuItems()
- Specified by:
clearMenuItemsin interfaceUserMenu.UserMenuView
-
addMenuItem
public void addMenuItem(org.uberfire.workbench.model.menu.MenuPosition position, com.google.gwt.user.client.ui.Widget menuContent)Description copied from interface:HasMenuItemsAdds a new menu item to the end of the current list of menu items at the given position.- Specified by:
addMenuItemin interfaceHasMenuItems- 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 anAnchorListItemwhich is a convenient shorthand for an Anchor inside a ListItem.
-
-