All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class spill.STBMainMenu

java.lang.Object
   |
   +----java.awt.MenuComponent
           |
           +----java.awt.MenuBar
                   |
                   +----tea.awt.frame.editor.MainMenu
                           |
                           +----spill.STBMainMenu

public class STBMainMenu
extends MainMenu
implements ItemListener

This is a class used to build an implementation of MenuBar explicitely written for the SpillTheBeans Frame. It's derived from tea.awt.frame.editor.MainMenu and adds all the necessary menus for the actionCommands raised by SpillTheBeans.

Version:
1.0 beta - 21 June 1997
Author:
Leonardo Boselli
See Also:
SpillTheBeans

Constructor Index

 o STBMainMenu(SpillTheBeans)
This constructor associates a SpillTheBeans and defines the Menu Labels supported.

Method Index

 o changeSpokenLanguage(String)
Implements the LanguageSpeaker interface and listens to the changes of the spoken language.
 o isDumpFormat()
Returns true if the format is the Dump one.
 o isDumpFormat(boolean)
Sets the class format.
 o isPackageShowing()
Returns true if packages must be shown.
 o isPackageShowing(boolean)
Sets the package visibility.
 o isSimpleSintax()
Returns true if simple sintax must be used.
 o isSimpleSintax(boolean)
Sets the sintax complexity.
 o itemStateChanged(ItemEvent)
Implements the ItemListener interface and listens to changes in the state of the CkeckboxMenuItems.

Constructors

 o STBMainMenu
 public STBMainMenu(SpillTheBeans stb)
This constructor associates a SpillTheBeans and defines the Menu Labels supported.

Parameters:
stb - the SpillTheBeans.
See Also:
LanguageLearner

Methods

 o isDumpFormat
 public boolean isDumpFormat()
Returns true if the format is the Dump one.

Returns:
true if format is Dump.
 o isPackageShowing
 public boolean isPackageShowing()
Returns true if packages must be shown.

Returns:
true if packages must be shown.
 o isSimpleSintax
 public boolean isSimpleSintax()
Returns true if simple sintax must be used.

Returns:
true if simple sintax must be used.
 o isDumpFormat
 public void isDumpFormat(boolean dump)
Sets the class format.

Parameters:
dump - true if format is Dump.
 o isPackageShowing
 public void isPackageShowing(boolean pack)
Sets the package visibility.

Parameters:
pack - true if packages must be shown.
 o isSimpleSintax
 public void isSimpleSintax(boolean sint)
Sets the sintax complexity.

Parameters:
sint - true if sintax is simplified.
 o itemStateChanged
 public void itemStateChanged(ItemEvent ie)
Implements the ItemListener interface and listens to changes in the state of the CkeckboxMenuItems.

Parameters:
ie - the ItemEvent.
 o changeSpokenLanguage
 public boolean changeSpokenLanguage(String l)
Implements the LanguageSpeaker interface and listens to the changes of the spoken language.

Parameters:
l - the spoken language.
Returns:
if the language is supported or not.
Overrides:
changeSpokenLanguage in class MainMenu

All Packages  Class Hierarchy  This Package  Previous  Next  Index