Enum Display

java.lang.Object
java.lang.Enum<Display>
org.ofdrw.layout.element.Display
All Implemented Interfaces:
Serializable, Comparable<Display>, java.lang.constant.Constable

public enum Display extends Enum<Display>
Div在行内的表现形式
Since:
2023-11-22 18:37:13
Author:
权观宇
  • Enum Constant Details

    • block

      public static final Display block
      块级元素

      该元素生成一个块级元素盒,在正常的流中,该元素之前和之后产生换行。

    • inlineBlock

      public static final Display inlineBlock
      内联块级元素

      它在正常的流中不产生换行,除非它的前一个元素是块级元素盒。

  • Method Details

    • values

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

      public static Display 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