Package org.opencms.acacia.client.ui
Class CmsChoiceMenuEntryWidget
- 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.CmsChoiceMenuEntryWidget
-
- 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 CmsChoiceMenuEntryWidget extends com.google.gwt.user.client.ui.Composite
A menu entry widget for selecting choices for complex choice values.
-
-
Constructor Summary
Constructors Constructor Description CmsChoiceMenuEntryWidget(java.lang.String label, java.lang.String help, CmsChoiceMenuEntryBean menuEntry, com.google.gwt.user.client.rpc.AsyncCallback<CmsChoiceMenuEntryBean> selectHandler, CmsAttributeChoiceWidget choiceWidget, CmsChoiceSubmenu submenu)
Creates a new menu entry instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsAttributeChoiceWidget
getAttributeChoiceWidget()
Gets the root choice menu.CmsChoiceMenuEntryBean
getEntryBean()
Gets the menu entry bean.com.google.gwt.user.client.rpc.AsyncCallback<CmsChoiceMenuEntryBean>
getSelectHandler()
Gets the select handler.CmsChoiceSubmenu
getSubmenu()
Gets the submenu to which this entry belongs (or null if it belongs to a root menu).-
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
-
CmsChoiceMenuEntryWidget
public CmsChoiceMenuEntryWidget(java.lang.String label, java.lang.String help, CmsChoiceMenuEntryBean menuEntry, com.google.gwt.user.client.rpc.AsyncCallback<CmsChoiceMenuEntryBean> selectHandler, CmsAttributeChoiceWidget choiceWidget, CmsChoiceSubmenu submenu)
Creates a new menu entry instance.- Parameters:
label
- the entry labelhelp
- the entry help textmenuEntry
- the menu entry beanselectHandler
- the select handlerchoiceWidget
- the root choice menusubmenu
- the submenu for which this entry is being created
-
-
Method Detail
-
getAttributeChoiceWidget
public CmsAttributeChoiceWidget getAttributeChoiceWidget()
Gets the root choice menu.- Returns:
- the root choice menu
-
getEntryBean
public CmsChoiceMenuEntryBean getEntryBean()
Gets the menu entry bean.- Returns:
- the menu entry bean
-
getSelectHandler
public com.google.gwt.user.client.rpc.AsyncCallback<CmsChoiceMenuEntryBean> getSelectHandler()
Gets the select handler.- Returns:
- the select handler
-
getSubmenu
public CmsChoiceSubmenu getSubmenu()
Gets the submenu to which this entry belongs (or null if it belongs to a root menu).- Returns:
- the submenu of this entry
-
-