public class MostRecentlyUsedOrderDesktopManager extends Object implements DesktopManager
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(DesktopManager delegate) |
Modifier and Type | Method and Description |
---|---|
void |
activateFrame(JInternalFrame f) |
void |
beginDraggingFrame(JComponent f) |
void |
beginResizingFrame(JComponent f,
int direction) |
void |
closeFrame(JInternalFrame f) |
void |
deactivateFrame(JInternalFrame f) |
void |
deiconifyFrame(JInternalFrame f) |
void |
dragFrame(JComponent f,
int newX,
int newY) |
void |
endDraggingFrame(JComponent f) |
void |
endResizingFrame(JComponent f) |
void |
iconifyFrame(JInternalFrame f) |
void |
maximizeFrame(JInternalFrame f) |
void |
minimizeFrame(JInternalFrame f) |
void |
openFrame(JInternalFrame f) |
void |
resizeFrame(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight) |
protected void |
selectTopFrame(JInternalFrame previousTopFrame) |
void |
setBoundsForFrame(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight) |
public MostRecentlyUsedOrderDesktopManager(DesktopManager delegate)
public void activateFrame(JInternalFrame f)
activateFrame
in interface DesktopManager
public void beginDraggingFrame(JComponent f)
beginDraggingFrame
in interface DesktopManager
public void beginResizingFrame(JComponent f, int direction)
beginResizingFrame
in interface DesktopManager
public void deactivateFrame(JInternalFrame f)
deactivateFrame
in interface DesktopManager
public void closeFrame(JInternalFrame f)
closeFrame
in interface DesktopManager
public void iconifyFrame(JInternalFrame f)
iconifyFrame
in interface DesktopManager
public void maximizeFrame(JInternalFrame f)
maximizeFrame
in interface DesktopManager
public void minimizeFrame(JInternalFrame f)
minimizeFrame
in interface DesktopManager
public void openFrame(JInternalFrame f)
openFrame
in interface DesktopManager
public void resizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
resizeFrame
in interface DesktopManager
public void setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight)
setBoundsForFrame
in interface DesktopManager
public void deiconifyFrame(JInternalFrame f)
deiconifyFrame
in interface DesktopManager
public void dragFrame(JComponent f, int newX, int newY)
dragFrame
in interface DesktopManager
public void endDraggingFrame(JComponent f)
endDraggingFrame
in interface DesktopManager
public void endResizingFrame(JComponent f)
endResizingFrame
in interface DesktopManager
protected void selectTopFrame(JInternalFrame previousTopFrame)
Copyright © 2019. All Rights Reserved.