com.icesoft.pdf.ri.common
Class KeyListenerPageChanger
java.lang.Object
java.awt.event.KeyAdapter
com.icesoft.pdf.ri.common.KeyListenerPageChanger
- All Implemented Interfaces:
- EventListener, KeyListener
- public class KeyListenerPageChanger
- extends KeyAdapter
This intercepts KeyEvents for a JScrollPane, and determines if
they qualify to initiate a page change request for the SwingController.
- Since:
- 2.0
- Author:
- Mark Collette
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyListenerPageChanger
protected KeyListenerPageChanger(SwingController c,
JScrollPane s,
AbstractDocumentView documentView)
install
public static KeyListenerPageChanger install(SwingController c,
JScrollPane s,
AbstractDocumentView documentView)
- Install a KeyListenerPageChanger as a KeyListener
- Parameters:
c - SwingController that can change pagess - JScrollPane that has a vertical JScrollBar, and where events come from
uninstall
public void uninstall()
keyPressed
public void keyPressed(KeyEvent e)