Package org.opencms.gwt.client
Class CmsPageEditorTouchHandler
- java.lang.Object
-
- org.opencms.gwt.client.CmsPageEditorTouchHandler
-
public class CmsPageEditorTouchHandler extends java.lang.Object
Singleton class that manages showing / hiding of toolbars in touch-only mode in the page editor.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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
ignoreHover()
Check if hover events should be ignored.
-
-
-
Method Detail
-
get
public static CmsPageEditorTouchHandler get()
Gets the singleton instance of the handler.- Returns:
- the singleton instance
-
eatClick
public boolean 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. 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
public boolean ignoreHover()
Check if hover events should be ignored.- Returns:
- true if hover events should be ignored
-
-