java.lang.Object | |||
↳ | javax.swing.plaf.ComponentUI | ||
↳ | javax.swing.plaf.ToolBarUI | ||
↳ | javax.swing.plaf.basic.BasicToolBarUI |
![]() |
A Basic L&F implementation of ToolBarUI. This implementation is a "combined" view/controller.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BasicToolBarUI.DockingListener | This class should be treated as a "protected" inner class. | ||||||||||
BasicToolBarUI.DragWindow | |||||||||||
BasicToolBarUI.FrameListener | |||||||||||
BasicToolBarUI.PropertyListener | |||||||||||
BasicToolBarUI.ToolBarContListener | |||||||||||
BasicToolBarUI.ToolBarFocusListener |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
constraintBeforeFloating | |||||||||||
dockingBorderColor | |||||||||||
dockingColor | |||||||||||
dockingListener | |||||||||||
downKey | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
dragWindow | |||||||||||
floatingBorderColor | |||||||||||
floatingColor | |||||||||||
focusedCompIndex | |||||||||||
leftKey | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
propertyListener | |||||||||||
rightKey | This field is deprecated. As of Java 2 platform v1.3. | ||||||||||
toolBar | |||||||||||
toolBarContListener | |||||||||||
toolBarFocusListener | |||||||||||
upKey | This field is deprecated. As of Java 2 platform v1.3. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the color displayed when over a docking area
| |||||||||||
Gets the color displayed when over a floating area
| |||||||||||
Configures the specified component appropriate for the look and feel.
| |||||||||||
Returns a flag to determine whether rollover button borders
are enabled.
| |||||||||||
Sets the color displayed when over a docking area
| |||||||||||
Sets the color displayed when over a floating area
| |||||||||||
Sets the flag for enabling rollover borders on the toolbar and it will
also install the apropriate border depending on the state of the flag.
| |||||||||||
Reverses configuration which was done on the specified component during
installUI . |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
No longer used, use BasicToolBarUI.createFloatingWindow(JToolBar)
| |||||||||||
Creates a window which contains the toolbar after it has been
dragged out from its container
| |||||||||||
Creates the non rollover border for toolbar components.
| |||||||||||
Creates a rollover border for toolbar components.
| |||||||||||
Returns a non-rollover border for the button.
| |||||||||||
Returns a rollover border for the button.
| |||||||||||
Installs non-rollover borders on all the child components of the JComponent.
| |||||||||||
Installs normal borders on all the child components of the JComponent.
| |||||||||||
Installs rollover borders on all the child components of the JComponent.
| |||||||||||
Paints the contents of the window used for dragging.
| |||||||||||
Sets the border of the component to have a non-rollover border which
was created by
createNonRolloverBorder . | |||||||||||
Sets the border of the component to have a normal border.
| |||||||||||
Sets the border of the component to have a rollover border which
was created by
createRolloverBorder . | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
This field is deprecated.
As of Java 2 platform v1.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 Java 2 platform v1.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 Java 2 platform v1.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 Java 2 platform v1.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.
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 |
---|
Returns a flag to determine whether rollover button borders are enabled.
Sets the flag for enabling rollover borders on the toolbar and it will also install the apropriate border depending on the state of the flag.
rollover | if true, rollover borders are installed. Otherwise non-rollover borders are 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 |
---|
No longer used, use BasicToolBarUI.createFloatingWindow(JToolBar)
Creates a window which contains the toolbar after it has been dragged out from its container
RootPaneContainer
object, containing the toolbar.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.
Returns a non-rollover border for the button.
b | the button to calculate the non-rollover border for |
---|
Returns a rollover border for the button.
b | the button to calculate the rollover border for |
---|
Installs non-rollover borders on all the child components of the JComponent. A non-rollover border is the border that is installed on the child component while it is in the toolbar.
This is a convenience method to call setBorderToNonRollover
for each child component.
c | container which holds the child components (usally a JToolBar) |
---|
Installs normal borders on all the child components of the JComponent. A normal border is the original border that was installed on the child component before it was added to the toolbar.
This is a convenience method to call setBorderNormal
for each child component.
c | container which holds the child components (usally a JToolBar) |
---|
Installs rollover borders on all the child components of the JComponent.
This is a convenience method to call setBorderToRollover
for each child component.
c | container which holds the child components (usally a JToolBar) |
---|
Paints the contents of the window used for dragging.
g | Graphics to paint to. |
---|
NullPointerException | is g is 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 |
---|
Sets the border of the component to have a normal border. A normal border is the original border that was installed on the child component before it was added to the toolbar.
c | component which will have a normal border re-installed |
---|
Sets the border of the component to have a rollover border which
was created by createRolloverBorder
.
c | component which will have a rollover border installed |
---|