|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ui.context.support.ResourceBundleThemeSource
ThemeSource implementation that looks up an individual ResourceBundle per theme. The theme name gets interpreted as ResourceBundle basename, supporting a common basename prefix for all themes.
setBasenamePrefix(java.lang.String)
Field Summary | |
protected org.apache.commons.logging.Log |
logger
|
Constructor Summary | |
ResourceBundleThemeSource()
|
Method Summary | |
ThemeSource |
getParentThemeSource()
Return the parent of this ThemeSource, or null if none. |
Theme |
getTheme(java.lang.String themeName)
Return the Theme instance for the given theme name. |
protected void |
initParent(Theme theme)
Initialize the MessageSource of the given theme with the one from the respective parentThemeSource of this ThemeSource. |
void |
setBasenamePrefix(java.lang.String basenamePrefix)
Set the prefix that gets applied to the ResourceBundle basenames, i.e. |
void |
setParentThemeSource(ThemeSource parent)
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 |
Field Detail |
protected final org.apache.commons.logging.Log logger
Constructor Detail |
public ResourceBundleThemeSource()
Method Detail |
public void setParentThemeSource(ThemeSource parent)
HierarchicalThemeSource
setParentThemeSource
in interface HierarchicalThemeSource
parent
- 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()
HierarchicalThemeSource
getParentThemeSource
in interface HierarchicalThemeSource
public void setBasenamePrefix(java.lang.String basenamePrefix)
basenamePrefix
- prefix for ResourceBundle basenamespublic Theme getTheme(java.lang.String themeName)
ThemeSource
getTheme
in interface ThemeSource
themeName
- name of the theme
protected void initParent(Theme theme)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |