aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ss
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2009-06-04 00:06:31 +0000
committerJosh Micich <josh@apache.org>2009-06-04 00:06:31 +0000
commit1c5653ec5d71641fe51cf3633c3986837fd5942d (patch)
treef48cff9ac253618a86e82bee0f89605eb8d80796 /src/java/org/apache/poi/ss
parent8d91fa9c11741ef561af064ba13b9647486db5a9 (diff)
downloadpoi-1c5653ec5d71641fe51cf3633c3986837fd5942d.tar.gz
poi-1c5653ec5d71641fe51cf3633c3986837fd5942d.zip
rolling back r781622
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@781623 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/ss')
-rw-r--r--src/java/org/apache/poi/ss/formula/FormulaParser.java2
-rw-r--r--src/java/org/apache/poi/ss/usermodel/Cell.java18
-rw-r--r--src/java/org/apache/poi/ss/usermodel/Sheet.java27
3 files changed, 9 insertions, 38 deletions
diff --git a/src/java/org/apache/poi/ss/formula/FormulaParser.java b/src/java/org/apache/poi/ss/formula/FormulaParser.java
index 5366b6028d..ec2252d5e0 100644
--- a/src/java/org/apache/poi/ss/formula/FormulaParser.java
+++ b/src/java/org/apache/poi/ss/formula/FormulaParser.java
@@ -557,7 +557,7 @@ public final class FormulaParser {
// which will either be named ranges or functions
StringBuilder sb = new StringBuilder();
- if (!isValidDefinedNameChar(look)) {
+ if (!Character.isLetter(look)) {
throw expected("number, string, or defined name");
}
while (isValidDefinedNameChar(look)) {
diff --git a/src/java/org/apache/poi/ss/usermodel/Cell.java b/src/java/org/apache/poi/ss/usermodel/Cell.java
index 0a76061e45..aa1e8c3955 100644
--- a/src/java/org/apache/poi/ss/usermodel/Cell.java
+++ b/src/java/org/apache/poi/ss/usermodel/Cell.java
@@ -149,19 +149,11 @@ public interface Cell {
void setCellValue(double 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.
+ * 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.
*/
void setCellValue(Date value);
diff --git a/src/java/org/apache/poi/ss/usermodel/Sheet.java b/src/java/org/apache/poi/ss/usermodel/Sheet.java
index 9ee99a4f2a..ffeb96abda 100644
--- a/src/java/org/apache/poi/ss/usermodel/Sheet.java
+++ b/src/java/org/apache/poi/ss/usermodel/Sheet.java
@@ -406,8 +406,8 @@ public interface Sheet extends Iterable<Row> {
PrintSetup getPrintSetup();
/**
- * Gets the user model for the default document header. If it does not exist, the footer will
- * be created. See {@link #hasHeader()} and {@link #removeHeader()}. <br/>
+ * Gets the user model for the default document header.
+ * <p>
* Note that XSSF offers more kinds of document headers than HSSF does
* </p>
* @return the document header.
@@ -415,33 +415,12 @@ public interface Sheet extends Iterable<Row> {
Header getHeader();
/**
- * @return <code>true</code> if this sheet has a header
- */
-// boolean hasHeader();
-
- /**
- * Removes the header if it exists. If it does not exist, this method does nothing.
- */
-// void removeHeader();
-
- /**
- * Gets the user model for the default document footer. If it does not exist, the footer will
- * be created. See {@link #hasFooter()} and {@link #removeFooter()}. <br/>
+ * Gets the user model for the default document footer.
* Note that XSSF offers more kinds of document footers than HSSF does.
*
* @return the document footer.
*/
Footer getFooter();
-
- /**
- * @return <code>true</code> if this sheet has a footer
- */
-// boolean hasFooter();
-
- /**
- * Removes the footer if it exists. If it does not exist, this method does nothing.
- */
-// void removeFooter();
/**
* Sets a flag indicating whether this sheet is selected.