bibliothek.gui.dock.common.intern.action.panel
Class BasicPanelPopupMenuHandler
java.lang.Object
bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler<JMenu,CPanelPopup.PanelPopup>
bibliothek.gui.dock.common.intern.action.panel.BasicPanelPopupMenuHandler
- All Implemented Interfaces:
- ViewItem<JComponent>, MenuViewItem<JComponent>
public class BasicPanelPopupMenuHandler
- extends AbstractMenuHandler<JMenu,CPanelPopup.PanelPopup>
A menu showing a custom component instead of menu items.
- Author:
- Benjamin Sigg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicPanelPopupMenuHandler
public BasicPanelPopupMenuHandler(CPanelPopup.PanelPopup action,
Dockable dockable)
- Creates a new handler.
- Parameters:
action
- the action shown in this menudockable
- the owner of the action
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