bibliothek.extension.gui.dock.theme.eclipse
Class EclipseDockTitleFactory

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.eclipse.EclipseDockTitleFactory
All Implemented Interfaces:
DockTitleFactory

public class EclipseDockTitleFactory
extends Object
implements DockTitleFactory

A DockTitleFactory that calls another factory but only if the method EclipseThemeConnector.getTitleBarKind(Dockable) returns EclipseThemeConnector.TitleBar.BASIC for the Dockable whose title should be created.

Author:
Benjamin Sigg

Constructor Summary
EclipseDockTitleFactory(EclipseTheme theme, DockTitleFactory factory)
          Creates a new factory
 
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
 

Constructor Detail

EclipseDockTitleFactory

public EclipseDockTitleFactory(EclipseTheme theme,
                               DockTitleFactory factory)
Creates a new factory

Parameters:
theme - the theme whose EclipseThemeConnector is used to determine whether to create a title for a Dockable or not.
factory - the factory which creates title when necessary
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.