public class ContentElement extends Object implements OdsElement
| Modifier and Type | Method and Description |
|---|---|
void |
addAutoFilter(AutoFilter autoFilter)
Add an autoFilter to a table
|
TableCellStyle |
addChildCellStyle(TableCellStyle style,
CellType type)
Create an automatic style for this TableCellStyle and this type of cell.
|
void |
addEvents(ScriptEventListener... events)
Add some events to the document
|
void |
addPilotTable(PilotTable pilotTable)
Add a new pilot table
|
Table |
addTable(String name,
int rowCapacity,
int columnCapacity)
Deprecated.
use `addTable(table)`
|
boolean |
addTable(Table table) |
Table |
createTable(String name,
int rowCapacity,
int columnCapacity)
Create a new table
|
Table |
getLastTable() |
StylesContainer |
getStyleTagsContainer() |
Table |
getTable(int tableIndex) |
Table |
getTable(String name) |
int |
getTableCount() |
List<Table> |
getTables() |
void |
write(XMLUtil util,
ZipUTF8Writer writer) |
void |
writeEvents(XMLUtil util,
ZipUTF8Writer writer) |
void |
writePostamble(XMLUtil util,
ZipUTF8Writer writer)
Write the postamble into the given writer.
|
void |
writePreamble(XMLUtil util,
ZipUTF8Writer writer)
Write the preamble into the given writer.
|
public TableCellStyle addChildCellStyle(TableCellStyle style, CellType type)
style - the style of the cell (color, data style, etc.)type - the type of the cell@Deprecated public Table addTable(String name, int rowCapacity, int columnCapacity)
name - the name of the table to createcolumnCapacity - the initial capacity in columns: this will be allocated at table
creationrowCapacity - the initial capacity in rows: this will be allocated at table creationpublic boolean addTable(Table table)
table - the tablepublic Table createTable(String name, int rowCapacity, int columnCapacity)
name - the name of the new tablerowCapacity - the row capacitycolumnCapacity - the column capacitypublic Table getLastTable()
public StylesContainer getStyleTagsContainer()
public Table getTable(int tableIndex)
tableIndex - an index of the tablepublic Table getTable(String name)
name - the name of the table to findpublic int getTableCount()
public void write(XMLUtil util, ZipUTF8Writer writer) throws IOException
write in interface OdsElementutil - an util tool to write XML datawriter - the writer to which write the elementIOException - if the element can't be writtenpublic void writePreamble(XMLUtil util, ZipUTF8Writer writer) throws IOException
util - an XML utilwriter - the destinationIOException - if the preamble was not writtenpublic void writePostamble(XMLUtil util, ZipUTF8Writer writer) throws IOException
util - an XML utilwriter - the destinationIOException - if the postamble could not be writtenpublic void writeEvents(XMLUtil util, ZipUTF8Writer writer) throws IOException
IOExceptionpublic void addAutoFilter(AutoFilter autoFilter)
autoFilter - the auto filterpublic void addEvents(ScriptEventListener... events)
events - the events to addpublic void addPilotTable(PilotTable pilotTable)
pilotTable - the filterCopyright © 2016–2021. All rights reserved.