Class GalleryNavigationTool

java.lang.Object
com.levigo.jadice.web.client.tool.Tool
com.levigo.jadice.web.client.tools.GalleryNavigationTool
All Implemented Interfaces:
MenuContributor

public class GalleryNavigationTool extends Tool
A Tool used within the PageView. It fades in two arrows with which you can either browse forward or backward within the PageView.
  • Constructor Details

    • GalleryNavigationTool

      public GalleryNavigationTool()
  • Method Details

    • getArrowHidingStrategy

      public GalleryNavigationTool.ArrowHidingStrategy getArrowHidingStrategy()
    • setArrowHidingStrategy

      public void setArrowHidingStrategy(GalleryNavigationTool.ArrowHidingStrategy arrowHidingStrategy)
    • setPxDistanceToShow

      public void setPxDistanceToShow(int pxDistanceToShow)
    • setEnabled

      protected void setEnabled(boolean enabled)
      Description copied from class: Tool
      Receive notification from the tool manager about the tool's enabled state. In general, tools need not and should not try to implement different behaviour depending on the enabled state, as this is already covered by the ToolManager calling the Tool.handleEditEvent(boolean, EditEvent) and Tool.render(RenderParameters, boolean) in the appropriate state only. However, some tools may need to perform extended actions (for example, for resource management purposes) upon a change of the enabled state.
      Overrides:
      setEnabled in class Tool
      Parameters:
      enabled - controls whether to enable or disable this Tool
    • showPreviousArrow

      public void showPreviousArrow(boolean isShown)
      Show or hide the Arrow with which you can browse backward.
      Parameters:
      isShown - whether to show the arrow
    • showNextArrow

      public void showNextArrow(boolean isShown)
      Show or hide the Arrow with which you can browse forward.
      Parameters:
      isShown - whether to show the arrow
    • handleMouseMoved

      protected void handleMouseMoved(MouseEditEvent e, boolean isActive)
      Description copied from class: Tool
      Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
      Overrides:
      handleMouseMoved in class Tool
      Parameters:
      e - the event
      isActive - whether this tool is currently active
    • handleMouseExited

      protected void handleMouseExited(MouseEditEvent e, boolean isActive)
      Description copied from class: Tool
      Invoked when the mouse cursor exits the unobscured part of component's geometry.
      Overrides:
      handleMouseExited in class Tool
      Parameters:
      e - the MouseEditEvent
      isActive - whether this tool is currently active