Package org.apache.poi.ss.usermodel
Class CellCopyContext
java.lang.Object
org.apache.poi.ss.usermodel.CellCopyContext
Used when the cells are being copied from one workbook to another. Data like cell styles
need to be managed so that we do not create too many items in the destination workbook.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMappedStyle(CellStyle srcStyle) voidputMappedStyle(CellStyle srcStyle, CellStyle mappedStyle)
-
Constructor Details
-
CellCopyContext
public CellCopyContext()
-
-
Method Details
-
getMappedStyle
- Parameters:
srcStyle- style in source workbook- Returns:
- style that srcStyle is mapped to or null if no mapping exists
-
putMappedStyle
- Parameters:
srcStyle- style in source workbookmappedStyle- equivalent style in destination workbook
-