Class ZHtml.Row

java.lang.Object
org.spiderwiz.zutils.ZHtml.Node
org.spiderwiz.zutils.ZHtml.Row
Enclosing class:
ZHtml

public class ZHtml.Row
extends ZHtml.Node
Represents a table row node (<tr>).
  • Method Details

    • addCell

      public ZHtml.Row addCell​(String text)
      Appends a cell node (td tag) with the given inner text to the row.

      The text can contain any text, including special HTML characters. The text is HTML-escaped when the node is converted to HTML.

      Parameters:
      text - the text of the cell.
      Returns:
      the cell node.
    • addCell

      public ZHtml.Row addCell​(String text, String style)
      Appends a cell node (td tag) with the given inner text and the given initial style to the row.

      The text can contain any text, including special HTML characters. The text is HTML-escaped when the node is converted to HTML.

      Parameters:
      text - the text of the cell.
      style - initial style to apply to the node.
      Returns:
      the cell node.
    • addCell

      public ZHtml.Row addCell​(ZHtml.Node node)
      Appends a cell node (td tag) with the given inner node to the row.
      Parameters:
      node - the inner node to wrap by the cell.
      Returns:
      the cell node.
    • addCell

      public ZHtml.Row addCell​(ZHtml.Node node, String style)
      Appends a cell node (td tag) with the given inner node and the given initial style to the row.
      Parameters:
      node - the inner node to wrap by the cell.
      style - initial style to apply to the node.
      Returns:
      the cell node.