|
xelem.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.fountain.xelem.excel.AbstractXLElement
nl.fountain.xelem.excel.ss.SSTable
public class SSTable
An implementation of the XLElement Table.
| 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 |
| Constructor Summary | |
|---|---|
SSTable()
Constructs a new SSTable. |
|
| 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. |
Element |
assemble(Element parent,
GIO gio)
Assembles the state of this XLElement and all of it's children into an Element. |
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 columnIndex)
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. |
String |
getNameSpace()
Gets the namespace of this XLElement. |
String |
getPrefix()
Gets the prefix of this XLElement. |
Row |
getRowAt(int rowIndex)
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. |
String |
getTagName()
Gets the tagname (localName) of this XLElement. |
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 columnIndex)
Removes the column at the given index. |
Row |
removeRowAt(int rowIndex)
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 |
setAttributes(Attributes attrs)
Does effectively nothing. |
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 class nl.fountain.xelem.excel.AbstractXLElement |
|---|
addElementComment, assemble, createAttributeNS, createAttributeNS, createElementNS, createElementNS, createElementNS, createElementNS, getElementComments, setChildElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.fountain.xelem.excel.XLElement |
|---|
addElementComment, getElementComments, setChildElement |
| Constructor Detail |
|---|
public SSTable()
Worksheet.getTable()| Method Detail |
|---|
public void setStyleID(String id)
Table
setStyleID in interface Tableid - the id of the style to employ on this table.public String getStyleID()
Table
getStyleID in interface Tablenull if no styleID was previously set.public void setDefaultRowHeight(double points)
Table
setDefaultRowHeight in interface Tablepoints - The default row height.public void setDefaultColumnWidth(double points)
Table
setDefaultColumnWidth in interface Tablepoints - The default column width.public Column addColumn()
TableTable.maxColumnIndex() + 1.
addColumn in interface Tablepublic Column addColumnAt(int index)
Table
addColumnAt in interface Tableindex - The index (column number) of the column.
public Column addColumn(Column column)
TableTable.maxColumnIndex() + 1.
addColumn in interface Tablecolumn - The column to be added.
public Column addColumnAt(int index,
Column column)
Table
addColumnAt in interface Tableindex - The index (column number) of the column.column - The column to be added.
public Column removeColumnAt(int columnIndex)
Table
removeColumnAt in interface TablecolumnIndex - The index (column number) of the column.
null if the index was not occupied
by a column.public Column getColumnAt(int columnIndex)
Table
getColumnAt in interface TablecolumnIndex - The index (column number) of the column.
null.public boolean hasColumnAt(int index)
Table
hasColumnAt in interface Tablepublic Collection<Column> getColumns()
Table
getColumns in interface Tablepublic Row addRow()
TableTable.maxRowIndex() + 1.
addRow in interface Tablepublic Row addRowAt(int index)
Table
addRowAt in interface Tableindex - The index (row number) of the row.
public Row addRow(Row row)
TableTable.maxRowIndex() + 1.
addRow in interface Tablerow - The row to be added.
public Row addRowAt(int index,
Row row)
Table
addRowAt in interface Tableindex - The index (row number) of the row.row - The row to be added.
public Row removeRowAt(int rowIndex)
Table
removeRowAt in interface TablerowIndex - The index (row number) of the row.
null if the index was not occupied
by a row.public Collection<Row> getRows()
Table
getRows in interface Tablepublic TreeMap<Integer,Row> getRowMap()
Table
getRowMap in interface Tablepublic Row getRowAt(int rowIndex)
Table
getRowAt in interface TablerowIndex - The index (row number) of the row.
nullpublic boolean hasRowAt(int index)
Table
hasRowAt in interface Tablepublic int rowCount()
Table
rowCount in interface Tablepublic int columnCount()
Table
columnCount in interface Tablepublic boolean hasChildren()
Table
hasChildren in interface Tablepublic int maxCellIndex()
Table
maxCellIndex in interface Tablepublic int maxRowIndex()
Table
maxRowIndex in interface Tablepublic int maxColumnIndex()
Table
maxColumnIndex in interface Tablepublic Iterator<Row> rowIterator()
Table
rowIterator in interface Tablepublic Iterator<Column> columnIterator()
Table
columnIterator in interface Tablepublic String getTagName()
XLElement
getTagName in interface XLElementpublic String getNameSpace()
XLElement
getNameSpace in interface XLElementpublic String getPrefix()
XLElement
getPrefix in interface XLElement
public Element assemble(Element parent,
GIO gio)
XLElementElement. Attaches the new element to it's
parent-element if needed.
assemble in interface XLElementparent - the parent-element to which the new formed element
will be appendedgio - a global information object
public void setAttributes(Attributes attrs)
AbstractXLElement
setAttributes in interface XLElementsetAttributes in class AbstractXLElementattrs - the attributes found on the elementpublic int getExpandedColumnCount()
Table
getExpandedColumnCount in interface Tablepublic int getExpandedRowCount()
Table
getExpandedRowCount in interface Table
|
xelem.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||