Enum Class ListStyleType

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

public enum ListStyleType extends Enum<ListStyleType>
CSS list-style-type property values for list marker appearance.

The list-style-type property specifies the type of list marker (bullet, number, or letter) used for list items. Different marker types are available for various cultural and stylistic needs.

Marker Categories:

  • Bullets: DISC, CIRCLE, SQUARE
  • Numbers: DECIMAL, DECIMAL_LEADING_ZERO
  • Alphabetic: LOWER_ALPHA, UPPER_ALPHA, LOWER_LATIN, UPPER_LATIN
  • Roman numerals: LOWER_ROMAN, UPPER_ROMAN
  • International: ARMENIAN, GEORGIAN, HEBREW, HIRAGANA, KATAKANA, CJK_IDEOGRAPHIC

Usage:


 list.setListStyleType(ListStyleType.DISC);
 list.setListStyleType(ListStyleType.DECIMAL);
 
Since:
2012
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • ARMENIAN

      public static final ListStyleType ARMENIAN
      Armenian numbering.
    • CIRCLE

      public static final ListStyleType CIRCLE
      Hollow circle bullet.
    • CJK_IDEOGRAPHIC

      public static final ListStyleType CJK_IDEOGRAPHIC
      CJK ideographic numbering.
    • DECIMAL

      public static final ListStyleType DECIMAL
      Decimal numbers (1, 2, 3...).
    • DECIMAL_LEADING_ZERO

      public static final ListStyleType DECIMAL_LEADING_ZERO
      Decimal with leading zeros (01, 02, 03...).
    • DISC

      public static final ListStyleType DISC
      Filled circle bullet (default for ul).
    • GEORGIAN

      public static final ListStyleType GEORGIAN
      Georgian numbering.
    • HEBREW

      public static final ListStyleType HEBREW
      Hebrew numbering.
    • HIRAGANA

      public static final ListStyleType HIRAGANA
      Japanese hiragana numbering.
    • HIRAGANA_IROHA

      public static final ListStyleType HIRAGANA_IROHA
      Japanese hiragana-iroha numbering.
    • KATAKANA

      public static final ListStyleType KATAKANA
      Japanese katakana numbering.
    • KATAKANA_IROHA

      public static final ListStyleType KATAKANA_IROHA
      Japanese katakana-iroha numbering.
    • LOWER_ALPHA

      public static final ListStyleType LOWER_ALPHA
      Lowercase letters (a, b, c...).
    • LOWER_GREEK

      public static final ListStyleType LOWER_GREEK
      Lowercase Greek letters.
    • LOWER_LATIN

      public static final ListStyleType LOWER_LATIN
      Lowercase Latin letters (a, b, c...).
    • LOWER_ROMAN

      public static final ListStyleType LOWER_ROMAN
      Lowercase Roman numerals (i, ii, iii...).
    • NONE

      public static final ListStyleType NONE
      No marker displayed.
    • SQUARE

      public static final ListStyleType SQUARE
      Filled square bullet.
    • UPPER_ALPHA

      public static final ListStyleType UPPER_ALPHA
      Uppercase letters (A, B, C...).
    • UPPER_GREEK

      public static final ListStyleType UPPER_GREEK
      Uppercase Greek letters.
    • UPPER_LATIN

      public static final ListStyleType UPPER_LATIN
      Uppercase Latin letters (A, B, C...).
    • UPPER_ROMAN

      public static final ListStyleType UPPER_ROMAN
      Uppercase Roman numerals (I, II, III...).
    • INHERIT

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

    • values

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