|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.http.Utils
public class Utils
A collection of utilities for this package.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static java.lang.String |
checkUpdateURI(java.lang.String updateURI,
java.lang.String info)
Checks the update URI. |
static int |
getFirstDayOfWeek()
Returns the first day of the week, or -1 if no defined by the application. |
static int |
getFirstDayOfWeek(Session sess)
Returns the first day of the week of the given session, or -1 if no defined by the application. |
static void |
updateDebugJS(WebApp wapp,
boolean debug)
Update the status of debug-js. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static void updateDebugJS(WebApp wapp, boolean debug)
Configuration.setDebugJS(boolean)
to change the loading of JavaScript files dynamically.
public static final int getFirstDayOfWeek()
getFirstDayOfWeek(Sessions.getCurrent())
.
public static final int getFirstDayOfWeek(Session sess)
Calendar.getFirstDayOfWeek()
.
Attributes.PREFERRED_FIRST_DAY_OF_WEEK
Attributes.PREFERRED_FIRST_DAY_OF_WEEK
Attributes.PREFERRED_FIRST_DAY_OF_WEEK
sess
- the session to look at. Ignored if null.public static final java.lang.String checkUpdateURI(java.lang.String updateURI, java.lang.String info) throws javax.servlet.ServletException
updateURI
- the update URI to be checked.info
- the info to show if updateURI is incorrect.
javax.servlet.ServletException
- if updateURI is incorrect.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |