Class 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
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • 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