Package org.opencms.acacia.client.ui
Class CmsAttributeChoiceWidget
- 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.CmsAttributeChoiceWidget
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasMouseOutHandlers
,com.google.gwt.event.dom.client.HasMouseOverHandlers
,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 CmsAttributeChoiceWidget extends com.google.gwt.user.client.ui.Composite implements com.google.gwt.event.dom.client.HasMouseOverHandlers, com.google.gwt.event.dom.client.HasMouseOutHandlers
The attribute choice widget.
-
-
Constructor Summary
Constructors Constructor Description CmsAttributeChoiceWidget()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChoice(com.google.gwt.user.client.ui.Widget choice)
Adds a choice to the widget.void
addChoice(I_CmsWidgetService widgetService, CmsChoiceMenuEntryBean menuEntry, com.google.gwt.user.client.rpc.AsyncCallback<CmsChoiceMenuEntryBean> selectHandler)
Adds a new choice entry.com.google.gwt.event.shared.HandlerRegistration
addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
com.google.gwt.event.shared.HandlerRegistration
addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
com.google.gwt.user.client.ui.Panel
getSubmenuPanel()
Gets the panel into which submenus of this menu should be inserted.void
hide()
Hides the choice menu.void
show()
Shows the choice 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
-
CmsAttributeChoiceWidget
public CmsAttributeChoiceWidget()
Constructor.
-
-
Method Detail
-
addChoice
public void addChoice(I_CmsWidgetService widgetService, CmsChoiceMenuEntryBean menuEntry, com.google.gwt.user.client.rpc.AsyncCallback<CmsChoiceMenuEntryBean> selectHandler)
Adds a new choice entry.- Parameters:
widgetService
- the widget service to use for labelsmenuEntry
- the menu entry beanselectHandler
- the handler to use for selecting entries
-
addChoice
public void addChoice(com.google.gwt.user.client.ui.Widget choice)
Adds a choice to the widget.- Parameters:
choice
- the choice to add
-
addMouseOutHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler handler)
- Specified by:
addMouseOutHandler
in interfacecom.google.gwt.event.dom.client.HasMouseOutHandlers
- See Also:
HasMouseOutHandlers.addMouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler)
-
addMouseOverHandler
public com.google.gwt.event.shared.HandlerRegistration addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler handler)
- Specified by:
addMouseOverHandler
in interfacecom.google.gwt.event.dom.client.HasMouseOverHandlers
- See Also:
HasMouseOverHandlers.addMouseOverHandler(com.google.gwt.event.dom.client.MouseOverHandler)
-
getSubmenuPanel
public com.google.gwt.user.client.ui.Panel getSubmenuPanel()
Gets the panel into which submenus of this menu should be inserted.- Returns:
- the panel for submenus
-
hide
public void hide()
Hides the choice menu.
-
show
public void show()
Shows the choice menu.
-
-