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.

  • 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
    Constructor
    Description
    Creates a new submenu.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
    Positions a new submenu asynchronously.
    protected void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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