Package org.apache.poi.ss.usermodel
Class CellCopyPolicy
- java.lang.Object
-
- org.apache.poi.ss.usermodel.CellCopyPolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCellCopyPolicy.Builder
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_CONDENSE_ROWS_POLICYstatic booleanDEFAULT_COPY_CELL_FORMULA_POLICYstatic booleanDEFAULT_COPY_CELL_STYLE_POLICYstatic booleanDEFAULT_COPY_CELL_VALUE_POLICYstatic booleanDEFAULT_COPY_HYPERLINK_POLICYstatic booleanDEFAULT_COPY_MERGED_REGIONS_POLICYstatic booleanDEFAULT_COPY_ROW_HEIGHT_POLICYstatic booleanDEFAULT_MERGE_HYPERLINK_POLICY
-
Constructor Summary
Constructors Constructor Description CellCopyPolicy()Default CellCopyPolicy, uses default policy For custom CellCopyPolicy, useCellCopyPolicy.BuilderclassCellCopyPolicy(CellCopyPolicy other)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CellCopyPolicy.BuildercreateBuilder()booleanisCondenseRows()If condenseRows is true, a discontinuity in srcRows will be removed when copied to destinationbooleanisCopyCellFormula()booleanisCopyCellStyle()booleanisCopyCellValue()booleanisCopyHyperlink()booleanisCopyMergedRegions()booleanisCopyRowHeight()booleanisMergeHyperlink()voidsetCondenseRows(boolean condenseRows)If condenseRows is true, a discontinuity in srcRows will be removed when copied to destinationvoidsetCopyCellFormula(boolean copyCellFormula)voidsetCopyCellStyle(boolean copyCellStyle)voidsetCopyCellValue(boolean copyCellValue)voidsetCopyHyperlink(boolean copyHyperlink)voidsetCopyMergedRegions(boolean copyMergedRegions)voidsetCopyRowHeight(boolean copyRowHeight)voidsetMergeHyperlink(boolean mergeHyperlink)
-
-
-
Field Detail
-
DEFAULT_COPY_CELL_VALUE_POLICY
public static final boolean DEFAULT_COPY_CELL_VALUE_POLICY
- See Also:
- Constant Field Values
-
DEFAULT_COPY_CELL_STYLE_POLICY
public static final boolean DEFAULT_COPY_CELL_STYLE_POLICY
- See Also:
- Constant Field Values
-
DEFAULT_COPY_CELL_FORMULA_POLICY
public static final boolean DEFAULT_COPY_CELL_FORMULA_POLICY
- See Also:
- Constant Field Values
-
DEFAULT_COPY_HYPERLINK_POLICY
public static final boolean DEFAULT_COPY_HYPERLINK_POLICY
- See Also:
- Constant Field Values
-
DEFAULT_MERGE_HYPERLINK_POLICY
public static final boolean DEFAULT_MERGE_HYPERLINK_POLICY
- See Also:
- Constant Field Values
-
DEFAULT_COPY_ROW_HEIGHT_POLICY
public static final boolean DEFAULT_COPY_ROW_HEIGHT_POLICY
- See Also:
- Constant Field Values
-
DEFAULT_CONDENSE_ROWS_POLICY
public static final boolean DEFAULT_CONDENSE_ROWS_POLICY
- See Also:
- Constant Field Values
-
DEFAULT_COPY_MERGED_REGIONS_POLICY
public static final boolean DEFAULT_COPY_MERGED_REGIONS_POLICY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CellCopyPolicy
public CellCopyPolicy()
Default CellCopyPolicy, uses default policy For custom CellCopyPolicy, useCellCopyPolicy.Builderclass
-
CellCopyPolicy
public CellCopyPolicy(CellCopyPolicy other)
Copy constructor- Parameters:
other- policy to copy
-
-
Method Detail
-
createBuilder
public CellCopyPolicy.Builder createBuilder()
-
isCopyCellValue
public boolean isCopyCellValue()
- Returns:
- the copyCellValue
-
setCopyCellValue
public void setCopyCellValue(boolean copyCellValue)
- Parameters:
copyCellValue- the copyCellValue to set
-
isCopyCellStyle
public boolean isCopyCellStyle()
- Returns:
- the copyCellStyle
-
setCopyCellStyle
public void setCopyCellStyle(boolean copyCellStyle)
- Parameters:
copyCellStyle- the copyCellStyle to set
-
isCopyCellFormula
public boolean isCopyCellFormula()
- Returns:
- the copyCellFormula
-
setCopyCellFormula
public void setCopyCellFormula(boolean copyCellFormula)
- Parameters:
copyCellFormula- the copyCellFormula to set
-
isCopyHyperlink
public boolean isCopyHyperlink()
- Returns:
- the copyHyperlink
-
setCopyHyperlink
public void setCopyHyperlink(boolean copyHyperlink)
- Parameters:
copyHyperlink- the copyHyperlink to set
-
isMergeHyperlink
public boolean isMergeHyperlink()
- Returns:
- the mergeHyperlink
-
setMergeHyperlink
public void setMergeHyperlink(boolean mergeHyperlink)
- Parameters:
mergeHyperlink- the mergeHyperlink to set
-
isCopyRowHeight
public boolean isCopyRowHeight()
- Returns:
- the copyRowHeight
-
setCopyRowHeight
public void setCopyRowHeight(boolean copyRowHeight)
- Parameters:
copyRowHeight- the copyRowHeight to set
-
isCondenseRows
public boolean isCondenseRows()
If condenseRows is true, a discontinuity in srcRows will be removed when copied to destinationFor example:
Sheet.copyRows({Row(1), Row(2), Row(5)}, 11, policy) results in rows 1, 2, and 5 being copied to rows 11, 12, and 13 if condenseRows is True, or rows 11, 11, 15 if condenseRows is false
- Returns:
- the condenseRows setting
-
setCondenseRows
public void setCondenseRows(boolean condenseRows)
If condenseRows is true, a discontinuity in srcRows will be removed when copied to destinationFor example:
Sheet.copyRows({Row(1), Row(2), Row(5)}, 11, policy) results in rows 1, 2, and 5 being copied to rows 11, 12, and 13 if condenseRows is True, or rows 11, 11, 15 if condenseRows is false
- Parameters:
condenseRows- the condenseRows to set
-
isCopyMergedRegions
public boolean isCopyMergedRegions()
- Returns:
- the copyMergedRegions
-
setCopyMergedRegions
public void setCopyMergedRegions(boolean copyMergedRegions)
- Parameters:
copyMergedRegions- the copyMergedRegions to set
-
-