All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javaParse.ChangeViewCommand

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

public class ChangeViewCommand
extends Command
implements ItemListener
class associated with changing the view on a string tester window


Constructor Index

 o ChangeViewCommand(StringTesterWindow, String)

Method Index

 o execute(AWTEvent)
will call the window's changeView function only if mode selected is different from what is already shown
 o itemStateChanged(ItemEvent)

Constructors

 o ChangeViewCommand
 public ChangeViewCommand(StringTesterWindow stw,
                          String initMode)
Parameters:
initMode - the initial mode that will be shown in the string tester window

Methods

 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
 o execute
 public void execute(AWTEvent e)
will call the window's changeView function only if mode selected is different from what is already shown

Overrides:
execute in class Command

All Packages  Class Hierarchy  This Package  Previous  Next  Index