com.levigo.jadice.swing.pageview
Class KeyboardNavigationTool

java.lang.Object
  extended by com.levigo.jadice.swing.tool.Tool
      extended by com.levigo.jadice.swing.pageview.KeyboardNavigationTool
All Implemented Interfaces:
MenuContributor

public class KeyboardNavigationTool
extends Tool

This tool enables page turning using PageUp/PageDown and CursorUp/CursorDown for PageView.Layout.PAGE and PageView.Layout.SPREAD. It doesn't perform regular scrolling of page contents since this functionality is performed by JScrollPane and the like. This Tool only goes to the next/previous page when invoked at the bottom/top of a page. In other PageView.Layouts this Tool's functionality is not needed since all pages are presented next to each other and can be reached by scrolling.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.levigo.jadice.swing.tool.Tool
Tool.ActivationRequest
 
Field Summary
 
Fields inherited from class com.levigo.jadice.swing.tool.Tool
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
 
Constructor Summary
KeyboardNavigationTool()
           
 
Method Summary
protected  void handleKeyPressed(KeyEditEvent e, boolean isActive)
          Invoked when a key has been pressed.
 
Methods inherited from class com.levigo.jadice.swing.tool.Tool
contribute, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getCursor, getDispatchPriority, getManager, getRenderPriority, handleEditEvent, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, propagatePropertyChange, render, setActive, setCursor, setEnabled, setManager, setStatusFeedback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyboardNavigationTool

public KeyboardNavigationTool()
Method Detail

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
isActive - whether this tool is currently active


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.