|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ui.context.support.DelegatingThemeSource
public class DelegatingThemeSource
Empty ThemeSource that delegates all calls to the parent ThemeSource. If no parent is available, it simply won't resolve any theme.
Used as placeholder by UiApplicationContextUtils, if a context doesn't define its own ThemeSource. Not intended for direct use in applications.
UiApplicationContextUtils| Constructor Summary | |
|---|---|
DelegatingThemeSource()
|
|
| Method Summary | |
|---|---|
ThemeSource |
getParentThemeSource()
Return the parent of this ThemeSource, or null if none. |
Theme |
getTheme(String themeName)
Return the Theme instance for the given theme name. |
void |
setParentThemeSource(ThemeSource parentThemeSource)
Set the parent that will be used to try to resolve theme messages that this object can't resolve. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingThemeSource()
| Method Detail |
|---|
public void setParentThemeSource(ThemeSource parentThemeSource)
HierarchicalThemeSource
setParentThemeSource in interface HierarchicalThemeSourceparentThemeSource - the parent ThemeSource that will be used to
resolve messages that this object can't resolve.
May be null, in which case no further resolution is possible.public ThemeSource getParentThemeSource()
HierarchicalThemeSourcenull if none.
getParentThemeSource in interface HierarchicalThemeSourcepublic Theme getTheme(String themeName)
ThemeSource
getTheme in interface ThemeSourcethemeName - name of the theme
null if none defined
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||