All Packages Class Hierarchy This Package Previous Next Index
Class javaParse.MainMenu
java.lang.Object
|
+----javaParse.MainMenu
- public class MainMenu
- extends Object
- implements ActionListener
the main class for the whole program - has
a frame that displays the three type of parsers
and a quit button
-
MainMenu()
- create an instance of a MainMenu (series of buttons) for an
application that allows file io and quitting capabilities
-
MainMenu(Panel)
- create an instance of a menu that will run the various Parsers
from an applet that does not have a quit button or file io capabilities
-
actionPerformed(ActionEvent)
- creates a specific Grammar such as an LL1Grammar based on
which button was clicked or exits the application
-
removeGrammar(Grammar)
-
MainMenu
public MainMenu(Panel parent)
- create an instance of a menu that will run the various Parsers
from an applet that does not have a quit button or file io capabilities
- Parameters:
- parent - the Panel that the Applet creates
MainMenu
public MainMenu()
- create an instance of a MainMenu (series of buttons) for an
application that allows file io and quitting capabilities
actionPerformed
public void actionPerformed(ActionEvent e)
- creates a specific Grammar such as an LL1Grammar based on
which button was clicked or exits the application
removeGrammar
public void removeGrammar(Grammar grammar)
- Parameters:
- grammar - the Grammar to be removed from the
private Vector of Grammars that it is managing to run
multiple Grammars such as an LL1Grammar and an LL2Grammar
All Packages Class Hierarchy This Package Previous Next Index