bibliothek.gui.dock.station.support
Class DisplayerFactoryWrapper
java.lang.Object
bibliothek.gui.dock.station.support.DisplayerFactoryWrapper
- All Implemented Interfaces:
- DisplayerFactory
public class DisplayerFactoryWrapper
- extends java.lang.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
private DisplayerFactory delegate
DisplayerFactoryWrapper
public DisplayerFactoryWrapper()
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 displayerdockable
- the child of the created displayertitle
- the title for the displayer
- Returns:
- the newly created displayer