Uses of Class
org.apache.poi.ss.usermodel.CellCopyPolicy
Packages that use CellCopyPolicy
Package
Description
The usermodel package maps HSSF low level structures to familiar workbook/sheet model
-
Uses of CellCopyPolicy in org.apache.poi.hssf.usermodel
Methods in org.apache.poi.hssf.usermodel with parameters of type CellCopyPolicyModifier and TypeMethodDescriptionvoidHSSFRow.copyRowFrom(Row srcRow, CellCopyPolicy policy) Copy the cells from srcRow to this row If this row is not a blank row, this will merge the two rows, overwriting the cells in this row with the cells in srcRow If srcRow is null, overwrite cells in destination row with blank values, styles, etc per cell copy policy srcRow may be from a different sheet in the same workbookvoidHSSFRow.copyRowFrom(Row srcRow, CellCopyPolicy policy, CellCopyContext context) Copy the cells from srcRow to this row. -
Uses of CellCopyPolicy in org.apache.poi.ss.usermodel
Methods in org.apache.poi.ss.usermodel that return CellCopyPolicyConstructors in org.apache.poi.ss.usermodel with parameters of type CellCopyPolicy -
Uses of CellCopyPolicy in org.apache.poi.ss.util
Methods in org.apache.poi.ss.util with parameters of type CellCopyPolicyModifier and TypeMethodDescriptionstatic voidCellUtil.copyCell(Cell srcCell, Cell destCell, CellCopyPolicy policy, CellCopyContext context) Copy cell value, formula and style, from srcCell per cell copy policy If srcCell is null, clears the cell value and cell style per cell copy policy. -
Uses of CellCopyPolicy in org.apache.poi.xssf.usermodel
Methods in org.apache.poi.xssf.usermodel with parameters of type CellCopyPolicyModifier and TypeMethodDescriptionvoidXSSFCell.copyCellFrom(Cell srcCell, CellCopyPolicy policy) Copy cell value, formula and style, from srcCell per cell copy policy If srcCell is null, clears the cell value and cell style per cell copy policy This does not shift references in formulas.voidXSSFRow.copyRowFrom(Row srcRow, CellCopyPolicy policy) Copy the cells from srcRow to this row.voidXSSFRow.copyRowFrom(Row srcRow, CellCopyPolicy policy, CellCopyContext context) Copy the cells from srcRow to this row If this row is not a blank row, this will merge the two rows, overwriting the cells in this row with the cells in srcRow If srcRow is null, overwrite cells in destination row with blank values, styles, etc per cell copy policy srcRow may be from a different sheet in the same workbook Note that if you are copying from a non-XSSF row then you will need to disable style copying in theCellCopyPolicy(XSSF styles are not compatible with HSSF styles, for instance).voidXSSFSheet.copyRows(int srcStartRow, int srcEndRow, int destStartRow, CellCopyPolicy cellCopyPolicy) Copies rows between srcStartRow and srcEndRow to the same sheet, starting at destStartRow Convenience function forXSSFSheet.copyRows(List, int, CellCopyPolicy)Equivalent to copyRows(getRows(srcStartRow, srcEndRow, false), destStartRow, cellCopyPolicy)voidXSSFSheet.copyRows(int srcStartRow, int srcEndRow, int destStartRow, CellCopyPolicy cellCopyPolicy, CellCopyContext context) Copies rows between srcStartRow and srcEndRow to the same sheet, starting at destStartRow Convenience function forXSSFSheet.copyRows(List, int, CellCopyPolicy, CellCopyContext)Equivalent to copyRows(getRows(srcStartRow, srcEndRow, false), destStartRow, cellCopyPolicy)voidXSSFSheet.copyRows(List<? extends Row> srcRows, int destStartRow, CellCopyPolicy policy) copyRows rows from srcRows to this sheet starting at destStartRow Additionally copies merged regions that are completely defined in these rows (ie.voidXSSFSheet.copyRows(List<? extends Row> srcRows, int destStartRow, CellCopyPolicy policy, CellCopyContext context) copyRows rows from srcRows to this sheet starting at destStartRow Additionally copies merged regions that are completely defined in these rows (ie.