poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1737752 - /poi/trunk/src/java/org/apache/poi/ss/usermodel/BorderStyle.java
Date Mon, 04 Apr 2016 23:27:20 GMT
Author: onealj
Date: Mon Apr  4 23:27:20 2016
New Revision: 1737752

URL: http://svn.apache.org/viewvc?rev=1737752&view=rev
Log:
bug 59264: copy cell border style codes (from CellStyle.java) into BorderStyle enum

Modified:
    poi/trunk/src/java/org/apache/poi/ss/usermodel/BorderStyle.java

Modified: poi/trunk/src/java/org/apache/poi/ss/usermodel/BorderStyle.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/BorderStyle.java?rev=1737752&r1=1737751&r2=1737752&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/BorderStyle.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/BorderStyle.java Mon Apr  4 23:27:20 2016
@@ -27,85 +27,83 @@ package org.apache.poi.ss.usermodel;
     /**
      * No border
      */
-
-    NONE,
+    NONE(0x0),
 
     /**
      * Thin border
      */
-
-    THIN,
+    THIN(0x1),
 
     /**
      * Medium border
      */
-
-    MEDIUM,
+    MEDIUM(0x2),
 
     /**
      * dash border
      */
-
-    DASHED,
+    DASHED(0x3),
 
     /**
      * dot border
      */
-
-    DOTTED,
+    DOTTED(0x4),
 
     /**
      * Thick border
      */
-
-    THICK,
+    THICK(0x5),
 
     /**
      * double-line border
      */
-
-    DOUBLE,
+    DOUBLE(0x6),
 
     /**
      * hair-line border
      */
-
-    HAIR,
+    HAIR(0x7),
 
     /**
      * Medium dashed border
      */
-
-    MEDIUM_DASHED,
+    MEDIUM_DASHED(0x8),
 
     /**
      * dash-dot border
      */
-
-    DASH_DOT,
+    DASH_DOT(0x9),
 
     /**
      * medium dash-dot border
      */
-
-    MEDIUM_DASH_DOT,
+    MEDIUM_DASH_DOT(0xA),
 
     /**
      * dash-dot-dot border
      */
-
-    DASH_DOT_DOT,
+    DASH_DOT_DOT(0xB),
 
     /**
      * medium dash-dot-dot border
+     * @deprecated POI 3.15 beta 1. Use {@link MEDIUM_DASH_DOT_DOT} instead.
      */
-
-    MEDIUM_DASH_DOT_DOTC,
+    MEDIUM_DASH_DOT_DOTC(0xC),
+    MEDIUM_DASH_DOT_DOT(0xC),
 
     /**
      * slanted dash-dot border
      */
+    SLANTED_DASH_DOT(0xD);
+
+
+    private final short code;
 
-    SLANTED_DASH_DOT;
+    BorderStyle(int code) {
+        this.code = (short)code;
+    }
 
+    public short getCode() {
+        return code;
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message