javax.swing
public class JDesktopPane extends JLayeredPane implements Accessible
Nested Class Summary | |
---|---|
protected class | JDesktopPane.AccessibleJDesktopPane
Provides the accessibility features for the JDesktopPane
component. |
Field Summary | |
---|---|
static int | LIVE_DRAG_MODE
This specifies that when dragged, a JInternalFrame should be completely
visible.
|
static int | OUTLINE_DRAG_MODE
This specifies that when dragged, a JInternalFrame should only be visible
as an outline.
|
Constructor Summary | |
---|---|
JDesktopPane()
Creates a new JDesktopPane object. |
Method Summary | |
---|---|
AccessibleContext | getAccessibleContext()
Returns the object that provides accessibility features for this
JDesktopPane component.
|
JInternalFrame[] | getAllFrames()
This method returns all JInternalFrames that are in the JDesktopPane.
|
JInternalFrame[] | getAllFramesInLayer(int layer)
This method returns all the JInternalFrames in the given layer.
|
DesktopManager | getDesktopManager()
This method returns the DesktopManager used with the JDesktopPane.
|
int | getDragMode()
This method returns the drag mode used with the JDesktopPane.
|
JInternalFrame | getSelectedFrame()
This method returns the currently selected frame in the JDesktopPane.
|
DesktopPaneUI | getUI()
This method returns the UI used with the JDesktopPane.
|
String | getUIClassID()
This method returns a String identifier that allows the UIManager to know
which class will act as JDesktopPane's UI.
|
boolean | isOpaque()
This method always returns true to indicate that it is not transparent.
|
protected String | paramString()
Returns an implementation-dependent string describing the attributes of
this JDesktopPane .
|
void | setDesktopManager(DesktopManager manager)
This method sets the DesktopManager to use with the JDesktopPane.
|
void | setDragMode(int mode)
This method sets the drag mode to use with the JDesktopPane.
|
void | setSelectedFrame(JInternalFrame frame)
This method sets the selected frame in the JDesktopPane.
|
void | setUI(DesktopPaneUI ui)
This method sets the UI used with the JDesktopPane.
|
void | updateUI()
This method restores the UI used with the JDesktopPane to the default. |
UNKNOWN: final since 1.5.0.
UNKNOWN: final since 1.5.0.
JDesktopPane
component.
Returns: The accessible context (an instance of {@link AccessibleJDesktopPane}).
Returns: All JInternalFrames that are in the JDesktopPane.
Parameters: layer The layer to grab frames in.
Returns: All JInternalFrames in the given layer.
Returns: The DesktopManager to use with the JDesktopPane.
Returns: The drag mode used with the JDesktopPane.
Returns: The currently selected frame in the JDesktopPane.
Returns: The UI used with the JDesktopPane.
Returns: A String identifier for the UI class to use.
Returns: true.
JDesktopPane
.
Returns: A string describing the attributes of this JDesktopPane
(never null
).
Parameters: manager The DesktopManager to use with the JDesktopPane.
Parameters: mode The drag mode to use.
Throws: IllegalArgumentException If the drag mode given is not LIVE_DRAG_MODE or OUTLINE_DRAG_MODE.
Parameters: frame The selected frame in the JDesktopPane.
Parameters: ui The UI to use with the JDesktopPane.