All Packages Class Hierarchy This Package Previous Next Index
Class javaParse.GrammarTextCommand
java.lang.Object
|
+----javaParse.Command
|
+----javaParse.GrammarTextCommand
- public class GrammarTextCommand
- extends Command
- implements KeyListener
The class associated with filtering out the keys typed in the
textfields of the grammar window.
-
LEGAL_KEYS
- an array that keeps track of legal keys
-
GrammarTextCommand(GrammarWindow, int)
- creates a textCommand
-
execute(AWTEvent)
- will take the key that was pressed and make sure that
it is a legal keystroke.
-
keyPressed(KeyEvent)
- will call execute when key is pressed
-
keyReleased(KeyEvent)
-
-
keyTyped(KeyEvent)
-
LEGAL_KEYS
public static final int LEGAL_KEYS[]
- an array that keeps track of legal keys
GrammarTextCommand
public GrammarTextCommand(GrammarWindow gw,
int num)
- creates a textCommand
- Parameters:
- gw - the grammar window to which this textCommand will be bound
- num - the number of the textfield in the grammarwindow
keyPressed
public void keyPressed(KeyEvent e)
- will call execute when key is pressed
keyReleased
public void keyReleased(KeyEvent e)
keyTyped
public void keyTyped(KeyEvent e)
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