com.tensegrity.gui.component
Interface ToolBar

All Superinterfaces:
BasicComponent, Evaluable
All Known Implementing Classes:
SwingToolBar, SwtToolBar

public interface ToolBar
extends BasicComponent

The interface for a toolbar as used in applications to give users a shortcut to commands.

Version:
$Id: ToolBar.java,v 1.5 2004/03/12 16:33:59 GillesIachelini Exp $
Author:
GillesIachelini

Method Summary
 java.lang.String getName()
          A toolbar should provide a human readable name.
 int indexOf(java.lang.String id)
          Returns the index of a component associated with a the given id.
 void updateStatus()
          This method is used to keep the state of the toolbar up-to-date.
 
Methods inherited from interface com.tensegrity.gui.component.BasicComponent
getHeight, getParentComponent, getWidth, repaint
 
Methods inherited from interface com.tensegrity.gui.Evaluable
applyEvList, installEvList
 

Method Detail

updateStatus

public void updateStatus()
This method is used to keep the state of the toolbar up-to-date.


indexOf

public int indexOf(java.lang.String id)
Returns the index of a component associated with a the given id. The component of a toolbar are usually not directly associated to such an id, rather their internal Command instance.

Parameters:
id - the id of command.
Returns:
the index of the component or -1 if no such component was found.

getName

public java.lang.String getName()
A toolbar should provide a human readable name. That allows to identify such a toolbar in a Toolbar menu or allows to give the enclosing frame a title, when such a bar is dragged out of its container.

Returns:
the name of the a toolbar.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.