|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLayeredPane
javax.swing.JDesktopPane
public class JDesktopPane
JDesktopPane is a container (usually for JInternalFrames) that simulates a desktop. Typically, the user will create JInternalFrames and place them in a JDesktopPane. The user can then interact with JInternalFrames like they usually would with JFrames. The actions (minimize, maximize, close, etc) are done by using a DesktopManager that is associated with the JDesktopPane.
| Nested Class Summary | |
|---|---|
protected class |
JDesktopPane.AccessibleJDesktopPane
Provides the accessibility features for the JDesktopPane
component. |
| Nested classes/interfaces inherited from class javax.swing.JLayeredPane |
|---|
JLayeredPane.AccessibleJLayeredPane |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| 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. |
| Fields inherited from class javax.swing.JLayeredPane |
|---|
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| 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. |
| Methods inherited from class javax.swing.JLayeredPane |
|---|
addImpl, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, remove, removeAll, setLayer, setLayer, setPosition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LIVE_DRAG_MODE
public static final int OUTLINE_DRAG_MODE
| Constructor Detail |
|---|
public JDesktopPane()
| Method Detail |
|---|
public DesktopPaneUI getUI()
public void setUI(DesktopPaneUI ui)
ui - The UI to use with the JDesktopPane.public void setDragMode(int mode)
mode - The drag mode to use.
IllegalArgumentException - If the drag mode given is not
LIVE_DRAG_MODE or OUTLINE_DRAG_MODE.public int getDragMode()
public DesktopManager getDesktopManager()
public void setDesktopManager(DesktopManager manager)
manager - The DesktopManager to use with the JDesktopPane.public void updateUI()
updateUI in class JComponentpublic String getUIClassID()
getUIClassID in class JComponentJComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public JInternalFrame[] getAllFrames()
public JInternalFrame getSelectedFrame()
public void setSelectedFrame(JInternalFrame frame)
frame - The selected frame in the JDesktopPane.public JInternalFrame[] getAllFramesInLayer(int layer)
layer - The layer to grab frames in.
public boolean isOpaque()
isOpaque in class JComponentComponent.isLightweight()protected String paramString()
JDesktopPane.
paramString in class JComponentJDesktopPane
(never null).public AccessibleContext getAccessibleContext()
JDesktopPane component.
getAccessibleContext in interface AccessiblegetAccessibleContext in class JLayeredPaneJDesktopPane.AccessibleJDesktopPane).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||