Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
public class: BasicToolBarUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.ToolBarUI
         javax.swing.plaf.basic.BasicToolBarUI

All Implemented Interfaces:
    SwingConstants

Direct Known Subclasses:
    SynthToolBarUI, MetalToolBarUI

A Basic L&F implementation of ToolBarUI. This implementation is a "combined" view/controller.

Nested Class Summary:
protected class  BasicToolBarUI.FrameListener   
protected class  BasicToolBarUI.ToolBarContListener   
protected class  BasicToolBarUI.ToolBarFocusListener   
protected class  BasicToolBarUI.PropertyListener   
public class  BasicToolBarUI.DockingListener  This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicToolBarUI. 
protected class  BasicToolBarUI.DragWindow   
Field Summary
protected  JToolBar toolBar     
protected  DragWindow dragWindow     
protected  int focusedCompIndex     
protected  Color dockingColor     
protected  Color floatingColor     
protected  Color dockingBorderColor     
protected  Color floatingBorderColor     
protected  MouseInputListener dockingListener     
protected  PropertyChangeListener propertyListener     
protected  ContainerListener toolBarContListener     
protected  FocusListener toolBarFocusListener     
protected  String constraintBeforeFloating     
protected  KeyStroke upKey    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.
     
    protected  KeyStroke downKey    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.
       
      protected  KeyStroke leftKey    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.
         
        protected  KeyStroke rightKey    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.
           
          Method from javax.swing.plaf.basic.BasicToolBarUI Summary:
          canDock,   createDockingListener,   createDragWindow,   createFloatingFrame,   createFloatingWindow,   createFrameListener,   createNonRolloverBorder,   createPropertyListener,   createRolloverBorder,   createToolBarContListener,   createToolBarFocusListener,   createUI,   dragTo,   floatAt,   getDockingColor,   getFloatingColor,   getInputMap,   getNonRolloverBorder,   getRolloverBorder,   installComponents,   installDefaults,   installKeyboardActions,   installListeners,   installNonRolloverBorders,   installNormalBorders,   installRolloverBorders,   installUI,   isFloating,   isRolloverBorders,   loadActionMap,   navigateFocusedComp,   paintDragWindow,   setBorderToNonRollover,   setBorderToNormal,   setBorderToRollover,   setDockingColor,   setFloating,   setFloatingColor,   setFloatingLocation,   setOrientation,   setRolloverBorders,   uninstallComponents,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI
          Methods from javax.swing.plaf.ComponentUI:
          contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
          Methods from java.lang.Object:
          clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
          Method from javax.swing.plaf.basic.BasicToolBarUI Detail:
           public boolean canDock(Component c,
              Point p) 
           protected MouseInputListener createDockingListener() 
           protected DragWindow createDragWindow(JToolBar toolbar) 
           protected JFrame createFloatingFrame(JToolBar toolbar) 
            No longer used, use BasicToolBarUI.createFloatingWindow(JToolBar)
           protected RootPaneContainer createFloatingWindow(JToolBar toolbar) 
            Creates a window which contains the toolbar after it has been dragged out from its container
           protected WindowListener createFrameListener() 
           protected Border createNonRolloverBorder() 
            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.

           protected PropertyChangeListener createPropertyListener() 
           protected Border createRolloverBorder() 
            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.

           protected ContainerListener createToolBarContListener() 
           protected FocusListener createToolBarFocusListener() 
           public static ComponentUI createUI(JComponent c) 
           protected  void dragTo(Point position,
              Point origin) 
           protected  void floatAt(Point position,
              Point origin) 
           public Color getDockingColor() 
            Gets the color displayed when over a docking area
           public Color getFloatingColor() 
            Gets the color displayed when over a floating area
           InputMap getInputMap(int condition) 
           protected Border getNonRolloverBorder(AbstractButton b) 
            Returns a non-rollover border for the button.
           protected Border getRolloverBorder(AbstractButton b) 
            Returns a rollover border for the button.
           protected  void installComponents() 
           protected  void installDefaults() 
           protected  void installKeyboardActions() 
           protected  void installListeners() 
           protected  void installNonRolloverBorders(JComponent c) 
            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.

           protected  void installNormalBorders(JComponent c) 
            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.

           protected  void installRolloverBorders(JComponent c) 
            Installs rollover borders on all the child components of the JComponent.

            This is a convenience method to call setBorderToRollover for each child component.

           public  void installUI(JComponent c) 
           public boolean isFloating() 
           public boolean isRolloverBorders() 
            Returns a flag to determine whether rollover button borders are enabled.
           static  void loadActionMap(LazyActionMap map) 
           protected  void navigateFocusedComp(int direction) 
           protected  void paintDragWindow(Graphics g) 
            Paints the contents of the window used for dragging.
           protected  void setBorderToNonRollover(Component c) 
            Sets the border of the component to have a non-rollover border which was created by the #createNonRolloverBorder method.
           protected  void setBorderToNormal(Component c) 
            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.
           protected  void setBorderToRollover(Component c) 
            Sets the border of the component to have a rollover border which was created by the #createRolloverBorder method.
           public  void setDockingColor(Color c) 
            Sets the color displayed when over a docking area
           public  void setFloating(boolean b,
              Point p) 
           public  void setFloatingColor(Color c) 
            Sets the color displayed when over a floating area
           public  void setFloatingLocation(int x,
              int y) 
           public  void setOrientation(int orientation) 
           public  void setRolloverBorders(boolean rollover) 
            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.
           protected  void uninstallComponents() 
           protected  void uninstallDefaults() 
           protected  void uninstallKeyboardActions() 
           protected  void uninstallListeners() 
           public  void uninstallUI(JComponent c)