public class MostRecentlyUsedOrderDesktopManager
A DesktopManager managing the internal frames in Desktop using a Most-Recently-Used order when changing the active internal frame. A Deque (a stack-like data structure) is used to keep track of frames.
activateFrame(JInternalFrame)
puts the frame at top of stack : if frame was already present
in stack, remove it then add it at top, otherwise, add it at top.deactivateFrame(JInternalFrame)
is a noop on the stack, delegate to superclass.closeFrame(JInternalFrame)
removes frame from the stack and selects the frame at top of stack.iconifyFrame(JInternalFrame>
is like closeFrame
as far as this manager is concerned,
but with iconifyFrame on superclass called.deiconifyFrame
delegates to superclass to bring back the frame on desktop, puts it at top of stack
and makes sure it is selected.Constructor and description |
---|
MostRecentlyUsedOrderDesktopManager
(javax.swing.DesktopManager delegate) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
activateFrame(javax.swing.JInternalFrame f) |
|
void |
beginDraggingFrame(javax.swing.JComponent f) |
|
void |
beginResizingFrame(javax.swing.JComponent f, int direction) |
|
void |
closeFrame(javax.swing.JInternalFrame f) |
|
void |
deactivateFrame(javax.swing.JInternalFrame f) |
|
void |
deiconifyFrame(javax.swing.JInternalFrame f) |
|
void |
dragFrame(javax.swing.JComponent f, int newX, int newY) |
|
void |
endDraggingFrame(javax.swing.JComponent f) |
|
void |
endResizingFrame(javax.swing.JComponent f) |
|
void |
iconifyFrame(javax.swing.JInternalFrame f) |
|
void |
maximizeFrame(javax.swing.JInternalFrame f) |
|
void |
minimizeFrame(javax.swing.JInternalFrame f) |
|
void |
openFrame(javax.swing.JInternalFrame f) |
|
void |
resizeFrame(javax.swing.JComponent f, int newX, int newY, int newWidth, int newHeight) |
|
void |
setBoundsForFrame(javax.swing.JComponent f, int newX, int newY, int newWidth, int newHeight) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |