Enum ECssTextAlign

  • All Implemented Interfaces:
    CssDefaultValue, Serializable, Comparable<ECssTextAlign>

    public enum ECssTextAlign
    extends Enum<ECssTextAlign>
    implements CssDefaultValue
    Constants with the pre-defined values for the CSS property text-align.

    The text-align CSS property sets the horizontal alignment of the inline-level content inside a block element or table-cell box. This means it works like vertical-align but in the horizontal direction. @author XIMA MEDIA GmbH

    • Enum Constant Detail

      • CENTER

        public static final ECssTextAlign CENTER
        The inline contents are centered within the line box.
      • END

        public static final ECssTextAlign END
        The same as right if direction is left-to-right and left if direction is right-to-left.
      • JUSTIFY

        public static final ECssTextAlign JUSTIFY
        The inline contents are justified. Text should be spaced to line up its left and right edges to the left and right edges of the line box, except for the last line.
      • JUSTIFY_ALL

        public static final ECssTextAlign JUSTIFY_ALL
        Same as justify, but also forces the last line to be justified.
      • LEFT

        public static final ECssTextAlign LEFT
        The inline contents are aligned to the left edge of the line box.
      • MATCH_PARENT

        public static final ECssTextAlign MATCH_PARENT
        Similar to inherit, but the values start and end are calculated according to the parent's direction and are replaced by the appropriate left or right value.
      • RIGHT

        public static final ECssTextAlign RIGHT
        The inline contents are aligned to the right edge of the line box.
      • START

        public static final ECssTextAlign START
        The same as left if direction is left-to-right and right if direction is right-to-left.
    • Method Detail

      • values

        public static ECssTextAlign[] 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 (ECssTextAlign c : ECssTextAlign.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ECssTextAlign 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
      • value

        public String value()
        Returns:
        The string value of this property that can be used when creating CSS strings.