Package bibliothek.gui.dock.common.theme
Class CDockThemeFactory<D extends DockTheme>
java.lang.Object
bibliothek.gui.dock.common.theme.CDockThemeFactory<D>
- Type Parameters:
D- the kind of theme that gets wrapped up
- All Implemented Interfaces:
ThemeFactory
A factory that envelops another factory in order to build a
CX-theme instead of a X-theme.
- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionCDockThemeFactory(ThemePropertyFactory<D> delegate, CControl control) Creates a new factory. -
Method Summary
Modifier and TypeMethodDescriptionabstract DockThemeCreates a new theme.create(DockController controller) createMeta(DockController controller) Gets the control for which this factory works.
-
Constructor Details
-
CDockThemeFactory
Creates a new factory.- Parameters:
delegate- the factory that should be used as delegate to create the initialDockTheme.control- the control for which this factory will work
-
-
Method Details
-
getControl
Gets the control for which this factory works.- Returns:
- the control
-
create
- Specified by:
createin interfaceThemeFactory
-
create
Creates a new theme.- Parameters:
control- the control in whose realm the theme will be used- Returns:
- the new theme
-
createMeta
- Specified by:
createMetain interfaceThemeFactory
-