|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.core.Template
public class Template
Represents an HTML fragment template. Templates can be precompiled for greater performance.
The list of available inbuild functions for use within templates are : 'capitalize', 'date', 'ellipsis', 'htmlDecode', 'htmlEncode', 'lowecase', 'stripTags', 'substr', 'trim', 'undef', 'uppercase', 'usMoney'.
| Field Summary |
|---|
| Fields inherited from class com.gwtext.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
Template(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
Template(java.lang.String html)
Create a new Template. |
|
Template(java.lang.String[] htmlfrags)
Create a new Template. |
|
| Method Summary | |
|---|---|
java.lang.String |
applyTemplate(com.google.gwt.core.client.JavaScriptObject values)
|
java.lang.String |
applyTemplate(NameValuePair[] values)
Returns an HTML fragment of this template with the specified values applied. |
java.lang.String |
applyTemplate(java.lang.String[] values)
Returns an HTML fragment of this template with the specified values applied. |
void |
compile()
Compiles the template into an internal function, eliminating the RegEx overhead. |
com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject htmlfrags)
|
java.lang.String |
getHtml()
|
void |
setDisableFormats(boolean disable)
True to disable format functions (defaults to false). |
| Methods inherited from class com.gwtext.client.core.JsObject |
|---|
getJsObj, getProperties, isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Template(java.lang.String html)
html - the HTML fragmentpublic Template(com.google.gwt.core.client.JavaScriptObject jsObj)
public Template(java.lang.String[] htmlfrags)
htmlfrags - the HTML fragments| Method Detail |
|---|
public java.lang.String getHtml()
public com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject htmlfrags)
public void setDisableFormats(boolean disable)
disable - true to disable format functionspublic java.lang.String applyTemplate(java.lang.String[] values)
values - the param values
public java.lang.String applyTemplate(NameValuePair[] values)
values - the param values
public java.lang.String applyTemplate(com.google.gwt.core.client.JavaScriptObject values)
public void compile()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||