bibliothek.gui.dock.title
Class UpdatingTitleMovingImage

java.lang.Object
  extended by bibliothek.gui.dock.title.UpdatingTitleMovingImage
All Implemented Interfaces:
MovingImage

public class UpdatingTitleMovingImage
extends Object
implements MovingImage

This MovingImage shows a DockTitle, the title can be automatically exchanged.

Author:
Benjamin Sigg

Constructor Summary
UpdatingTitleMovingImage(Dockable dockable, DockTitleVersion version, DockTitle.Orientation orientation)
          Creates a new image.
 
Method Summary
 void bind()
          Called before this image is displayed.
 Component getComponent()
          Gets a Component which represents the MovingImage.
 void unbind()
          The reverse of MovingImage.bind().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdatingTitleMovingImage

public UpdatingTitleMovingImage(Dockable dockable,
                                DockTitleVersion version,
                                DockTitle.Orientation orientation)
Creates a new image.

Parameters:
dockable - the element which is represented by this image
version - the contents of this image
orientation - how to align the title
Method Detail

bind

public void bind()
Description copied from interface: MovingImage
Called before this image is displayed. The method should connect the image with other objects, like the object it represents.
This method is never called twice in a row.

Specified by:
bind in interface MovingImage

getComponent

public Component getComponent()
Description copied from interface: MovingImage
Gets a Component which represents the MovingImage. This method must always return the same Component.

Specified by:
getComponent in interface MovingImage
Returns:
always the same Component

unbind

public void unbind()
Description copied from interface: MovingImage
The reverse of MovingImage.bind(). The image should remove any connections to other objects.
This method is never called twice in a row.

Specified by:
unbind in interface MovingImage