All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.desktop.TToolBar
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----COM.ibm.desktop.TToolBar
- public class TToolBar
- extends Panel
- implements ItemListener
TToolBar is a panel of tool components for commonly accessed
functions. The framework provides a default tool bar.
Copyright (c) Taligent, Inc. 1996 - 1997.
Copyright (c) IBM Corporation 1996 - 1997.
All Rights Reserved.
-
BOTTOM
- Specifies the tool bar to be placed below the view.
-
LEFT
- Specifies the tool bar to be placed to the left of the view.
-
RIGHT
- Specifies the tool bar to be placed to the right of the view.
-
TOP
- Specifies the tool bar to be placed above the view.
-
TToolBar()
- Construct an empty tool bar.
-
addSeparator()
- Add a separator between groups of tool components.
-
getOrientation()
- Return the orientation of the tool bar.
-
getPreferredSize()
- Return the size of the tool bar.
-
isDockable()
- Is the tool bar dockable?
-
itemStateChanged(ItemEvent)
- Invoked when the checkbox menu items in the tool bar popup menu
change state.
-
paint(Graphics)
- Invoked when the tool bar is painted.
-
setDockable(boolean)
- Make the tool bar fixed or dockable.
-
setOrientation(int)
- Change the orientation of the tool bar.
TOP
public static final int TOP
- Specifies the tool bar to be placed above the view.
LEFT
public static final int LEFT
- Specifies the tool bar to be placed to the left of the view.
RIGHT
public static final int RIGHT
- Specifies the tool bar to be placed to the right of the view.
BOTTOM
public static final int BOTTOM
- Specifies the tool bar to be placed below the view.
TToolBar
public TToolBar()
- Construct an empty tool bar.
isDockable
public boolean isDockable()
- Is the tool bar dockable?
setDockable
public void setDockable(boolean dockable)
- Make the tool bar fixed or dockable.
getOrientation
public int getOrientation()
- Return the orientation of the tool bar.
- Returns:
- one of TOP, LEFT, RIGHT, and BOTTOM
setOrientation
public void setOrientation(int orientation)
- Change the orientation of the tool bar.
- Parameters:
- orientation - one of TOP, LEFT, RIGHT, and BOTTOM
getPreferredSize
public Dimension getPreferredSize()
- Return the size of the tool bar.
- Overrides:
- getPreferredSize in class Container
addSeparator
public void addSeparator()
- Add a separator between groups of tool components.
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Invoked when the checkbox menu items in the tool bar popup menu
change state.
paint
public void paint(Graphics g)
- Invoked when the tool bar is painted.
- Overrides:
- paint in class Container
All Packages Class Hierarchy This Package Previous Next Index