is new.
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.DesktopPaneUI
javax.swing.plaf.basic.BasicDesktopPaneUI
Basic L&F for a desktop.
| Nested Class Summary | |
|---|---|
| protected class |
BasicDesktopPaneUI.CloseAction
|
| protected class |
BasicDesktopPaneUI.MaximizeAction
|
| protected class |
BasicDesktopPaneUI.MinimizeAction
|
| protected class |
BasicDesktopPaneUI.NavigateAction
|
| protected class |
BasicDesktopPaneUI.OpenAction
|
| Field Summary | |
|---|---|
| protected KeyStroke |
closeKey
Deprecated. As of 1.3. |
| protected JDesktopPane |
desktop
|
| protected DesktopManager |
desktopManager
|
| protected KeyStroke |
maximizeKey
Deprecated. As of 1.3. |
| protected KeyStroke |
minimizeKey
Deprecated. As of 1.3. |
| protected KeyStroke |
navigateKey
Deprecated. As of 1.3. |
| protected KeyStroke |
navigateKey2
Deprecated. As of 1.3. |
| Constructor Summary | |
|---|---|
|
BasicDesktopPaneUI
() |
|
| Method Summary | |
|---|---|
protected
PropertyChangeListener
|
createPropertyChangeListener
()
Returns the PropertyChangeListener to install on the JDesktopPane.
|
| static ComponentUI |
createUI
(
JComponent
c) |
| Dimension |
getMaximumSize
(
JComponent
c) Returns the specified component's maximum size appropriate for the look and feel. |
| Dimension |
getMinimumSize
(
JComponent
c) Returns the specified component's minimum size appropriate for the look and feel. |
| Dimension |
getPreferredSize
(
JComponent
c) Returns the specified component's preferred size appropriate for the look and feel. |
| protected void |
installDefaults
() |
| protected void |
installDesktopManager
() |
| protected void |
installKeyboardActions
() |
protected void
|
installListeners
()
Installs the PropertyChangeListener returned from createPropertyChangeListener on the JDesktopPane.
|
| void |
installUI
(
JComponent
c) Configures the specified component appropriate for the look and feel. |
| void |
paint
(
Graphics
g,
JComponent
c) Paints the specified component appropriate for the look and feel. |
| protected void |
registerKeyboardActions
() |
| protected void |
uninstallDefaults
() |
| protected void |
uninstallDesktopManager
() |
| protected void |
uninstallKeyboardActions
() |
protected void
|
uninstallListeners
()
Uninstalls the PropertyChangeListener returned from createPropertyChangeListener from the JDesktopPane.
|
| void |
uninstallUI
(
JComponent
c) Reverses configuration which was done on the specified component during installUI. |
| protected void |
unregisterKeyboardActions
() |
| Methods inherited from class javax.swing.plaf. ComponentUI |
|---|
| contains , getAccessibleChild , getAccessibleChildrenCount , update |
| Methods inherited from class java.lang. Object |
|---|
| clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| Field Detail |
|---|
protected JDesktopPane desktop
protected DesktopManager desktopManager
protected KeyStroke minimizeKey
protected KeyStroke maximizeKey
protected KeyStroke closeKey
protected KeyStroke navigateKey
protected KeyStroke navigateKey2
| Constructor Detail |
|---|
public BasicDesktopPaneUI()
| Method Detail |
|---|
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
public void uninstallUI(JComponent c)
protected void installDefaults()
protected void uninstallDefaults()
installListeners
protected void
installListeners
()
Installs the PropertyChangeListener returned from createPropertyChangeListener on the JDesktopPane.
Since:
1.5
See Also:
createPropertyChangeListener()
uninstallListeners
protected void
uninstallListeners
()
Uninstalls the PropertyChangeListener returned from createPropertyChangeListener from the JDesktopPane.
Since:
1.5
See Also:
createPropertyChangeListener()
protected void installDesktopManager()
protected void uninstallDesktopManager()
protected void installKeyboardActions()
protected void registerKeyboardActions()
protected void unregisterKeyboardActions()
protected void uninstallKeyboardActions()
public void paint(Graphics g,
JComponent c)
public Dimension getPreferredSize(JComponent c)
public Dimension getMinimumSize(JComponent c)
public Dimension getMaximumSize(JComponent c)
createPropertyChangeListener
protected
PropertyChangeListener
createPropertyChangeListener
()
Returns the PropertyChangeListener to install on the JDesktopPane.
Returns:
The PropertyChangeListener that will be added to track changes in the desktop pane.
Since:
1.5