|
xelem.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.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 Table
id
- the id of the style to employ on this table.public String getStyleID()
Table
getStyleID
in interface Table
null
if no styleID was previously set.public void setDefaultRowHeight(double points)
Table
setDefaultRowHeight
in interface Table
points
- The default row height.public void setDefaultColumnWidth(double points)
Table
setDefaultColumnWidth
in interface Table
points
- The default column width.public Column addColumn()
Table
Table.maxColumnIndex()
+ 1.
addColumn
in interface Table
public Column addColumnAt(int index)
Table
addColumnAt
in interface Table
index
- The index (column number) of the column.
public Column addColumn(Column column)
Table
Table.maxColumnIndex()
+ 1.
addColumn
in interface Table
column
- The column to be added.
public Column addColumnAt(int index, Column column)
Table
addColumnAt
in interface Table
index
- The index (column number) of the column.column
- The column to be added.
public Column removeColumnAt(int columnIndex)
Table
removeColumnAt
in interface Table
columnIndex
- 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 Table
columnIndex
- The index (column number) of the column.
null
.public boolean hasColumnAt(int index)
Table
hasColumnAt
in interface Table
public Collection<Column> getColumns()
Table
getColumns
in interface Table
public Row addRow()
Table
Table.maxRowIndex()
+ 1.
addRow
in interface Table
public Row addRowAt(int index)
Table
addRowAt
in interface Table
index
- The index (row number) of the row.
public Row addRow(Row row)
Table
Table.maxRowIndex()
+ 1.
addRow
in interface Table
row
- The row to be added.
public Row addRowAt(int index, Row row)
Table
addRowAt
in interface Table
index
- The index (row number) of the row.row
- The row to be added.
public Row removeRowAt(int rowIndex)
Table
removeRowAt
in interface Table
rowIndex
- 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 Table
public TreeMap<Integer,Row> getRowMap()
Table
getRowMap
in interface Table
public Row getRowAt(int rowIndex)
Table
getRowAt
in interface Table
rowIndex
- The index (row number) of the row.
null
public boolean hasRowAt(int index)
Table
hasRowAt
in interface Table
public int rowCount()
Table
rowCount
in interface Table
public int columnCount()
Table
columnCount
in interface Table
public boolean hasChildren()
Table
hasChildren
in interface Table
public int maxCellIndex()
Table
maxCellIndex
in interface Table
public int maxRowIndex()
Table
maxRowIndex
in interface Table
public int maxColumnIndex()
Table
maxColumnIndex
in interface Table
public Iterator<Row> rowIterator()
Table
rowIterator
in interface Table
public Iterator<Column> columnIterator()
Table
columnIterator
in interface Table
public String getTagName()
XLElement
getTagName
in interface XLElement
public String getNameSpace()
XLElement
getNameSpace
in interface XLElement
public String getPrefix()
XLElement
getPrefix
in interface XLElement
public Element assemble(Element parent, GIO gio)
XLElement
Element
. Attaches the new element to it's
parent-element if needed.
assemble
in interface XLElement
parent
- 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 XLElement
setAttributes
in class AbstractXLElement
attrs
- the attributes found on the elementpublic int getExpandedColumnCount()
Table
getExpandedColumnCount
in interface Table
public 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 |