站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.0 cr1 API 英文版文档

ThemeSelector (JBoss Seam API Documentation) - JBoss Seam 1.1.0 cr1 API 英文版文档


org.jboss.seam.theme
Class ThemeSelector

java.lang.Object
  extended by org.jboss.seam.core.AbstractMutable
      extended by org.jboss.seam.theme.ThemeSelector
All Implemented Interfaces:
Serializable, Mutable

@Scope(value=SESSION)
@Name(value="org.jboss.seam.theme.themeSelector")
@Intercept(value=NEVER)
public class ThemeSelector
extends AbstractMutable
implements Serializable

Selects the current user's theme

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
ThemeSelector()
           
 
Method Summary
 String[] getAvailableThemes()
           
 String getTheme()
           
 ResourceBundle getThemeResourceBundle()
           
 List<javax.faces.model.SelectItem> getThemes()
           
 void initDefaultTheme()
           
static ThemeSelector instance()
           
 boolean isCookieEnabled()
           
 void select()
           
 void setAvailableThemes(String[] themeNames)
           
 void setCookieEnabled(boolean cookieEnabled)
           
 void setTheme(String themeName)
           
 
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

ThemeSelector

public ThemeSelector()
Method Detail

initDefaultTheme

@Create
public void initDefaultTheme()

select

public void select()

getThemes

public List<javax.faces.model.SelectItem> getThemes()

getTheme

public String getTheme()

setTheme

public void setTheme(String themeName)

setAvailableThemes

public void setAvailableThemes(String[] themeNames)

getThemeResourceBundle

public ResourceBundle getThemeResourceBundle()

instance

public static ThemeSelector instance()

getAvailableThemes

public String[] getAvailableThemes()

isCookieEnabled

public boolean isCookieEnabled()

setCookieEnabled

public void setCookieEnabled(boolean cookieEnabled)