public class BasicPanelPopupMenuHandler extends AbstractMenuHandler<javax.swing.JMenu,CPanelPopup.PanelPopup>
action, dockable, item
Constructor and Description |
---|
BasicPanelPopupMenuHandler(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 BasicPanelPopupMenuHandler(CPanelPopup.PanelPopup action, Dockable dockable)
action
- the action shown in this menudockable
- 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