bibliothek.gui.dock.title
Class AbstractDockTitle.Listener

java.lang.Object
  extended by bibliothek.gui.dock.title.AbstractDockTitle.Listener
All Implemented Interfaces:
DockableListener, DockActionSourceListener
Enclosing class:
AbstractDockTitle

private class AbstractDockTitle.Listener
extends java.lang.Object
implements DockActionSourceListener, DockableListener

A listener to the Dockable and the DockActionSource of this title.

Author:
Benjamin Sigg

Constructor Summary
private AbstractDockTitle.Listener()
           
 
Method Summary
 void actionsAdded(DockActionSource source, int firstIndex, int lastIndex)
          Invoked when one or more actions are added to the source.
 void actionsRemoved(DockActionSource source, int firstIndex, int lastIndex)
          Invoked if one or more actions are removed from the source.
 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.
private  void update()
          Ensures that all mini buttons are visible, and the layout is up to date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDockTitle.Listener

private AbstractDockTitle.Listener()
Method Detail

titleIconChanged

public void titleIconChanged(Dockable dockable,
                             javax.swing.Icon oldIcon,
                             javax.swing.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

titleTextChanged

public void titleTextChanged(Dockable dockable,
                             java.lang.String oldTitle,
                             java.lang.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

titleUnbinded

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

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

titleBinded

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

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

actionsAdded

public void actionsAdded(DockActionSource source,
                         int firstIndex,
                         int lastIndex)
Description copied from interface: DockActionSourceListener
Invoked when one or more actions are added to the source.

Specified by:
actionsAdded in interface DockActionSourceListener
Parameters:
source - the origin of the event
firstIndex - the index of the first new action
lastIndex - the index of the last new action. This value must be greater or equal to firstIndex.

actionsRemoved

public void actionsRemoved(DockActionSource source,
                           int firstIndex,
                           int lastIndex)
Description copied from interface: DockActionSourceListener
Invoked if one or more actions are removed from the source.

Specified by:
actionsRemoved in interface DockActionSourceListener
Parameters:
source - the origin of the event.
firstIndex - the index of the first action that was removed
lastIndex - the index of the last action that was removed. This argument is greater or equal to firstIndex.

update

private void update()
Ensures that all mini buttons are visible, and the layout is up to date.