Package org.opencms.acacia.client.ui
Class CmsChoiceSubmenu
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.acacia.client.ui.CmsChoiceSubmenu
- 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.IsRenderable,com.google.gwt.user.client.ui.IsWidget
A choice submenu widget.
-
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 -
Field Summary
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChoice(CmsChoiceMenuEntryWidget choice) Adds a new choice widget.booleanopenAbove(com.google.gwt.dom.client.Element referenceElement) Checks whether the submenu should be opened above instead of below.voidpositionDeferred(CmsChoiceMenuEntryWidget widgetEntry) Positions a new submenu asynchronously.protected voidpositionNextToMenuEntry(CmsChoiceMenuEntryWidget widgetEntry) Helper method to position a submenu on the left side of a menu entry.Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Constructor Details
-
CmsChoiceSubmenu
Creates a new submenu.- Parameters:
parentEntry- the parent menu entry bean
-
-
Method Details
-
addChoice
Adds a new choice widget.- Parameters:
choice- the choice widget
-
openAbove
Checks whether the submenu should be opened above instead of below.- Parameters:
referenceElement- the reference element- Returns:
- true if the new submenu should be opened above
-
positionDeferred
Positions a new submenu asynchronously.- Parameters:
widgetEntry- the menu entry relative to which the submenu should be positioned
-
positionNextToMenuEntry
Helper method to position a submenu on the left side of a menu entry.- Parameters:
widgetEntry- the widget entry relative to which the submenu should be positioned
-