@Dependent
public class DropdownMenu
extends com.google.gwt.user.client.ui.FlowPanel
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
DropdownMenu()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDivider()
Adds a divider.
|
com.google.gwt.user.client.ui.Anchor |
addMenuAction(String label)
Adds an action to the menu.
|
String |
getMenuId() |
void |
hide()
Hides the menu.
|
protected void |
onActionClicked()
Called when the user clicks on one of the actions.
|
protected void |
postConstruct()
Called after the widget is created.
|
void |
showAtCurrentMouseLocation(com.google.gwt.event.dom.client.MouseEvent<?> event)
Shows the menu relative to the mouse position.
|
void |
showRelativeTo(com.google.gwt.user.client.ui.Widget widget)
Shows the menu relative to the location of the given widget.
|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait@PostConstruct protected void postConstruct()
public String getMenuId()
public com.google.gwt.user.client.ui.Anchor addMenuAction(String label)
label - protected void onActionClicked()
public void addDivider()
public void showAtCurrentMouseLocation(com.google.gwt.event.dom.client.MouseEvent<?> event)
event - public void showRelativeTo(com.google.gwt.user.client.ui.Widget widget)
widget - public void hide()
Copyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.