bibliothek.gui.dock.themes.basic
Class BasicDockTitleFactory

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.BasicDockTitleFactory
All Implemented Interfaces:
DockTitleFactory

public class BasicDockTitleFactory
extends java.lang.Object
implements DockTitleFactory

A DockTitleFactory which created instances of BasicDockTitle and of BasicStationTitle.

Author:
Benjamin Sigg

Field Summary
static DockTitleFactory FACTORY
          An instance of this factory which can be used an any place
 
Constructor Summary
BasicDockTitleFactory()
           
 
Method Summary
 DockTitle createDockableTitle(Dockable dockable, DockTitleVersion version)
          Creates a DockTitle for the pure dockable.
<D extends Dockable & DockStation>
DockTitle
createStationTitle(D dockable, DockTitleVersion version)
          Creates a DockTitle for dockable which is also a DockStation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORY

public static final DockTitleFactory FACTORY
An instance of this factory which can be used an any place

Constructor Detail

BasicDockTitleFactory

public BasicDockTitleFactory()
Method Detail

createDockableTitle

public DockTitle createDockableTitle(Dockable dockable,
                                     DockTitleVersion version)
Description copied from interface: DockTitleFactory
Creates a DockTitle for the pure dockable.

Specified by:
createDockableTitle in interface DockTitleFactory
Parameters:
dockable - the owner of the title
version - the version which uses this factory, might be null
Returns:
the new title, can be null if no title should be shown for dockable.

createStationTitle

public <D extends Dockable & DockStation> DockTitle createStationTitle(D dockable,
                                                                      DockTitleVersion version)
Description copied from interface: DockTitleFactory
Creates a DockTitle for dockable which is also a DockStation.

Specified by:
createStationTitle in interface DockTitleFactory
Type Parameters:
D - the type of dockable.
Parameters:
dockable - the owner of the title.
version - the version which uses this factory, might be null
Returns:
the new title, can be null if no title should be shown for dockable.