bibliothek.extension.gui.dock.theme.eclipse.displayer
Class EclipseDisplayerFactory

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.eclipse.displayer.EclipseDisplayerFactory
All Implemented Interfaces:
DisplayerFactory

public class EclipseDisplayerFactory
extends Object
implements DisplayerFactory

This factory makes use of a EclipseThemeConnector to decide which kind of DockableDisplayer to create. To be more exact: the displayer depends on the EclipseThemeConnector.TitleBar-value returned by EclipseThemeConnector.getTitleBarKind(Dockable).

Author:
Janni Kovacs

Constructor Summary
EclipseDisplayerFactory(EclipseTheme theme)
          Creates a new displayer factory.
 
Method Summary
 DockableDisplayer create(DockStation station, Dockable dockable, DockTitle title)
          Creates a new DockableDisplayer which will be shown on station, will have dockable as child and will display the title.
protected  BasicDockableDisplayer create(DockStation station, Dockable dockable, DockTitle title, boolean border, EclipseThemeConnector.TitleBar bar)
          Creates a new displayer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseDisplayerFactory

public EclipseDisplayerFactory(EclipseTheme theme)
Creates a new displayer factory.

Parameters:
theme - the owner of this factory, not null
Method Detail

create

public DockableDisplayer create(DockStation station,
                                Dockable dockable,
                                DockTitle title)
Description copied from interface: DisplayerFactory
Creates a new DockableDisplayer which will be shown on station, will have dockable as child and will display the title.

Specified by:
create in interface DisplayerFactory
Parameters:
station - the parent of the created displayer
dockable - the child of the created displayer
title - the title for the displayer
Returns:
the newly created displayer

create

protected BasicDockableDisplayer create(DockStation station,
                                        Dockable dockable,
                                        DockTitle title,
                                        boolean border,
                                        EclipseThemeConnector.TitleBar bar)
Creates a new displayer.

Parameters:
station - the parent of the displayer
dockable - the content, may be null
title - the title to show, may be null
border - whether to show a border
bar - what kind of titlebar the displayer should use
Returns:
the new displayer