com.osbcp.css.constants
Enum PseudoSelector

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

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

Values for the pseudo selectors, classes and elements.

Author:
Christoffer Pettersson
See Also:
CSS Pseudo-classes

Enum Constant Summary
ACTIVE
          Example "a:active" selects the active link.
AFTER
          Example "p:after" insert content after every <p> element.
BEFORE
          Example "p:before" insert content before every <p> element.
FIRST_CHILD
          Example "p:first-child" selects every <p> elements that is the first child of its parent.
FIRST_LETTER
          Example "p:first-letter" selects the first letter of every <p> element.
FIRST_LINE
          Example "p:first-line" selects the first line of every <p> element.
FOCUS
          Example "input:focus " selects the input element which has focus.
HOVER
          Example "a:hover" selects links on mouse over.
LINK
          Example "a:link" selects all unvisited links.
VISITED
          Example "a:visited" selects all visited links.
 
Method Summary
 java.lang.String toString()
           
static PseudoSelector valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PseudoSelector[] 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

LINK

public static final PseudoSelector LINK
Example "a:link" selects all unvisited links.


VISITED

public static final PseudoSelector VISITED
Example "a:visited" selects all visited links.


ACTIVE

public static final PseudoSelector ACTIVE
Example "a:active" selects the active link.


HOVER

public static final PseudoSelector HOVER
Example "a:hover" selects links on mouse over.


FOCUS

public static final PseudoSelector FOCUS
Example "input:focus " selects the input element which has focus.


FIRST_LETTER

public static final PseudoSelector FIRST_LETTER
Example "p:first-letter" selects the first letter of every <p> element.


FIRST_LINE

public static final PseudoSelector FIRST_LINE
Example "p:first-line" selects the first line of every <p> element.


FIRST_CHILD

public static final PseudoSelector FIRST_CHILD
Example "p:first-child" selects every <p> elements that is the first child of its parent.


BEFORE

public static final PseudoSelector BEFORE
Example "p:before" insert content before every <p> element.


AFTER

public static final PseudoSelector AFTER
Example "p:after" insert content after every <p> element.

Method Detail

values

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

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

valueOf

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