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
-
border
-
-
dockingBorderColor
-
-
dockingColor
-
-
floatingBorderColor
-
-
floatingColor
-
-
JToolBar()
-
-
add(Action)
-
-
addSeparator()
- Adds a separator to the ToolBar.
-
canDock(Component, Point)
-
-
createDockingListener()
-
-
getAccessibleRole()
- Get the role of this object.
-
getBorder()
- Return the style of the border.
-
getComponentAtIndex(int)
-
-
getComponentIndex(Component)
-
-
getDockingColor()
- Gets the color displayed when over a docking area
-
getDockingConstraint(Component, Point)
-
-
getFloatingColor()
- Gets the color displayed when over a floating area
-
getPad()
- Returns a pad amount between the button's border and
the label.
-
getUI()
- Returns the toolbar's current UI.
-
isBorderPainted()
- Checks whether the border should be painted.
-
isFloatable()
-
-
isFloating()
-
-
isOpaque()
- Returns true if this component is completely opaque.
-
paramString()
-
-
setBorder(Border)
- Set the style of the border.
-
setBorderPainted(boolean)
- Sets whether the border should be painted.
-
setDockingColor(Color)
- Sets the color displayed when over a docking area
-
setFloatable(boolean)
-
-
setFloating(boolean, Point)
-
-
setFloatingColor(Color)
- Sets the color displayed when over a floating area
-
setFloatingLocation(int, int)
-
-
setOrientation(int)
-
-
setPad(Insets)
- Sets a pad amount between the button's border and
the label.
-
setUI(ToolBarUI)
- Sets the toolbar's UI.
-
updateUI()
- Gets a new UI object from the default UIFactory.
border
protected Border border
dockingColor
protected Color dockingColor
floatingColor
protected Color floatingColor
dockingBorderColor
protected Color dockingBorderColor
floatingBorderColor
protected Color floatingBorderColor
JToolBar
public JToolBar()
getUI
public ToolBarUI getUI()
- Returns the toolbar's current UI.
- See Also:
- setUI
setUI
public void setUI(ToolBarUI ui)
- Sets the toolbar's UI.
- Parameters:
- ui - the new ToolBarUI
- See Also:
- getUI
updateUI
public void updateUI()
- Gets a new UI object from the default UIFactory.
- Overrides:
- updateUI in class JComponent
getComponentIndex
public int getComponentIndex(Component c)
getComponentAtIndex
public Component getComponentAtIndex(int i)
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.
getPad
public Insets getPad()
- Returns a pad amount between the button's border and
the label.
isBorderPainted
public boolean isBorderPainted()
- Checks whether the border should be painted.
- See Also:
- setBorderPainted
isOpaque
public boolean isOpaque()
- Returns true if this component is completely opaque.
- Overrides:
- isOpaque in class JComponent
setBorderPainted
public void setBorderPainted(boolean b)
- Sets whether the border should be painted.
- Parameters:
- b - if true, the border is painted.
- See Also:
- isBorderPainted
setBorder
public void setBorder(Border border)
- Set the style of the border.
getBorder
public Border getBorder()
- Return the style of the border.
addSeparator
public void addSeparator()
- Adds a separator to the ToolBar.
add
public JButton add(Action a)
setFloatingLocation
public void setFloatingLocation(int x,
int y)
isFloating
public boolean isFloating()
setFloating
public void setFloating(boolean b,
Point p)
setOrientation
public void setOrientation(int orientation)
getDockingColor
public Color getDockingColor()
- Gets the color displayed when over a docking area
setDockingColor
public void setDockingColor(Color c)
- Sets the color displayed when over a docking area
getFloatingColor
public Color getFloatingColor()
- Gets the color displayed when over a floating area
setFloatingColor
public void setFloatingColor(Color c)
- Sets the color displayed when over a floating area
isFloatable
public boolean isFloatable()
setFloatable
public void setFloatable(boolean b)
canDock
public boolean canDock(Component c,
Point p)
getDockingConstraint
public String getDockingConstraint(Component c,
Point p)
paramString
public String paramString()
- Overrides:
- paramString in class Container
createDockingListener
protected JToolBar. DockingListener createDockingListener()
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