|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.services.gui.swing.mdi.WindowManager
public final class WindowManager
A JDesktop window manager for MDI support.
Major functions implemented:
Adapted from project http://zeus-jscl.sourceforge.net/
Constructor Summary | |
---|---|
WindowManager(JDesktopPane d,
JMenu windowsMenu)
Constructor. |
Method Summary | |
---|---|
void |
cascade()
Cascades all frames. |
void |
close()
Closes the selected frame if it is closable. |
void |
closeAll()
Closes all frames that are closable. |
int |
countFrames()
Counts all frames, even those that are closed with DefaultCloseOperation = HIDE_ON_CLOSE
NOTEUse this method in order to understand how many
"ghost" frames remain within the desktop. |
int |
countVisibleFrames()
Counts only visible frames. |
boolean |
getAutoPositionPolicy()
Gets the auto position frames policy. |
boolean |
getClosePolicy()
Gets the close policy. |
boolean |
getDeiconifiablePolicy()
Gets the de-iconifiable policy. |
boolean |
getOutlineDragMode()
Gets frames' drawing strategy. |
void |
hide()
Hides a frame. |
void |
hideAll()
Hides all frames. |
void |
maximize()
Maximizes the selected frame if it is not already maximized. |
void |
maximizeAll()
Maximizes all frames that are not already maximized. |
void |
minimize()
Minimizes the selected frame if it is iconifiable. |
void |
minimizeAll()
Minimizes all frames that are iconifiable. |
void |
reset()
Resets the frame to it's original preferred size of its components. |
void |
resetAll()
Resets all frames to their original preferred size of their components. |
void |
restore()
Restores the selected frame from it's maximized state. |
void |
restoreAll()
Restores all frames from their maximized state. |
void |
selectNext()
Selects the next internal frame. |
void |
selectPrevious()
Selects the previous internal frame. |
void |
setAutoPositionPolicy(boolean p)
Sets the auto position frames policy. |
void |
setClosePolicy(boolean p)
Sets the close policy. |
void |
setDeiconifiablePolicy(boolean p)
Sets de-iconifiable policy. |
void |
setOutlineDragMode(boolean outline)
Selects frames' drawing strategy. |
void |
tile()
Tiles all windows equally. |
void |
tileHorizontally()
Tiles all windows horizontally. |
void |
tileVertically()
Tiles all windows vertically. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WindowManager(JDesktopPane d, JMenu windowsMenu)
WindowManager
and
attaches it to a desktop pane.
d
- The JDesktopPane
instance.windowsMenu
- The JMenu
instance.Method Detail |
---|
public void setOutlineDragMode(boolean outline)
outline
- true
to enable
JDesktopPane.OUTLINE_DRAG_MODE
, or
false
to enable
JDesktopPane.LIVE_DRAG_MODE
.public boolean getOutlineDragMode()
true
if desktop's DragMode
is
JDesktopPane.OUTLINE_DRAG_MODE
or
false
if desktop's DragMode
is
JDesktopPane.LIVE_DRAG_MODE
.public void setDeiconifiablePolicy(boolean p)
p
- true
if force, false
otherwise.public boolean getDeiconifiablePolicy()
public void setClosePolicy(boolean p)
p
- true
to force close,
false
do default close operation.public boolean getClosePolicy()
true
for force close,
false
for default close operation.public void setAutoPositionPolicy(boolean p)
p
- true
for auto-position,
false
for none.public boolean getAutoPositionPolicy()
public int countFrames()
DefaultCloseOperation = HIDE_ON_CLOSE
NOTEUse this method in order to understand how many "ghost" frames remain within the desktop.
public int countVisibleFrames()
public void close()
public void closeAll()
public void minimize()
public void minimizeAll()
public void restore()
public void restoreAll()
public void maximize()
public void maximizeAll()
public void reset()
public void resetAll()
public void hide()
public void hideAll()
public void selectNext()
public void selectPrevious()
public void cascade()
public void tileVertically()
public void tileHorizontally()
public void tile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |