public class BasicPanelPopupMenuItemHandler extends AbstractMenuHandler<javax.swing.JMenuItem,CPanelPopup.PanelPopup>
CPanelPopup
in a menu in the case that the
action opens a dialog if triggered.action, dockable, item
Constructor and Description |
---|
BasicPanelPopupMenuItemHandler(CPanelPopup.PanelPopup action,
Dockable dockable)
Creates a new handler.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener listener)
Adds a listener which will be called if this view is triggered.
|
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes a listener from this view.
|
bind, getAction, getDockable, getItem, unbind
public BasicPanelPopupMenuItemHandler(CPanelPopup.PanelPopup action, Dockable dockable)
action
- the action to handledockable
- the owner of the actionpublic void addActionListener(java.awt.event.ActionListener listener)
MenuViewItem
listener
- the new listenerpublic void removeActionListener(java.awt.event.ActionListener listener)
MenuViewItem
listener
- the listener to remove