|
xelem.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Table
Represents the Table element.
| Field Summary |
|---|
| Fields inherited from interface nl.fountain.xelem.excel.XLElement |
|---|
PREFIX_HTML, PREFIX_O, PREFIX_SS, PREFIX_X, XMLNS, XMLNS_HTML, XMLNS_O, XMLNS_SS, XMLNS_X |
| Method Summary | |
|---|---|
Column |
addColumn()
Adds a new Column to this table. |
Column |
addColumn(Column column)
Adds the given column to this table. |
Column |
addColumnAt(int index)
Adds a new Column at the given index to this table. |
Column |
addColumnAt(int index,
Column column)
Adds the given Column at the given index to this table. |
Row |
addRow()
Adds a new Row to this table. |
Row |
addRow(Row row)
Adds the given row to this table. |
Row |
addRowAt(int index)
Adds a new Row at the given index to this table. |
Row |
addRowAt(int index,
Row row)
Adds the given Row at the given index to this table. |
int |
columnCount()
Returns the number of columns in this table. |
Iterator<Column> |
columnIterator()
Returns an iterator for the columns in this table. |
Column |
getColumnAt(int index)
Gets the column at the given index. |
Collection<Column> |
getColumns()
Gets all the columns of this table in the order of their index. |
int |
getExpandedColumnCount()
An indicator of the index of the right-most column on this table. |
int |
getExpandedRowCount()
An indicator of the index of the bottom row on this table. |
Row |
getRowAt(int index)
Gets the row at the given index. |
TreeMap<Integer,Row> |
getRowMap()
Gets all the rows of this table. |
Collection<Row> |
getRows()
Gets all the rows of this table in the order of their index. |
String |
getStyleID()
Gets the ss:StyleID which was set on this table. |
boolean |
hasChildren()
Indicates whether this table has any rows or columns. |
boolean |
hasColumnAt(int index)
Specifies whether this table has a column at the given index. |
boolean |
hasRowAt(int index)
Specifies whether this table has a row at the given index. |
int |
maxCellIndex()
Gets the highest index number of all the cells of all the rows in this table: the right-most cell. |
int |
maxColumnIndex()
Gets the highest index number of the columns in this table. |
int |
maxRowIndex()
Gets the highest index number of the rows in this table. |
Column |
removeColumnAt(int index)
Removes the column at the given index. |
Row |
removeRowAt(int index)
Removes the row at the given index. |
int |
rowCount()
Returns the number of rows in this table. |
Iterator<Row> |
rowIterator()
Returns an iterator for the rows in this table. |
void |
setDefaultColumnWidth(double points)
Sets the default column width. |
void |
setDefaultRowHeight(double points)
Sets the default row height. |
void |
setStyleID(String id)
Sets the ss:StyleID on this table. |
| Methods inherited from interface nl.fountain.xelem.excel.XLElement |
|---|
addElementComment, assemble, getElementComments, getNameSpace, getPrefix, getTagName, setAttributes, setChildElement |
| Method Detail |
|---|
void setStyleID(String id)
id - the id of the style to employ on this table.String getStyleID()
null if no styleID was previously set.void setDefaultRowHeight(double points)
points - The default row height.void setDefaultColumnWidth(double points)
points - The default column width.Column addColumn()
maxColumnIndex() + 1.
IndexOutOfBoundsException - If the calculated index is less then
Worksheet.firstColumn or greater
then Worksheet.lastColumn.Column addColumnAt(int index)
index - The index (column number) of the column.
IndexOutOfBoundsException - If the calculated index is less then
Worksheet.firstColumn or greater
then Worksheet.lastColumn.Column addColumn(Column column)
maxColumnIndex() + 1.
column - The column to be added.
IndexOutOfBoundsException - If the calculated index is less then
Worksheet.firstColumn or greater
then Worksheet.lastColumn.
Column addColumnAt(int index,
Column column)
index - The index (column number) of the column.column - The column to be added.
IndexOutOfBoundsException - If the calculated index is less then
Worksheet.firstColumn or greater
then Worksheet.lastColumn.Column removeColumnAt(int index)
index - The index (column number) of the column.
null if the index was not occupied
by a column.Column getColumnAt(int index)
index - The index (column number) of the column.
null.
IndexOutOfBoundsException - If the calculated index is less then
Worksheet.firstColumn or greater
then Worksheet.lastColumn.boolean hasColumnAt(int index)
Collection<Column> getColumns()
Iterator<Column> columnIterator()
Row addRow()
maxRowIndex() + 1.
IndexOutOfBoundsException - If the calculated index is less then
Worksheet.firstRow or greater
then Worksheet.lastRow.Row addRowAt(int index)
index - The index (row number) of the row.
IndexOutOfBoundsException - If the calculated index is less then
Worksheet.firstRow or greater
then Worksheet.lastRow.Row addRow(Row row)
maxRowIndex() + 1.
row - The row to be added.
IndexOutOfBoundsException - If the calculated index is less then
Worksheet.firstRow or greater
then Worksheet.lastRow.
Row addRowAt(int index,
Row row)
index - The index (row number) of the row.row - The row to be added.
IndexOutOfBoundsException - If the calculated index is less then
Worksheet.firstRow or greater
then Worksheet.lastRow.Row removeRowAt(int index)
index - The index (row number) of the row.
null if the index was not occupied
by a row.Row getRowAt(int index)
index - The index (row number) of the row.
null
IndexOutOfBoundsException - If the calculated index is less then
Worksheet.firstRow or greater
then Worksheet.lastRow.boolean hasRowAt(int index)
Collection<Row> getRows()
TreeMap<Integer,Row> getRowMap()
Iterator<Row> rowIterator()
int rowCount()
int columnCount()
boolean hasChildren()
int maxCellIndex()
int maxRowIndex()
int maxColumnIndex()
int getExpandedColumnCount()
int getExpandedRowCount()
|
xelem.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||