org.nocrala.tools.texttablefmt
Enum CellStyle.HorizontalAlign

java.lang.Object
  extended by java.lang.Enum<CellStyle.HorizontalAlign>
      extended by org.nocrala.tools.texttablefmt.CellStyle.HorizontalAlign
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CellStyle.HorizontalAlign>
Enclosing class:
CellStyle

public static enum CellStyle.HorizontalAlign
extends java.lang.Enum<CellStyle.HorizontalAlign>

This enumeration is used to specify how a text is horizontally aligned in a cell.

Author:
valarcon

Enum Constant Summary
center
          Will center the text.
left
          Will align to the left.
right
          Will align to the right.
 
Method Summary
static CellStyle.HorizontalAlign valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CellStyle.HorizontalAlign[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

left

public static final CellStyle.HorizontalAlign left
Will align to the left.


center

public static final CellStyle.HorizontalAlign center
Will center the text.


right

public static final CellStyle.HorizontalAlign right
Will align to the right.

Method Detail

values

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

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

valueOf

public static CellStyle.HorizontalAlign 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


Nocrala tools.