All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.awt.ToolBar
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----jp.kyasu.awt.KContainer
|
+----jp.kyasu.awt.ToolBar
- public class ToolBar
- extends KContainer
- implements ActionListener
A ToolBar
object provides a component which is useful for
displaying commonly used Actions or controls. It can be showed or hidden
by the user.
- Version:
- 22 Jun 1998
- Author:
- Kazuki YASUMATSU
-
ToolBar(Component[][][])
- Constructs a new tool bar with the specified components.
-
ToolBar(Component[][][], boolean)
- Constructs a new tool bar with the specified components and flag
that determins to be showd or hidden initially.
-
actionPerformed(ActionEvent)
- Invoked when an action occurs.
-
getToolBarCount()
- Returns the number of horizontal bars.
-
getToolBarState(int)
- Returns the horizontal bar at the specified index is showed or hidden.
-
main(String[])
- Executes the examples.
-
paint(Graphics)
- Paints this component.
-
setToolBarState(int, boolean)
- Sets the horizontal bar at the specified index to be showed or hidden.
ToolBar
public ToolBar(Component toolBarComponents[][][])
- Constructs a new tool bar with the specified components.
- Parameters:
- toolBarComponents - the components of the tool bar. the first
dimension classifies the horizontal bar;
the second dimension classifies the actions
with the vertical separator; and the third
dimension shows the actions.
ToolBar
public ToolBar(Component toolBarComponents[][][],
boolean showToolBar)
- Constructs a new tool bar with the specified components and flag
that determins to be showd or hidden initially.
- Parameters:
- toolBarComponents - the components of the tool bar. the first
dimension classifies the horizontal bar;
the second dimension classifies the actions
with the vertical separator; and the third
dimension shows the actions.
- showToolBar - If true, shows the actions initially;
otherwise hides.
paint
public void paint(Graphics g)
- Paints this component.
- Overrides:
- paint in class Container
getToolBarCount
public int getToolBarCount()
- Returns the number of horizontal bars.
getToolBarState
public boolean getToolBarState(int index)
- Returns the horizontal bar at the specified index is showed or hidden.
- See Also:
- setToolBarState
setToolBarState
public void setToolBarState(int index,
boolean state)
- Sets the horizontal bar at the specified index to be showed or hidden.
- See Also:
- getToolBarState
actionPerformed
public void actionPerformed(ActionEvent e)
- Invoked when an action occurs.
- See Also:
- ActionListener
main
public static void main(String args[])
- Executes the examples.
All Packages Class Hierarchy This Package Previous Next Index