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
public class CmsChoiceSubmenu extends com.google.gwt.user.client.ui.Composite
A choice submenu widget.
-
-
Constructor Summary
Constructors Constructor Description CmsChoiceSubmenu(CmsChoiceMenuEntryBean parentEntry)
Creates a new submenu.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChoice(CmsChoiceMenuEntryWidget choice)
Adds a new choice widget.boolean
openAbove(com.google.gwt.dom.client.Element referenceElement)
Checks whether the submenu should be opened above instead of below.void
positionDeferred(CmsChoiceMenuEntryWidget widgetEntry)
Positions a new submenu asynchronously.protected void
positionNextToMenuEntry(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, setWidget
-
Methods 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, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Constructor Detail
-
CmsChoiceSubmenu
public CmsChoiceSubmenu(CmsChoiceMenuEntryBean parentEntry)
Creates a new submenu.- Parameters:
parentEntry
- the parent menu entry bean
-
-
Method Detail
-
addChoice
public void addChoice(CmsChoiceMenuEntryWidget choice)
Adds a new choice widget.- Parameters:
choice
- the choice widget
-
openAbove
public boolean openAbove(com.google.gwt.dom.client.Element referenceElement)
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
public void positionDeferred(CmsChoiceMenuEntryWidget widgetEntry)
Positions a new submenu asynchronously.- Parameters:
widgetEntry
- the menu entry relative to which the submenu should be positioned
-
positionNextToMenuEntry
protected void positionNextToMenuEntry(CmsChoiceMenuEntryWidget widgetEntry)
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
-
-