Package com.jgoodies.forms.layout
Class FormSpec.DefaultAlignment
- java.lang.Object
-
- 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.SerializableAn ordinal-based serializable typesafe enumeration for the column and row default alignment types.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringnameprivate static intnextOrdinalprivate intordinal
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultAlignment(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description charabbreviation()Returns the first character of this Alignment's name.private java.lang.ObjectreadResolve()java.lang.StringtoString()Returns this Alignment's name.private static FormSpec.DefaultAlignmentvalueOf(java.lang.String str, boolean isHorizontal)Returns a DefaultAlignment that corresponds to the specified string, null if no such alignment exists.
-
-
-
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 alignment exists.- Parameters:
str- the encoded alignmentisHorizontal- indicates the values orientation- Returns:
- the corresponding DefaultAlignment or null
-
toString
public java.lang.String toString()
Returns this Alignment's name.- Overrides:
toStringin classjava.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()
-
-