Package docking.menu
Class ToolBarItemManager
- java.lang.Object
-
- docking.menu.ToolBarItemManager
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.MouseListener
,java.beans.PropertyChangeListener
,java.util.EventListener
public class ToolBarItemManager extends java.lang.Object implements java.beans.PropertyChangeListener, java.awt.event.ActionListener, java.awt.event.MouseListener
Class to manager toolbar buttons.
-
-
Constructor Summary
Constructors Constructor Description ToolBarItemManager(DockingActionIf action, DockingWindowManager windowManager)
Constructs a new ToolBarItemManager
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent event)
javax.swing.JButton
createButton(DockingActionIf action)
DockingActionIf
getAction()
Returns the action being managedjavax.swing.JButton
getButton()
Returns a button for this items actionvoid
mouseClicked(java.awt.event.MouseEvent e)
void
mouseEntered(java.awt.event.MouseEvent e)
void
mouseExited(java.awt.event.MouseEvent e)
void
mousePressed(java.awt.event.MouseEvent e)
void
mouseReleased(java.awt.event.MouseEvent e)
void
propertyChange(java.beans.PropertyChangeEvent e)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ToolBarItemManager
public ToolBarItemManager(DockingActionIf action, DockingWindowManager windowManager)
Constructs a new ToolBarItemManager- Parameters:
action
- the action to be managed on the toolbar.windowManager
- the window manager.
-
-
Method Detail
-
getButton
public javax.swing.JButton getButton()
Returns a button for this items action- Returns:
- the button
-
createButton
public javax.swing.JButton createButton(DockingActionIf action)
-
getAction
public DockingActionIf getAction()
Returns the action being managed- Returns:
- the action
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEntered
in interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExited
in interfacejava.awt.event.MouseListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
-
-