javax.swing

Class JInternalFrame.JDesktopIcon

public static class JInternalFrame.JDesktopIcon extends JComponent implements Accessible

This class represents the JInternalFrame while it is iconified.
Nested Class Summary
protected classJInternalFrame.JDesktopIcon.AccessibleJDesktopIcon
Provides the accessibility features for the JDesktopIcon component.
Constructor Summary
JDesktopIcon(JInternalFrame f)
Creates a new JDesktopIcon object for representing the given frame.
Method Summary
AccessibleContextgetAccessibleContext()
Returns the object that provides accessibility features for this JDesktopIcon component.
JDesktopPanegetDesktopPane()
This method returns the JDesktopPane this JDesktopIcon is in.
JInternalFramegetInternalFrame()
This method returns the JInternalFrame this JDesktopIcon represents.
DesktopIconUIgetUI()
This method returns the UI that is responsible for the JDesktopIcon.
StringgetUIClassID()
This method returns the String identifier that is used to determine which class is used for JDesktopIcon's UI.
voidsetInternalFrame(JInternalFrame f)
This method sets the JInternalFrame that this JDesktopIcon represents.
voidsetUI(DesktopIconUI ui)
This method sets the UI used for this JDesktopIcon.
voidupdateUI()
This method restores the UI property to the defaults.

Constructor Detail

JDesktopIcon

public JDesktopIcon(JInternalFrame f)
Creates a new JDesktopIcon object for representing the given frame.

Parameters: f The JInternalFrame to represent.

Method Detail

getAccessibleContext

public AccessibleContext getAccessibleContext()
Returns the object that provides accessibility features for this JDesktopIcon component.

Returns: The accessible context (an instance of {@link AccessibleJDesktopIcon}).

getDesktopPane

public JDesktopPane getDesktopPane()
This method returns the JDesktopPane this JDesktopIcon is in.

Returns: The JDesktopPane this JDesktopIcon is in.

getInternalFrame

public JInternalFrame getInternalFrame()
This method returns the JInternalFrame this JDesktopIcon represents.

Returns: The JInternalFrame this JDesktopIcon represents.

getUI

public DesktopIconUI getUI()
This method returns the UI that is responsible for the JDesktopIcon.

Returns: The UI that is responsible for the JDesktopIcon.

getUIClassID

public String getUIClassID()
This method returns the String identifier that is used to determine which class is used for JDesktopIcon's UI.

Returns: A String identifier for the UI class.

setInternalFrame

public void setInternalFrame(JInternalFrame f)
This method sets the JInternalFrame that this JDesktopIcon represents.

Parameters: f The JInternalFrame that this JDesktopIcon represents.

setUI

public void setUI(DesktopIconUI ui)
This method sets the UI used for this JDesktopIcon.

Parameters: ui The UI to use.

updateUI

public void updateUI()
This method restores the UI property to the defaults.