anecho.JamochaMUD
Class JMainMenu

java.lang.Object
  extended by anecho.JamochaMUD.JMainMenu

public class JMainMenu
extends java.lang.Object

Create a menu for the Main Window


Field Summary
protected static javax.swing.JMenu tWPlugInMenu
           
 
Method Summary
 void addPlugin(PlugInterface plug)
           
 void buildMenu(javax.swing.JFrame parent, MuckMain mainProg)
           
 void changePlugInState(boolean state, java.lang.String actCom)
          This method allows the plug-in and menu items to be updated to reflect the current state of the plug-in.
static JMainMenu getInstance()
           
 boolean isAutoFocus()
           
 boolean isReleasePause()
           
 void removeAllPlugins()
          This method removes all plug-in entries from the plug-ins menu
 void setCloseMUEnabled(boolean state)
           
 void setConnected(boolean state)
          Set the menus to reflect if we're connected (true) or not (false)
 void updateConnectionMenu(MuckMain mainProg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tWPlugInMenu

protected static javax.swing.JMenu tWPlugInMenu
Method Detail

getInstance

public static JMainMenu getInstance()
Returns:

buildMenu

public void buildMenu(javax.swing.JFrame parent,
                      MuckMain mainProg)
Parameters:
parent -
mainProg -

setCloseMUEnabled

public void setCloseMUEnabled(boolean state)
Parameters:
state -

removeAllPlugins

public void removeAllPlugins()
This method removes all plug-in entries from the plug-ins menu


addPlugin

public void addPlugin(PlugInterface plug)
Parameters:
plug -

changePlugInState

public void changePlugInState(boolean state,
                              java.lang.String actCom)
This method allows the plug-in and menu items to be updated to reflect the current state of the plug-in.

Parameters:
state - the new state of our plug-in
actCom - the action-command we use to locate our menu item true means the plug-in is active false means the plug-in is inactive

updateConnectionMenu

public void updateConnectionMenu(MuckMain mainProg)
Parameters:
mainProg -

setConnected

public void setConnected(boolean state)
Set the menus to reflect if we're connected (true) or not (false)

Parameters:
state -

isAutoFocus

public boolean isAutoFocus()
Returns:

isReleasePause

public boolean isReleasePause()
Returns: