public enum DomEventType extends Enum<DomEventType>
EventType
s exists.
Enum Constant and Description |
---|
CLICK
A mouse click.
|
MOUSE_ENTER
The mouse entered an element's boundaries.
|
MOUSE_LEAVE
The mouse left an element's boundaries.
|
Modifier and Type | Method and Description |
---|---|
static Optional<DomEventType> |
byName(String domEventName)
Returns the DOM event type for the specified event name.
|
String |
getDomName() |
Optional<HyperlinkEvent.EventType> |
toHyperlinkEventType()
Returns the representation of this DOM event as an
HyperlinkEventType if that is possible. |
static DomEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DomEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DomEventType CLICK
This event can be canceled.
public static final DomEventType MOUSE_ENTER
This event can not be canceled, i.e. canceling it has no effect.
public static final DomEventType MOUSE_LEAVE
This event can not be canceled, i.e. canceling it has no effect.
public static DomEventType[] values()
for (DomEventType c : DomEventType.values()) System.out.println(c);
public static DomEventType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getDomName()
public static Optional<DomEventType> byName(String domEventName)
domEventName
- the name of the DOM event as per W3C specificationDomEventType
if it could be determined; otherwise Optional.empty()
public Optional<HyperlinkEvent.EventType> toHyperlinkEventType()
HyperlinkEventType
if that is possible.
Otherwise returns an empty Optional.CLICK
→ ACTIVATED
MOUSE_ENTER
→ ENTERED
MOUSE_LEAVE
→ EXITED
empty
This documentation is licensed under CC-BY 4.0, attributed to Nicolai Parlog from CodeFX.