public class ClientProperties extends Object implements Serializable
MANAGED_BEAN_NAME
.
Please use VariableResolverUtils.resolveClientProperties(FacesContext)
to access to the users client properties.Modifier and Type | Field and Description |
---|---|
static String |
MANAGED_BEAN_NAME
The name of the managed bean
|
Constructor and Description |
---|
ClientProperties()
managed bean constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
Measure |
getHorizontalScrollbarWeight() |
static ClientProperties |
getInstance(javax.faces.context.FacesContext facesContext) |
Locale |
getLocale()
Deprecated.
since 2.0.0, please use
UIViewRoot.getLocale() |
Measure |
getPageHeight() |
Measure |
getPageWidth() |
Theme |
getTheme() |
UserAgent |
getUserAgent() |
Measure |
getVerticalScrollbarWeight() |
boolean |
isDebugMode() |
void |
setContentType(String contentType) |
void |
setDebugMode(boolean debugMode) |
void |
setHorizontalScrollbarWeight(Measure horizontalScrollbarWeight) |
void |
setLocale(Locale locale)
Deprecated.
since 2.0.0
This setter should not be called from the application directly,
but via
UIViewRoot.setLocale(Locale locale) |
void |
setPageHeight(Measure pageHeight) |
void |
setPageWidth(Measure pageWidth) |
void |
setTheme(Theme theme) |
void |
setUserAgent(UserAgent userAgent) |
void |
setVerticalScrollbarWeight(Measure verticalScrollbarWeight) |
void |
updateUserAgent(javax.faces.context.FacesContext facesContext) |
public static final String MANAGED_BEAN_NAME
public static ClientProperties getInstance(javax.faces.context.FacesContext facesContext)
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()
UIViewRoot.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 Measure getPageWidth()
public void setPageWidth(Measure pageWidth)
public Measure getPageHeight()
public void setPageHeight(Measure pageHeight)
public void updateUserAgent(javax.faces.context.FacesContext facesContext)
Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.