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, unbind
public ButtonMenuHandler(ButtonDockAction action, Dockable dockable)
action
- the action to observedockable
- the dockable for which actions are dispatchedpublic void addActionListener(ActionListener listener)
MenuViewItem
listener
- the new listenerpublic void removeActionListener(ActionListener listener)
MenuViewItem
listener
- the listener to remove