aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/interfaces-jdk14/org
diff options
context:
space:
mode:
authorUgo Cei <ugo@apache.org>2008-01-24 10:53:39 +0000
committerUgo Cei <ugo@apache.org>2008-01-24 10:53:39 +0000
commite378439912477fdf499e38678d257b6ee5e22579 (patch)
tree5751a21e7d6ac3b59721619887f742fa7b422f5a /src/ooxml/interfaces-jdk14/org
parent8488dfe816980ad91622e56444cf5ef904f7465e (diff)
downloadpoi-e378439912477fdf499e38678d257b6ee5e22579.tar.gz
poi-e378439912477fdf499e38678d257b6ee5e22579.zip
Make HSSF* classes compile with JDK 1.4 interfaces.
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@614838 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/interfaces-jdk14/org')
-rw-r--r--src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Cell.java52
-rw-r--r--src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Font.java98
2 files changed, 148 insertions, 2 deletions
diff --git a/src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Cell.java b/src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Cell.java
index 805a6b1c83..65f6447203 100644
--- a/src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Cell.java
+++ b/src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Cell.java
@@ -17,4 +17,54 @@
package org.apache.poi.ss.usermodel;
-public interface Cell {}
+public interface Cell {
+
+ /**
+ * Numeric Cell type (0)
+ * @see #setCellType(int)
+ * @see #getCellType()
+ */
+
+ public final static int CELL_TYPE_NUMERIC = 0;
+
+ /**
+ * String Cell type (1)
+ * @see #setCellType(int)
+ * @see #getCellType()
+ */
+
+ public final static int CELL_TYPE_STRING = 1;
+
+ /**
+ * Formula Cell type (2)
+ * @see #setCellType(int)
+ * @see #getCellType()
+ */
+
+ public final static int CELL_TYPE_FORMULA = 2;
+
+ /**
+ * Blank Cell type (3)
+ * @see #setCellType(int)
+ * @see #getCellType()
+ */
+
+ public final static int CELL_TYPE_BLANK = 3;
+
+ /**
+ * Boolean Cell type (4)
+ * @see #setCellType(int)
+ * @see #getCellType()
+ */
+
+ public final static int CELL_TYPE_BOOLEAN = 4;
+
+ /**
+ * Error Cell type (5)
+ * @see #setCellType(int)
+ * @see #getCellType()
+ */
+
+ public final static int CELL_TYPE_ERROR = 5;
+
+}
diff --git a/src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Font.java b/src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Font.java
index aad44e30c8..f19bac4cc2 100644
--- a/src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Font.java
+++ b/src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Font.java
@@ -17,4 +17,100 @@
package org.apache.poi.ss.usermodel;
-public interface Font {}
+public interface Font {
+
+ /**
+ * Arial font
+ */
+
+ public final static String FONT_ARIAL = "Arial";
+
+ /**
+ * Normal boldness (not bold)
+ */
+
+ public final static short BOLDWEIGHT_NORMAL = 0x190;
+
+ /**
+ * Bold boldness (bold)
+ */
+
+ public final static short BOLDWEIGHT_BOLD = 0x2bc;
+
+ /**
+ * normal type of black color.
+ */
+
+ public final static short COLOR_NORMAL = 0x7fff;
+
+ /**
+ * Dark Red color
+ */
+
+ public final static short COLOR_RED = 0xa;
+
+ /**
+ * no type offsetting (not super or subscript)
+ */
+
+ public final static short SS_NONE = 0;
+
+ /**
+ * superscript
+ */
+
+ public final static short SS_SUPER = 1;
+
+ /**
+ * subscript
+ */
+
+ public final static short SS_SUB = 2;
+
+ /**
+ * not underlined
+ */
+
+ public final static byte U_NONE = 0;
+
+ /**
+ * single (normal) underline
+ */
+
+ public final static byte U_SINGLE = 1;
+
+ /**
+ * double underlined
+ */
+
+ public final static byte U_DOUBLE = 2;
+
+ /**
+ * accounting style single underline
+ */
+
+ public final static byte U_SINGLE_ACCOUNTING = 0x21;
+
+ /**
+ * accounting style double underline
+ */
+
+ public final static byte U_DOUBLE_ACCOUNTING = 0x22;
+
+ /**
+ * ANSI character set
+ */
+ public final static byte ANSI_CHARSET = 0;
+
+ /**
+ * Default character set.
+ */
+ public final static byte DEFAULT_CHARSET = 1;
+
+ /**
+ * Symbol character set
+ */
+ public final static byte SYMBOL_CHARSET = 2;
+
+
+}