Package com.jgoodies.forms.layout
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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar
Returns the first character of this Alignment's name.private Object
toString()
Returns this Alignment's name.private static FormSpec.DefaultAlignment
Returns 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
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
-