bibliothek.gui.dock.event
Class DockableAdapter

java.lang.Object
  extended by bibliothek.gui.dock.event.DockableAdapter
All Implemented Interfaces:
DockableListener

public abstract class DockableAdapter
extends Object
implements DockableListener

An abstract class implementing the DockableListener. All methods in this class are empty. The class can be used instead of DockableListener, and only a few selected methods have to be implemented again.

Author:
Benjamin Sigg

Constructor Summary
DockableAdapter()
           
 
Method Summary
 void titleBound(Dockable dockable, DockTitle title)
          Will be invoked when a DockTitle was bound to a Dockable.
 void titleExchanged(Dockable dockable, DockTitle title)
          Invoked when the properties of a Dockable have a so dramatically changed, that the DockTitle title is no longer considered a good title and should be replaced.
 void titleIconChanged(Dockable dockable, Icon oldIcon, Icon newIcon)
          Invoked when the title-icon of a Dockable has changed
 void titleTextChanged(Dockable dockable, String oldTitle, String newTitle)
          Invoked when the title of a Dockable has changed.
 void titleToolTipChanged(Dockable dockable, String oldTooltip, String newTooltip)
          Called when the tooltip of a Dockable changed.
 void titleUnbound(Dockable dockable, DockTitle title)
          Will be invoked when a DockTitle was unbound from a Dockable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockableAdapter

public DockableAdapter()
Method Detail

titleBound

public void titleBound(Dockable dockable,
                       DockTitle title)
Description copied from interface: DockableListener
Will be invoked when a DockTitle was bound to a Dockable.

Specified by:
titleBound in interface DockableListener
Parameters:
dockable - the Dockable whose title is set
title - the new title

titleUnbound

public void titleUnbound(Dockable dockable,
                         DockTitle title)
Description copied from interface: DockableListener
Will be invoked when a DockTitle was unbound from a Dockable.

Specified by:
titleUnbound in interface DockableListener
Parameters:
dockable - the Dockable whose title was removed
title - the remove title

titleTextChanged

public void titleTextChanged(Dockable dockable,
                             String oldTitle,
                             String newTitle)
Description copied from interface: DockableListener
Invoked when the title of a Dockable has changed.

Specified by:
titleTextChanged in interface DockableListener
Parameters:
dockable - the Dockable whose title is changed
oldTitle - the title before the change
newTitle - the title after the change

titleToolTipChanged

public void titleToolTipChanged(Dockable dockable,
                                String oldTooltip,
                                String newTooltip)
Description copied from interface: DockableListener
Called when the tooltip of a Dockable changed.

Specified by:
titleToolTipChanged in interface DockableListener
Parameters:
dockable - the dockable whose tooltip changed
oldTooltip - the old value
newTooltip - the new value

titleIconChanged

public void titleIconChanged(Dockable dockable,
                             Icon oldIcon,
                             Icon newIcon)
Description copied from interface: DockableListener
Invoked when the title-icon of a Dockable has changed

Specified by:
titleIconChanged in interface DockableListener
Parameters:
dockable - the Dockable whose title is changed
oldIcon - the old icon, may be null
newIcon - the new icon, may be null

titleExchanged

public void titleExchanged(Dockable dockable,
                           DockTitle title)
Description copied from interface: DockableListener
Invoked when the properties of a Dockable have a so dramatically changed, that the DockTitle title is no longer considered a good title and should be replaced. The one element which shows title should unbind it, and request a new title.

Specified by:
titleExchanged in interface DockableListener
Parameters:
dockable - the source of the event
title - the title that should be discarded, can be null to alert elements which do show the null-title