|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.themes.ThemePropertyFactory<T>
T
- the type of theme created by this factorypublic class ThemePropertyFactory<T extends DockTheme>
A factory using the ThemeProperties
of a DockTheme
to
create instances of that DockTheme
.
Constructor Summary | |
---|---|
ThemePropertyFactory(Class<T> theme)
Creates a new factory. |
|
ThemePropertyFactory(Class<T> theme,
DockUI ui)
Creates a new factory. |
|
ThemePropertyFactory(Class<T> theme,
ResourceBundle bundle)
Creates a new factory. |
|
ThemePropertyFactory(Class<T> theme,
ResourceBundle bundle,
DockUI ui)
Creates a new factory. |
Method Summary | |
---|---|
T |
create()
Creates a new theme. |
String[] |
getAuthors()
Gets a list of strings, containing the names of the authors. |
ResourceBundle |
getBundle()
Gets the bundle used to retrieve text for this factory. |
String |
getDescription()
Gets a human readable description of the theme. |
String |
getName()
Gets the name of the theme. |
protected String |
getString(String key)
|
DockUI |
getUi()
Gets the DockUI used with this factory. |
URI[] |
getWebpages()
Gets a set of links to any webpage the authors might want to show the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThemePropertyFactory(Class<T> theme)
theme
- the class of a theme, must have the ThemeProperties
annotation.public ThemePropertyFactory(Class<T> theme, ResourceBundle bundle)
theme
- the class of a theme, must have the ThemeProperties
annotation.bundle
- the bundle to retrieve text, might be null
if the
bundle of the DockUI
should be used.public ThemePropertyFactory(Class<T> theme, DockUI ui)
theme
- the class of a theme, must have the ThemeProperties
annotation.ui
- the DockUI to retrieve more information, might be null
public ThemePropertyFactory(Class<T> theme, ResourceBundle bundle, DockUI ui)
theme
- the class of a theme, must have the ThemeProperties
annotation.bundle
- the bundle to retrieve text, might be null
if the
bundle of the DockUI
should be used.ui
- the DockUI to retrieve more information, might be null
Method Detail |
---|
public ResourceBundle getBundle()
null
if the bundle of
the DockUI
is used.public DockUI getUi()
DockUI
used with this factory.
null
if the default-DockUI is usedpublic T create()
ThemeFactory
create
in interface ThemeFactory
public String[] getAuthors()
ThemeFactory
getAuthors
in interface ThemeFactory
null
protected String getString(String key)
public String getDescription()
ThemeFactory
getDescription
in interface ThemeFactory
null
public String getName()
ThemeFactory
getName
in interface ThemeFactory
null
public URI[] getWebpages()
ThemeFactory
getWebpages
in interface ThemeFactory
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |