Class SelectPageTool

java.lang.Object
com.levigo.jadice.web.client.tool.Tool
com.levigo.jadice.web.client.tools.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 Details

    • 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:
  • Constructor Details

    • SelectPageTool

      public SelectPageTool()
  • Method Details

    • setManager

      protected void setManager(ToolManager manager)
      Description copied from class: Tool
      Receives the ToolManager instance, which the Tool implementation has been registered for. If the Tool is deregistered this method will be called with null.
      Overrides:
      setManager in class Tool
      Parameters:
      manager - the ToolManager
    • 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
    • getThumbnailView

      protected ThumbnailView getThumbnailView()
    • getExportHandlers

      public List<ExportHandler> getExportHandlers()
    • getImportHandlers

      public List<ImportHandler> getImportHandlers()