|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--WindowManager
This class provides facilities for window management.
| Inner Class Summary | |
static class |
WindowManager.MenuPosition
This inner class is used to store the parent and position of a menu. |
| Constructor Summary | |
WindowManager()
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent ae)
|
void |
addWindow(javax.swing.JFrame frame)
Adds a window (frame) for registration services. |
void |
changeMasterText()
This method is called when the master text for an ArborPanel
is changed. |
void |
freeMenuResources(javax.swing.JMenuBar menuBar)
Removes all references to menu objects that have the menu bar menuBar. |
static java.awt.Rectangle |
getBounds()
Returns the bounds of the current screen device. |
javax.swing.JMenu |
getWindowMenu()
Returns a window menu, which allows a named window to be raised by the user. |
javax.swing.JMenu |
getWindowMenu(javax.swing.JMenuBar parent,
int pos)
Returns a window menu, which allows a named window to be raised by the user. |
java.util.List |
getWindows()
Returns the list of registered windows. |
void |
rebuildMenus()
Rebuilds menus when windows are created, destroyed, or renamed. |
void |
removeAllFramesOwnedBy(ContentOwner owner)
Removes all instances of ContentFrame with the specified
owner. |
void |
removeWindow(javax.swing.JFrame frame)
Removes a window (frame) from registration windows; the window is then allowed to die. |
void |
tileHorizontally()
Tiles the visible windows horizontally. |
void |
tileVertically()
Tiles the visible windows vertically. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WindowManager()
| Method Detail |
public void addWindow(javax.swing.JFrame frame)
frame - frame to be registeredpublic void removeWindow(javax.swing.JFrame frame)
frame - frame to be unregisteredpublic void changeMasterText()
ArborPanel
is changed. It performs necessary housekeeping tasks for certain
registered windows.public java.util.List getWindows()
public javax.swing.JMenu getWindowMenu(javax.swing.JMenuBar parent,
int pos)
parent - parent menu barpos - position in parent menu barpublic javax.swing.JMenu getWindowMenu()
public void rebuildMenus()
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed in interface java.awt.event.ActionListenerpublic void freeMenuResources(javax.swing.JMenuBar menuBar)
menuBar.menuBar - menu barpublic void removeAllFramesOwnedBy(ContentOwner owner)
ContentFrame with the specified
owner. (This is a housekeeping task, needed when the owner is closed.)owner - content ownerpublic static java.awt.Rectangle getBounds()
public void tileHorizontally()
public void tileVertically()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||