aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2009-06-04 00:08:33 +0000
committerJosh Micich <josh@apache.org>2009-06-04 00:08:33 +0000
commit279211b52d5e5fef9fa800158dcbc896fbbf5c8d (patch)
treee70c7d81b2117608543121d97f1ef2c2e6cdf690
parent1c5653ec5d71641fe51cf3633c3986837fd5942d (diff)
downloadpoi-279211b52d5e5fef9fa800158dcbc896fbbf5c8d.tar.gz
poi-279211b52d5e5fef9fa800158dcbc896fbbf5c8d.zip
Fix for javadoc error in Cell.setCellValue(Date) found by Mike Curwen
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@781624 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/poi/ss/usermodel/Cell.java18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/java/org/apache/poi/ss/usermodel/Cell.java b/src/java/org/apache/poi/ss/usermodel/Cell.java
index aa1e8c3955..0a76061e45 100644
--- a/src/java/org/apache/poi/ss/usermodel/Cell.java
+++ b/src/java/org/apache/poi/ss/usermodel/Cell.java
@@ -149,11 +149,19 @@ public interface Cell {
void setCellValue(double value);
/**
- * Set a boolean value for the cell
- *
- * @param value the boolean value to set this cell to. For formulas we'll set the
- * precalculated value, for booleans we'll set its value. For other types we
- * will change the cell to a boolean cell and set its value.
+ * Converts the supplied date to its equivalent Excel numeric value and sets
+ * that into the cell.
+ * <p/>
+ * <b>Note</b> - There is actually no 'DATE' cell type in Excel. In many
+ * cases (when entering date values), Excel automatically adjusts the
+ * <i>cell style</i> to some date format, creating the illusion that the cell
+ * data type is now something besides {@link Cell#CELL_TYPE_NUMERIC}. POI
+ * does not attempt to replicate this behaviour. To make a numeric cell
+ * display as a date, use {@link #setCellStyle(CellStyle)} etc.
+ *
+ * @param value the numeric value to set this cell to. For formulas we'll set the
+ * precalculated value, for numerics we'll set its value. For other types we
+ * will change the cell to a numerics cell and set its value.
*/
void setCellValue(Date value);