Class CellConstraints.Alignment

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    CellConstraints

    public static final class CellConstraints.Alignment
    extends java.lang.Object
    implements java.io.Serializable
    An ordinal-based serializable typesafe enumeration for component alignment types as used by the FormLayout.
    See Also:
    Serialized Form
    • Field Detail

      • name

        private final transient java.lang.String name
      • orientation

        private final transient int orientation
      • nextOrdinal

        private static int nextOrdinal
      • ordinal

        private final int ordinal
    • Constructor Detail

      • Alignment

        private Alignment​(java.lang.String name,
                          int orientation)
    • Method Detail

      • 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.
      • isHorizontal

        private boolean isHorizontal()
      • isVertical

        private boolean isVertical()
      • readResolve

        private java.lang.Object readResolve()