Enum Class UnicodeBidi

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

public enum UnicodeBidi extends Enum<UnicodeBidi>
CSS unicode-bidi property values for bidirectional text handling.

The unicode-bidi property is used together with the direction property to set or return whether the text should be overridden to support multiple languages in the same document.

Bidi Values:

  • normal: Does not use additional embedding level (default)
  • embed: Creates additional level of embedding
  • bidi-override: Creates override for inline elements

Usage:


 element.setUnicodeBidi(UnicodeBidi.EMBED);
 mixedLangText.setUnicodeBidi(UnicodeBidi.BIDI_OVERRIDE);
 
Since:
2012
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • NORMAL

      public static final UnicodeBidi NORMAL
      Does not use additional embedding level.
    • EMBED

      public static final UnicodeBidi EMBED
      Creates additional level of embedding.
    • BIDI_OVERRIDE

      public static final UnicodeBidi BIDI_OVERRIDE
      Creates override for inline elements.
    • INITIAL

      public static final UnicodeBidi INITIAL
      Sets to default value.
    • INHERIT

      public static final UnicodeBidi INHERIT
      Inherits from parent element.
  • Method Details

    • values

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