com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class TableRow



  • public final class TableRow
    extends Object

    Provides a table row.

    • Constructor Detail

      • TableRow

        public TableRow(int rowIndex)

        Initializes a new instance of the TableRow class.

        Parameters:
        rowIndex - An index of the row.
      • TableRow

        public TableRow(int rowIndex,
                List<TableCell> cellsCollection)

        Initializes a new instance of the TableRow class.

        Parameters:
        rowIndex - An index of the row.
        cellsCollection - A collection of the cells.
      • TableRow

        public TableRow(int rowIndex,
                Integer height)

        Initializes a new instance of the TableRow class.

        Parameters:
        rowIndex - An index of the row.
        height - A height of the row.
      • TableRow

        public TableRow(int rowIndex,
                List<TableCell> cellsCollection,
                Integer height)

        Initializes a new instance of the TableRow class.

        Parameters:
        rowIndex - An index of the row.
        cellsCollection - A collection of the cells.
        height - A height of the row.
    • Method Detail

      • getRowIndex

        public int getRowIndex()

        Gets an index of the row.

        Returns:
        An index of the row.
      • getHeight

        public Integer getHeight()

        Gets a height of the row.

        Returns:
        A height of the row.
      • getCount

        public int getCount()

        Gets a count of the cells.

        Returns:
        A count of the cells.
      • get_Item

        public TableCell get_Item(int cellIndex)

        Gets the row's cell with the specified index.

        Parameters:
        cellIndex - An index of the cell.
        Returns:
        A cell associated with the specified index.
      • add

        public void add(TableCell cell)

        Adds a cell to the row.

        Parameters:
        cell - A cell to add.
      • addRange

        public void addRange(List<TableCell> cellsCollection)

        Adds a collection of the cells to the row.

        Parameters:
        cellsCollection - A collection of the cells to add.
      • getCell

        public TableCell getCell(int cellRowIndex,
                        int cellColumnIndex)

        Returns a cell by cellRowIndex and cellColumnIndex.

        Parameters:
        cellRowIndex - An index of the row.
        cellColumnIndex - An index of the column.
        Returns:
        An instance of the cell with specified cellRowIndex and cellColumnIndex or null if cell was not found.
      • containsCell

        public boolean containsCell(int cellRowIndex,
                           int cellColumnIndex)

        Checks if row contains a cell with specified cellRowIndex and cellColumnIndex.

        Parameters:
        cellRowIndex - An index of the row.
        cellColumnIndex - An index of the column.
        Returns:
        A boolean if the row contains cell; otherwise, false.