Class DefaultDesktopManager

This is an implementation of the DesktopManager.
It currently implements 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.

This class provides a policy for the various JInternalFrame methods,
it is not meant to be called directly rather the various JInternalFrame
methods will call into the DesktopManager.

Constructor Detail

DefaultDesktopManager

Method Detail

openFrame

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 its parent if it successfully adds the frame.

beginDraggingFrame

This method is normally called when the user has indicated that
they will begin dragging a component around. This method should be called
prior to any dragFrame() calls to allow the DesktopManager to prepare any
necessary state. Normally f will be a JInternalFrame.

dragFrame

Moves the visible location of the frame being dragged
to the location specified. The means by which this occurs can vary depending
on the dragging algorithm being used. The actual logical location of the frame
might not change until endDraggingFrame is called.

beginResizingFrame

This methods is normally called when the user has indicated that
they will begin resizing the frame. This method should be called
prior to any resizeFrame() calls to allow the DesktopManager to prepare any
necessary state. Normally f will be a JInternalFrame.