|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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
Unsafe:
Field Summary | |
(package private) DesktopManager |
desktopManager
|
private int |
dragMode
|
static int |
LIVE_DRAG_MODE
Suppressed: Indicates that the entire contents of the item being dragged should appear inside the desktop pane. |
static int |
OUTLINE_DRAG_MODE
Suppressed: Indicates that an outline only of the item being dragged should appear inside the desktop pane. |
private JInternalFrame |
selectedFrame
|
private static String |
uiClassID
|
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 |
_bounds, accessibleContext, listenerList, paintingChild, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Constructor Summary | |
JDesktopPane()
Suppressed: Creates a new JDesktopPane . |
Method Summary | |
AccessibleContext |
getAccessibleContext()
Suppressed: Gets the AccessibleContext associated with this
JDesktopPane . |
JInternalFrame[] |
getAllFrames()
Suppressed: Returns all JInternalFrames currently displayed in the
desktop. |
JInternalFrame[] |
getAllFramesInLayer(int layer)
Suppressed: Returns all JInternalFrames currently displayed in the
specified layer of the desktop. |
DesktopManager |
getDesktopManager()
Suppressed: Returns the DesktopManger that handles
desktop-specific UI actions. |
int |
getDragMode()
Suppressed: Gets the current "dragging style" used by the desktop pane. |
JInternalFrame |
getSelectedFrame()
Suppressed: Returns the currently active JInternalFrame
in this JDesktopPane , or null
if no JInternalFrame is currently active. |
javax.swing.plaf.DesktopPaneUI |
getUI()
Suppressed: Returns the L&F object that renders this component. |
String |
getUIClassID()
Suppressed: Returns the name of the L&F class that renders this component. |
boolean |
isOpaque()
Suppressed: 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)
Suppressed: Sets the DesktopManger that will handle
desktop-specific UI actions. |
void |
setDragMode(int dragMode)
Suppressed: Sets the "dragging style" used by the desktop pane. |
void |
setSelectedFrame(JInternalFrame f)
Suppressed: Sets the currently active JInternalFrame
in this JDesktopPane . |
void |
setUI(javax.swing.plaf.DesktopPaneUI ui)
Suppressed: Sets the L&F object that renders this component. |
void |
updateUI()
Suppressed: Notification from the UIManager that the L&F has changed. |
private void |
writeObject(ObjectOutputStream s)
See readObject() and writeObject() in JComponent for more information about serialization in Swing. |
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String uiClassID
getUIClassID()
,
JComponent.readObject(java.io.ObjectInputStream)
transient DesktopManager desktopManager
private transient JInternalFrame selectedFrame
public static int LIVE_DRAG_MODE
OUTLINE_DRAG_MODE
,
setDragMode(int)
public static int OUTLINE_DRAG_MODE
LIVE_DRAG_MODE
,
setDragMode(int)
private int dragMode
Constructor Detail |
public JDesktopPane()
JDesktopPane
.
Method Detail |
public javax.swing.plaf.DesktopPaneUI getUI()
DesktopPaneUI
object that
renders this componentpublic void setUI(javax.swing.plaf.DesktopPaneUI ui)
ui
- the DesktopPaneUI L&F objectUIDefaults.getUI(javax.swing.JComponent)
public void setDragMode(int dragMode)
dragMode
- the style of drag to use for items in the DesktopLIVE_DRAG_MODE
,
OUTLINE_DRAG_MODE
public int getDragMode()
Live_DRAG_MODE
or
OUTLINE_DRAG_MODE
setDragMode(int)
public DesktopManager getDesktopManager()
DesktopManger
that handles
desktop-specific UI actions.
public void setDesktopManager(DesktopManager d)
DesktopManger
that will handle
desktop-specific UI actions.
d
- the DesktopManager
to usepublic void updateUI()
UIManager
that the L&F has changed.
Replaces the current UI object with the latest version from the
UIManager
.
updateUI
in class JComponent
JComponent.updateUI()
public String getUIClassID()
getUIClassID
in class JComponent
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public JInternalFrame[] getAllFrames()
JInternalFrames
currently displayed in the
desktop. Returns iconified frames as well as expanded frames.
JInternalFrame
objectspublic JInternalFrame getSelectedFrame()
JInternalFrame
in this JDesktopPane
, or null
if no JInternalFrame
is currently active.
JInternalFrame
or
null
public void setSelectedFrame(JInternalFrame f)
JInternalFrame
in this JDesktopPane
.
f
- the internal frame that's currently selectedpublic JInternalFrame[] getAllFramesInLayer(int layer)
JInternalFrames
currently displayed in the
specified layer of the desktop. Returns iconified frames as well
expanded frames.
layer
- an int specifying the desktop layer
JInternalFrame
objectsJLayeredPane
public boolean isOpaque()
isOpaque
in class JComponent
JComponent.isOpaque()
private void writeObject(ObjectOutputStream s) throws IOException
s
- the ObjectOutputStream
in which to write
IOException
protected String paramString()
JDesktopPane
.
This method is intended to be used only for debugging purposes, and the
content and format of the returned string may vary between
implementations. The returned string may be empty but may not
be null
.
paramString
in class JLayeredPane
JDesktopPane
public AccessibleContext getAccessibleContext()
AccessibleContext
associated with this
JDesktopPane
. For desktop panes, the
AccessibleContext
takes the form of an
AccessibleJDesktopPane
.
A new AccessibleJDesktopPane
instance is created if necessary.
getAccessibleContext
in interface Accessible
getAccessibleContext
in class JLayeredPane
AccessibleJDesktopPane
that serves as the
AccessibleContext
of this JDesktopPane
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |