com.acesoft.aceoffix.wordreader
Class Table

java.lang.Object
  extended by com.acesoft.aceoffix.wordreader.Table

public class Table
extends java.lang.Object

Table class represents a Word table.

Representing a Word table, Table class is used to read the data in the Word table. You can only call the DataRegion.openTable method to get the Table object.

Version:
5.0
Author:
Acesoft Corporation

Method Summary
 java.util.ArrayList<Cell> getCells()
          Gets the Cell collection in the current Table.
 int getColumnsCount()
          Gets the number of columns in the current table.
 int getIndex()
          Gets the index of the table.
 int getRowsCount()
          Gets the number of rows in the current table.
 Cell openCellRC(int row, int col)
          Opens the specified cell and returns a Cell object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIndex

public int getIndex()
Gets the index of the table.

The index of the table is defined in Microsoft Word. The index number represents the position of the table in the Word document.

The index is a 1-based index.


getColumnsCount

public int getColumnsCount()
Gets the number of columns in the current table.


getRowsCount

public int getRowsCount()
Gets the number of rows in the current table.


getCells

public java.util.ArrayList<Cell> getCells()
                                   throws java.io.IOException,
                                          java.lang.Exception
Gets the Cell collection in the current Table.

Throws:
java.io.IOException
java.lang.Exception

openCellRC

public Cell openCellRC(int row,
                       int col)
                throws java.lang.Exception
Opens the specified cell and returns a Cell object.

Parameters:
row - The row number. Starting from "1".
col - The column number. Starting from "1".
Returns:
Returns a Cell object.
Throws:
java.lang.Exception