|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.fn.ZkFns
public class ZkFns
Utilities for using EL.
| Constructor Summary | |
|---|---|
protected |
ZkFns()
|
| Method Summary | |
|---|---|
static java.io.Writer |
getCurrentOut()
Returns the current writer to generate the output. |
static java.util.List |
getStyleSheets(Execution exec)
Returns a list of StyleSheet that shall be generated
to the client for the specified execution. |
static java.lang.String |
outContentType(Page page)
Returns the content type (never null). |
static java.lang.String |
outDocType(Page page)
Returns the doc type, or null if not available. |
static java.lang.String |
outFirstLine(Page page)
Returns the first line to be generated to the output, or null if no special first line. |
static java.lang.String |
outHeaders(Page page)
Returns the content that will be placed inside the header element of the specified page. |
static java.lang.String |
outLangJavaScripts(java.lang.String action)
Returns HTML tags to include all JavaScript files and codes that are required when loading a ZUML page. |
static java.lang.String |
outLangStyleSheets()
Returns HTML tags to include all style sheets that are defined in all languages. |
static java.lang.String |
outLocaleJavaScript()
Generates Locale-dependent strings in JavaScript syntax. |
static java.lang.String |
outResponseJavaScripts(java.util.Collection responses)
Returns JavaScript for handling the specified response. |
static java.lang.String |
outRootAttributes(Page page)
Returns the content that will be generated as the attributes of the root element of the specified page. |
static void |
redraw(Component comp,
java.io.Writer out)
Redraw the specified component into the specified out. |
static java.lang.String |
toAbsoluteURI(java.lang.String uri)
Converts the specified URI to absolute if not included by another page. |
static java.lang.String |
toAbsoluteURI(java.lang.String uri,
boolean skipInclude)
Converts the specified URI to absolute if necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ZkFns()
| Method Detail |
|---|
public static final void redraw(Component comp,
java.io.Writer out)
throws java.io.IOException
comp - the component. If null, nothing happensout - the output. If null, the current output
will be used.
java.io.IOException
public static final java.io.Writer getCurrentOut()
throws java.io.IOException
java.io.IOExceptionpublic static final java.lang.String outResponseJavaScripts(java.util.Collection responses)
public static final java.lang.String outLangJavaScripts(java.lang.String action)
Note: it assumes Executions.getCurrent() is available.
FUTURE CONSIDERATION: we might generate the inclusion on demand instead of all at once.
public static final java.lang.String outLangStyleSheets()
Note: it assumes Executions.getCurrent() is available.
In addition to style sheets defined in lang.xml and lang-addon.xml, it also include:
FUTURE CONSIDERATION: we might generate the inclusion on demand instead of all at once.
public static final java.util.List getStyleSheets(Execution exec)
StyleSheet that shall be generated
to the client for the specified execution.
public static java.lang.String toAbsoluteURI(java.lang.String uri,
boolean skipInclude)
Execution.toAbsoluteURI(java.lang.String, boolean).
skipInclude - whether not to convert to an absolute URI if
the current page is included by another page.
When use the include directive, skipInclude shall be true.public static java.lang.String toAbsoluteURI(java.lang.String uri)
toAbsoluteURI(String, boolean) with skipInclude
is true.
public static final java.lang.String outHeaders(Page page)
public static final java.lang.String outRootAttributes(Page page)
public static final java.lang.String outContentType(Page page)
public static final java.lang.String outDocType(Page page)
public static final java.lang.String outFirstLine(Page page)
public static final java.lang.String outLocaleJavaScript()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||