bibliothek.gui.dock.themes
Class DefaultDisplayerFactoryValue
java.lang.Object
bibliothek.gui.dock.themes.StationThemeItemValue<DisplayerFactory>
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
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.util.UIValue |
set |
DefaultDisplayerFactoryValue
public DefaultDisplayerFactoryValue(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
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 requiredtitle
- the title of the displayer, can be null
- Returns:
- the new displayer