com.jgoodies.forms.layout
Class FormSpec.DefaultAlignment

java.lang.Object
  extended by com.jgoodies.forms.layout.FormSpec.DefaultAlignment
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
FormSpec

public static final class FormSpec.DefaultAlignment
extends java.lang.Object
implements java.io.Serializable

An ordinal-based serializable typesafe enumeration for the column and row default alignment types.

See Also:
Serialized Form

Field Summary
private  java.lang.String name
           
private static int nextOrdinal
           
private  int ordinal
           
 
Constructor Summary
private FormSpec.DefaultAlignment(java.lang.String name)
           
 
Method Summary
 char abbreviation()
          Returns the first character of this Alignment's name.
private  java.lang.Object readResolve()
           
 java.lang.String toString()
          Returns this Alignment's name.
private static FormSpec.DefaultAlignment valueOf(java.lang.String str, boolean isHorizontal)
          Returns a DefaultAlignment that corresponds to the specified string, null if no such aignment exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final transient java.lang.String name

nextOrdinal

private static int nextOrdinal

ordinal

private final int ordinal
Constructor Detail

FormSpec.DefaultAlignment

private FormSpec.DefaultAlignment(java.lang.String name)
Method Detail

valueOf

private static FormSpec.DefaultAlignment valueOf(java.lang.String str,
                                                 boolean isHorizontal)
Returns a DefaultAlignment that corresponds to the specified string, null if no such aignment exists.

Parameters:
str - the encoded alignment
isHorizontal - indicates the values orientation
Returns:
the corresponding DefaultAlignment or null

toString

public java.lang.String toString()
Returns this Alignment's name.

Overrides:
toString in class java.lang.Object
Returns:
this alignment's name.

abbreviation

public char abbreviation()
Returns the first character of this Alignment's name. Used to identify it in short format strings.

Returns:
the name's first character.

readResolve

private java.lang.Object readResolve()