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() |
String |
getCommonXpath()
Calculates the xpath of the root element for the table.
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTable |
getCTTable() |
String |
getDisplayName() |
CellReference |
getEndCellReference() |
int |
getHeaderRowCount() |
String |
getName() |
long |
getNumerOfMappedColumns() |
int |
getRowCount() |
CellReference |
getStartCellReference() |
List<XSSFTableColumn> |
getTableColumns() |
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyleInfo |
getTableStyleInfo() |
int |
getTotalsRowCount() |
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 |
setHeaderRowCount(int count) |
void |
setId(int id) |
void |
setName(String name)
Changes the name of the Table
|
void |
setRef(String ref) |
void |
setTotalsRowCount(int count) |
void |
writeTo(OutputStream out) |
addRelation, clearMemoryPackagePart, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationCounter, getRelationId, getRelations, getTargetPart, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, 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 int getHeaderRowCount()
public int getTotalsRowCount()
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyleInfo getTableStyleInfo()
public List<XSSFTableColumn> getTableColumns()
public XSSFTableColumn addTableColumn()
public XSSFAutoFilter getAutoFilter()
public void setRef(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 © 2020. All rights reserved.