Package docking.menu
Class ToolBarItemManager
java.lang.Object
docking.menu.ToolBarItemManager
- All Implemented Interfaces:
ActionListener
,MouseListener
,PropertyChangeListener
,EventListener
public class ToolBarItemManager
extends Object
implements PropertyChangeListener, ActionListener, MouseListener
Class to manager toolbar buttons.
-
Constructor Summary
ConstructorDescriptionToolBarItemManager
(DockingActionIf action, DockingWindowManager windowManager) Constructs a new ToolBarItemManager -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent event) createButton
(DockingActionIf action) Returns the action being managedReturns a button for this items actionvoid
void
void
void
void
void
toString()
-
Constructor Details
-
ToolBarItemManager
Constructs a new ToolBarItemManager- Parameters:
action
- the action to be managed on the toolbar.windowManager
- the window manager.
-
-
Method Details
-
getButton
Returns a button for this items action- Returns:
- the button
-
createButton
-
getAction
Returns the action being managed- Returns:
- the action
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
toString
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-