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

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler<JMenuItem,CPanelPopup.PanelPopup>
      extended by bibliothek.gui.dock.common.intern.action.panel.BasicPanelPopupMenuItemHandler
All Implemented Interfaces:
ViewItem<JComponent>, MenuViewItem<JComponent>

public class BasicPanelPopupMenuItemHandler
extends AbstractMenuHandler<JMenuItem,CPanelPopup.PanelPopup>

Handles a CPanelPopup in a menu in the case that the action opens a dialog if triggered.

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from class bibliothek.gui.dock.themes.basic.action.menu.AbstractMenuHandler
action, dockable, item
 
Constructor Summary
BasicPanelPopupMenuItemHandler(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

BasicPanelPopupMenuItemHandler

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

Parameters:
action - the action to handle
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