| public class javax.swing DefaultDesktopManager
|
Java SE 6 |
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.
| version | 1.58 05/09/06 |
| See also | javax.swing.JDesktopPane, javax.swing.JInternalFrame |
| Constructors | |
|---|---|
| public | DefaultDesktopManager() |
| Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public void | activateFrame(JInternalFrame f) This will activate f moving it to the front. It will set the current active frame's (if any) IS_SELECTED_PROPERTY to false.
There can be only one active frame across all Layers.
| ||||||||||
| public void | beginDraggingFrame(JComponent f) | ||||||||||
| public void | beginResizingFrame(JComponent f, int direction) | ||||||||||
| public void | closeFrame(JInternalFrame f) Removes the frame, and, if necessary, the desktopIcon, from its parent.
| ||||||||||
| public void | deactivateFrame(JInternalFrame f) | ||||||||||
| public void | deiconifyFrame(JInternalFrame f) Removes the desktopIcon from its parent and adds its frame to the parent.
| ||||||||||
| public void | dragFrame(JComponent f, int newX, int newY) 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.
| ||||||||||
| public void | endDraggingFrame(JComponent f) | ||||||||||
| public void | endResizingFrame(JComponent f) | ||||||||||
| public void | iconifyFrame(JInternalFrame f) Removes the frame from its parent and adds its desktopIcon to the parent.
| ||||||||||
| public void | maximizeFrame(JInternalFrame f) Resizes the frame to fill its parents bounds.
| ||||||||||
| public void | minimizeFrame(JInternalFrame f) Restores the frame back to its size and position prior to a maximizeFrame call.
| ||||||||||
| 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 its parent if it successfully adds the frame. | ||||||||||
| 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) Calls setBoundsForFrame with the new values.
| ||||||||||
| protected boolean | wasIcon(JInternalFrame f) Returns true if the component has been iconized
and the bounds of the desktopIcon are valid,
otherwise returns false.
| ||||||||||
| Properties | |||||
|---|---|---|---|---|---|
| public void | setBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight) This moves the JComponent and repaints the damaged areas.
| ||||
| protected Rectangle | getBoundsForIconOf(JInternalFrame f) The iconifyFrame() code calls this to determine the proper bounds for the desktopIcon. | ||||
| protected void | setPreviousBounds(JInternalFrame f, Rectangle r) Stores the bounds of the component just before a maximize call.
| ||||
| protected Rectangle | getPreviousBounds(JInternalFrame f) Gets the normal bounds of the component prior to the component being maximized.
| ||||
| protected void | setWasIcon(JInternalFrame f, Boolean value) Sets that the component has been iconized and the bounds of the desktopIcon are valid.
| ||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|