bibliothek.gui.dock.common.intern.action.panel
Class BasicPanelPopupMenuHandler

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler<JMenu,CPanelPopup.PanelPopup>
      extended by 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

Field Summary
 
Fields inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler
action, dockable, item
 
Constructor Summary
BasicPanelPopupMenuHandler(CPanelPopup.PanelPopup action, Dockable dockable)
          Creates a new handler.
 
Method Summary
 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.
 
Methods inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler
bind, getAction, getDockable, getItem, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPanelPopupMenuHandler

public BasicPanelPopupMenuHandler(CPanelPopup.PanelPopup action,
                                  Dockable dockable)
Creates a new handler.

Parameters:
action - the action shown in this menu
dockable - the owner of the action
Method Detail

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