Enum ECssDisplay

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

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

    The display CSS property sets whether an element is treated as a block or inline element and the layout used for its children, such as flow layout, grid or flex.

    Author:
    XIMA MEDIA GmbH
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BLOCK
      The element generates a block element box, generating line breaks both before and after the element when in the normal flow.
      CONTENTS
      These elements don't produce a specific box by themselves.
      FLEX
      The element behaves like a block element and lays out its content according to the flexbox model.
      FLOW
      The element lays out its contents using flow layout (block-and-inline layout).
      FLOW_ROOT
      The element generates a block element box that establishes a new block formatting context, defining where the formatting root lies.
      GRID
      The element behaves like a block element and lays out its content according to the grid model.
      INLINE
      The element generates one or more inline element boxes that do not generate line breaks before or after themselves.
      INLINE_BLOCK
      The element generates a block element box that will be flowed with surrounding content as if it were a single inline box (behaving much like a replaced element would).
      INLINE_FLEX
      The element behaves like an inline element and lays out its content according to the flexbox model.
      INLINE_GRID
      The element behaves like an inline element and lays out its content according to the grid model.
      INLINE_TABL
      The inline-table value does not have a direct mapping in HTML.
      LIST_ITEM  
      NONE  
      RUBY
      The element behaves like an inline element and lays out its content according to the ruby formatting model.
      RUBY_BASE
      These elements behave like <rb> HTML elements.
      RUBY_BASE_CONTAINER
      These elements behave like <rbc> HTML elements generated as anonymous boxes.
      RUBY_TEXT
      These elements behave like <rt> HTML elements.
      RUBY_TEXT_CONTAINER
      These elements behave like <rtc> HTML elements.
      TABLE
      These elements behave like HTML <table> elements.
      TABLE_CAPTION
      These elements behave like <caption> HTML elements.
      TABLE_CELL
      These elements behave like <td> HTML elements.
      TABLE_COLUMN
      These elements behave like <col> HTML elements.
      TABLE_COLUMN_GROUP
      These elements behave like <colgroup> HTML elements.
      TABLE_FOOTER_GROUP
      These elements behave like <tfoot> HTML elements.
      TABLE_HEADER_GROUP
      These elements behave like <thead> HTML elements.
      TABLE_ROW
      These elements behave like <tr> HTML elements.
      TABLE_ROW_GROUP
      These elements behave like <tbody> HTML elements.
    • Enum Constant Detail

      • BLOCK

        public static final ECssDisplay BLOCK
        The element generates a block element box, generating line breaks both before and after the element when in the normal flow.
      • CONTENTS

        public static final ECssDisplay CONTENTS
        These elements don't produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren't rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.
      • FLEX

        public static final ECssDisplay FLEX
        The element behaves like a block element and lays out its content according to the flexbox model.
      • FLOW

        public static final ECssDisplay FLOW
        The element lays out its contents using flow layout (block-and-inline layout).

        If its outer display type is inline or run-in, and it is participating in a block or inline formatting context, then it generates an inline box. Otherwise it generates a block container box.

        Depending on the value of other properties (such as position, float, or overflow) and whether it is itself participating in a block or inline formatting context, it either establishes a new block formatting context (BFC) for its contents or integrates its contents into its parent formatting context.

      • FLOW_ROOT

        public static final ECssDisplay FLOW_ROOT
        The element generates a block element box that establishes a new block formatting context, defining where the formatting root lies.
      • GRID

        public static final ECssDisplay GRID
        The element behaves like a block element and lays out its content according to the grid model.
      • INLINE

        public static final ECssDisplay INLINE
        The element generates one or more inline element boxes that do not generate line breaks before or after themselves. In normal flow, the next element will be on the same line if there is space
      • INLINE_BLOCK

        public static final ECssDisplay INLINE_BLOCK
        The element generates a block element box that will be flowed with surrounding content as if it were a single inline box (behaving much like a replaced element would).

        It is equivalent to inline flow-root.

      • INLINE_FLEX

        public static final ECssDisplay INLINE_FLEX
        The element behaves like an inline element and lays out its content according to the flexbox model.

        It is equivalent to inline flex.

      • INLINE_GRID

        public static final ECssDisplay INLINE_GRID
        The element behaves like an inline element and lays out its content according to the grid model.

        It is equivalent to inline grid.

      • INLINE_TABL

        public static final ECssDisplay INLINE_TABL
        The inline-table value does not have a direct mapping in HTML. It behaves like an HTML <table> element, but as an inline box, rather than a block-level box. Inside the table box is a block-level context.

        It is equivalent to inline table.

      • RUBY

        public static final ECssDisplay RUBY
        The element behaves like an inline element and lays out its content according to the ruby formatting model. It behaves like the corresponding HTML <ruby> elements.
      • RUBY_BASE

        public static final ECssDisplay RUBY_BASE
        These elements behave like <rb> HTML elements.
      • RUBY_BASE_CONTAINER

        public static final ECssDisplay RUBY_BASE_CONTAINER
        These elements behave like <rbc> HTML elements generated as anonymous boxes.
      • RUBY_TEXT

        public static final ECssDisplay RUBY_TEXT
        These elements behave like <rt> HTML elements.
      • RUBY_TEXT_CONTAINER

        public static final ECssDisplay RUBY_TEXT_CONTAINER
        These elements behave like <rtc> HTML elements.
      • TABLE

        public static final ECssDisplay TABLE
        These elements behave like HTML <table> elements. It defines a block-level box.
      • TABLE_CAPTION

        public static final ECssDisplay TABLE_CAPTION
        These elements behave like <caption> HTML elements.
      • TABLE_CELL

        public static final ECssDisplay TABLE_CELL
        These elements behave like <td> HTML elements.
      • TABLE_COLUMN

        public static final ECssDisplay TABLE_COLUMN
        These elements behave like <col> HTML elements.
      • TABLE_COLUMN_GROUP

        public static final ECssDisplay TABLE_COLUMN_GROUP
        These elements behave like <colgroup> HTML elements.
      • TABLE_FOOTER_GROUP

        public static final ECssDisplay TABLE_FOOTER_GROUP
        These elements behave like <tfoot> HTML elements.
      • TABLE_HEADER_GROUP

        public static final ECssDisplay TABLE_HEADER_GROUP
        These elements behave like <thead> HTML elements.
      • TABLE_ROW

        public static final ECssDisplay TABLE_ROW
        These elements behave like <tr> HTML elements.
      • TABLE_ROW_GROUP

        public static final ECssDisplay TABLE_ROW_GROUP
        These elements behave like <tbody> HTML elements.
    • Method Detail

      • values

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

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