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
JDesktopIcon(JInternalFrame)
-
getAccessibleDescription()
- Get the accessible description of this object.
getAccessibleName()
- Get the accessible name of this object.
getAccessibleRole()
- Get the role of this object.
getAccessibleValue()
- Get the value of this object as a Number.
getDesktopPane()
- Convience method to ask the appropriate JInternalFrame
for the Desktop object.
getInternalFrame()
- Returns the JInternalFrame that this DesktopIcon is associated with.
getUI()
-
getUIClassID()
-
setAccessibleValue(Number)
- Set the value of this object as a Number.
setInternalFrame(JInternalFrame)
-
setUI(DesktopIconUI)
-
updateUI()
- Called to replace the UI with the latest version from the
default UIFactory.
JDesktopIcon
public JDesktopIcon(JInternalFrame f)
getUI
public DesktopIconUI getUI()
setUI
public void setUI(DesktopIconUI ui)
getInternalFrame
public JInternalFrame getInternalFrame()
- Returns the JInternalFrame that this DesktopIcon is associated with.
setInternalFrame
public void setInternalFrame(JInternalFrame f)
getDesktopPane
public JDesktopPane getDesktopPane()
- Convience method to ask the appropriate JInternalFrame
for the Desktop object.
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:
- "DesktopIconUI"
- Overrides:
- getUIClassID in class JComponent
- See Also:
- getUIClassID, getUI
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
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
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
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
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