public class ButtonMenuHandler extends AbstractMenuHandler<JMenuItem,ButtonDockAction>
JMenuItem and a ButtonDockAction.action, dockable, item| Constructor and Description |
|---|
ButtonMenuHandler(ButtonDockAction action,
Dockable dockable)
Creates a new handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener listener)
Adds a listener which will be called if this view is triggered.
|
void |
removeActionListener(ActionListener listener)
Removes a listener from this view.
|
bind, getAction, getDockable, getItem, unbindpublic ButtonMenuHandler(ButtonDockAction action, Dockable dockable)
action - the action to observedockable - the dockable for which actions are dispatchedpublic void addActionListener(ActionListener listener)
MenuViewItemlistener - the new listenerpublic void removeActionListener(ActionListener listener)
MenuViewItemlistener - the listener to removeCopyright © 2017 Docking Frames. All rights reserved.