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().
-
ParserTextCommand()
- creates a textCommand
-
addKey(char)
- add a key to the set of keys that are legal
-
execute(AWTEvent)
- will take the key that was pressed and make sure that
it is a legal keystroke.
-
keyPressed(KeyEvent)
-
-
keyReleased(KeyEvent)
-
-
keyTyped(KeyEvent)
-
-
removeKey(char)
- remove a key from the set of keys that are legal
ParserTextCommand
public ParserTextCommand()
- creates a textCommand
keyPressed
public void keyPressed(KeyEvent e)
keyReleased
public void keyReleased(KeyEvent e)
keyTyped
public void keyTyped(KeyEvent e)
addKey
public void addKey(char c)
- add a key to the set of keys that are legal
removeKey
public void removeKey(char c)
- remove a key from the set of keys that are legal
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