Enum ButtonLayout.Alignment

  • All Implemented Interfaces:
    Serializable, Comparable<ButtonLayout.Alignment>
    Enclosing class:
    ButtonLayout

    public static enum ButtonLayout.Alignment
    extends Enum<ButtonLayout.Alignment>
    An enumeration class for the alignment of a ButtonLayout. The alignment defines the horizontal orientation of the buttons in the layout.
    Version:
    $Id: ButtonLayout.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Enum Constant Detail

      • LEFT

        public static final ButtonLayout.Alignment LEFT
        The alignment left. All buttons are aligned to the left margin of the layout. If more space becomes available, the right margin grows.
      • RIGHT

        public static final ButtonLayout.Alignment RIGHT
        The alignment right. All buttons are aligned to the right margin of the layout. If more space becomes available, the left margin grows.
      • CENTER

        public static final ButtonLayout.Alignment CENTER
        The alignment center. The buttons are centered in the hosting container. If more space becomes available, both the left and the right margin grow.
    • Method Detail

      • values

        public static ButtonLayout.Alignment[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ButtonLayout.Alignment c : ButtonLayout.Alignment.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ButtonLayout.Alignment valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null