summaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-10-07 13:46:09 +0000
committerPJ Fanning <fanningpj@apache.org>2021-10-07 13:46:09 +0000
commitce05cc8dda65de532911e70b93b9e8bdf55f0315 (patch)
tree9084d89ce3fa5e7e74d3d7f09bfbb62dcac49128 /poi
parent36cf0e943e7a66f2f2fadd76bfd1c24a2d158c46 (diff)
downloadpoi-ce05cc8dda65de532911e70b93b9e8bdf55f0315.tar.gz
poi-ce05cc8dda65de532911e70b93b9e8bdf55f0315.zip
javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/ss/usermodel/CellCopyPolicy.java12
-rw-r--r--poi/src/main/java/org/apache/poi/ss/util/CellUtil.java3
2 files changed, 12 insertions, 3 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/CellCopyPolicy.java b/poi/src/main/java/org/apache/poi/ss/usermodel/CellCopyPolicy.java
index 8aea65ad23..722d697f3a 100644
--- a/poi/src/main/java/org/apache/poi/ss/usermodel/CellCopyPolicy.java
+++ b/poi/src/main/java/org/apache/poi/ss/usermodel/CellCopyPolicy.java
@@ -255,17 +255,25 @@ public class CellCopyPolicy {
}
/**
- * If condenseRows is true, a discontinuities in srcRows will be removed when copied to destination
+ * If condenseRows is true, a discontinuity in srcRows will be removed when copied to destination
+ * <p>
* For example:
+ * <p>
* 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
- * @return the condenseRows
+ * @return the condenseRows setting
*/
public boolean isCondenseRows() {
return condenseRows;
}
/**
+ * If condenseRows is true, a discontinuity in srcRows will be removed when copied to destination
+ * <p>
+ * For example:
+ * <p>
+ * 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
* @param condenseRows the condenseRows to set
*/
public void setCondenseRows(boolean condenseRows) {
diff --git a/poi/src/main/java/org/apache/poi/ss/util/CellUtil.java b/poi/src/main/java/org/apache/poi/ss/util/CellUtil.java
index ea54ee8ff2..283d7d4de7 100644
--- a/poi/src/main/java/org/apache/poi/ss/util/CellUtil.java
+++ b/poi/src/main/java/org/apache/poi/ss/util/CellUtil.java
@@ -186,7 +186,8 @@ public final class CellUtil {
* Note that if you are copying from a source cell from a different type of then you may need to disable style copying
* in the {@link CellCopyPolicy} (HSSF styles are not compatible with XSSF styles, for instance).
*
- * This does not shift references in formulas.
+ * This does not shift references in formulas. The <code>copyRowFrom</code> method on <code>XSSFRow</code>
+ * and <code>HSSFRow</code> does attempt to shift references in formulas.
*
* @param srcCell The cell to take value, formula and style from
* @param destCell The cell to copy to