net.sf.jett.model
Enum FontUnderline

java.lang.Object
  extended by java.lang.Enum<FontUnderline>
      extended by net.sf.jett.model.FontUnderline
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FontUnderline>

public enum FontUnderline
extends java.lang.Enum<FontUnderline>

FontUnderlines represent the built-in underline names that correspond with Excel's underlining scheme. These are used in conjunction with the underline property in the style tag. Legal values are the names of the enumeration objects, without underscores, case insensitive, e.g. "single" == "Single" == "SINGLE".

Since:
0.4.0
Author:
Randy Gettman
See Also:
StyleTag, StyleParser.PROPERTY_FONT_UNDERLINE

Enum Constant Summary
DOUBLE
           
DOUBLEACCOUNTING
           
NONE
           
SINGLE
           
SINGLEACCOUNTING
           
 
Method Summary
 byte getIndex()
          Returns the index.
 java.lang.String toString()
          Returns the name, in all lowercase, no underscores or spaces.
static FontUnderline valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FontUnderline[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SINGLE

public static final FontUnderline SINGLE

DOUBLE

public static final FontUnderline DOUBLE

SINGLEACCOUNTING

public static final FontUnderline SINGLEACCOUNTING

DOUBLEACCOUNTING

public static final FontUnderline DOUBLEACCOUNTING

NONE

public static final FontUnderline NONE
Method Detail

values

public static final FontUnderline[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(FontUnderline c : FontUnderline.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static FontUnderline valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getIndex

public byte getIndex()
Returns the index.

Returns:
The index.

toString

public java.lang.String toString()
Returns the name, in all lowercase, no underscores or spaces.

Overrides:
toString in class java.lang.Enum<FontUnderline>
Returns:
The name, in all lowercase, no underscores or spaces.


Copyright © 2012-2013 Jett Team. All Rights Reserved.