java.lang.Object | |||
↳ | javax.swing.plaf.ComponentUI | ||
↳ | javax.swing.plaf.DesktopPaneUI | ||
↳ | javax.swing.plaf.basic.BasicDesktopPaneUI |
![]() |
Basic L&F for a desktop.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BasicDesktopPaneUI.CloseAction | Handles closing an internal frame. | ||||||||||
BasicDesktopPaneUI.MaximizeAction | Handles maximizing an internal frame. | ||||||||||
BasicDesktopPaneUI.MinimizeAction | Handles minimizing an internal frame. | ||||||||||
BasicDesktopPaneUI.NavigateAction | Handles navigating to the next internal frame. | ||||||||||
BasicDesktopPaneUI.OpenAction | Handles restoring a minimized or maximized internal frame. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
closeKey | This field is deprecated. As of 1.3. | ||||||||||
desktop | |||||||||||
desktopManager | |||||||||||
maximizeKey | This field is deprecated. As of 1.3. | ||||||||||
minimizeKey | This field is deprecated. As of 1.3. | ||||||||||
navigateKey | This field is deprecated. As of 1.3. | ||||||||||
navigateKey2 | This field is deprecated. As of 1.3. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the specified component's maximum size appropriate for
the look and feel.
| |||||||||||
Returns the specified component's minimum size appropriate for
the look and feel.
| |||||||||||
Returns the specified component's preferred size appropriate for
the look and feel.
| |||||||||||
Configures the specified component appropriate for the look and feel.
| |||||||||||
Paints the specified component appropriate for the look and feel.
| |||||||||||
Reverses configuration which was done on the specified component during
installUI . |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the
PropertyChangeListener to install on
the JDesktopPane . | |||||||||||
Installs the
PropertyChangeListener returned from
createPropertyChangeListener on the
JDesktopPane . | |||||||||||
Uninstalls the
PropertyChangeListener returned from
createPropertyChangeListener from the
JDesktopPane . | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
This field is deprecated.
As of 1.3.
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
This field is deprecated.
As of 1.3.
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
This field is deprecated.
As of 1.3.
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
This field is deprecated.
As of 1.3.
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
This field is deprecated.
As of 1.3.
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
Returns the specified component's maximum size appropriate for
the look and feel. If null
is returned, the maximum
size will be calculated by the component's layout manager instead
(this is the preferred approach for any component with a specific
layout manager installed). The default implementation of this
method invokes getPreferredSize
and returns that value.
c | the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
---|
Dimension
object or null
Returns the specified component's minimum size appropriate for
the look and feel. If null
is returned, the minimum
size will be calculated by the component's layout manager instead
(this is the preferred approach for any component with a specific
layout manager installed). The default implementation of this
method invokes getPreferredSize
and returns that value.
c | the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
---|
Dimension
object or null
Returns the specified component's preferred size appropriate for
the look and feel. If null
is returned, the preferred
size will be calculated by the component's layout manager instead
(this is the preferred approach for any component with a specific
layout manager installed). The default implementation of this
method returns null
.
c | the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
---|
Configures the specified component appropriate for the look and feel.
This method is invoked when the ComponentUI
instance is being installed
as the UI delegate on the specified component. This method should
completely configure the component for the look and feel,
including the following:
LayoutManager
on the component if necessary.
PropertyChangeListener
on the component in order
to detect and respond to component property changes appropriately.
c | the component where this UI delegate is being installed |
---|
Paints the specified component appropriate for the look and feel.
This method is invoked from the ComponentUI.update
method when
the specified component is being painted. Subclasses should override
this method and use the specified Graphics
object to
render the content of the component.
g | the Graphics context in which to paint |
---|---|
c | the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
Reverses configuration which was done on the specified component during
installUI
. This method is invoked when this
UIComponent
instance is being removed as the UI delegate
for the specified component. This method should undo the
configuration performed in installUI
, being careful to
leave the JComponent
instance in a clean state (no
extraneous listeners, look-and-feel-specific property objects, etc.).
This should include the following:
c | the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
---|
Returns the PropertyChangeListener
to install on
the JDesktopPane
.
Installs the PropertyChangeListener
returned from
createPropertyChangeListener
on the
JDesktopPane
.
Uninstalls the PropertyChangeListener
returned from
createPropertyChangeListener
from the
JDesktopPane
.