Package org.opencms.gwt.client
Class CmsPageEditorTouchHandler
java.lang.Object
org.opencms.gwt.client.CmsPageEditorTouchHandler
Singleton class that manages showing / hiding of toolbars in touch-only mode in the page editor.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
eatClick
(I_CmsElementToolbarContext context) This method is called to give this class a chance to process clicks on toolbar buttons by itself, for the purpose of showing / hiding toolbars in touch-only mode.static CmsPageEditorTouchHandler
get()
Gets the singleton instance of the handler.boolean
Check if hover events should be ignored.
-
Method Details
-
get
Gets the singleton instance of the handler.- Returns:
- the singleton instance
-
eatClick
This method is called to give this class a chance to process clicks on toolbar buttons by itself, for the purpose of showing / hiding toolbars in touch-only mode. If this class decided to handle the click event, returns true, otherwise false.- Parameters:
context
- the toolbar context- Returns:
- true if the click was handled by this class
-
ignoreHover
Check if hover events should be ignored.- Returns:
- true if hover events should be ignored
-