|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.poi.POIXMLDocumentPart
org.zkoss.poi.xssf.usermodel.XSSFSheet
org.zkoss.zss.model.impl.XSSFSheetImpl
public class XSSFSheetImpl
Implementation of Worksheet based on XSSFSheet.
| Field Summary |
|---|
| Fields inherited from class org.zkoss.poi.xssf.usermodel.XSSFSheet |
|---|
sheet, worksheet |
| Fields inherited from class org.zkoss.poi.POIXMLDocumentPart |
|---|
DEFAULT_XML_OPTIONS |
| Fields inherited from interface org.zkoss.poi.ss.usermodel.Sheet |
|---|
BottomMargin, FooterMargin, HeaderMargin, LeftMargin, PANE_LOWER_LEFT, PANE_LOWER_RIGHT, PANE_UPPER_LEFT, PANE_UPPER_RIGHT, RightMargin, TopMargin |
| Constructor Summary | |
|---|---|
XSSFSheetImpl()
|
|
XSSFSheetImpl(org.zkoss.poi.openxml4j.opc.PackagePart part,
org.zkoss.poi.openxml4j.opc.PackageRelationship rel)
Creates an XSSFSheet representing the given package part and relationship. |
|
| Method Summary | |
|---|---|
void |
addMerged(org.zkoss.poi.ss.util.CellRangeAddress addr)
Add a new merged region. |
int |
addMergedRegion(org.zkoss.poi.ss.util.CellRangeAddress region)
|
void |
deleteMerged(org.zkoss.poi.ss.util.CellRangeAddress addr)
Delete a merged region. |
void |
evalAll()
Evaluate all formulas of the associated sheet. |
Book |
getBook()
Returns the associated ZK Spreadsheet Book of this ZK Spreadsheet Sheet. |
java.util.List<org.zkoss.poi.ss.usermodel.Chart> |
getCharts()
Returns charts in this ZK Spreadsheet sheet. |
DrawingManager |
getDrawingManager()
Return associated drawing manager. |
org.zkoss.poi.xssf.usermodel.XSSFDrawing |
getDrawingPatriarch()
|
org.zkoss.poi.ss.util.CellRangeAddress |
getMerged(int row,
int col)
|
java.util.List<org.zkoss.poi.ss.usermodel.Picture> |
getPictures()
Returns pictures in this ZK Spreadsheet sheet. |
java.lang.String |
getUuid()
Returns the universal unique id of the associated Sheet. |
void |
initMerged()
Initialize the merge cells. |
boolean |
isEvalAll()
Returns whether the associated sheet has evaluated all formulas. |
boolean |
isFreezePanes()
|
void |
removeMergedRegion(int index)
|
java.util.List<org.zkoss.poi.ss.util.CellRangeAddress[]> |
shiftBothRange(int tRow,
int bRow,
int nRow,
int lCol,
int rCol,
int nCol,
boolean moveComments)
|
void |
shiftCells(org.zkoss.poi.xssf.usermodel.XSSFRow row,
int startCol,
int endCol,
int n,
boolean clearRest)
Shifts cells between startColumn and endColumn n number of columns. |
java.util.List<org.zkoss.poi.ss.util.CellRangeAddress[]> |
shiftColumnsOnly(int startCol,
int endCol,
int n,
boolean copyColWidth,
boolean resetOriginalColWidth,
boolean moveComments,
boolean clearRest,
int copyOrigin)
Shifts columns between startCol and endCol n number of columns. |
java.util.List<org.zkoss.poi.ss.util.CellRangeAddress[]> |
shiftColumnsRange(int startCol,
int endCol,
int n,
int tRow,
int bRow,
boolean copyColWidth,
boolean resetOriginalColWidth,
boolean moveComments,
boolean clearRest,
int copyOrigin)
Shifts columns of a range between startCol and endCol n number of columns in the boundary of top row(tRow) and bottom row(bRow). |
java.util.List<org.zkoss.poi.ss.util.CellRangeAddress[]> |
shiftRowsOnly(int startRow,
int endRow,
int n,
boolean copyRowHeight,
boolean resetOriginalRowHeight,
boolean moveComments,
boolean clearRest,
int copyOrigin)
Shifts rows between startRow and endRow n number of rows. |
java.util.List<org.zkoss.poi.ss.util.CellRangeAddress[]> |
shiftRowsRange(int startRow,
int endRow,
int n,
int lCol,
int rCol,
boolean copyRowHeight,
boolean resetOriginalRowHeight,
boolean moveComments,
boolean clearRest,
int copyOrigin)
Shifts rows of a range between startRow and endRow n number of rows in the boundary of left column(lCol) and right column(rCol). |
void |
whenRenameSheet(java.lang.String oldname,
java.lang.String newname)
Callback when the name of a sheet in the associated book changes. |
| Methods inherited from class org.zkoss.poi.xssf.usermodel.XSSFSheet |
|---|
addHyperlink, addValidationData, autoSizeColumn, autoSizeColumn, commit, createComment, createDrawingPatriarch, createFreezePane, createFreezePane, createPivotTable, createRow, createSplitPane, createTable, disableLocking, enableLocking, findEndOfRowOutlineGroup, getActiveCell, getAutobreaks, getAutoFilter, getCellComment, getColumnBreaks, getColumnHelper, getColumnStyle, getColumnWidth, getCommentsTable, getCTDrawing, getCTLegacyDrawing, getCTWorksheet, getDataValidation, getDataValidationHelper, getDataValidations, getDefaultColumnWidth, getDefaultRowHeight, getDefaultRowHeightInPoints, getDisplayGuts, getEvenFooter, getEvenHeader, getFirstFooter, getFirstHeader, getFirstRowNum, getFitToPage, getFooter, getForceFormulaRecalculation, getHeader, getHorizontallyCenter, getHyperlink, getLastRowNum, getLeftCol, getMargin, getMergedRegion, getNumberOfComments, getNumHyperlinks, getNumMergedRegions, getOddFooter, getOddHeader, getPaneInformation, getPhysicalNumberOfRows, getPivotTables, getPrintSetup, getProtect, getRow, getRowBreaks, getRows, getRowSumsBelow, getRowSumsRight, getScenarioProtect, getSheetConditionalFormatting, getSheetName, getTables, getTopRow, getVerticallyCenter, getVMLDrawing, getWorkbook, groupColumn, groupRow, hasComments, isAutoFilterLocked, isAutoFilterMode, isColumnBroken, isColumnHidden, isDeleteColumnsLocked, isDeleteRowsLocked, isDisplayFormulas, isDisplayGridlines, isDisplayRowColHeadings, isDisplayZeros, isFilterMode, isFormatCellsLocked, isFormatColumnsLocked, isFormatRowsLocked, isInsertColumnsLocked, isInsertHyperlinksLocked, isInsertRowsLocked, isObjectsLocked, isPivotTablesLocked, isPrintGridlines, isRightToLeft, isRowBroken, isScenariosLocked, isSelected, isSelectLockedCellsLocked, isSelectUnlockedCellsLocked, isSheetLocked, isSortLocked, iterator, lockAutoFilter, lockDeleteColumns, lockDeleteRows, lockFormatCells, lockFormatColumns, lockFormatRows, lockInsertColumns, lockInsertHyperlinks, lockInsertRows, lockObjects, lockPivotTables, lockScenarios, lockSelectLockedCells, lockSelectUnlockedCells, lockSort, onDocumentCreate, onDocumentRead, protectSheet, read, removeArrayFormula, removeAutoFilter, removeColumnBreak, removeRow, removeRowBreak, removeValidationData, rowIterator, setActiveCell, setArrayFormula, setAutobreaks, setAutoFilter, setAutoFilterMode, setCellComment, setColumnBreak, setColumnGroupCollapsed, setColumnHidden, setColumnWidth, setDefaultColumnStyle, setDefaultColumnWidth, setDefaultRowHeight, setDefaultRowHeightInPoints, setDisplayFormulas, setDisplayGridlines, setDisplayGuts, setDisplayRowColHeadings, setDisplayZeros, setFitToPage, setForceFormulaRecalculation, setHorizontallyCenter, setMargin, setPrintGridlines, setRightToLeft, setRowBreak, setRowGroupCollapsed, setRows, setRowSumsBelow, setRowSumsRight, setSelected, setTabColor, setVerticallyCenter, setZoom, setZoom, shiftRows, shiftRows, showInPane, ungroupColumn, ungroupRow, write |
| Methods inherited from class org.zkoss.poi.POIXMLDocumentPart |
|---|
addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationCounter, getRelationId, getRelations, getTargetPart, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.zkoss.zss.model.Worksheet |
|---|
getDataValidations, getPivotTables |
| Methods inherited from interface org.zkoss.poi.ss.usermodel.Sheet |
|---|
addValidationData, autoSizeColumn, autoSizeColumn, createDrawingPatriarch, createFreezePane, createFreezePane, createPivotTable, createRow, createSplitPane, getAutobreaks, getAutoFilter, getCellComment, getColumnBreaks, getColumnStyle, getColumnWidth, getDataValidation, getDataValidationHelper, getDefaultColumnWidth, getDefaultRowHeight, getDefaultRowHeightInPoints, getDisplayGuts, getFirstRowNum, getFitToPage, getFooter, getForceFormulaRecalculation, getHeader, getHorizontallyCenter, getLastRowNum, getLeftCol, getMargin, getMergedRegion, getNumMergedRegions, getPaneInformation, getPhysicalNumberOfRows, getPrintSetup, getProtect, getRow, getRowBreaks, getRowSumsBelow, getRowSumsRight, getScenarioProtect, getSheetConditionalFormatting, getSheetName, getTopRow, getVerticallyCenter, getWorkbook, groupColumn, groupRow, isAutoFilterMode, isColumnBroken, isColumnHidden, isDisplayFormulas, isDisplayGridlines, isDisplayRowColHeadings, isDisplayZeros, isPrintGridlines, isRightToLeft, isRowBroken, isSelected, protectSheet, removeArrayFormula, removeAutoFilter, removeColumnBreak, removeRow, removeRowBreak, removeValidationData, rowIterator, setArrayFormula, setAutobreaks, setAutoFilter, setColumnBreak, setColumnGroupCollapsed, setColumnHidden, setColumnWidth, setDefaultColumnStyle, setDefaultColumnWidth, setDefaultRowHeight, setDefaultRowHeightInPoints, setDisplayFormulas, setDisplayGridlines, setDisplayGuts, setDisplayRowColHeadings, setDisplayZeros, setFitToPage, setForceFormulaRecalculation, setHorizontallyCenter, setMargin, setPrintGridlines, setRightToLeft, setRowBreak, setRowGroupCollapsed, setRowSumsBelow, setRowSumsRight, setSelected, setVerticallyCenter, setZoom, shiftRows, shiftRows, showInPane, ungroupColumn, ungroupRow |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Constructor Detail |
|---|
public XSSFSheetImpl()
public XSSFSheetImpl(org.zkoss.poi.openxml4j.opc.PackagePart part,
org.zkoss.poi.openxml4j.opc.PackageRelationship rel)
part - - The package part that holds xml data represenring this sheet.rel - - the relationship of the given package part in the underlying OPC package| Method Detail |
|---|
public int addMergedRegion(org.zkoss.poi.ss.util.CellRangeAddress region)
addMergedRegion in interface org.zkoss.poi.ss.usermodel.SheetaddMergedRegion in class org.zkoss.poi.xssf.usermodel.XSSFSheetpublic void removeMergedRegion(int index)
removeMergedRegion in interface org.zkoss.poi.ss.usermodel.SheetremoveMergedRegion in class org.zkoss.poi.xssf.usermodel.XSSFSheetpublic Book getBook()
WorksheetBook of this ZK Spreadsheet Sheet.
getBook in interface WorksheetBook of this ZK Spreadsheet Sheet.public java.util.List<org.zkoss.poi.ss.usermodel.Picture> getPictures()
Worksheet
getPictures in interface Worksheetpublic java.util.List<org.zkoss.poi.ss.usermodel.Chart> getCharts()
Worksheet
getCharts in interface Worksheet
public java.util.List<org.zkoss.poi.ss.util.CellRangeAddress[]> shiftRowsOnly(int startRow,
int endRow,
int n,
boolean copyRowHeight,
boolean resetOriginalRowHeight,
boolean moveComments,
boolean clearRest,
int copyOrigin)
Additionally shifts merged regions that are completely defined in these rows (ie. merged 2 cells on a row to be shifted).
startRow - the row to start shiftingendRow - the row to end shiftingn - the number of rows to shiftcopyRowHeight - whether to copy the row height during the shiftresetOriginalRowHeight - whether to set the original row's height to the default
public java.util.List<org.zkoss.poi.ss.util.CellRangeAddress[]> shiftRowsRange(int startRow,
int endRow,
int n,
int lCol,
int rCol,
boolean copyRowHeight,
boolean resetOriginalRowHeight,
boolean moveComments,
boolean clearRest,
int copyOrigin)
Additionally shifts merged regions that are completely defined in these rows (ie. merged 2 cells on a row to be shifted).
TODO Might want to add bounds checking here
startRow - the row to start shiftingendRow - the row to end shiftingn - the number of rows to shiftlCol - left boundary columnrCol - right boundary columncopyRowHeight - whether to copy the row height during the shiftresetOriginalRowHeight - whether to set the original row's height to the defaultmoveComments - whether to move comments at the same time as the cells they are attached toclearRest - whether clear the rest row after shifted endRow (meaningful only when n < 0)copyOrigin - copy format from the above/below row for the inserted rows(meaningful only when n > 0)
public java.util.List<org.zkoss.poi.ss.util.CellRangeAddress[]> shiftColumnsOnly(int startCol,
int endCol,
int n,
boolean copyColWidth,
boolean resetOriginalColWidth,
boolean moveComments,
boolean clearRest,
int copyOrigin)
Additionally shifts merged regions that are completely defined in these columns (ie. merged 2 cells on a column to be shifted).
startCol - the column to start shiftingendCol - the column to end shifting; -1 means using the last available column numbern - the number of rows to shiftcopyColWidth - whether to copy the column width during the shiftresetOriginalColWidth - whether to set the original column's height to the defaultmoveComments - whether to move comments at the same time as the cells they are attached toclearRest - whether clear cells after the shifted endCol (meaningful only when n < 0)copyOrigin - copy format from the left/right column for the inserted column(meaningful only when n > 0)
public void shiftCells(org.zkoss.poi.xssf.usermodel.XSSFRow row,
int startCol,
int endCol,
int n,
boolean clearRest)
startCol - the column to start shiftingendCol - the column to end shiftingn - the number of columns to shiftclearRest - whether clear the rest cells after the shifted endCol
public java.util.List<org.zkoss.poi.ss.util.CellRangeAddress[]> shiftColumnsRange(int startCol,
int endCol,
int n,
int tRow,
int bRow,
boolean copyColWidth,
boolean resetOriginalColWidth,
boolean moveComments,
boolean clearRest,
int copyOrigin)
Additionally shifts merged regions that are completely defined in these columns (ie. merged 2 cells on a column to be shifted) within the specified boundary rows.
startCol - the column to start shiftingendCol - the column to end shifting; -1 means using the last available column numbern - the number of rows to shifttRow - top boundary row indexbRow - bottom boundary row indexcopyColWidth - whether to copy the column width during the shiftresetOriginalColWidth - whether to set the original column's height to the defaultmoveComments - whether to move comments at the same time as the cells they are attached toclearRest - whether clear cells after the shifted endCol (meaningful only when n < 0)copyOrigin - copy format from the left/right column for the inserted column(meaningful only when n > 0)
public java.util.List<org.zkoss.poi.ss.util.CellRangeAddress[]> shiftBothRange(int tRow,
int bRow,
int nRow,
int lCol,
int rCol,
int nCol,
boolean moveComments)
public boolean isFreezePanes()
public org.zkoss.poi.xssf.usermodel.XSSFDrawing getDrawingPatriarch()
public void evalAll()
SheetCtrl
evalAll in interface SheetCtrlpublic boolean isEvalAll()
SheetCtrl
isEvalAll in interface SheetCtrlpublic java.lang.String getUuid()
SheetCtrl
getUuid in interface SheetCtrlpublic void addMerged(org.zkoss.poi.ss.util.CellRangeAddress addr)
SheetCtrl
addMerged in interface SheetCtrladdr - merged regionpublic void deleteMerged(org.zkoss.poi.ss.util.CellRangeAddress addr)
SheetCtrl
deleteMerged in interface SheetCtrladdr - to be removed merged region
public org.zkoss.poi.ss.util.CellRangeAddress getMerged(int row,
int col)
getMerged in interface SheetCtrlpublic void initMerged()
SheetCtrl
initMerged in interface SheetCtrlpublic DrawingManager getDrawingManager()
SheetCtrl
getDrawingManager in interface SheetCtrl
public void whenRenameSheet(java.lang.String oldname,
java.lang.String newname)
SheetCtrl
whenRenameSheet in interface SheetCtrloldname - old sheet namenewname - new sheet name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||