net.sf.jett.model
Enum BorderType

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

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

BorderTypes represent the built-in border type names that correspond with Excel's border type scheme. These are used in conjunction with the border-related properties in the style tag. Legal values are the names of the enumeration objects, without underscores, case insensitive, e.g. "thin" == "Thin" == "THIN".

Since:
0.4.0
Author:
Randy Gettman
See Also:
StyleTag, StyleParser.PROPERTY_BORDER, StyleParser.PROPERTY_BORDER_BOTTOM, StyleParser.PROPERTY_BORDER_LEFT, StyleParser.PROPERTY_BORDER_RIGHT, StyleParser.PROPERTY_BORDER_TOP

Enum Constant Summary
DASHDOT
           
DASHDOTDOT
           
DASHED
           
DOTTED
           
DOUBLE
           
HAIR
           
MEDIUM
           
MEDIUMDASHDOT
           
MEDIUMDASHDOTDOT
           
MEDIUMDASHED
           
NONE
           
SLANTEDDASHDOT
           
THICK
           
THIN
           
 
Method Summary
 short getIndex()
          Returns the index.
 java.lang.String toString()
          Returns the name, in all lowercase, no underscores or spaces.
static BorderType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BorderType[] 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

NONE

public static final BorderType NONE

THIN

public static final BorderType THIN

MEDIUM

public static final BorderType MEDIUM

DASHED

public static final BorderType DASHED

HAIR

public static final BorderType HAIR

THICK

public static final BorderType THICK

DOUBLE

public static final BorderType DOUBLE

DOTTED

public static final BorderType DOTTED

MEDIUMDASHED

public static final BorderType MEDIUMDASHED

DASHDOT

public static final BorderType DASHDOT

MEDIUMDASHDOT

public static final BorderType MEDIUMDASHDOT

DASHDOTDOT

public static final BorderType DASHDOTDOT

MEDIUMDASHDOTDOT

public static final BorderType MEDIUMDASHDOTDOT

SLANTEDDASHDOT

public static final BorderType SLANTEDDASHDOT
Method Detail

values

public static final BorderType[] 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(BorderType c : BorderType.values())
        System.out.println(c);

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

valueOf

public static BorderType 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 short 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<BorderType>
Returns:
The name, in all lowercase, no underscores or spaces.


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