All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javaParse.ParserTextCommand

java.lang.Object
   |
   +----javaParse.Command
           |
           +----javaParse.ParserTextCommand

public class ParserTextCommand
extends Command
implements KeyListener
ParserTextCommand - the class associated with making sure that a key that is pressed is legal. May add extra keys to be legal by method addKey().


Constructor Index

 o ParserTextCommand()
creates a textCommand

Method Index

 o addKey(char)
add a key to the set of keys that are legal
 o execute(AWTEvent)
will take the key that was pressed and make sure that it is a legal keystroke.
 o keyPressed(KeyEvent)
 o keyReleased(KeyEvent)
 o keyTyped(KeyEvent)
 o removeKey(char)
remove a key from the set of keys that are legal

Constructors

 o ParserTextCommand
 public ParserTextCommand()
creates a textCommand

Methods

 o keyPressed
 public void keyPressed(KeyEvent e)
 o keyReleased
 public void keyReleased(KeyEvent e)
 o keyTyped
 public void keyTyped(KeyEvent e)
 o addKey
 public void addKey(char c)
add a key to the set of keys that are legal

 o removeKey
 public void removeKey(char c)
remove a key from the set of keys that are legal

 o execute
 public void execute(AWTEvent evt)
will take the key that was pressed and make sure that it is a legal keystroke. also takes care of keyboard shortcuts

Overrides:
execute in class Command

All Packages  Class Hierarchy  This Package  Previous  Next  Index