All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.JToolBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JToolBar

public class JToolBar
extends JComponent
implements Accessible
An implementation of a ToolBar


Variable Index

 o border
 o dockingBorderColor
 o dockingColor
 o floatingBorderColor
 o floatingColor

Constructor Index

 o JToolBar()

Method Index

 o add(Action)
 o addSeparator()
Adds a separator to the ToolBar.
 o canDock(Component, Point)
 o createDockingListener()
 o getAccessibleRole()
Get the role of this object.
 o getBorder()
Return the style of the border.
 o getComponentAtIndex(int)
 o getComponentIndex(Component)
 o getDockingColor()
Gets the color displayed when over a docking area
 o getDockingConstraint(Component, Point)
 o getFloatingColor()
Gets the color displayed when over a floating area
 o getPad()
Returns a pad amount between the button's border and the label.
 o getUI()
Returns the toolbar's current UI.
 o isBorderPainted()
Checks whether the border should be painted.
 o isFloatable()
 o isFloating()
 o isOpaque()
Returns true if this component is completely opaque.
 o paramString()
 o setBorder(Border)
Set the style of the border.
 o setBorderPainted(boolean)
Sets whether the border should be painted.
 o setDockingColor(Color)
Sets the color displayed when over a docking area
 o setFloatable(boolean)
 o setFloating(boolean, Point)
 o setFloatingColor(Color)
Sets the color displayed when over a floating area
 o setFloatingLocation(int, int)
 o setOrientation(int)
 o setPad(Insets)
Sets a pad amount between the button's border and the label.
 o setUI(ToolBarUI)
Sets the toolbar's UI.
 o updateUI()
Gets a new UI object from the default UIFactory.

Variables

 o border
 protected Border border
 o dockingColor
 protected Color dockingColor
 o floatingColor
 protected Color floatingColor
 o dockingBorderColor
 protected Color dockingBorderColor
 o floatingBorderColor
 protected Color floatingBorderColor

Constructors

 o JToolBar
 public JToolBar()

Methods

 o getUI
 public ToolBarUI getUI()
Returns the toolbar's current UI.

See Also:
setUI
 o setUI
 public void setUI(ToolBarUI ui)
Sets the toolbar's UI.

Parameters:
ui - the new ToolBarUI
See Also:
getUI
 o updateUI
 public void updateUI()
Gets a new UI object from the default UIFactory.

Overrides:
updateUI in class JComponent
 o getComponentIndex
 public int getComponentIndex(Component c)
 o getComponentAtIndex
 public Component getComponentAtIndex(int i)
 o setPad
 public void setPad(Insets pad)
Sets a pad amount between the button's border and the label. Setting to null will cause the button to use the default padding.

 o getPad
 public Insets getPad()
Returns a pad amount between the button's border and the label.

 o isBorderPainted
 public boolean isBorderPainted()
Checks whether the border should be painted.

See Also:
setBorderPainted
 o isOpaque
 public boolean isOpaque()
Returns true if this component is completely opaque.

Overrides:
isOpaque in class JComponent
 o setBorderPainted
 public void setBorderPainted(boolean b)
Sets whether the border should be painted.

Parameters:
b - if true, the border is painted.
See Also:
isBorderPainted
 o setBorder
 public void setBorder(Border border)
Set the style of the border.

 o getBorder
 public Border getBorder()
Return the style of the border.

 o addSeparator
 public void addSeparator()
Adds a separator to the ToolBar.

 o add
 public JButton add(Action a)
 o setFloatingLocation
 public void setFloatingLocation(int x,
                                 int y)
 o isFloating
 public boolean isFloating()
 o setFloating
 public void setFloating(boolean b,
                         Point p)
 o setOrientation
 public void setOrientation(int orientation)
 o getDockingColor
 public Color getDockingColor()
Gets the color displayed when over a docking area

 o setDockingColor
 public void setDockingColor(Color c)
Sets the color displayed when over a docking area

 o getFloatingColor
 public Color getFloatingColor()
Gets the color displayed when over a floating area

 o setFloatingColor
 public void setFloatingColor(Color c)
Sets the color displayed when over a floating area

 o isFloatable
 public boolean isFloatable()
 o setFloatable
 public void setFloatable(boolean b)
 o canDock
 public boolean canDock(Component c,
                        Point p)
 o getDockingConstraint
 public String getDockingConstraint(Component c,
                                    Point p)
 o paramString
 public String paramString()
Overrides:
paramString in class Container
 o createDockingListener
 protected JToolBar. DockingListener createDockingListener()
 o getAccessibleRole
 public AccessibleRole getAccessibleRole()
Get the role of this object.

Returns:
an instance of AccessibleRole describing the role of the object
Overrides:
getAccessibleRole in class JComponent

All Packages  Class Hierarchy  This Package  Previous  Next  Index