|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.table.Table
public final class Table
Table on a page of spreadsheet (xlsx, ods) documents.
Method Summary | |
---|---|
void |
addMergedCell(MergedCell cell)
Add merged cell to a table. |
static Table |
createInternalInstance()
Internal method for creating table. |
Cell |
getCell(int columnIndex,
int rowIndex)
Get cell by column and row indexes. |
Cell |
getCell(java.lang.String cellName)
Get cell by name. |
Cell |
getCellRef(int columnIndex,
int rowIndex)
Get cell by column and row index. |
Column |
getColumn(int columnIndex)
Get column by index. |
Column |
getColumn(java.lang.String columnName)
Get column by the specified name. |
int |
getColumnCount()
Get number of columns in the table. |
Column |
getColumnRef(int columnIndex)
Get column by index. |
java.util.List<Column> |
getColumns()
Get list of all non-empty or earlier accessed columns in a table. |
java.util.List<MergedCell> |
getMergedCells()
Get list of all merged cells in a table. |
Row |
getRow(int rowIndex)
Get row by index. |
int |
getRowCount()
Get number of rows in the table. |
Row |
getRowRef(int rowIndex)
Get row by index. |
java.util.Collection<Row> |
getRows()
Get list of all non-empty or earlier accessed rows in a table. |
boolean |
hasMergedCells()
Determines whether the table has merged cells. |
boolean |
isEmpty()
Determines whether the table is empty. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final Table createInternalInstance()
public java.util.List<Column> getColumns()
public Column getColumn(java.lang.String columnName)
columnName
- column name.public Column getColumn(int columnIndex)
columnIndex
- column index.public java.util.Collection<Row> getRows()
public Row getRow(int rowIndex)
rowIndex
- row index.public int getRowCount()
public int getColumnCount()
public void addMergedCell(MergedCell cell)
cell
- new merged cell.public Cell getCell(java.lang.String cellName)
cellName
- cell name.public Cell getCell(int columnIndex, int rowIndex)
columnIndex
- zero-based column index.rowIndex
- zero-based row index.public java.util.List<MergedCell> getMergedCells()
public boolean hasMergedCells()
public boolean isEmpty()
public Cell getCellRef(int columnIndex, int rowIndex)
columnIndex
- column index.rowIndex
- row index.public Row getRowRef(int rowIndex)
rowIndex
- row index.public Column getColumnRef(int columnIndex)
columnIndex
- column index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |