All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.JDesktopPane
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.swing.JComponent
|
+----java.awt.swing.JLayeredPane
|
+----java.awt.swing.JDesktopPane
- public class JDesktopPane
- extends JLayeredPane
- implements Accessible
This JLayeredPane subclass keeps a reference to a DesktopManager object.
This class in 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 and/or JDesktopIcon is a JDesktopPane, they should
delegate most of their behaviors to the desktopManager (closing, resizing, etc).
- See Also:
- JInternalFrame, JDesktopIcon, DesktopManager
JDesktopPane()
-
getAccessibleRole()
- Get the role of this object.
getAllFrames()
- Returns all JInternalFrames currently displayed in the
desktop.
getAllFramesInLayer(int)
- Returns all JInternalFrames currently displayed in the
desktop that are in layer.
getDesktopManager()
-
getUI()
-
getUIClassID()
-
setDesktopManager(DesktopManager)
-
setUI(DesktopPaneUI)
-
updateUI()
- Called to replace the UI with the latest version from the
default UIFactory.
JDesktopPane
public JDesktopPane()
getUI
public DesktopPaneUI getUI()
setUI
public void setUI(DesktopPaneUI ui)
getDesktopManager
public DesktopManager getDesktopManager()
setDesktopManager
public void setDesktopManager(DesktopManager d)
updateUI
public void updateUI()
- Called to replace the UI with the latest version from the
default UIFactory.
- Overrides:
- updateUI in class JComponent
getUIClassID
public String getUIClassID()
- Returns:
- "DesktopPaneUI"
- Overrides:
- getUIClassID in class JComponent
- See Also:
- getUIClassID, getUI
getAllFrames
public JInternalFrame[] getAllFrames()
- Returns all JInternalFrames currently displayed in the
desktop. This will return iconified frames as well.
getAllFramesInLayer
public JInternalFrame[] getAllFramesInLayer(int layer)
- Returns all JInternalFrames currently displayed in the
desktop that are in layer. This will return iconified frames as well.
getAccessibleRole
public AccessibleRole getAccessibleRole()
- Get the role of this object.
- Returns:
- an instance of AccessibleRole describing the role of the object
- Overrides:
- getAccessibleRole in class JLayeredPane
- See Also:
- AccessibleRole
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature