bibliothek.gui.dock.themes.basic.action.menu
Class ButtonMenuHandler
java.lang.Object
bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler<JMenuItem,ButtonDockAction>
bibliothek.gui.dock.themes.basic.action.menu.ButtonMenuHandler
- All Implemented Interfaces:
- ViewItem<JComponent>, MenuViewItem<JComponent>
public class ButtonMenuHandler
- extends AbstractMenuHandler<JMenuItem,ButtonDockAction>
A handler building a connection between a JMenuItem
and a ButtonDockAction
.
- Author:
- Benjamin Sigg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ButtonMenuHandler
public ButtonMenuHandler(ButtonDockAction action,
Dockable dockable)
- Creates a new handler.
- Parameters:
action
- the action to observedockable
- the dockable for which actions are dispatched
addActionListener
public void addActionListener(ActionListener listener)
- Description copied from interface:
MenuViewItem
- Adds a listener which will be called if this view is triggered. The
listener should only be called, if the user clicked directly onto
this view.
- Parameters:
listener
- the new listener
removeActionListener
public void removeActionListener(ActionListener listener)
- Description copied from interface:
MenuViewItem
- Removes a listener from this view.
- Parameters:
listener
- the listener to remove