Class FormSpec.DefaultAlignment
java.lang.Object
com.jgoodies.forms.layout.FormSpec.DefaultAlignment
- All Implemented Interfaces:
Serializable
- Enclosing class:
FormSpec
An ordinal-based serializable typesafe enumeration for the
column and row default alignment types.
- Version:
- $Revision: 1.25 $
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharReturns the first character of this Alignment's name.private ObjecttoString()Returns this Alignment's name.private static FormSpec.DefaultAlignmentReturns a DefaultAlignment that corresponds to the specified string, null if no such alignment exists.
-
Field Details
-
name
-
nextOrdinal
private static int nextOrdinal -
ordinal
private final int ordinal
-
-
Constructor Details
-
DefaultAlignment
-
-
Method Details
-
valueOf
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
-
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
-