bibliothek.gui.dock.themes.basic.action.dropdown
Class SelectableDropDownHandler.Listener

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.action.dropdown.SelectableDropDownHandler.Listener
All Implemented Interfaces:
SelectableDockActionListener, java.awt.event.ActionListener, java.util.EventListener
Enclosing class:
SelectableDropDownHandler

private class SelectableDropDownHandler.Listener
extends java.lang.Object
implements SelectableDockActionListener, java.awt.event.ActionListener

A listener that ensures, that the menuitem and the action have always the same selected-state.

Author:
Benjamin Sigg

Constructor Summary
private SelectableDropDownHandler.Listener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void selectedChanged(SelectableDockAction action, java.util.Set<Dockable> dockables)
          Triggered by a SelectableDockAction if the selection-state of a Dockable has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectableDropDownHandler.Listener

private SelectableDropDownHandler.Listener()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

selectedChanged

public void selectedChanged(SelectableDockAction action,
                            java.util.Set<Dockable> dockables)
Description copied from interface: SelectableDockActionListener
Triggered by a SelectableDockAction if the selection-state of a Dockable has changed.

Specified by:
selectedChanged in interface SelectableDockActionListener
Parameters:
action - the invoking action
dockables - a set of Dockables whose state has been changed