Class TableNode


  • public class TableNode
    extends AbstractNode
    Table node that holds a 2-dimensional array of table cells.
    (First row has number 1, first column has number 1. Column 0 of each row contains a "new row starting node" for the related tag)
    • Constructor Detail

      • TableNode

        public TableNode​(java.lang.String nodeName,
                         java.lang.String nodeText)
        Parameters:
        nodeName -
        nodeText -
    • Method Detail

      • initializeNodesTable

        public void initializeNodesTable​(int colCount,
                                         int rowCount)
        method to initialize nodesTable
        Parameters:
        colCount - number of cols
        rowCount - number of rows
      • setCell

        public void setCell​(AbstractNode cell,
                            int colNumber,
                            int rowNumber)
        set cell (node) to position x,y ((x,y-1) in the TableNode's array) we set cell even if it is a row cell
        Parameters:
        cell -
        colNumber -
        rowNumber -
      • getCell

        public AbstractNode getCell​(int colNumber,
                                    int rowNumber)
        get cell (node) from position x,y ((x,y-1) from the TableNode's array)
        Parameters:
        colNumber -
        rowNumber -
      • getCols

        public int getCols()
      • getRows

        public int getRows()