jxl.format
Class UnderlineStyle
java.lang.Object
|
+--jxl.format.UnderlineStyle
- public final class UnderlineStyle
- extends java.lang.Object
Enumeration class which contains the various underline styles available
within the standard Excel UnderlineStyle palette
Constructor Summary |
protected |
UnderlineStyle(int val,
java.lang.String s)
Private constructor |
Method Summary |
java.lang.String |
getDescription()
Gets the string description for display purposes |
static UnderlineStyle |
getStyle(int val)
Gets the UnderlineStyle from the value |
int |
getValue()
Gets the value of this style. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
value
private int value
- The internal numerical representation of the UnderlineStyle
string
private java.lang.String string
- The display string for the underline style. Used when presenting the
format information
styles
private static UnderlineStyle[] styles
- The list of UnderlineStyles
NO_UNDERLINE
public static final UnderlineStyle NO_UNDERLINE
SINGLE
public static final UnderlineStyle SINGLE
DOUBLE
public static final UnderlineStyle DOUBLE
SINGLE_ACCOUNTING
public static final UnderlineStyle SINGLE_ACCOUNTING
DOUBLE_ACCOUNTING
public static final UnderlineStyle DOUBLE_ACCOUNTING
UnderlineStyle
protected UnderlineStyle(int val,
java.lang.String s)
- Private constructor
- Parameters:
val
- s
- the display string
getValue
public int getValue()
- Gets the value of this style. This is the value that is written to
the generated Excel file
- Returns:
- the binary value
getDescription
public java.lang.String getDescription()
- Gets the string description for display purposes
- Returns:
- the string description
getStyle
public static UnderlineStyle getStyle(int val)
- Gets the UnderlineStyle from the value
- Parameters:
val
- - Returns:
- the UnderlineStyle with that value