public class TableReader
extends java.lang.Object
This class reads a table from a table:table or table:sub-table element and presents it as an n by m grid. In addition it gives access to the absolute and relative widths of tables, columns and cells.
Constructor and Description |
---|
TableReader(OfficeReader ofr,
org.w3c.dom.Element tableNode)
The constructor reads a table from a table:table or table:sub-table
node.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
getCell(int nRow,
int nCol) |
java.lang.String |
getCellStyleName(int nRow,
int nCol) |
java.lang.String |
getCellWidth(int nRow,
int nCol) |
TableLine |
getCol(int nCol) |
int |
getColCount() |
java.lang.String |
getColumnWidth(int nCol) |
int |
getFirstBodyRow() |
int |
getMaxColCount() |
int |
getMaxRowCount() |
TableRange |
getPrintRange(int nIndex) |
int |
getPrintRangeCount() |
java.lang.String |
getRelColumnWidth(int nCol) |
java.lang.String |
getRelTableWidth() |
TableLine |
getRow(int nRow) |
int |
getRowCount() |
java.lang.String |
getTableName() |
java.lang.String |
getTableStyleName() |
java.lang.String |
getTableWidth() |
boolean |
isSubTable() |
public TableReader(OfficeReader ofr, org.w3c.dom.Element tableNode)
The constructor reads a table from a table:table or table:sub-table node.
ofr
- the OfficeReader object to get style information fromtableNode
- the table nodepublic boolean isSubTable()
public java.lang.String getTableName()
public java.lang.String getTableStyleName()
public java.lang.String getTableWidth()
public java.lang.String getRelTableWidth()
public int getRowCount()
public int getMaxRowCount()
public int getFirstBodyRow()
public int getColCount()
public int getMaxColCount()
public java.lang.String getColumnWidth(int nCol)
public java.lang.String getRelColumnWidth(int nCol)
public org.w3c.dom.Element getCell(int nRow, int nCol)
public java.lang.String getCellStyleName(int nRow, int nCol)
public java.lang.String getCellWidth(int nRow, int nCol)
public TableLine getRow(int nRow)
public TableLine getCol(int nCol)
public int getPrintRangeCount()
public TableRange getPrintRange(int nIndex)