Package com.helger.html.js
Enum EJSEventType
- java.lang.Object
-
- java.lang.Enum<EJSEventType>
-
- com.helger.html.js.EJSEventType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EJSEventType>
public enum EJSEventType extends Enum<EJSEventType> implements com.helger.commons.id.IHasID<String>
Grouping of JS events- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EJSEventTypegetFromIDOrNull(String sID)StringgetID()static EJSEventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EJSEventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WINDOW
public static final EJSEventType WINDOW
-
FORM
public static final EJSEventType FORM
-
KEYBOARD
public static final EJSEventType KEYBOARD
-
MOUSE
public static final EJSEventType MOUSE
-
MEDIA
public static final EJSEventType MEDIA
-
TOUCH
public static final EJSEventType TOUCH
-
POINTER
public static final EJSEventType POINTER
-
-
Method Detail
-
values
public static EJSEventType[] 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 (EJSEventType c : EJSEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EJSEventType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getFromIDOrNull
@Nullable public static EJSEventType getFromIDOrNull(@Nullable String sID)
-
-