public final class MWAControl
extends java.lang.Object
Implemented as a singleton class.
Modifier and Type | Method and Description |
---|---|
void |
addControlListener(ControlListener listener)
Adds given listeners to set of control listeners to be
notified upon change.
|
protected void |
addMWAFrame(MWAFrame childFrame) |
protected void |
buildWindowsMenu(MWAFrame owner) |
protected void |
buildWindowsMenu(MWAFrame owner,
boolean tilings) |
void |
closeAll()
Advise all controlled frames to close (will exit the
JVM because of side effect in
removeControlListener(g2d.mwa.ControlListener) ). |
void |
frameHidden(MWAFrame frame) |
void |
frameShown(MWAFrame frame,
MWAFrame parent) |
void |
frameTitleChanged() |
static MWAControl |
getInstance()
Obtains singleton instance of application control.
|
static javax.swing.JTree |
getTree()
Obtains singleton instance of application control's tree manager.
|
static javax.swing.JFrame |
getTreeJFrame() |
void |
removeControlListener(ControlListener listener)
Removes given listeners from set of control listeners to be
notified upon change.
|
protected void |
removeMWAFrame(MWAFrame childFrame) |
public static MWAControl getInstance()
public static javax.swing.JTree getTree()
JTree
public static javax.swing.JFrame getTreeJFrame()
protected void addMWAFrame(MWAFrame childFrame)
protected void removeMWAFrame(MWAFrame childFrame)
public void frameHidden(MWAFrame frame)
public void frameTitleChanged()
public void addControlListener(ControlListener listener)
listener
- ControlListener to be addedpublic void removeControlListener(ControlListener listener)
As a side effect, once the last listener has de-registered and the set is empty, this will exit the JVM with status 0.
listener
- ControlListener to be removedpublic void closeAll()
removeControlListener(g2d.mwa.ControlListener)
).protected void buildWindowsMenu(MWAFrame owner)
protected void buildWindowsMenu(MWAFrame owner, boolean tilings)