|
||||||||||
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()
|
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)
|
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 |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |