Class SelectPageTool

  • All Implemented Interfaces:
    MenuContributor

    public class SelectPageTool
    extends Tool
    This tool is responsible to select an sort pages. Additionally ExportHandler and ImportHandler can be registered to handle drag and drop events.
    • Field Detail

      • CLIENT_ID_TYPE

        public static final String CLIENT_ID_TYPE
        By default the clientId is written in the Drag and Drop datastore. This marks the format under which the clientId can be retrieved in a DropEvent
        See Also:
        Constant Field Values
    • Constructor Detail

      • SelectPageTool

        public SelectPageTool()
    • Method Detail

      • handleMousePressed

        protected void handleMousePressed​(MouseEditEvent e,
                                          boolean isActive)
        Description copied from class: Tool
        Invoked when a mouse button has been pressed on a component.
        Overrides:
        handleMousePressed in class Tool
        Parameters:
        e - the event
        isActive - whether this tool is currently active
      • handleMouseReleased

        protected void handleMouseReleased​(MouseEditEvent e,
                                           boolean isActive)
        Description copied from class: Tool
        Invoked when a mouse button has been released on a component.
        Overrides:
        handleMouseReleased in class Tool
        Parameters:
        e - the event
        isActive - whether this tool is currently active
      • updateDraggable

        protected void updateDraggable()
      • setDraggable

        protected void setDraggable​(com.google.gwt.dom.client.Element element,
                                    String draggable)
        Workaround for https://github.com/gwtproject/gwt/issues/9525
        Parameters:
        element - The element on which the draggable attribute should be set
        draggable - true or false