Package com.sun.javatest.exec
Class ToolBarManager
java.lang.Object
com.sun.javatest.exec.ToolBarManager
The "Tool Bar Manager" tool, which allows a user to add, remove,
and get custom toolbars.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addToolBar
(JavaTestToolBar theBar, String toolBarID) Adds specified toolbar.getToolBar
(String toolBarID) Finds toolbar by ID and returns it.Returns an array of currently registered toolbars.
-
Constructor Details
-
ToolBarManager
public ToolBarManager()
-
-
Method Details
-
addToolBar
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
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
Returns an array of currently registered toolbars.- Returns:
- array of currently registered toolbars
-