All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.DefaultDesktopManager

java.lang.Object
   |
   +----com.sun.java.swing.DefaultDesktopManager

public class DefaultDesktopManager
extends Object
implements DesktopManager
This is an implementaion of the DesktopManager. It currently implements a the basic behaviors for managing JInternanFrames in an arbitrary parent. JInternalFrames that are not children of a JDesktop will use this component to handle their desktop-like actions.

See Also:
JDesktopPane, JInternalFrame

Constructor Index

 o DefaultDesktopManager()

Method Index

 o activateFrame(JInternalFrame)
Finds all the other peers of type JInternalFrames and set's their IS_SELECTED_PROPERTY to false.
 o beginDraggingFrame(JComponent)
 o beginResizingFrame(JComponent, int)
 o closeFrame(JInternalFrame)
Removes the frame, and if necessary the desktopIcon, from it's parent.
 o deactivateFrame(JInternalFrame)
 o deiconifyFrame(JInternalFrame)
Removes the desktopIcon from it's parent and adds it's frame to the parent.
 o dragFrame(JComponent, int, int)
Calls setBoundsForFrame() with the new values.
 o endDraggingFrame(JComponent)
 o endResizingFrame(JComponent)
 o getBoundsForIconOf(JInternalFrame)
The iconifyFrame() code calls this to determine the proper bounds for the desktopIcon.
 o getPreviousBounds(JInternalFrame)
 o iconifyFrame(JInternalFrame)
Removes the frame from it's parent and adds it's desktopIcon to the parent.
 o maximizeFrame(JInternalFrame)
Resizes the frame to fill it's parents bounds.
 o minimizeFrame(JInternalFrame)
Restores the frame back to it's size and position prior to a maximizeFrame() call.
 o openFrame(JInternalFrame)
Normally this method will not be called.
 o removeIconFor(JInternalFrame)
Convience method to remove the desktopIcon of f is necessary.
 o resizeFrame(JComponent, int, int, int, int)
Calls setBoundsForFrame() with the new values.
 o setBoundsForFrame(JComponent, int, int, int, int)
This moves the JComponent and repaints the damaged areas.
 o setPreviousBounds(JInternalFrame, Rectangle)
Stores the bounds of the component just before a maximize call.
 o setWasIcon(JInternalFrame, Boolean)
Sets that the component has been iconized and the bounds of the desktopIcon are valid.
 o wasIcon(JInternalFrame)

Constructors

 o DefaultDesktopManager
 public DefaultDesktopManager()

Methods

 o openFrame
 public void openFrame(JInternalFrame f)
Normally this method will not be called. If it is, it try to determine the appropriate parent from the desktopIcon of the frame. Will remove the desktopIcon from it's parent if it successfully adds the frame.

 o closeFrame
 public void closeFrame(JInternalFrame f)
Removes the frame, and if necessary the desktopIcon, from it's parent.

 o maximizeFrame
 public void maximizeFrame(JInternalFrame f)
Resizes the frame to fill it's parents bounds.

 o minimizeFrame
 public void minimizeFrame(JInternalFrame f)
Restores the frame back to it's size and position prior to a maximizeFrame() call.

 o iconifyFrame
 public void iconifyFrame(JInternalFrame f)
Removes the frame from it's parent and adds it's desktopIcon to the parent.

 o deiconifyFrame
 public void deiconifyFrame(JInternalFrame f)
Removes the desktopIcon from it's parent and adds it's frame to the parent.

 o activateFrame
 public void activateFrame(JInternalFrame f)
Finds all the other peers of type JInternalFrames and set's their IS_SELECTED_PROPERTY to false. Also moves f to the front.

 o deactivateFrame
 public void deactivateFrame(JInternalFrame f)
 o beginDraggingFrame
 public void beginDraggingFrame(JComponent f)
 o dragFrame
 public void dragFrame(JComponent f,
                       int newX,
                       int newY)
Calls setBoundsForFrame() with the new values.

 o endDraggingFrame
 public void endDraggingFrame(JComponent f)
 o beginResizingFrame
 public void beginResizingFrame(JComponent f,
                                int direction)
 o resizeFrame
 public void resizeFrame(JComponent f,
                         int newX,
                         int newY,
                         int newWidth,
                         int newHeight)
Calls setBoundsForFrame() with the new values.

 o endResizingFrame
 public void endResizingFrame(JComponent f)
 o setBoundsForFrame
 public void setBoundsForFrame(JComponent f,
                               int newX,
                               int newY,
                               int newWidth,
                               int newHeight)
This moves the JComponent and repaints the damaged areas.

 o removeIconFor
 protected void removeIconFor(JInternalFrame f)
Convience method to remove the desktopIcon of f is necessary.

 o getBoundsForIconOf
 protected Rectangle getBoundsForIconOf(JInternalFrame f)
The iconifyFrame() code calls this to determine the proper bounds for the desktopIcon.

 o setPreviousBounds
 protected void setPreviousBounds(JInternalFrame f,
                                  Rectangle r)
Stores the bounds of the component just before a maximize call.

 o getPreviousBounds
 protected Rectangle getPreviousBounds(JInternalFrame f)
 o setWasIcon
 protected void setWasIcon(JInternalFrame f,
                           Boolean value)
Sets that the component has been iconized and the bounds of the desktopIcon are valid.

 o wasIcon
 protected boolean wasIcon(JInternalFrame f)

All Packages  Class Hierarchy  This Package  Previous  Next  Index