|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.DesktopIconUI
javax.swing.plaf.basic.BasicDesktopIconUI
public class BasicDesktopIconUI
This class acts as the UI delegate for JDesktopIcons for the Basic look and feel.
| Nested Class Summary | |
|---|---|
class |
BasicDesktopIconUI.MouseInputHandler
This helper class handles mouse events that occur on the JDesktopIcon. |
| Field Summary | |
|---|---|
protected JInternalFrame.JDesktopIcon |
desktopIcon
The JDesktopIcon this UI delegate represents. |
protected JInternalFrame |
frame
The JInternalFrame associated with the JDesktopIcon. |
| Constructor Summary | |
|---|---|
BasicDesktopIconUI()
Creates a new BasicDesktopIconUI object. |
|
| Method Summary | |
|---|---|
protected MouseInputListener |
createMouseInputListener()
This method creates a new MouseInputListener for the JDesktopIcon. |
static ComponentUI |
createUI(JComponent c)
This method creates a new BasicDesktopIconUI for the given JComponent. |
void |
deiconize()
This method deiconizes the JInternalFrame associated with the JDesktopIcon. |
Insets |
getInsets(JComponent c)
This method returns the insets of the given JComponent. |
Dimension |
getMaximumSize(JComponent c)
This method returns the maximum size for the given JComponent. |
Dimension |
getMinimumSize(JComponent c)
This method returns the minimum size for the given JComponent. |
Dimension |
getPreferredSize(JComponent c)
This method returns the preferred size for the given JComponent. |
protected void |
installComponents()
This method installs the necessary sub components for the JDesktopIcon. |
protected void |
installDefaults()
This method installs the defaults for the JDesktopIcon. |
protected void |
installListeners()
This method installs the listeners needed by this UI. |
void |
installUI(JComponent c)
This method installs the UI for the given JComponent. |
protected void |
uninstallComponents()
This method uninstalls the sub components for the JDesktopIcon. |
protected void |
uninstallDefaults()
This method uninstalls the defaults for the JDesktopIcon. |
protected void |
uninstallListeners()
This method uninstalls the listeners needed by the UI. |
void |
uninstallUI(JComponent c)
This method uninstalls the UI for the given JComponent. |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, paint, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JInternalFrame.JDesktopIcon desktopIcon
protected JInternalFrame frame
| Constructor Detail |
|---|
public BasicDesktopIconUI()
| Method Detail |
|---|
public static ComponentUI createUI(JComponent c)
c - The JComponent to create a UI for.
public void installUI(JComponent c)
installUI in class ComponentUIc - The JComponent to install this UI for.ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(JComponent c)
uninstallUI in class ComponentUIc - The JComponent to uninstall this UI for.ComponentUI.installUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()protected void installComponents()
protected void uninstallComponents()
protected void installListeners()
protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
protected MouseInputListener createMouseInputListener()
public Dimension getPreferredSize(JComponent c)
getPreferredSize in class ComponentUIc - The JComponent to find a preferred size for.
public Dimension getMinimumSize(JComponent c)
getMinimumSize in class ComponentUIc - The JComponent to find a minimum size for.
public Dimension getMaximumSize(JComponent c)
getMaximumSize in class ComponentUIc - The JComponent to find a maximum size for.
public Insets getInsets(JComponent c)
c - The JComponent to find insets for.
public void deiconize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||