com.osbcp.css.constants
Enum ListStylePosition

java.lang.Object
  extended by java.lang.Enum<ListStylePosition>
      extended by com.osbcp.css.constants.ListStylePosition
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ListStylePosition>

public enum ListStylePosition
extends java.lang.Enum<ListStylePosition>
implements java.io.Serializable

Values for the list-style-position property.

Author:
Christoffer Pettersson
See Also:
CSS list-style-position Property

Enum Constant Summary
INHERIT
          Specifies that the value of the list-style-position property should be inherited from the parent element.
INSIDE
          Indents the marker and the text.
OUTSIDE
          Keeps the marker to the left of the text.
 
Method Summary
 java.lang.String toString()
           
static ListStylePosition valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ListStylePosition[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSIDE

public static final ListStylePosition INSIDE
Indents the marker and the text. The bullets appear inside the content flow.


OUTSIDE

public static final ListStylePosition OUTSIDE
Keeps the marker to the left of the text. The bullets appears outside the content flow. This is default.


INHERIT

public static final ListStylePosition INHERIT
Specifies that the value of the list-style-position property should be inherited from the parent element.

Method Detail

values

public static ListStylePosition[] 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 (ListStylePosition c : ListStylePosition.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ListStylePosition valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ListStylePosition>