bibliothek.gui.dock.event
Interface DockControllerListener

All Superinterfaces:
DockRegisterListener, DockRelocatorListener
All Known Implementing Classes:
DefaultMouseFocusObserver, DockAdapter, DockControllerAdapter, FullScreenClickableListener, MouseFocusObserver, SecureMouseFocusObserver

public interface DockControllerListener
extends DockRegisterListener, DockRelocatorListener

This listener is added to the DockController. The listener receives event when some Dockable or DockStation is added or removed from the controller. The listener is also informed about changes of the focus, about DockTitles and their bindings, and which Dockable is moved.

Author:
Benjamin Sigg

Method Summary
 void dockableFocused(DockController controller, Dockable dockable)
          Invoked when dockable has gained the focus.
 void titleBound(DockController controller, DockTitle title, Dockable dockable)
          Called when title was bound to dockable.
 void titleUnbound(DockController controller, DockTitle title, Dockable dockable)
          Called when title was unbound from dockable.
 
Methods inherited from interface bibliothek.gui.dock.event.DockRegisterListener
dockableRegistered, dockableRegistering, dockableUnregistered, dockStationRegistered, dockStationRegistering, dockStationUnregistered
 
Methods inherited from interface bibliothek.gui.dock.event.DockRelocatorListener
dockableDrag, dockablePut
 

Method Detail

titleBound

void titleBound(DockController controller,
                DockTitle title,
                Dockable dockable)
Called when title was bound to dockable. This method is called after the DockTitle.bind()-method was invoked.

Parameters:
controller - the origin of the event
title - the DockTitle that was bound
dockable - the owner of title

titleUnbound

void titleUnbound(DockController controller,
                  DockTitle title,
                  Dockable dockable)
Called when title was unbound from dockable. This method is called after the DockTitle.bind()-method was invoked.

Parameters:
controller - the origin of the event
title - the DockTitle which was unbound
dockable - the old owner of title

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