@Dependent public class UserMenuViewImpl extends org.gwtbootstrap3.client.ui.AnchorListItem implements UserMenu.UserMenuView
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Constructor and Description |
---|
UserMenuViewImpl() |
Modifier and Type | Method and 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) |
addClickHandler, getBadgePosition, getBadgeText, getDataToggle, getHref, getIcon, getIconFlip, getIconPosition, getIconRotate, getIconSize, getTabIndex, getTargetHistoryToken, isIconBordered, isIconFixedWidth, isIconInverse, isIconPulse, isIconSpin, setAccessKey, setBadgePosition, setBadgeText, setDataToggle, setEnabled, setFocus, setHref, setIcon, setIconBordered, setIconFixedWidth, setIconFlip, setIconInverse, setIconPosition, setIconPulse, setIconRotate, setIconSize, setIconSpin, setTabIndex, setTargetHistoryToken
getId, getPull, isActive, isEnabled, setActive, setHiddenOn, setId, setPull, setVisibleOn
add, insert, setColor, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
@PostConstruct public void setup()
public void setUserName(String userName)
setUserName
in interface UserMenu.UserMenuView
public void clearMenuItems()
clearMenuItems
in interface UserMenu.UserMenuView
public void addMenuItem(org.uberfire.workbench.model.menu.MenuPosition position, com.google.gwt.user.client.ui.Widget menuContent)
HasMenuItems
addMenuItem
in interface HasMenuItems
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.Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.