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) |
static com.sun.webui.theme.ThemeContext |
getInstance(javax.faces.context.FacesContext context,
String themeName,
String themeVersion) |
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. |
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
public static final String THEME_VERSION_KEY
public static com.sun.webui.theme.ThemeContext getInstance(javax.faces.context.FacesContext context,
String themeName,
String themeVersion)
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)
ThemeContext
using properties provided via Integration point.public ClassLoader getDefaultClassLoader()
JSFThemeContext.getDefaultClassLoader in class com.sun.webui.theme.ThemeContextpublic void setDefaultClassLoader(ClassLoader classLoader)
JSFThemeContext.setDefaultClassLoader in class com.sun.webui.theme.ThemeContextpublic String getRequestContextPath()
JSFThemeContext.getRequestContextPath in class com.sun.webui.theme.ThemeContextpublic void setRequestContextPath(String path)
JSFThemeContext.setRequestContextPath in class com.sun.webui.theme.ThemeContextCopyright © 2020. All rights reserved.