Enum Class Overflow

java.lang.Object
java.lang.Enum<Overflow>
com.oorian.css.Overflow
All Implemented Interfaces:
Serializable, Comparable<Overflow>, Constable

public enum Overflow extends Enum<Overflow>
CSS overflow property values for content overflow handling.

The overflow property specifies what happens to content that overflows an element's box. This property only works for block elements with a specified height.

Usage:


 element.setOverflow(Overflow.HIDDEN);
 element.setOverflow(Overflow.SCROLL);
 
Since:
2012
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • BasicBoxIntf
  • Enum Constant Details

    • INHERIT

      public static final Overflow INHERIT
      Inherits from parent element.
    • INITIAL

      public static final Overflow INITIAL
      Sets to default value.
    • AUTO

      public static final Overflow AUTO
      Scrollbars added only when necessary.
    • VISIBLE

      public static final Overflow VISIBLE
      Overflow is visible outside the element (default).
    • HIDDEN

      public static final Overflow HIDDEN
      Overflow is clipped and hidden.
    • SCROLL

      public static final Overflow SCROLL
      Scrollbars are always shown.
    • CLIP

      public static final Overflow CLIP
      Overflow content is clipped without a scrolling mechanism.
    • UNSET

      public static final Overflow UNSET
      Resets the property to its inherited value or initial value.
    • REVERT

      public static final Overflow REVERT
      Rolls back to the value defined by a previous cascade origin.
    • REVERT_LAYER

      public static final Overflow REVERT_LAYER
      Rolls back to the value defined in the previous cascade layer.
  • Method Details

    • values

      public static Overflow[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Overflow valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Returns the CSS value string.
      Returns:
      the CSS value
    • toString

      public String toString()
      Returns the CSS value string.
      Overrides:
      toString in class Enum<Overflow>
      Returns:
      the CSS value