TUM CCSM Commons

edu.tum.cs.commons.html
Enum ECSSPseudoClass

java.lang.Object
  extended by java.lang.Enum<ECSSPseudoClass>
      extended by edu.tum.cs.commons.html.ECSSPseudoClass
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ECSSPseudoClass>

public enum ECSSPseudoClass
extends java.lang.Enum<ECSSPseudoClass>

Enumeration of pseudo classes supported.

List taken from http://www.w3schools.com/css/css_pseudo_classes.asp.

Version:
$Rev: 26283 $
Author:
hummelb, $Author: juergens $
Rating:
GREEN Hash: 5D759DFAFF70BA5CCB6229873516B575

Enum Constant Summary
ACTIVE
          Adds special style to an activated element.
FIRST_CHILD
          Adds special style to an element that is the first child of some other element.
FOCUS
          Adds special style to an element while the element has focus.
HOVER
          Adds special style to an element when you mouse over it.
LINK
          Adds special style to an unvisited link.
NONE
          Used to indicate the lack of any class.
VISITED
          Adds special style to a visited link.
 
Method Summary
 java.lang.String getName()
          Returns the name of the pseudo class including the leading colon.
 java.lang.String toString()
          
static ECSSPseudoClass valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ECSSPseudoClass[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final ECSSPseudoClass NONE
Used to indicate the lack of any class.


ACTIVE

public static final ECSSPseudoClass ACTIVE
Adds special style to an activated element.


FOCUS

public static final ECSSPseudoClass FOCUS
Adds special style to an element while the element has focus.


HOVER

public static final ECSSPseudoClass HOVER
Adds special style to an element when you mouse over it.


LINK

public static final ECSSPseudoClass LINK
Adds special style to an unvisited link.


VISITED

public static final ECSSPseudoClass VISITED
Adds special style to a visited link.


FIRST_CHILD

public static final ECSSPseudoClass FIRST_CHILD
Adds special style to an element that is the first child of some other element.

Method Detail

values

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

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

valueOf

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

getName

public java.lang.String getName()
Returns the name of the pseudo class including the leading colon.


toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Enum<ECSSPseudoClass>

TUM CCSM Commons

TUM CCSM Commons - 2.7