|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zml.XmlNativeComponent.XmlHelper
public static class XmlNativeComponent.XmlHelper
The HTML helper.
| Constructor Summary | |
|---|---|
XmlNativeComponent.XmlHelper()
|
|
| Method Summary | |
|---|---|
void |
appendText(java.lang.StringBuffer sb,
java.lang.String text)
Appends the text. |
void |
getFirstHalf(java.lang.StringBuffer sb,
java.lang.String tag,
java.util.Map<java.lang.String,java.lang.Object> props,
java.util.Collection<Namespace> namespaces)
Generates the first half of the device-dependent content for the specified tag and properties, and appends it to the specified string buffer. |
void |
getSecondHalf(java.lang.StringBuffer sb,
java.lang.String tag)
Appends the first half of the device-dependent content for the specified tag and properties, and appends it to the specified string buffer. |
Component |
newNative(java.lang.String text)
Creates a native component with the specified content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlNativeComponent.XmlHelper()
| Method Detail |
|---|
public Component newNative(java.lang.String text)
Native.Helper
newNative in interface Native.Helper
public void getFirstHalf(java.lang.StringBuffer sb,
java.lang.String tag,
java.util.Map<java.lang.String,java.lang.Object> props,
java.util.Collection<Namespace> namespaces)
Native.HelperFor example, getFirstHalf(sb, "tr", null) appends "<tr>" to sb, and getFirstHalf(sb, "br", ) appends "<br/>".
getFirstHalf in interface Native.Helpersb - the string buffer to append the result (never null)tag - the tag name (never null)props - a map of name and value pairs or null
if no properties at all.
Note: the value doesn't contain any EL expression.namespaces - a list of Namespace
to be generated, or null if not.
Note: EL expressions is not allowed
public void getSecondHalf(java.lang.StringBuffer sb,
java.lang.String tag)
Native.HelperFor example, appendSecpmdHalf(sb, "tr") appends "</tr>" to sb, and getSecondHalf(sb, "br") appends "".
getSecondHalf in interface Native.Helpersb - the string buffer to append the result (never null)tag - the tag name (never null)
public void appendText(java.lang.StringBuffer sb,
java.lang.String text)
Native.Helper
appendText in interface Native.Helpertext - the text content to append
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||