Enum Class BackgroundClip

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

public enum BackgroundClip extends Enum<BackgroundClip>
CSS background-clip property values defining background painting area.

The background-clip property defines how far the background extends within an element. It controls whether the background appears under the border, padding, or only content areas.

Usage:


 element.setBackgroundClip(BackgroundClip.PADDING_BOX);
 element.setBackgroundClip(BackgroundClip.CONTENT_BOX);
 
Since:
2012
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • INHERIT

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

      public static final BackgroundClip INITIAL
      Sets to default value.
    • BORDER_BOX

      public static final BackgroundClip BORDER_BOX
      Background extends to the outside edge of the border (default).
    • PADDING_BOX

      public static final BackgroundClip PADDING_BOX
      Background extends to the inside edge of the border.
    • CONTENT_BOX

      public static final BackgroundClip CONTENT_BOX
      Background is clipped to the content box.
  • Method Details

    • values

      public static BackgroundClip[] 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 BackgroundClip 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<BackgroundClip>
      Returns:
      the CSS value