bibliothek.gui.dock.station.support
Class DisplayerFactoryWrapper

java.lang.Object
  extended by bibliothek.gui.dock.station.support.DisplayerFactoryWrapper
All Implemented Interfaces:
DisplayerFactory

public class DisplayerFactoryWrapper
extends Object
implements DisplayerFactory

A wrapper for a DisplayerFactory. Every call to the Interface is forwarded to a delegate. If no delegate is set, a default DisplayerFactory provided by the DockTheme is used.

Author:
Benjamin Sigg

Constructor Summary
DisplayerFactoryWrapper()
           
 
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.
 DisplayerFactory getDelegate()
          Gets the delegate of this wrapper.
 void setDelegate(DisplayerFactory delegate)
          Sets the delegate of this wrapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayerFactoryWrapper

public DisplayerFactoryWrapper()
Method Detail

getDelegate

public DisplayerFactory getDelegate()
Gets the delegate of this wrapper.

Returns:
the delegate, may be null

setDelegate

public void setDelegate(DisplayerFactory delegate)
Sets the delegate of this wrapper.

Parameters:
delegate - the delegate or null

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