Enum Class Display

java.lang.Object
java.lang.Enum<Display>
com.webfirmframework.wffweb.css.Display
All Implemented Interfaces:
CssProperty, Serializable, Cloneable, Comparable<Display>, Constable

public enum Display extends Enum<Display> implements CssProperty
display: inline | block | flex | inline-block | inline-flex | inline-table | list-item | run-in | table | table-caption | table-column-group | table-header-group | table-footer-group | table-row-group | table-cell | table-column | table-row | none | initial | inherit;
  • Enum Constant Details

    • INLINE

      public static final Display INLINE
    • BLOCK

      public static final Display BLOCK
    • FLEX

      public static final Display FLEX
    • INLINE_BLOCK

      public static final Display INLINE_BLOCK
    • INLINE_FLEX

      public static final Display INLINE_FLEX
    • INLINE_TABLE

      public static final Display INLINE_TABLE
    • LIST_ITEM

      public static final Display LIST_ITEM
    • RUN_IN

      public static final Display RUN_IN
    • TABLE

      public static final Display TABLE
    • TABLE_CAPTION

      public static final Display TABLE_CAPTION
    • TABLE_COLUMN_GROUP

      public static final Display TABLE_COLUMN_GROUP
    • TABLE_HEADER_GROUP

      public static final Display TABLE_HEADER_GROUP
    • TABLE_ROW_GROUP

      public static final Display TABLE_ROW_GROUP
    • TABLE_CELL

      public static final Display TABLE_CELL
    • TABLE_COLUMN

      public static final Display TABLE_COLUMN
    • TABLE_ROW

      public static final Display TABLE_ROW
    • NONE

      public static final Display NONE
    • INITIAL

      public static final Display INITIAL
    • INHERIT

      public static final Display INHERIT
  • Method Details

    • values

      public static Display[] 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 Display 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
    • getCssName

      public String getCssName()
      Specified by:
      getCssName in interface CssProperty
      Returns:
      the name portion in style, eg align-content for style align-content: center.
    • getCssValue

      public String getCssValue()
      Specified by:
      getCssValue in interface CssProperty
      Returns:
      the value portion in style, eg center for style align-content: center.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Display>
    • isValid

      public static boolean isValid(String cssValue)
      checks whether the given given cssValue is valid for this css property, i.e. whether it can have a corresponding object from it.
      Parameters:
      cssValue -
      Returns:
      true if the given cssValue has a corresponding object.
      Since:
      1.0.0
    • getThis

      public static Display getThis(String cssValue)
      gets the corresponding object for the given cssValue or null for invalid cssValue.
      Parameters:
      cssValue - the css property value without including !important in it.
      Returns:
      the corresponding object for the given cssValue or null for invalid cssValue.
      Since:
      1.0.0