com.lizardtech.djvubean.keys
Class DjVuKeys

java.lang.Object
  extended by com.lizardtech.djvubean.keys.DjVuKeys
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener

public class DjVuKeys
extends java.lang.Object
implements java.awt.event.KeyListener

This class implements a keyboard short cuts the user may use to navigate the DjVu Document.

Version:
$Revision: 1.3 $
Author:
Bill C. Riemers

Field Summary
protected  DjVuBean bean
           
 
Constructor Summary
DjVuKeys(DjVuBean bean)
          Creates a new MenuBar object.
 
Method Summary
 boolean isEnabled()
          Query if keyboard shortcuts are enabled.
 void keyPressed(java.awt.event.KeyEvent e)
          Handle the key pressed event from the text field.
 void keyReleased(java.awt.event.KeyEvent e)
          Handle the key released event from the text field.
 void keyTyped(java.awt.event.KeyEvent e)
          Handle the key typed event from the text field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bean

protected final DjVuBean bean
Constructor Detail

DjVuKeys

public DjVuKeys(DjVuBean bean)
Creates a new MenuBar object.

Parameters:
bean - DjVuBean to add this menu to.
Method Detail

isEnabled

public boolean isEnabled()
Query if keyboard shortcuts are enabled.


keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Handle the key typed event from the text field.

Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Handle the key pressed event from the text field.

Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Handle the key released event from the text field.

Specified by:
keyReleased in interface java.awt.event.KeyListener