|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JLayeredPane | +--javax.swing.JDesktopPane
A container used to create a multiple-document interface or a virtual desktop. You create JInternalFrame objects and add them to the JDesktopPane. JDesktopPane extends JLayeredPane to manage the potentially overlapping internal frames. It also maintains a reference to an instance of DesktopManager that is set by the UI class for the current Look and Feel (L&F).
This class is normally used as the parent of JInternalFrames to provide a pluggable DesktopManager object to the JInternalFrames. The installUI of the L&F specific implementation is responsible for setting the desktopManager variable appropriately. When the parent of a JInternalFrame is a JDesktopPane, it should delegate most of its behavior to the desktopManager (closing, resizing, etc).
For the keyboard keys used by this component in the standard Look and Feel (L&F) renditions, see the JDesktopPane key assignments.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.
JInternalFrame
,
JInternalFrame.JDesktopIcon
,
DesktopManager
, Serialized FormInner Class Summary | |
protected class |
JDesktopPane.AccessibleJDesktopPane
The class used to obtain the accessible role for this object. |
Inner classes inherited from class javax.swing.JLayeredPane |
JLayeredPane.AccessibleJLayeredPane |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
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 |
Constructor Summary | |
JDesktopPane()
Creates a new JDesktopPane. |
Method Summary | |
AccessibleContext |
getAccessibleContext()
Get the AccessibleContext associated with this JComponent |
JInternalFrame[] |
getAllFrames()
Returns all JInternalFrames currently displayed in the desktop. |
JInternalFrame[] |
getAllFramesInLayer(int layer)
Returns all JInternalFrames currently displayed in the specified layer of the desktop. |
DesktopManager |
getDesktopManager()
Returns the DesktopManger that handles desktop-specific UI actions. |
DesktopPaneUI |
getUI()
Returns the L&F object that renders this component. |
String |
getUIClassID()
Returns the name of the L&F class that renders this component. |
boolean |
isOpaque()
Returns true to indicate that this component paints every pixel in its range. |
protected String |
paramString()
Returns a string representation of this JDesktopPane. |
void |
setDesktopManager(DesktopManager d)
Sets the DesktopManger that will handle desktop-specific UI actions. |
void |
setUI(DesktopPaneUI ui)
Sets the L&F object that renders this component. |
void |
updateUI()
Notification from the UIManager that the L&F has changed. |
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,
setLayer,
setLayer,
setPosition |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public JDesktopPane()
Method Detail |
public DesktopPaneUI getUI()
public void setUI(DesktopPaneUI ui)
ui
- the DesktopPaneUI L&F objectUIDefaults.getUI(javax.swing.JComponent)
public DesktopManager getDesktopManager()
d
- the DesktopManager currently in usepublic void setDesktopManager(DesktopManager d)
d
- the DesktopManager to usepublic void updateUI()
JComponent.updateUI()
public String getUIClassID()
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public JInternalFrame[] getAllFrames()
public JInternalFrame[] getAllFramesInLayer(int layer)
layer
- an int specifying the desktop layerJLayeredPane
public boolean isOpaque()
JComponent.isOpaque()
protected String paramString()
null
.public AccessibleContext getAccessibleContext()
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |