Class CmsPageEditorTouchHandler

java.lang.Object
org.opencms.gwt.client.CmsPageEditorTouchHandler

public class CmsPageEditorTouchHandler extends Object
Singleton class that manages showing / hiding of toolbars in touch-only mode in the page editor.
  • Method Details

    • 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