public class AdminguiThemeContext
extends com.sun.webui.theme.ServletThemeContext
This class allows us to use a Map to pass in parameters
which alter the Woodstock theme instead of using context-params from
the web.xml. This allows us greater runtime control over the theme and
helps allow the Woodstock theme properties to be overridden by
plugins.
| Modifier and Type | Field and Description |
|---|---|
static String |
THEME_NAME_KEY
These keys are used when getting the property values
provided in the custom theme plugin properties file.
|
static String |
THEME_VERSION_KEY |
| Modifier | Constructor and Description |
|---|---|
protected |
AdminguiThemeContext(String themeName,
String themeVersion)
This constructor takes in the theme name and version to use by
default.
|
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getDefaultClassLoader()
This method delegates to
JSFThemeContext. |
static com.sun.webui.theme.ThemeContext |
getInstance(javax.faces.context.FacesContext context,
Properties propMap)
Return an instance of
ThemeContext
using properties provided via Integration point. |
static com.sun.webui.theme.ThemeContext |
getInstance(javax.faces.context.FacesContext context,
String themeName,
String themeVersion)
Return an instance of
ThemeContext creating one
if necessary and persisting it in the ApplicationMap. |
String |
getRequestContextPath()
This method delegates to
JSFThemeContext. |
String |
getResourcePath(String path)
This method delegates to
JSFThemeContext. |
void |
setDefaultClassLoader(ClassLoader classLoader)
This method delegates to
JSFThemeContext. |
void |
setRequestContextPath(String path)
This method delegates to
JSFThemeContext. |
static Map |
setThemeParams(String theme,
String version)
Creates a
Map object with the theme name and
version. |
getDefaultLocale, getDefaultTheme, getDefaultThemeMajorVersion, getDefaultThemeMinorVersion, getDefaultThemeVersion, getMessages, getSupportedLocales, getThemeFactory, getThemeFactoryClassName, getThemeResources, getThemeServletContext, setDefaultLocale, setDefaultLocale, setDefaultTheme, setDefaultThemeVersion, setMessages, setSupportedLocales, setThemeFactoryClassName, setThemeResources, setThemeServletContextpublic static final String THEME_NAME_KEY
These keys are used when getting the property values provided in the custom theme plugin properties file.
public static final String THEME_VERSION_KEY
public static com.sun.webui.theme.ThemeContext getInstance(javax.faces.context.FacesContext context,
String themeName,
String themeVersion)
Return an instance of ThemeContext creating one
if necessary and persisting it in the ApplicationMap.
public static com.sun.webui.theme.ThemeContext getInstance(javax.faces.context.FacesContext context,
Properties propMap)
Return an instance of ThemeContext
using properties provided via Integration point.
public static Map setThemeParams(String theme, String version)
Creates a Map object with the theme name and
version.
public ClassLoader getDefaultClassLoader()
This method delegates to JSFThemeContext.
getDefaultClassLoader in class com.sun.webui.theme.ThemeContextpublic void setDefaultClassLoader(ClassLoader classLoader)
This method delegates to JSFThemeContext.
setDefaultClassLoader in class com.sun.webui.theme.ThemeContextpublic String getRequestContextPath()
This method delegates to JSFThemeContext.
getRequestContextPath in class com.sun.webui.theme.ThemeContextpublic void setRequestContextPath(String path)
This method delegates to JSFThemeContext.
setRequestContextPath in class com.sun.webui.theme.ThemeContextCopyright © 2019. All rights reserved.