Top Description Fields Constructors Methods
org.apache.poi.ss.usermodel

public Class CellCopyContext

extends Object
Class Inheritance
Annotations
@Beta
Imports
org.apache.poi.util.Beta, java.util.HashMap, .Map

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.

Field Summary

Modifier and TypeField and Description
private final Map<CellStyle, CellStyle>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public CellStyle

Returns:

style that srcStyle is mapped to or null if no mapping exists
getMappedStyle
(CellStyle
style in source workbook
srcStyle
)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

styleMapback to summary
private final Map<CellStyle, CellStyle> styleMap

Constructor Detail

CellCopyContextback to summary
public CellCopyContext()

Method Detail

getMappedStyleback to summary
public CellStyle getMappedStyle(CellStyle srcStyle)
Parameters
srcStyle:CellStyle

style in source workbook

Returns:CellStyle

style that srcStyle is mapped to or null if no mapping exists

putMappedStyleback to summary
public void putMappedStyle(CellStyle srcStyle, CellStyle mappedStyle)
Parameters
srcStyle:CellStyle

style in source workbook

mappedStyle:CellStyle

equivalent style in destination workbook