|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.tobago.context.ClientProperties
public class ClientProperties
The ClientProperties contains data, which are individual for each user. It is stored in the session by default, but the application can override this in the faces-config.xml.
The managed bean name which is Tobago using for the instance isMANAGED_BEAN_NAME
.
Please use VariableResolverUtils.resolveClientProperties(FacesContext)
to access to the users client properties.
Field Summary | |
---|---|
static String |
MANAGED_BEAN_NAME
The name of the managed bean |
Constructor Summary | |
---|---|
ClientProperties()
managed bean constructor |
Method Summary | |
---|---|
String |
getContentType()
|
static ClientProperties |
getDefaultInstance(javax.faces.context.FacesContext facesContext)
Deprecated. since 1.5. |
Measure |
getHorizontalScrollbarWeight()
|
static ClientProperties |
getInstance(javax.faces.context.FacesContext facesContext)
Deprecated. since 1.5. Please use VariableResolverUtils.resolveClientProperties(javax.faces.context.FacesContext) |
static ClientProperties |
getInstance(javax.faces.component.UIViewRoot viewRoot)
Deprecated. since 1.5. Please use VariableResolverUtils.resolveClientProperties(javax.faces.context.FacesContext) |
Locale |
getLocale()
|
static List<String> |
getLocaleList(Locale locale,
boolean propertyPathMode)
Deprecated. since 1.5. Please use LocaleUtils.getLocaleSuffixList(java.util.Locale) |
Theme |
getTheme()
|
UserAgent |
getUserAgent()
|
Measure |
getVerticalScrollbarWeight()
|
boolean |
isDebugMode()
|
void |
setContentType(String contentType)
|
void |
setDebugMode(boolean debugMode)
|
void |
setHorizontalScrollbarWeight(Measure horizontalScrollbarWeight)
|
void |
setLocale(Locale locale)
Holds the locale of the user, which is located in the UIViewRoot. |
void |
setTheme(Theme theme)
|
void |
setUserAgent(UserAgent userAgent)
|
void |
setVerticalScrollbarWeight(Measure verticalScrollbarWeight)
|
void |
updateUserAgent(javax.faces.context.FacesContext facesContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MANAGED_BEAN_NAME
Constructor Detail |
---|
public ClientProperties()
Method Detail |
---|
@Deprecated public static ClientProperties getDefaultInstance(javax.faces.context.FacesContext facesContext)
@Deprecated public static ClientProperties getInstance(javax.faces.component.UIViewRoot viewRoot)
VariableResolverUtils.resolveClientProperties(javax.faces.context.FacesContext)
@Deprecated public static ClientProperties getInstance(javax.faces.context.FacesContext facesContext)
VariableResolverUtils.resolveClientProperties(javax.faces.context.FacesContext)
@Deprecated public static List<String> getLocaleList(Locale locale, boolean propertyPathMode)
LocaleUtils.getLocaleSuffixList(java.util.Locale)
public String getContentType()
public void setContentType(String contentType)
public Theme getTheme()
public void setTheme(Theme theme)
public UserAgent getUserAgent()
public void setUserAgent(UserAgent userAgent)
public boolean isDebugMode()
public void setDebugMode(boolean debugMode)
public Locale getLocale()
public void setLocale(Locale locale)
UIViewRoot.setLocale(Locale locale)
public Measure getVerticalScrollbarWeight()
public void setVerticalScrollbarWeight(Measure verticalScrollbarWeight)
public Measure getHorizontalScrollbarWeight()
public void setHorizontalScrollbarWeight(Measure horizontalScrollbarWeight)
public void updateUserAgent(javax.faces.context.FacesContext facesContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |