public class KeyboardNavigationTool extends Tool
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.Tool.ActivationRequest
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
KeyboardNavigationTool() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleKeyPressed(KeyEditEvent e,
boolean isActive)
Invoked when a key has been pressed.
|
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
protected void handleKeyPressed(KeyEditEvent e, boolean isActive)
Tool
KeyEvent
for a
definition of a key pressed event.handleKeyPressed
in class Tool
isActive
- whether this tool is currently activeCopyright © 2024 levigo holding gmbh. All rights reserved.