Class InformalTable

    • Field Detail

      • m_NumCols

        protected int m_NumCols
        the number of columns in the table.
    • Constructor Detail

      • InformalTable

        public InformalTable​(int numCols)
        Initializes the tag.
        Parameters:
        numCols - the number of columns in the table
      • InformalTable

        public InformalTable​(String[] cells)
        Initializes the tag.
        Parameters:
        cells - the cells for the table header
      • InformalTable

        public InformalTable​(AbstractTag[] cells)
        Initializes the tag.
        Parameters:
        cells - the cells for the table header
    • Method Detail

      • getNumCols

        public int getNumCols()
        Returns the number of columns in the table.
        Returns:
        the number of columns
      • hasHead

        public boolean hasHead()
        Checks whether a head element is available.
        Returns:
        true if a head is available
      • getHead

        public AbstractComplexTag getHead()
        Returns the head element, which contains the row elements.
        Returns:
        the head element, null if no head defined
      • getBody

        public AbstractComplexTag getBody()
        Returns the body element, which contains the row elements.
        Returns:
        the body element
      • addRow

        protected AbstractComplexTag addRow​(AbstractComplexTag parent,
                                            String[] cells)
        Adds the row to the specified parent.
        Parameters:
        parent - the parent to add the row to
        cells - the cells of the row
        Returns:
        the row element
      • addRow

        public AbstractComplexTag addRow​(String[] cells)
        Adds the row to the body.
        Parameters:
        cells - the cells of the row
        Returns:
        the row element
      • addRow

        protected AbstractComplexTag addRow​(AbstractComplexTag parent,
                                            AbstractTag[] cells)
        Adds the row to the specified parent.
        Parameters:
        parent - the parent to add the row to
        cells - the cells of the row
        Returns:
        the row element
      • addRow

        public AbstractComplexTag addRow​(AbstractTag[] cells)
        Adds the row to the body.
        Parameters:
        cells - the cells of the row
        Returns:
        the row element