Enum ECssOverflow

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

    public enum ECssOverflow
    extends Enum<ECssOverflow>
    implements CssDefaultValue
    Constants with the pre-defined values for the CSS property overflow.

    The overflow CSS property sets the desired behavior for an element's overflow — i.e. when an element's content is too big to fit in its block formatting context — in both directions.

    Author:
    XIMA MEDIA GmbH
    • Enum Constant Detail

      • AUTO

        public static final ECssOverflow AUTO
        Depends on the user agent. If content fits inside the padding box, it looks the same as visible, but still establishes a new block formatting context. Desktop browsers provide scrollbars if content overflows.
      • CLIP

        public static final ECssOverflow CLIP
        Similar to hidden, the content is clipped to the element's padding box. The difference between and hidden is that the clip keyword also forbids all scrolling, including programmatic scrolling. The box is not a scroll container, and does not start a new formatting context. If you wish to start a new formatting context, you can use display: flow-root to do so.
      • HIDDEN

        public static final ECssOverflow HIDDEN
        Content is clipped if necessary to fit the padding box. No scrollbars are provided, and no support for allowing the user to scroll (such as by dragging or using a scroll wheel) is allowed. The content can be scrolled programmatically (for example, by setting the value of a property such as scrollLeft or the scrollTo() method), so the element is still a scroll container.
      • SCROLL

        public static final ECssOverflow SCROLL
        Content is clipped if necessary to fit the padding box. Browsers always display scrollbars whether or not any content is actually clipped, preventing scrollbars from appearing or disappearing as content changes. Printers may still print overflowing content.
      • VISIBLE

        public static final ECssOverflow VISIBLE
        Content is not clipped and may be rendered outside the padding box.
    • Method Detail

      • values

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

        public static ECssOverflow 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.