Package docking.menu
Class ToolBarManager
- java.lang.Object
-
- docking.menu.ToolBarManager
-
public class ToolBarManager extends java.lang.ObjectManages the actions to be displayed in the toolbar. Organizes them by group.
-
-
Constructor Summary
Constructors Constructor Description ToolBarManager(DockingWindowManager windowManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAction(DockingActionIf action)Adds the action to the toolbar.voidclearActions()voiddispose()Releases all resources.DockingActionIfgetAction(java.lang.String actionName)javax.swing.JComponentgetToolBar()Returns a component to be used as a toolbar.booleanisEmpty()Returns true if the toolbar is empty.voidremoveAction(DockingActionIf action)Removes the action from the toolbar.
-
-
-
Constructor Detail
-
ToolBarManager
public ToolBarManager(DockingWindowManager windowManager)
-
-
Method Detail
-
clearActions
public void clearActions()
-
addAction
public void addAction(DockingActionIf action)
Adds the action to the toolbar.
-
getAction
public DockingActionIf getAction(java.lang.String actionName)
-
dispose
public void dispose()
Releases all resources. Makes this object unusable.
-
isEmpty
public boolean isEmpty()
Returns true if the toolbar is empty.
-
getToolBar
public javax.swing.JComponent getToolBar()
Returns a component to be used as a toolbar.- Returns:
- the toolbar component.
-
removeAction
public void removeAction(DockingActionIf action)
Removes the action from the toolbar.- Parameters:
action- the action to be removed.
-
-