Class HtmlTemplate

All Implemented Interfaces:
Serializable, Cloneable, Element, Node

public class HtmlTemplate extends HtmlElement
Wrapper for the HTML element "template".
See Also:
  • Field Details

  • Method Details

    • getDefaultStyleDisplay

      public HtmlElement.DisplayStyle getDefaultStyleDisplay()
      INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
      Returns the default display style.
      Overrides:
      getDefaultStyleDisplay in class HtmlElement
      Returns:
      the default display style
    • getContent

      public DomDocumentFragment getContent()
      Returns:
      the associated document fragment
    • isEmptyXmlTagExpanded

      protected boolean isEmptyXmlTagExpanded()
      Description copied from class: DomElement
      Indicates if a node without children should be written in expanded form as XML (i.e. with closing tag rather than with "/>")
      Overrides:
      isEmptyXmlTagExpanded in class DomElement
      Returns:
      false by default
    • printChildrenAsXml

      protected void printChildrenAsXml(String indent, PrintWriter printWriter)
      Description copied from class: DomNode
      Recursively writes the XML data for the node tree starting at node.
      Overrides:
      printChildrenAsXml in class DomNode
      Parameters:
      indent - white space to indent child nodes
      printWriter - writer where child nodes are written