Package com.sun.javatest.exec
Class ToolBarManager
- java.lang.Object
-
- com.sun.javatest.exec.ToolBarManager
-
public class ToolBarManager extends java.lang.ObjectThe "Tool Bar Manager" tool, which allows a user to add, remove, and get custom toolbars.
-
-
Constructor Summary
Constructors Constructor Description ToolBarManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddToolBar(JavaTestToolBar theBar, java.lang.String toolBarID)Adds specified toolbar.JavaTestToolBargetToolBar(java.lang.String toolBarID)Finds toolbar by ID and returns it.JavaTestToolBar[]getToolBars()Returns an array of currently registered toolbars.
-
-
-
Method Detail
-
addToolBar
public boolean addToolBar(JavaTestToolBar theBar, java.lang.String toolBarID)
Adds specified toolbar.- Parameters:
theBar- the tool bar which should be added to the TestManager, can't be nulltoolBarID- unique string ID of theBar, can't be null or empty- Returns:
- true if the bar was successfully added
-
getToolBar
public JavaTestToolBar getToolBar(java.lang.String toolBarID)
Finds toolbar by ID and returns it.- Parameters:
toolBarID- unique string ID of theBar, can't be null or empty- Returns:
- the toolbar object, or null if the manager contains no tool bar for this key.
-
getToolBars
public JavaTestToolBar[] getToolBars()
Returns an array of currently registered toolbars.- Returns:
- array of currently registered toolbars
-
-