Enum MouseEventType
- java.lang.Object
-
- java.lang.Enum<MouseEventType>
-
- org.pepstock.charba.client.dom.enums.MouseEventType
-
- All Implemented Interfaces:
Serializable
,Comparable<MouseEventType>
,Key
,IsEvent
public enum MouseEventType extends Enum<MouseEventType> implements IsEvent
Enumerates the DOM event type of the mouse.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLICK
Triggers after mousedown and then mouseup over the same element if the left mouse button was used.CONTEXT_MENU
Triggers when the right mouse button is pressed.
There are other ways to open a context menu, e.g.DOUBLE_CLICK
Triggers after two clicks on the same element within a short timeframe.MOUSE_DOWN
Mouse button is released over an elementMOUSE_ENTER
Mouse pointer entries in an element.MOUSE_LEAVE
Mouse pointer leaves from an element.MOUSE_MOVE
Every mouse move over an element triggers that event.MOUSE_OUT
Mouse pointer comes out from an element.MOUSE_OVER
Mouse pointer comes over from an element.MOUSE_UP
Mouse button is clicked over an element
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic MouseEventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MouseEventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLICK
public static final MouseEventType CLICK
Triggers after mousedown and then mouseup over the same element if the left mouse button was used.
-
MOUSE_MOVE
public static final MouseEventType MOUSE_MOVE
Every mouse move over an element triggers that event.
-
MOUSE_UP
public static final MouseEventType MOUSE_UP
Mouse button is clicked over an element
-
MOUSE_DOWN
public static final MouseEventType MOUSE_DOWN
Mouse button is released over an element
-
MOUSE_ENTER
public static final MouseEventType MOUSE_ENTER
Mouse pointer entries in an element.
-
MOUSE_LEAVE
public static final MouseEventType MOUSE_LEAVE
Mouse pointer leaves from an element.
-
MOUSE_OVER
public static final MouseEventType MOUSE_OVER
Mouse pointer comes over from an element.
-
MOUSE_OUT
public static final MouseEventType MOUSE_OUT
Mouse pointer comes out from an element.
-
DOUBLE_CLICK
public static final MouseEventType DOUBLE_CLICK
Triggers after two clicks on the same element within a short timeframe.
-
CONTEXT_MENU
public static final MouseEventType CONTEXT_MENU
Triggers when the right mouse button is pressed.
There are other ways to open a context menu, e.g. using a special keyboard key, it triggers in that case also, so it’s not exactly the mouse event.
-
-
Method Detail
-
values
public static MouseEventType[] 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 (MouseEventType c : MouseEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MouseEventType 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
-
-