public class XSSFTable extends POIXMLDocumentPart
DEFAULT_XML_OPTIONS| Constructor and Description |
|---|
XSSFTable() |
XSSFTable(PackagePart part,
PackageRelationship rel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commit()
Save the content in the underlying package part.
|
String |
getCommonXpath()
Calculates the xpath of the root element for the table.
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTable |
getCTTable() |
String |
getDisplayName() |
CellReference |
getEndCellReference() |
String |
getName() |
long |
getNumerOfMappedColumns() |
int |
getRowCount() |
CellReference |
getStartCellReference() |
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(InputStream is) |
void |
setDisplayName(String name)
Changes the display name of the Table
|
void |
setName(String name)
Changes the name of the Table
|
void |
updateHeaders()
Synchronize table headers with cell values in the parent sheet.
|
void |
writeTo(OutputStream out) |
addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationId, getRelations, getTargetPart, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, toStringpublic XSSFTable()
public XSSFTable(PackagePart part, PackageRelationship rel) throws IOException
IOExceptionpublic void readFrom(InputStream is) throws IOException
IOExceptionpublic XSSFSheet getXSSFSheet()
public void writeTo(OutputStream out) throws IOException
IOExceptionprotected void commit()
throws 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 POIXMLDocumentPartIOExceptionpublic org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTable getCTTable()
public boolean mapsTo(long id)
id - the XSSFMap IDpublic String getCommonXpath()
public List<XSSFXmlColumnPr> getXmlColumnPrs()
public String getName()
public void setName(String name)
public String getDisplayName()
public void setDisplayName(String name)
public long getNumerOfMappedColumns()
public CellReference getStartCellReference()
public CellReference getEndCellReference()
public int getRowCount()
public void updateHeaders()
Copyright © 2020. All rights reserved.