API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. DefaultDesktopManager View Source
Author(s)
David Kloba
Steve Wilson
Since
Version
1.59 11/30/06
Serial
Hierarchy
 Object
      DefaultDesktopManager
Implements
 DesktopManager
 Serializable
Subclasses
Description
public class DefaultDesktopManager
  This is an implementation of the DesktopManager.
See also:    JDesktopPane JInternalFrame
Constructors
public DefaultDesktopManager ()
Methods
Hide/Show inherited methods
public void activateFrame (JInternalFrame f) [Specified in DesktopManager]
  This will activate f moving it to the front.
public void beginDraggingFrame (JComponent f) [Specified in DesktopManager]
public void beginResizingFrame (JComponent f, int direction) [Specified in DesktopManager]
public void closeFrame (JInternalFrame f) [Specified in DesktopManager]
  Removes the frame, and, if necessary, the desktopIcon, from its parent.
public void deactivateFrame (JInternalFrame f) [Specified in DesktopManager]
public void deiconifyFrame (JInternalFrame f) [Specified in DesktopManager]
  Removes the desktopIcon from its parent and adds its frame to the parent.
public void dragFrame (JComponent f, int newX, int newY) [Specified in DesktopManager]
  Moves the visible location of the frame being dragged to the location specified.
public void endDraggingFrame (JComponent f) [Specified in DesktopManager]
public void endResizingFrame (JComponent f) [Specified in DesktopManager]
protected Rectangle getBoundsForIconOf (JInternalFrame f)
The iconifyFrame() code calls this to determine the proper bounds for the desktopIcon.
pack-private JDesktopPane getDesktopPane (JComponent frame)
protected Rectangle getPreviousBounds (JInternalFrame f)
  Gets the normal bounds of the component prior to the component being maximized.
public void iconifyFrame (JInternalFrame f) [Specified in DesktopManager]
  Removes the frame from its parent and adds its desktopIcon to the parent.
public void maximizeFrame (JInternalFrame f) [Specified in DesktopManager]
  Resizes the frame to fill its parents bounds.
public void minimizeFrame (JInternalFrame f) [Specified in DesktopManager]
  Restores the frame back to its size and position prior to a maximizeFrame call.
public void openFrame (JInternalFrame f) [Specified in DesktopManager]
  Normally this method will not be called.
protected void removeIconFor (JInternalFrame f)
Convenience method to remove the desktopIcon of f is necessary.
public void resizeFrame (JComponent f, int newX, int newY, int newWidth, int newHeight) [Specified in DesktopManager]
  Calls setBoundsForFrame with the new values.
public void setBoundsForFrame (JComponent f, int newX, int newY, int newWidth, int newHeight) [Specified in DesktopManager]
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)
  Returns true if the component has been iconized and the bounds of the desktopIcon are valid, otherwise returns false.
Fields
Hide/Show inherited fields
pack-privatefinalstatic int DEFAULT_DRAG_MODE = "0"
pack-private int dragMode
pack-privatefinalstatic int FASTER_DRAG_MODE = "2"
pack-privatefinalstatic String HAS_BEEN_ICONIFIED_PROPERTY = "wasIconOnce"
pack-privatefinalstatic int OUTLINE_DRAG_MODE = "1"
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar