public class BasicDesktopIconUI extends javax.swing.plaf.DesktopIconUI
| Modifier and Type | Class and Description |
|---|---|
class |
BasicDesktopIconUI.MouseInputHandler
This helper class handles mouse events that occur on the JDesktopIcon.
|
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JInternalFrame.JDesktopIcon |
desktopIcon
The JDesktopIcon this UI delegate represents.
|
protected javax.swing.JInternalFrame |
frame
The JInternalFrame associated with the JDesktopIcon.
|
| Constructor and Description |
|---|
BasicDesktopIconUI()
Creates a new BasicDesktopIconUI object.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.event.MouseInputListener |
createMouseInputListener()
This method creates a new MouseInputListener for the JDesktopIcon.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
This method creates a new BasicDesktopIconUI for the given JComponent.
|
void |
deiconize()
This method deiconizes the JInternalFrame associated with the JDesktopIcon.
|
java.awt.Insets |
getInsets(javax.swing.JComponent c)
This method returns the insets of the given JComponent.
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
This method returns the maximum size for the given JComponent.
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
This method returns the minimum size for the given JComponent.
|
java.awt.Dimension |
getPreferredSize(javax.swing.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(javax.swing.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(javax.swing.JComponent c)
This method uninstalls the UI for the given JComponent.
|
protected javax.swing.JInternalFrame.JDesktopIcon desktopIcon
protected javax.swing.JInternalFrame frame
public BasicDesktopIconUI()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - The JComponent to create a UI for.public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.ComponentUIc - The JComponent to install this UI for.ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.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 javax.swing.event.MouseInputListener createMouseInputListener()
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.ComponentUIc - The JComponent to find a preferred size for.public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize in class javax.swing.plaf.ComponentUIc - The JComponent to find a minimum size for.public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize in class javax.swing.plaf.ComponentUIc - The JComponent to find a maximum size for.public java.awt.Insets getInsets(javax.swing.JComponent c)
c - The JComponent to find insets for.public void deiconize()