public class XSSFTable extends POIXMLDocumentPart
DEFAULT_XML_OPTIONS
Constructor and Description |
---|
XSSFTable() |
XSSFTable(PackagePart part,
PackageRelationship rel) |
Modifier and Type | Method and Description |
---|---|
XSSFTableColumn |
addTableColumn() |
void |
clearAutoFilter() |
protected void |
commit()
Save the content in the underlying package part.
|
XSSFAutoFilter |
createAutoFilter() |
XSSFTableStyleInfo |
createTableStyleInfo() |
XSSFAutoFilter |
getAutoFilter() |
java.lang.String |
getCommonXpath()
Calculates the xpath of the root element for the table.
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTable |
getCTTable() |
java.lang.String |
getDisplayName() |
CellReference |
getEndCellReference() |
int |
getHeaderRowCount() |
java.lang.String |
getName() |
long |
getNumerOfMappedColumns() |
int |
getRowCount() |
CellReference |
getStartCellReference() |
java.util.List<XSSFTableColumn> |
getTableColumns() |
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyleInfo |
getTableStyleInfo() |
int |
getTotalsRowCount() |
java.util.List<XSSFXmlColumnPr> |
getXmlColumnPrs() |
XSSFSheet |
getXSSFSheet() |
boolean |
mapsTo(long id)
Checks if this Table element contains even a single mapping to the map identified by id
|
void |
readFrom(java.io.InputStream is) |
void |
setDisplayName(java.lang.String name)
Changes the display name of the Table
|
void |
setHeaderRowCount(int count) |
void |
setId(int id) |
void |
setName(java.lang.String name)
Changes the name of the Table
|
void |
setRef(java.lang.String ref) |
void |
setTotalsRowCount(int count) |
void |
writeTo(java.io.OutputStream out) |
addRelation, clearMemoryPackagePart, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationCounter, getRelationId, getRelations, getTargetPart, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, toString
public XSSFTable()
public XSSFTable(PackagePart part, PackageRelationship rel) throws java.io.IOException
java.io.IOException
public void readFrom(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public XSSFSheet getXSSFSheet()
public void writeTo(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
protected void commit() throws java.io.IOException
POIXMLDocumentPart
protected void commit() throws IOException {
PackagePart part = getPackagePart();
OutputStream out = part.getOutputStream();
XmlObject bean = getXmlBean(); //the "model" which holds changes in memory
bean.save(out, DEFAULT_XML_OPTIONS);
out.close();
}
commit
in class POIXMLDocumentPart
java.io.IOException
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTable getCTTable()
public boolean mapsTo(long id)
id
- the XSSFMap IDpublic java.lang.String getCommonXpath()
public java.util.List<XSSFXmlColumnPr> getXmlColumnPrs()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String name)
public long getNumerOfMappedColumns()
public CellReference getStartCellReference()
public CellReference getEndCellReference()
public int getRowCount()
public int getHeaderRowCount()
public int getTotalsRowCount()
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyleInfo getTableStyleInfo()
public java.util.List<XSSFTableColumn> getTableColumns()
public XSSFTableColumn addTableColumn()
public XSSFAutoFilter getAutoFilter()
public void setRef(java.lang.String ref)
public void setTotalsRowCount(int count)
public void setHeaderRowCount(int count)
public XSSFTableStyleInfo createTableStyleInfo()
public void clearAutoFilter()
public XSSFAutoFilter createAutoFilter()
public void setId(int id)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.