com.acesoft.aceoffix.wordreader
Class Cell

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

public class Cell
extends java.lang.Object

Cell class represents a cell in Word table.

Representing a cell in Word table, cell class is used to read data in cells of Word table. You can only call the Table.openCellRC(int, int) method to get the Cell object.

Version:
5.0
Author:
Acesoft Corporation

Method Summary
 int getColumnIndex()
          Gets the column index of the cell.
 int getRowIndex()
          Gets the row index of the cell.
 java.util.ArrayList<Shape> getShapes()
          Gets the Shape collection contained in the Cell.
 java.lang.String getValue()
          Gets the value of the Cell.
 Shape openShape(int index)
          Opens the specified shape and returns a Shape object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getShapes

public java.util.ArrayList<Shape> getShapes()
                                     throws java.io.IOException,
                                            java.lang.Exception
Gets the Shape collection contained in the Cell.

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

getValue

public java.lang.String getValue()
                          throws java.io.IOException
Gets the value of the Cell.

Throws:
java.io.IOException

getRowIndex

public int getRowIndex()
Gets the row index of the cell. The value of the RowIndex starts from "1".


getColumnIndex

public int getColumnIndex()
Gets the column index of the cell. The value of the ColumnIndex starts from "1".


openShape

public Shape openShape(int index)
                throws java.lang.Exception
Opens the specified shape and returns a Shape object.

If the specified Shape exists, this method will return the Shape object.

Parameters:
index - The index of the Shape. It is the same as the Table index defined in Microsoft Word. Both of them start from "1".
Returns:
Returns the Shape object.
Throws:
java.lang.Exception