Package docking.menu

# Class ToolBarManager

java.lang.Object
docking.menu.ToolBarManager

public class ToolBarManager extends Object
Manages the actions to be displayed in the toolbar. Organizes them by group.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ToolBarManager(DockingWindowManager windowManager)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addAction(DockingActionIf action)`
  `void`
  `clearActions()`
  `void`
  `dispose()`
  Releases all resources.
  `DockingActionIf`
  `getAction(String actionName)`
  `JComponent`
  `getToolBar()`
  Returns a component to be used as a toolbar.
  `boolean`
  `isEmpty()`
  `void`
  `removeAction(DockingActionIf action)`
  Removes the action from the toolbar.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ToolBarManager

    public ToolBarManager(DockingWindowManager windowManager)

- ## Method Details

  - ### clearActions

    public void clearActions()

  - ### addAction

    public void addAction(DockingActionIf action)

  - ### getAction

    public DockingActionIf getAction(String actionName)

  - ### dispose

    public void dispose()
    Releases all resources. Makes this object unusable.

  - ### isEmpty

    public boolean isEmpty()

  - ### getToolBar

    public 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.