DixShtix

com.dixshtix.awt
Class SimpleKeyListener

java.lang.Object
  |
  +--com.dixshtix.awt.SimpleKeyListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener
Direct Known Subclasses:
PrintKeyListener, QuitKeyListener

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

Title:

Description:

Copyright: Copyright (c) Richard C. Penner II

Company:

Version:
1.0
Author:
Richard C. Penner II

Field Summary
private  char lcKey
           
private  char ucKey
           
 
Constructor Summary
SimpleKeyListener(char key)
           
 
Method Summary
 void doKeyAction(java.awt.Component c, java.awt.event.KeyEvent e)
           
 void doKeyAction(java.awt.event.KeyEvent e)
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ucKey

private char ucKey

lcKey

private char lcKey
Constructor Detail

SimpleKeyListener

public SimpleKeyListener(char key)
Method Detail

doKeyAction

public void doKeyAction(java.awt.Component c,
                        java.awt.event.KeyEvent e)

doKeyAction

public void doKeyAction(java.awt.event.KeyEvent e)

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

DixShtix