Package org.opencms.acacia.client
Class CmsButtonBarHandler
java.lang.Object
org.opencms.acacia.client.CmsButtonBarHandler
- All Implemented Interfaces:
com.google.gwt.event.dom.client.MouseOutHandler,com.google.gwt.event.dom.client.MouseOverHandler,com.google.gwt.event.shared.EventHandler
public final class CmsButtonBarHandler
extends Object
implements com.google.gwt.event.dom.client.MouseOverHandler, com.google.gwt.event.dom.client.MouseOutHandler
Helper class for controlling visibility of button hover bars of attribute value views.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCSS class used for identifying widgets which normally react to hover events in touch-only mode.static final CmsButtonBarHandlerGlobal instance of the button bar handler.static final intThe timeout for hiding the buttons. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSubmenu(CmsChoiceMenuEntryWidget entryWidget) Adds a new submenu.protected voidcleanUpSubmenus(CmsChoiceMenuEntryWidget entryWidget) Removes unnecessary submenus when the user hovers over a given menu entry.voidcloseAll()Closes all visible button bars and menus.protected CmsChoiceSubmenuGets the last entry in the current list of active submenus.voidonMouseOut(com.google.gwt.event.dom.client.MouseOutEvent event) voidonMouseOver(com.google.gwt.event.dom.client.MouseOverEvent event) protected voidremoveSubmenu(CmsChoiceSubmenu submenu) Removes a submenu and hides it.protected voidsetWidgetService(I_CmsWidgetService widgetService) Sets the widget service.protected booleanuseClickAsFakeHover(com.google.gwt.user.client.EventListener source, boolean isMouseDown) In touch-only mode, this is used to process some clicks to trigger actions that would be normally triggered by hovering over the same GUI element.
-
Field Details
-
HOVERABLE_MARKER
CSS class used for identifying widgets which normally react to hover events in touch-only mode.- See Also:
-
INSTANCE
Global instance of the button bar handler. -
TIMEOUT
The timeout for hiding the buttons.- See Also:
-
-
Method Details
-
closeAll
Closes all visible button bars and menus. -
onMouseOut
- Specified by:
onMouseOutin interfacecom.google.gwt.event.dom.client.MouseOutHandler- See Also:
-
onMouseOver
- Specified by:
onMouseOverin interfacecom.google.gwt.event.dom.client.MouseOverHandler- See Also:
-
setWidgetService
Sets the widget service.- Parameters:
widgetService- the widget service
-
useClickAsFakeHover
protected boolean useClickAsFakeHover(com.google.gwt.user.client.EventListener source, boolean isMouseDown) In touch-only mode, this is used to process some clicks to trigger actions that would be normally triggered by hovering over the same GUI element.- Parameters:
source- the event sourceisMouseDown- true if the event is a mousedown event- Returns:
- true if the event should be cancelled
-