public final class JMainMenu
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected static javax.swing.JMenu |
tWPlugInMenu |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPlugin(PlugInterface plug) |
|
void |
buildMenu(javax.swing.JFrame parent,
MuckMain mainProg) |
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() |
Creates a new instance of the JMainMenu
|
boolean |
isAutoFocus() |
|
boolean |
isReleasePause() |
|
boolean |
isSyncWindows() |
Identifies whether the menu item indicates if the frames should be
synchronized
|
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 |
setSyncWindows(boolean state) |
Set whether the menu item for the menu should be synchronized or not
|
void |
updateConnectionMenu(MuckMain mainProg) |
public static JMainMenu getInstance()
public void buildMenu(javax.swing.JFrame parent,
MuckMain mainProg)
parent - mainProg - public void setCloseMUEnabled(boolean state)
state - public void removeAllPlugins()
public void addPlugin(PlugInterface plug)
plug - public void changePlugInState(boolean state,
java.lang.String actCom)
state - the new state of our plug-inactCom - the action-command we use to locate our menu item true
means the plug-in is active false means the plug-in is inactivepublic void updateConnectionMenu(MuckMain mainProg)
mainProg - public void setConnected(boolean state)
state - public boolean isAutoFocus()
public boolean isReleasePause()
public boolean isSyncWindows()
true frames are synchronized false
frames are not synchronizedpublic void setSyncWindows(boolean state)
state - true - frames are to be synchronized
false - frames are to not be synchronized