java.lang.Object | ||||
↳ | javax.swing.plaf.ComponentUI | |||
↳ | javax.swing.plaf.ToolBarUI | |||
↳ | javax.swing.plaf.basic.BasicToolBarUI | |||
↳ | javax.swing.plaf.metal.MetalToolBarUI |
A Metal Look and Feel implementation of ToolBarUI. This implementation is a "combined" view/controller.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MetalToolBarUI.MetalContainerListener | |||||||||||
MetalToolBarUI.MetalDockingListener | |||||||||||
MetalToolBarUI.MetalRolloverListener |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
contListener | This protected field is implemenation specific. | ||||||||||
rolloverListener | This protected field is implemenation specific. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Configures the specified component appropriate for the look and feel.
| |||||||||||
Reverses configuration which was done on the specified component during
installUI . | |||||||||||
If necessary paints the background of the component, then invokes
paint . |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a container listener that will be added to the JToolBar.
| |||||||||||
Creates the non rollover border for toolbar components.
| |||||||||||
Creates a rollover border for toolbar components.
| |||||||||||
Creates a property change listener that will be added to the JToolBar.
| |||||||||||
Sets the border of the component to have a non-rollover border which
was created by
createNonRolloverBorder . | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
This protected field is implemenation specific. Do not access directly or override. Use the create method instead.
This protected field is implemenation specific. Do not access directly or override. Use the create method instead.
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 |
---|
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 |
---|
If necessary paints the background of the component, then invokes
paint
.
g | Graphics to paint to |
---|---|
c | JComponent painting on |
NullPointerException | if g or c is
null |
---|
Creates a container listener that will be added to the JToolBar. If this method returns null then it will not be added to the toolbar.
ContainerListener
or null
Creates the non rollover border for toolbar components. This border will be installed as the border for components added to the toolbar if rollover borders are not enabled.
Override this method to provide an alternate rollover border.
Creates a rollover border for toolbar components. The rollover border will be installed if rollover borders are enabled.
Override this method to provide an alternate rollover border.
Creates a property change listener that will be added to the JToolBar. If this method returns null then it will not be added to the toolbar.
PropertyChangeListener
or null
Sets the border of the component to have a non-rollover border which
was created by createNonRolloverBorder
.
c | component which will have a non-rollover border installed |
---|