bibliothek.gui.dock.title
Interface DockTitleFactory

All Known Implementing Classes:
BasicButtonTitleFactory, BasicDockTitleFactory, BubbleDockTitleFactory, ControllerTitleFactory, FlatTitleFactory, NoStackTitleFactory, ReducedBubbleTitleFactory, SmoothDefaultTitleFactory

public interface DockTitleFactory

A factory for instances of DockTitle. The factory distinguishes between titles for pure Dockables and titles for Dockables which are also DockStations.

Author:
Benjamin Sigg

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.
 

Method Detail

createDockableTitle

DockTitle createDockableTitle(Dockable dockable,
                              DockTitleVersion version)
Creates a DockTitle for the pure 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.

createStationTitle

<D extends Dockable & DockStation> DockTitle createStationTitle(D dockable,
                                                               DockTitleVersion version)
Creates a DockTitle for dockable which is also a DockStation.

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.