Class KeyboardNavigationTool

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

public class KeyboardNavigationTool extends Tool
This tool allows to navigate with the arrow keys (up, down, left, right) within the viewer. As you would expect, each keystroke scrolls a little bit down/up/left/right.
  • Constructor Details

    • KeyboardNavigationTool

      public KeyboardNavigationTool()
  • Method Details

    • handleKeyPressed

      protected void handleKeyPressed(KeyEditEvent e, boolean isActive)
      Description copied from class: Tool
      Invoked when a key has been pressed. See the class description for KeyEvent for a definition of a key pressed event.
      Overrides:
      handleKeyPressed in class Tool
      Parameters:
      e - the MouseEditEvent
      isActive - whether this tool is currently active
    • getIncrement

      public int getIncrement()
      The distance to navigate with a single keystroke.
    • setIncrement

      public void setIncrement(int increment)
      Sets the distance to navigate with a single keystroke.