This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.plaf.metal
class MetalToolBarUI

java.lang.Object extended by javax.swing.plaf.ComponentUI extended by javax.swing.plaf.ToolBarUI extended by javax.swing.plaf.basic.BasicToolBarUI extended by javax.swing.plaf.metal.MetalToolBarUI
All Implemented Interfaces:
SwingConstants

public class MetalToolBarUI
extends BasicToolBarUI

A Metal Look and Feel implementation of ToolBarUI. This implementation is a "combined" view/controller.


Nested Class Summary
protected class

          
protected class

          
protected class

          
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicToolBarUI
BasicToolBarUI.DockingListener, BasicToolBarUI.DragWindow, BasicToolBarUI.FrameListener, BasicToolBarUI.PropertyListener, BasicToolBarUI.ToolBarContListener, BasicToolBarUI.ToolBarFocusListener
   
Field Summary
protected ContainerListener contListener
          This protected field is implemenation specific.
protected PropertyChangeListener rolloverListener
          This protected field is implemenation specific.
 
Fields inherited from class javax.swing.plaf.basic.BasicToolBarUI
constraintBeforeFloating, dockingBorderColor, dockingColor, dockingListener, downKey, dragWindow, floatingBorderColor, floatingColor, focusedCompIndex, leftKey, propertyListener, rightKey, toolBar, toolBarContListener, toolBarFocusListener, upKey
 
Constructor Summary

          
 
Method Summary
protected ContainerListener

          Creates a container listener that will be added to the JToolBar.
protected MouseInputListener

          
protected Border

          Creates the non rollover border for toolbar components.
protected Border

          Creates a rollover border for toolbar components.
protected PropertyChangeListener

          Creates a property change listener that will be added to the JToolBar.
static ComponentUI

          
protected void

          
 void

          
protected void

          Sets the border of the component to have a non-rollover border which was created by createNonRolloverBorder.
protected void

          
protected void

          
 void

          
 void

          If necessary paints the background of the component, then invokes paint.
 
Methods inherited from class javax.swing.plaf.basic.BasicToolBarUI
canDock, createDockingListener, createDragWindow, createFloatingFrame, createFloatingWindow, createFrameListener, createNonRolloverBorder, createPropertyListener, createRolloverBorder, createToolBarContListener, createToolBarFocusListener, createUI, dragTo, floatAt, getDockingColor, getFloatingColor, getNonRolloverBorder, getRolloverBorder, installComponents, installDefaults, installKeyboardActions, installListeners, installNonRolloverBorders, installNormalBorders, installRolloverBorders, installUI, isFloating, isRolloverBorders, navigateFocusedComp, paintDragWindow, setBorderToNonRollover, setBorderToNormal, setBorderToRollover, setDockingColor, setFloating, setFloatingColor, setFloatingLocation, setOrientation, setRolloverBorders, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contListener

protected ContainerListener contListener
This protected field is implemenation specific. Do not access directly or override. Use the create method instead.

rolloverListener

protected PropertyChangeListener rolloverListener
This protected field is implemenation specific. Do not access directly or override. Use the create method instead.
Constructor Detail

MetalToolBarUI

public MetalToolBarUI()
Method Detail

createContainerListener

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.

Returns:
an instance of a ContainerListener or null

createDockingListener

protected MouseInputListener createDockingListener()
Overrides:
createDockingListener in class BasicToolBarUI

createNonRolloverBorder

protected Border createNonRolloverBorder()
Overrides:
createNonRolloverBorder in class BasicToolBarUI

createRolloverBorder

protected Border createRolloverBorder()
Overrides:
createRolloverBorder in class BasicToolBarUI

createRolloverListener

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.

Returns:
an instance of a PropertyChangeListener or null

createUI

public static ComponentUI createUI(JComponent c)
Parameters:
c

installListeners

protected void installListeners()
Overrides:
installListeners in class BasicToolBarUI

installUI

public void installUI(JComponent c)
Overrides:
installUI in class BasicToolBarUI
Parameters:
c

setBorderToNonRollover

protected void setBorderToNonRollover(Component c)
Overrides:
setBorderToNonRollover in class BasicToolBarUI
Parameters:
c

setDragOffset

protected void setDragOffset(Point p)
Parameters:
p

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class BasicToolBarUI

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class BasicToolBarUI
Parameters:
c

update

public void update(Graphics g,
                   JComponent c)
If necessary paints the background of the component, then invokes paint.

Overrides:
update in class ComponentUI
Parameters:
g - Graphics to paint to
c - JComponent painting on


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.