bibliothek.gui.dock.event
Interface DockableListener

All Known Implementing Classes:
AbstractDockTitle.Listener, DefaultDockRelocator.TitleListener, DockableAdapter, DockAdapter, DockController.TitleListener, FullScreenClickableListener, PopupController.DockableObserver, StackDockStation.Listener

public interface DockableListener

A listener which is added to a Dockable. These listeners are manly used to update the titles of a Dockable whenever necessary.

Author:
Benjamin Sigg

Method Summary
 void titleBinded(Dockable dockable, DockTitle title)
          Will be invoked when a DockTitle was binded to a Dockable.
 void titleIconChanged(Dockable dockable, javax.swing.Icon oldIcon, javax.swing.Icon newIcon)
          Invoked when the title-icon of a Dockable has changed
 void titleTextChanged(Dockable dockable, java.lang.String oldTitle, java.lang.String newTitle)
          Invoked when the title of a Dockable has changed.
 void titleUnbinded(Dockable dockable, DockTitle title)
          Will be invoked when a DockTitle was unbinded from a Dockable.
 

Method Detail

titleBinded

void titleBinded(Dockable dockable,
                 DockTitle title)
Will be invoked when a DockTitle was binded to a Dockable.

Parameters:
dockable - the Dockable whose title is set
title - the new title

titleUnbinded

void titleUnbinded(Dockable dockable,
                   DockTitle title)
Will be invoked when a DockTitle was unbinded from a Dockable.

Parameters:
dockable - the Dockable whose title was removed
title - the remove title

titleTextChanged

void titleTextChanged(Dockable dockable,
                      java.lang.String oldTitle,
                      java.lang.String newTitle)
Invoked when the title of a Dockable has changed.

Parameters:
dockable - the Dockable whose title is changed
oldTitle - the title before the change
newTitle - the title after the change

titleIconChanged

void titleIconChanged(Dockable dockable,
                      javax.swing.Icon oldIcon,
                      javax.swing.Icon newIcon)
Invoked when the title-icon of a Dockable has changed

Parameters:
dockable - the Dockable whose title is changed
oldIcon - the old icon, may be null
newIcon - the new icon, may be null