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.


Variable Index

 o LEGAL_KEYS
an array that keeps track of legal keys

Constructor Index

 o GrammarTextCommand(GrammarWindow, int)
creates a textCommand

Method Index

 o execute(AWTEvent)
will take the key that was pressed and make sure that it is a legal keystroke.
 o keyPressed(KeyEvent)
will call execute when key is pressed
 o keyReleased(KeyEvent)
 o keyTyped(KeyEvent)

Variables

 o LEGAL_KEYS
 public static final int LEGAL_KEYS[]
an array that keeps track of legal keys

Constructors

 o 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

Methods

 o keyPressed
 public void keyPressed(KeyEvent e)
will call execute when key is pressed

 o keyReleased
 public void keyReleased(KeyEvent e)
 o keyTyped
 public void keyTyped(KeyEvent e)
 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