JavaTM 2 Platform
Std. Ed. v1.3

javax.swing.plaf.metal
Class MetalToolBarUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.ToolBarUI
              |
              +--javax.swing.plaf.basic.BasicToolBarUI
                    |
                    +--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.


Inner Class Summary
protected  class MetalToolBarUI.MetalContainerListener
           
protected  class MetalToolBarUI.MetalDockingListener
           
protected  class MetalToolBarUI.MetalRolloverListener
           
 
Inner classes 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
           
protected  PropertyChangeListener rolloverListener
           
 
Fields inherited from class javax.swing.plaf.basic.BasicToolBarUI
dockingBorderColor, dockingColor, dockingListener, downKey, dragWindow, floatingBorderColor, floatingColor, focusedCompIndex, leftKey, propertyListener, rightKey, toolBar, toolBarContListener, toolBarFocusListener, upKey
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
MetalToolBarUI()
           
 
Method Summary
protected  ContainerListener createContainerListener()
           
protected  MouseInputListener createDockingListener()
           
protected  PropertyChangeListener createRolloverListener()
           
static ComponentUI createUI(JComponent c)
           
protected  void installListeners()
           
protected  void installNonRolloverBorders(JComponent c)
           
protected  void installNormalBorders(JComponent c)
           
protected  void installRolloverBorders(JComponent c)
           
 void installUI(JComponent c)
           
 boolean isRolloverBorders()
           
protected  void setBorderToNonRollover(Component c)
           
protected  void setBorderToNormal(Component c)
           
protected  void setBorderToRollover(Component c)
           
protected  void setDragOffset(Point p)
           
 void setRolloverBorders(boolean rollover)
           
protected  void uninstallListeners()
           
 void uninstallUI(JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicToolBarUI
canDock, createDragWindow, createFloatingFrame, createFrameListener, createPropertyListener, createToolBarContListener, createToolBarFocusListener, dragTo, floatAt, getDockingColor, getFloatingColor, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, isFloating, navigateFocusedComp, setDockingColor, setFloating, setFloatingColor, setFloatingLocation, setOrientation, uninstallComponents, uninstallDefaults, uninstallKeyboardActions
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, paint, 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

rolloverListener

protected PropertyChangeListener rolloverListener
Constructor Detail

MetalToolBarUI

public MetalToolBarUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installUI

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

uninstallUI

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

installListeners

protected void installListeners()
Overrides:
installListeners in class BasicToolBarUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class BasicToolBarUI

createContainerListener

protected ContainerListener createContainerListener()

createRolloverListener

protected PropertyChangeListener createRolloverListener()

createDockingListener

protected MouseInputListener createDockingListener()
Overrides:
createDockingListener in class BasicToolBarUI

setDragOffset

protected void setDragOffset(Point p)

isRolloverBorders

public boolean isRolloverBorders()

setRolloverBorders

public void setRolloverBorders(boolean rollover)

installRolloverBorders

protected void installRolloverBorders(JComponent c)

installNonRolloverBorders

protected void installNonRolloverBorders(JComponent c)

installNormalBorders

protected void installNormalBorders(JComponent c)

setBorderToRollover

protected void setBorderToRollover(Component c)

setBorderToNonRollover

protected void setBorderToNonRollover(Component c)

setBorderToNormal

protected void setBorderToNormal(Component c)

JavaTM 2 Platform
Std. Ed. v1.3

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.