org.jboss.seam.theme
@Scope(value=SESSION) @Name(value="org.jboss.seam.theme.themeSelector") @BypassInterceptors @Install(precedence=0, classDependencies="javax.faces.context.FacesContext") public class ThemeSelector extends Selector
DEFAULT_MAX_AGE
Constructor and Description |
---|
ThemeSelector() |
Modifier and Type | Method and Description |
---|---|
String[] |
getAvailableThemes() |
protected String |
getCookieName()
Override to define the cookie name
|
String |
getLocalizedThemeName(String name)
Get the localized name of the named theme, by looking for
org.jboss.seam.theme.<name> in the Seam resource
bundle
|
String |
getTheme()
Get the name of the current theme
|
ResourceBundle |
getThemeResourceBundle()
Get the resource bundle for the theme
|
List<javax.faces.model.SelectItem> |
getThemes()
Get a selectable list of available themes for display in the UI
|
void |
initDefaultTheme() |
static ThemeSelector |
instance() |
void |
select()
Recreate the JSF view, using the new theme, and raise the
org.jboss.seam.themeSelected event
|
void |
select(javax.faces.event.ValueChangeEvent event) |
void |
selectTheme(String themeName) |
void |
setAvailableThemes(String[] themeNames) |
void |
setTheme(String themeName) |
clearCookieValue, getCookie, getCookieMaxAge, getCookiePath, getCookieValue, getCookieValueIfEnabled, isCookieEnabled, setCookieEnabled, setCookieMaxAge, setCookiePath, setCookieValueIfEnabled
clearDirty, setDirty, setDirty
@Create public void initDefaultTheme()
protected String getCookieName()
Selector
getCookieName
in class Selector
public void select()
public void select(javax.faces.event.ValueChangeEvent event)
public void selectTheme(String themeName)
public List<javax.faces.model.SelectItem> getThemes()
public String getTheme()
public void setTheme(String themeName)
public void setAvailableThemes(String[] themeNames)
public ResourceBundle getThemeResourceBundle()
public String getLocalizedThemeName(String name)
public static ThemeSelector instance()
public String[] getAvailableThemes()
Copyright © 2015 Seam Framework. All Rights Reserved.