Class CellCopyContext

java.lang.Object
org.apache.poi.ss.usermodel.CellCopyContext

@Beta public class CellCopyContext extends Object
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 Details

    • CellCopyContext

      public CellCopyContext()
  • Method Details

    • getMappedStyle

      public CellStyle getMappedStyle(CellStyle srcStyle)
      Parameters:
      srcStyle - style in source workbook
      Returns:
      style that srcStyle is mapped to or null if no mapping exists
    • putMappedStyle

      public void putMappedStyle(CellStyle srcStyle, CellStyle mappedStyle)
      Parameters:
      srcStyle - style in source workbook
      mappedStyle - equivalent style in destination workbook