bug 59264: copy cell border style codes (from CellStyle.java) into BorderStyle enum

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1737752 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-04-04 23:27:20 +00:00
parent ace7982898
commit def818e036
1 changed files with 25 additions and 27 deletions

View File

@ -27,85 +27,83 @@ package org.apache.poi.ss.usermodel;
/** /**
* No border * No border
*/ */
NONE(0x0),
NONE,
/** /**
* Thin border * Thin border
*/ */
THIN(0x1),
THIN,
/** /**
* Medium border * Medium border
*/ */
MEDIUM(0x2),
MEDIUM,
/** /**
* dash border * dash border
*/ */
DASHED(0x3),
DASHED,
/** /**
* dot border * dot border
*/ */
DOTTED(0x4),
DOTTED,
/** /**
* Thick border * Thick border
*/ */
THICK(0x5),
THICK,
/** /**
* double-line border * double-line border
*/ */
DOUBLE(0x6),
DOUBLE,
/** /**
* hair-line border * hair-line border
*/ */
HAIR(0x7),
HAIR,
/** /**
* Medium dashed border * Medium dashed border
*/ */
MEDIUM_DASHED(0x8),
MEDIUM_DASHED,
/** /**
* dash-dot border * dash-dot border
*/ */
DASH_DOT(0x9),
DASH_DOT,
/** /**
* medium dash-dot border * medium dash-dot border
*/ */
MEDIUM_DASH_DOT(0xA),
MEDIUM_DASH_DOT,
/** /**
* dash-dot-dot border * dash-dot-dot border
*/ */
DASH_DOT_DOT(0xB),
DASH_DOT_DOT,
/** /**
* medium dash-dot-dot border * medium dash-dot-dot border
* @deprecated POI 3.15 beta 1. Use {@link MEDIUM_DASH_DOT_DOT} instead.
*/ */
MEDIUM_DASH_DOT_DOTC(0xC),
MEDIUM_DASH_DOT_DOTC, MEDIUM_DASH_DOT_DOT(0xC),
/** /**
* slanted dash-dot border * slanted dash-dot border
*/ */
SLANTED_DASH_DOT(0xD);
SLANTED_DASH_DOT;
private final short code;
BorderStyle(int code) {
this.code = (short)code;
}
public short getCode() {
return code;
}
} }