Package org.zkoss.zk.ui
Class HtmlNativeComponent.HtmlHelper
java.lang.Object
org.zkoss.zk.ui.HtmlNativeComponent.HtmlHelper
- All Implemented Interfaces:
Native.Helper
- Enclosing class:
- HtmlNativeComponent
The HTML helper.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendText(StringBuffer sb, String text) Appends the text.voidgetFirstHalf(StringBuffer sb, String tag, Map<String, Object> props, Collection<org.zkoss.idom.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.voidgetSecondHalf(StringBuffer sb, 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.Creates a native component with the specified content.
-
Constructor Details
-
HtmlHelper
public HtmlHelper()
-
-
Method Details
-
newNative
Description copied from interface:Native.HelperCreates a native component with the specified content.- Specified by:
newNativein interfaceNative.Helper
-
getFirstHalf
public void getFirstHalf(StringBuffer sb, String tag, Map<String, Object> props, Collection<org.zkoss.idom.Namespace> namespaces) Description copied from interface:Native.HelperGenerates the first half of the device-dependent content for the specified tag and properties, and appends it to the specified string buffer.For example, getFirstHalf(sb, "tr", null) appends "<tr>" to sb, and getFirstHalf(sb, "br", ) appends "<br/>".
- Specified by:
getFirstHalfin interfaceNative.Helper- Parameters:
sb- 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 ofNamespaceto be generated, or null if not. Note: EL expressions is not allowed
-
getSecondHalf
Description copied from interface:Native.HelperAppends the first half of the device-dependent content for the specified tag and properties, and appends it to the specified string buffer.For example, appendSecpmdHalf(sb, "tr") appends "</tr>" to sb, and getSecondHalf(sb, "br") appends "".
- Specified by:
getSecondHalfin interfaceNative.Helper- Parameters:
sb- the string buffer to append the result (never null)tag- the tag name (never null)
-
appendText
Description copied from interface:Native.HelperAppends the text.- Specified by:
appendTextin interfaceNative.Helpertext- the text content to append
-