|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javax.swing.DefaultDesktopManager
This is an implementaion of the DesktopManager. It currently implements a the basic behaviors for managing JInternalFrames in an arbitrary parent. JInternalFrames that are not children of a JDesktop will use this component to handle their desktop-like actions.
JDesktopPane,
JInternalFrame, Serialized Form| Constructor Summary | |
DefaultDesktopManager()
|
|
| Method Summary | |
void |
activateFrame(JInternalFrame f)
This will activate f moving it to the front. |
void |
beginDraggingFrame(JComponent f)
This method is normally called when the user has indicated that they will begin dragging a component around. |
void |
beginResizingFrame(JComponent f,
int direction)
This methods is normally called when the user has indicated that they will begin resizing the frame. |
void |
closeFrame(JInternalFrame f)
Removes the frame, and if necessary the desktopIcon, from its parent. |
void |
deactivateFrame(JInternalFrame f)
Generally, indicate that this frame has lost focus. |
void |
deiconifyFrame(JInternalFrame f)
Removes the desktopIcon from its parent and adds its frame to the parent. |
void |
dragFrame(JComponent f,
int newX,
int newY)
Moves the visible location of the frame being dragged to the location specified. |
void |
endDraggingFrame(JComponent f)
This method signals the end of the dragging session. |
void |
endResizingFrame(JComponent f)
This method signals the end of the resize session. |
protected Rectangle |
getBoundsForIconOf(JInternalFrame f)
The iconifyFrame() code calls this to determine the proper bounds for the desktopIcon. |
protected Rectangle |
getPreviousBounds(JInternalFrame f)
|
void |
iconifyFrame(JInternalFrame f)
Removes the frame from its parent and adds its desktopIcon to the parent. |
void |
maximizeFrame(JInternalFrame f)
Resizes the frame to fill its parents bounds. |
void |
minimizeFrame(JInternalFrame f)
Restores the frame back to its size and position prior to a maximizeFrame() call. |
void |
openFrame(JInternalFrame f)
Normally this method will not be called. |
protected void |
removeIconFor(JInternalFrame f)
Convience method to remove the desktopIcon of f is necessary. |
void |
resizeFrame(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
Calls setBoundsForFrame() with the new values. |
void |
setBoundsForFrame(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
This moves the JComponent and repaints the damaged areas. |
protected void |
setPreviousBounds(JInternalFrame f,
Rectangle r)
Stores the bounds of the component just before a maximize call. |
protected void |
setWasIcon(JInternalFrame f,
Boolean value)
Sets that the component has been iconized and the bounds of the desktopIcon are valid. |
protected boolean |
wasIcon(JInternalFrame f)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultDesktopManager()
| Method Detail |
public void openFrame(JInternalFrame f)
openFrame in interface DesktopManagerpublic void closeFrame(JInternalFrame f)
closeFrame in interface DesktopManagerpublic void maximizeFrame(JInternalFrame f)
maximizeFrame in interface DesktopManagerpublic void minimizeFrame(JInternalFrame f)
minimizeFrame in interface DesktopManagerpublic void iconifyFrame(JInternalFrame f)
iconifyFrame in interface DesktopManagerpublic void deiconifyFrame(JInternalFrame f)
deiconifyFrame in interface DesktopManagerpublic void activateFrame(JInternalFrame f)
activateFrame in interface DesktopManagerpublic void deactivateFrame(JInternalFrame f)
DesktopManagerdeactivateFrame in interface DesktopManagerpublic void beginDraggingFrame(JComponent f)
DesktopManagerbeginDraggingFrame in interface DesktopManager
public void dragFrame(JComponent f,
int newX,
int newY)
dragFrame in interface DesktopManagerpublic void endDraggingFrame(JComponent f)
DesktopManagerendDraggingFrame in interface DesktopManager
public void beginResizingFrame(JComponent f,
int direction)
DesktopManagerbeginResizingFrame in interface DesktopManager
public void resizeFrame(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
resizeFrame in interface DesktopManagerpublic void endResizingFrame(JComponent f)
DesktopManagerendResizingFrame in interface DesktopManager
public void setBoundsForFrame(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
setBoundsForFrame in interface DesktopManagerprotected void removeIconFor(JInternalFrame f)
protected Rectangle getBoundsForIconOf(JInternalFrame f)
protected void setPreviousBounds(JInternalFrame f,
Rectangle r)
protected Rectangle getPreviousBounds(JInternalFrame f)
protected void setWasIcon(JInternalFrame f,
Boolean value)
protected boolean wasIcon(JInternalFrame f)
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.