bibliothek.gui.dock.themes.basic.action.menu
Interface MenuViewItem<C extends JComponent>

Type Parameters:
C - The type of component that represents this view
All Superinterfaces:
ViewItem<C>
All Known Subinterfaces:
DropDownViewItem
All Known Implementing Classes:
AbstractDropDownHandler, AbstractMenuHandler, BasicPanelPopupMenuHandler, BasicPanelPopupMenuItemHandler, BasicSeparatorHandler, ButtonDropDownHandler, ButtonMenuHandler, DropDownMenuHandler, MenuMenuHandler, SelectableDropDownHandler, SelectableMenuHandler, SubDropDownHandler

public interface MenuViewItem<C extends JComponent>
extends ViewItem<C>

An item that is shown in a menu.

Author:
Benjamin Sigg

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 interface bibliothek.gui.dock.action.view.ViewItem
bind, getAction, getItem, unbind
 

Method Detail

addActionListener

void addActionListener(ActionListener listener)
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

void removeActionListener(ActionListener listener)
Removes a listener from this view.

Parameters:
listener - the listener to remove