com.levigo.jadice.swing.pageview
Class KeyboardNavigationTool
java.lang.Object
com.levigo.jadice.swing.tool.Tool
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.Layout
s this Tool
's functionality is not needed since all pages are
presented next to each other and can be reached by scrolling.
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 |
KeyboardNavigationTool
public KeyboardNavigationTool()
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.