|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.core.AbstractMutable org.jboss.seam.core.Selector org.jboss.seam.theme.ThemeSelector
@Scope(value=SESSION) @Name(value="org.jboss.seam.theme.themeSelector") @Intercept(value=NEVER) @Install(precedence=0) public class ThemeSelector
Selects the current user's theme
Constructor Summary | |
---|---|
ThemeSelector()
|
Method Summary | |
---|---|
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 |
setAvailableThemes(String[] themeNames)
|
void |
setTheme(String themeName)
|
Methods inherited from class org.jboss.seam.core.Selector |
---|
clearCookieValue, getCookie, getCookieMaxAge, getCookieValue, getCookieValueIfEnabled, isCookieEnabled, setCookieEnabled, setCookieMaxAge, setCookieValueIfEnabled |
Methods inherited from class org.jboss.seam.core.AbstractMutable |
---|
clearDirty, setDirty, setDirty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThemeSelector()
Method Detail |
---|
@Create public void initDefaultTheme()
protected String getCookieName()
Selector
getCookieName
in class Selector
public void select()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |