Package docking.menu

Class 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 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 interface java.beans.PropertyChangeListener
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent event)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent e)
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent e)
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
      • mouseExited

        public void mouseExited​(java.awt.event.MouseEvent e)
        Specified by:
        mouseExited in interface java.awt.event.MouseListener
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener