bibliothek.gui.dock.event
Interface DockableFocusListener

All Known Subinterfaces:
DockListener
All Known Implementing Classes:
ActionBinder, BasicStackDockComponent.BasicTab, BubbleStackDockComponent.Tab, DockableFocusAdapter, DockAdapter, FlatTab.FlatButton

public interface DockableFocusListener

A listener added to a DockController, this listener gets informed when the focused Dockable is exchanged.

Author:
Benjamin Sigg

Method Summary
 void dockableFocused(DockController controller, Dockable dockable)
          Invoked when dockable has gained the focus.
 void dockableSelected(DockController controller, DockStation station, Dockable dockable)
          Called when station changes its selected dockable.
 

Method Detail

dockableFocused

void dockableFocused(DockController controller,
                     Dockable dockable)
Invoked when dockable has gained the focus.

Parameters:
controller - the origin of the event
dockable - the Dockable which is now focused, can be null

dockableSelected

void dockableSelected(DockController controller,
                      DockStation station,
                      Dockable dockable)
Called when station changes its selected dockable.

Parameters:
controller - the controller in whose realm the event occurred
station - some DockStation
dockable - the currently selected element on station, can be null
See Also:
DockStation.getFrontDockable()