|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.themes.ThemePropertyFactory
public class ThemePropertyFactory
A factory using the ThemeProperties
of a DockTheme
to
create instances of that DockTheme
.
Field Summary | |
---|---|
private java.util.ResourceBundle |
bundle
Bundle containing the text, may be null |
private java.lang.reflect.Constructor<? extends DockTheme> |
constructor
Default constructor of the theme |
private ThemeProperties |
properties
Information about the theme |
private DockUI |
ui
Additional information, might be null |
Constructor Summary | |
---|---|
ThemePropertyFactory(java.lang.Class<? extends DockTheme> theme)
Creates a new factory. |
|
ThemePropertyFactory(java.lang.Class<? extends DockTheme> theme,
DockUI ui)
Creates a new factory. |
|
ThemePropertyFactory(java.lang.Class<? extends DockTheme> theme,
java.util.ResourceBundle bundle)
Creates a new factory. |
|
ThemePropertyFactory(java.lang.Class<? extends DockTheme> theme,
java.util.ResourceBundle bundle,
DockUI ui)
Creates a new factory. |
Method Summary | |
---|---|
DockTheme |
create()
Creates a new theme. |
java.lang.String[] |
getAuthors()
Gets a list of strings, containing the names of the authors. |
java.util.ResourceBundle |
getBundle()
Gets the bundle used to retrieve text for this factory. |
java.lang.String |
getDescription()
Gets a human readable description of the theme. |
java.lang.String |
getName()
Gets the name of the theme. |
protected java.lang.String |
getString(java.lang.String key)
|
DockUI |
getUi()
Gets the DockUI used with this factory. |
java.net.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 |
Field Detail |
---|
private java.lang.reflect.Constructor<? extends DockTheme> constructor
private ThemeProperties properties
private java.util.ResourceBundle bundle
null
private DockUI ui
null
Constructor Detail |
---|
public ThemePropertyFactory(java.lang.Class<? extends DockTheme> theme)
theme
- the class of a theme, must have the ThemeProperties
annotation.public ThemePropertyFactory(java.lang.Class<? extends DockTheme> theme, java.util.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(java.lang.Class<? extends DockTheme> 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(java.lang.Class<? extends DockTheme> theme, java.util.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 java.util.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 DockTheme create()
ThemeFactory
create
in interface ThemeFactory
public java.lang.String[] getAuthors()
ThemeFactory
getAuthors
in interface ThemeFactory
null
protected java.lang.String getString(java.lang.String key)
public java.lang.String getDescription()
ThemeFactory
getDescription
in interface ThemeFactory
null
public java.lang.String getName()
ThemeFactory
getName
in interface ThemeFactory
null
public java.net.URI[] getWebpages()
ThemeFactory
getWebpages
in interface ThemeFactory
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |