Class HtmlNativeComponent.HtmlHelper

java.lang.Object
org.zkoss.zk.ui.HtmlNativeComponent.HtmlHelper
All Implemented Interfaces:
Native.Helper
Enclosing class:
HtmlNativeComponent

public static class HtmlNativeComponent.HtmlHelper extends Object implements Native.Helper
The HTML helper.
  • Constructor Details

    • HtmlHelper

      public HtmlHelper()
  • Method Details

    • newNative

      public Component newNative(String text)
      Description copied from interface: Native.Helper
      Creates a native component with the specified content.
      Specified by:
      newNative in interface Native.Helper
    • getFirstHalf

      public void getFirstHalf(StringBuffer sb, String tag, Map<String,Object> props, Collection<org.zkoss.idom.Namespace> namespaces)
      Description copied from interface: Native.Helper
      Generates 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:
      getFirstHalf in interface Native.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 of Namespace to be generated, or null if not. Note: EL expressions is not allowed
    • getSecondHalf

      public void getSecondHalf(StringBuffer sb, String tag)
      Description copied from interface: Native.Helper
      Appends 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:
      getSecondHalf in interface Native.Helper
      Parameters:
      sb - the string buffer to append the result (never null)
      tag - the tag name (never null)
    • appendText

      public void appendText(StringBuffer sb, String text)
      Description copied from interface: Native.Helper
      Appends the text.
      Specified by:
      appendText in interface Native.Helper
      text - the text content to append