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.
 


Variable Index

 o BOTTOM
Specifies the tool bar to be placed below the view.
 o LEFT
Specifies the tool bar to be placed to the left of the view.
 o RIGHT
Specifies the tool bar to be placed to the right of the view.
 o TOP
Specifies the tool bar to be placed above the view.

Constructor Index

 o TToolBar()
Construct an empty tool bar.

Method Index

 o addSeparator()
Add a separator between groups of tool components.
 o getOrientation()
Return the orientation of the tool bar.
 o getPreferredSize()
Return the size of the tool bar.
 o isDockable()
Is the tool bar dockable?
 o itemStateChanged(ItemEvent)
Invoked when the checkbox menu items in the tool bar popup menu change state.
 o paint(Graphics)
Invoked when the tool bar is painted.
 o setDockable(boolean)
Make the tool bar fixed or dockable.
 o setOrientation(int)
Change the orientation of the tool bar.

Variables

 o TOP
 public static final int TOP
Specifies the tool bar to be placed above the view.

 o LEFT
 public static final int LEFT
Specifies the tool bar to be placed to the left of the view.

 o RIGHT
 public static final int RIGHT
Specifies the tool bar to be placed to the right of the view.

 o BOTTOM
 public static final int BOTTOM
Specifies the tool bar to be placed below the view.

Constructors

 o TToolBar
 public TToolBar()
Construct an empty tool bar.

Methods

 o isDockable
 public boolean isDockable()
Is the tool bar dockable?

 o setDockable
 public void setDockable(boolean dockable)
Make the tool bar fixed or dockable.

 o getOrientation
 public int getOrientation()
Return the orientation of the tool bar.

Returns:
one of TOP, LEFT, RIGHT, and BOTTOM
 o setOrientation
 public void setOrientation(int orientation)
Change the orientation of the tool bar.

Parameters:
orientation - one of TOP, LEFT, RIGHT, and BOTTOM
 o getPreferredSize
 public Dimension getPreferredSize()
Return the size of the tool bar.

Overrides:
getPreferredSize in class Container
 o addSeparator
 public void addSeparator()
Add a separator between groups of tool components.

 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
Invoked when the checkbox menu items in the tool bar popup menu change state.

 o 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