Class TableTag

All Implemented Interfaces:
Serializable, Cloneable, Node, Tag

public class TableTag extends CompositeTag
A table tag.
See Also:
  • Constructor Details

    • TableTag

      public TableTag()
      Create a new table tag.
  • Method Details

    • getIds

      public String[] getIds()
      Return the set of names handled by this tag.
      Specified by:
      getIds in interface Tag
      Overrides:
      getIds in class TagNode
      Returns:
      The names to be matched that create tags of this type.
    • getEndTagEnders

      public String[] getEndTagEnders()
      Return the set of end tag names that cause this tag to finish.
      Specified by:
      getEndTagEnders in interface Tag
      Overrides:
      getEndTagEnders in class TagNode
      Returns:
      The names of following end tags that stop further scanning.
    • getRows

      public TableRow[] getRows()
      Get the row tags within this table.
      Returns:
      The rows directly contained by this table.
    • getRowCount

      public int getRowCount()
      Get the number of rows in this table.
      Returns:
      The number of rows in this table. Note: this is a a simple count of the number of invalid input: '{@'.html } tags and may be incorrect if the invalid input: '{@'.html } tags span multiple rows.
    • getRow

      public TableRow getRow(int index)
      Get the row at the given index.
      Parameters:
      index - The row number (zero based) to get.
      Returns:
      The row for the given index.
    • toString

      public String toString()
      Return a string suitable for debugging display.
      Specified by:
      toString in interface Node
      Overrides:
      toString in class CompositeTag
      Returns:
      The table as HTML, sorry.