bibliothek.gui.dock.themes
Class DefaultDisplayerFactoryValue

java.lang.Object
  extended by bibliothek.gui.dock.themes.StationThemeItemValue<DisplayerFactory>
      extended by bibliothek.gui.dock.themes.DefaultDisplayerFactoryValue
All Implemented Interfaces:
DisplayerFactoryValue, UIValue<DisplayerFactory>

public class DefaultDisplayerFactoryValue
extends StationThemeItemValue<DisplayerFactory>
implements DisplayerFactoryValue

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

Field Summary
 
Fields inherited from interface bibliothek.gui.dock.themes.DisplayerFactoryValue
KIND_DISPLAYER_FACTORY
 
Constructor Summary
DefaultDisplayerFactoryValue(java.lang.String id, DockStation station)
          Creates a new object.
 
Method Summary
 DockableDisplayer create(Dockable dockable, DockTitle title)
          Uses the current factory to create a new DockableDisplayer.
 
Methods inherited from class bibliothek.gui.dock.themes.StationThemeItemValue
get, getDelegate, getStation, set, setController, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.themes.DisplayerFactoryValue
getStation
 
Methods inherited from interface bibliothek.gui.dock.util.UIValue
set
 

Constructor Detail

DefaultDisplayerFactoryValue

public DefaultDisplayerFactoryValue(java.lang.String id,
                                    DockStation station)
Creates a new object.

Parameters:
id - the identifier used for retrieving a resource of ThemeManager
station - the owner of this object, not null
Method Detail

create

public DockableDisplayer create(Dockable dockable,
                                DockTitle title)
Uses the current factory to create a new DockableDisplayer. Falls back to a BasicDockableDisplayer if no factory can be found.

Parameters:
dockable - the element for which a displayer is required
title - the title of the displayer, can be null
Returns:
the new displayer