| Modifier and Type | Class and Description |
|---|---|
| protected class | MetalToolBarUI.
No longer used. |
| protected class | MetalToolBarUI.
|
| protected class | MetalToolBarUI.
No longer used. |
| Modifier and Type | Field and Description |
|---|---|
| private static List | components
An array of WeakReferences that point to JComponents. |
| protected ContainerListener | contListener
This protected field is implementation specific. |
| private JMenuBar | lastMenuBar
Last menubar the toolbar touched. |
| private static Border | |
| protected PropertyChangeListener | rolloverListener
This protected field is implementation specific. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ContainerListener | Returns: an instance of aContainerListener or nullCreates a container listener that will be added to the JToolBar. |
| protected MouseInputListener | createDockingListener()
Overrides javax. Returns an instance of |
| protected Border | createNonRolloverBorder()
Overrides javax. Creates the non rollover border for toolbar components. |
| private Border | createNonRolloverToggleBorder()
Hides javax. Creates a non rollover border for Toggle buttons in the toolbar. |
| protected Border | createRolloverBorder()
Overrides javax. Creates a rollover border for toolbar components. |
| protected PropertyChangeListener | Returns: an instance of aPropertyChangeListener or nullCreates a property change listener that will be added to the JToolBar. |
| public static ComponentUI | Returns: an instance ofMetalToolBarUIa component c)Hides javax. Constructs an instance of |
| pack-priv static boolean | doesMenuBarBorderToolBar(JMenuBar c)
Returns true if the passed in JMenuBar is above a horizontal JToolBar. |
| pack-priv static synchronized Object | findRegisteredComponentOfType(JComponent from, Class<?> target)
Finds a previously registered component of class |
| protected void | installListeners()
Overrides javax. Registers listeners. |
| public void | installUI(JComponent c)
Overrides javax. Configures the specified component appropriately for the look and feel. |
| pack-priv static synchronized void | |
| protected void | setBorderToNonRollover(Component c)
Overrides javax. Sets the border of the component to have a non-rollover border which
was created by the |
| protected void | |
| private void | |
| protected void | uninstallListeners()
Overrides javax. Unregisters listeners. |
| public void | uninstallUI(JComponent c)
Overrides javax. Reverses configuration which was done on the specified component during
|
| pack-priv static synchronized void | |
| public void | update(Graphics
Graphics to paint to g, JComponent JComponent painting on c)Overrides javax. If necessary paints the background of the component, then invokes
|
| components | back to summary |
|---|---|
| private static List<WeakReference<JComponent>> components An array of WeakReferences that point to JComponents. This will contain instances of JToolBars and JMenuBars and is used to find JToolBars/JMenuBars that border each other. | |
| contListener | back to summary |
|---|---|
| protected ContainerListener contListener This protected field is implementation specific. Do not access directly or override. Use the create method instead.
| |
| lastMenuBar | back to summary |
|---|---|
| private JMenuBar lastMenuBar Last menubar the toolbar touched. This is only useful for ocean. | |
| nonRolloverBorder | back to summary |
|---|---|
| private static Border nonRolloverBorder Hides javax. | |
| rolloverListener | back to summary |
|---|---|
| protected PropertyChangeListener rolloverListener This protected field is implementation specific. Do not access directly or override. Use the create method instead.
| |
| MetalToolBarUI | back to summary |
|---|---|
| public MetalToolBarUI() Constructs a | |
| createContainerListener | back to summary |
|---|---|
| protected ContainerListener createContainerListener() 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.
| |
| createDockingListener | back to summary |
|---|---|
| protected MouseInputListener createDockingListener() Overrides javax. Doc from javax. Returns an instance of | |
| createNonRolloverBorder | back to summary |
|---|---|
| protected Border createNonRolloverBorder() Overrides javax. Doc from javax. 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. | |
| createNonRolloverToggleBorder | back to summary |
|---|---|
| private Border createNonRolloverToggleBorder() Hides javax. Creates a non rollover border for Toggle buttons in the toolbar. | |
| createRolloverBorder | back to summary |
|---|---|
| protected Border createRolloverBorder() Overrides javax. Doc from javax. 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. | |
| createRolloverListener | back to summary |
|---|---|
| protected PropertyChangeListener createRolloverListener() 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.
| |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Constructs an instance of
| |
| doesMenuBarBorderToolBar | back to summary |
|---|---|
| pack-priv static boolean doesMenuBarBorderToolBar(JMenuBar c) Returns true if the passed in JMenuBar is above a horizontal JToolBar. | |
| findRegisteredComponentOfType | back to summary |
|---|---|
| pack-priv static synchronized Object findRegisteredComponentOfType(JComponent from, Class<?> target) Finds a previously registered component of class | |
| installListeners | back to summary |
|---|---|
| protected void installListeners() Overrides javax. Doc from javax. Registers listeners. | |
| installUI | back to summary |
|---|---|
| public void installUI(JComponent c) Overrides javax. Doc from javax. Configures the specified component appropriately for the look and feel.
This method is invoked when the
| |
| register | back to summary |
|---|---|
| pack-priv static synchronized void register(JComponent c) Registers the specified component. | |
| setBorderToNonRollover | back to summary |
|---|---|
| protected void setBorderToNonRollover(Component c) Overrides javax. Doc from javax. Sets the border of the component to have a non-rollover border which
was created by the | |
| setDragOffset | back to summary |
|---|---|
| protected void setDragOffset(Point p) Sets the offset of the mouse cursor inside the DragWindow.
| |
| setLastMenuBar | back to summary |
|---|---|
| private void setLastMenuBar(JMenuBar lastMenuBar) | |
| uninstallListeners | back to summary |
|---|---|
| protected void uninstallListeners() Overrides javax. Doc from javax. Unregisters listeners. | |
| uninstallUI | back to summary |
|---|---|
| public void uninstallUI(JComponent c) Overrides javax. Doc from javax. Reverses configuration which was done on the specified component during
| |
| unregister | back to summary |
|---|---|
| pack-priv static synchronized void unregister(JComponent c) Unregisters the specified component. | |
| update | back to summary |
|---|---|
| public void update(Graphics g, JComponent c) Overrides javax. If necessary paints the background of the component, then invokes
| |
| Access | Constructor and Description |
|---|---|
| protected |
| MetalContainerListener | back to summary |
|---|---|
| protected MetalContainerListener() Constructs a | |
DockingListener for MetalToolBarUI.
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | mouseDragged(MouseEvent e)
Overrides javax. Implements java. Invoked when a mouse button is pressed on a component and then dragged. |
| public void | mousePressed(MouseEvent e)
Overrides javax. Implements java. Invoked when a mouse button has been pressed on a component. |
| pressedInBumps | back to summary |
|---|---|
| private boolean pressedInBumps | |
| MetalDockingListener | back to summary |
|---|---|
| public MetalDockingListener(JToolBar t) Constructs the
| |
| mouseDragged | back to summary |
|---|---|
| public void mouseDragged(MouseEvent e) Overrides javax. Implements java. Doc from java. Invoked when a mouse button is pressed on a component and then
dragged.
Due to platform-dependent Drag&Drop implementations,
| |
| mousePressed | back to summary |
|---|---|
| public void mousePressed(MouseEvent e) Overrides javax. Implements java. Doc from java. Invoked when a mouse button has been pressed on a component. | |
| Access | Constructor and Description |
|---|---|
| protected |
| MetalRolloverListener | back to summary |
|---|---|
| protected MetalRolloverListener() Constructs a | |