Class FormSpec.DefaultAlignment

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

public static final class FormSpec.DefaultAlignment extends Object implements Serializable
An ordinal-based serializable typesafe enumeration for the column and row default alignment types.
See Also:
  • Field Details

    • name

      private final transient String name
    • nextOrdinal

      private static int nextOrdinal
    • ordinal

      private final int ordinal
  • Constructor Details

    • DefaultAlignment

      private DefaultAlignment(String name)
  • Method Details

    • valueOf

      private static FormSpec.DefaultAlignment valueOf(String str, boolean isHorizontal)
      Returns a DefaultAlignment that corresponds to the specified string, null if no such alignment exists.
      Parameters:
      str - the encoded alignment
      isHorizontal - indicates the values orientation
      Returns:
      the corresponding DefaultAlignment or null
    • toString

      public String toString()
      Returns this Alignment's name.
      Overrides:
      toString in class 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 Object readResolve()