All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.JDesktopIcon

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----java.awt.swing.JComponent
                            |
                            +----java.awt.swing.JDesktopIcon

public class JDesktopIcon
extends JComponent
implements Accessible
This component represents an iconified version of a JInternalFrame. It should be able to tell the JInternalFrame


Constructor Index

 o JDesktopIcon(JInternalFrame)

Method Index

 o getAccessibleDescription()
Get the accessible description of this object.
 o getAccessibleName()
Get the accessible name of this object.
 o getAccessibleRole()
Get the role of this object.
 o getAccessibleValue()
Get the value of this object as a Number.
 o getDesktopPane()
Convience method to ask the appropriate JInternalFrame for the Desktop object.
 o getInternalFrame()
Returns the JInternalFrame that this DesktopIcon is associated with.
 o getUI()
 o getUIClassID()
 o setAccessibleValue(Number)
Set the value of this object as a Number.
 o setInternalFrame(JInternalFrame)
 o setUI(DesktopIconUI)
 o updateUI()
Called to replace the UI with the latest version from the default UIFactory.

Constructors

 o JDesktopIcon
public JDesktopIcon(JInternalFrame f)

Methods

 o getUI
public DesktopIconUI getUI()
 o setUI
public void setUI(DesktopIconUI ui)
 o getInternalFrame
public JInternalFrame getInternalFrame()
Returns the JInternalFrame that this DesktopIcon is associated with.

 o setInternalFrame
public void setInternalFrame(JInternalFrame f)
 o getDesktopPane
public JDesktopPane getDesktopPane()
Convience method to ask the appropriate JInternalFrame for the Desktop object.

 o updateUI
public void updateUI()
Called to replace the UI with the latest version from the default UIFactory.

Overrides:
updateUI in class JComponent
 o getUIClassID
public String getUIClassID()
Returns:
"DesktopIconUI"
Overrides:
getUIClassID in class JComponent
See Also:
getUIClassID, getUI
 o getAccessibleName
public String getAccessibleName()
Get the accessible name of this object. This should almost never return java.awt.Component.getName(), as that generally isn't a localized name, and doesn't have meaning for the user. If the object is fundamentally a text object (e.g. a menu item), the accessible name should be the text of the object (e.g. "save"). If the object has a tooltip, the tooltip text may also be an appropriate String to return.

Returns:
the localized name of the object -- can be null if this object does not have a name
Overrides:
getAccessibleName in class JComponent
See Also:
setAccessibleName
 o getAccessibleDescription
public String getAccessibleDescription()
Get the accessible description of this object. This should be a concise, localized description of what this object is - what is it's meaning to the user. If the object has a tooltip, the tooltip text may be an appropriate string to return, assuming it contains a concise description of the object (instead of just the name of the object - e.g. a "Save" icon on a toolbar that had "save" as the tooltip text shouldn't return the tooltip text as the description, but something like "Saves the current text document" instead).

Returns:
the localized description of the object -- can be null if this object does not have a description
Overrides:
getAccessibleDescription in class JComponent
See Also:
setAccessibleDescription
 o 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 JComponent
See Also:
AccessibleRole
 o getAccessibleValue
public Number getAccessibleValue()
Get the value of this object as a Number.

Returns:
value of the object -- can be null if this object does not have a value
Overrides:
getAccessibleValue in class JComponent
 o setAccessibleValue
public boolean setAccessibleValue(Number n)
Set the value of this object as a Number.

Returns:
True if the value was set.
Overrides:
setAccessibleValue in class JComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature