bibliothek.gui.dock.themes
Class ThemePropertyFactory<T extends DockTheme>

java.lang.Object
  extended by bibliothek.gui.dock.themes.ThemePropertyFactory<T>
Type Parameters:
T - the type of theme created by this factory
All Implemented Interfaces:
ThemeFactory

public class ThemePropertyFactory<T extends DockTheme>
extends Object
implements ThemeFactory

A factory using the ThemeProperties of a DockTheme to create instances of that DockTheme.

Author:
Benjamin Sigg

Constructor Summary
ThemePropertyFactory(Class<T> theme)
          Creates a new factory.
 
Method Summary
 T create(DockController controller)
          Creates a new theme.
 ThemeMeta createMeta(DockController controller)
          Gets meta information about this factory.
 String[] getAuthors()
           
 URI[] getWebpages()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemePropertyFactory

public ThemePropertyFactory(Class<T> theme)
Creates a new factory.

Parameters:
theme - the class of a theme, must have the ThemeProperties annotation.
Method Detail

create

public T create(DockController controller)
Description copied from interface: ThemeFactory
Creates a new theme.

Specified by:
create in interface ThemeFactory
Parameters:
controller - the controller in whose realm the theme will be used
Returns:
the new theme

createMeta

public ThemeMeta createMeta(DockController controller)
Description copied from interface: ThemeFactory
Gets meta information about this factory.

Specified by:
createMeta in interface ThemeFactory
Parameters:
controller - the controller in whose realm the meta information will be displayed
Returns:
the new meta information

getAuthors

public String[] getAuthors()

getWebpages

public URI[] getWebpages()