Enum Event
- java.lang.Object
-
- java.lang.Enum<Event>
-
- org.pepstock.charba.client.annotation.enums.Event
-
- All Implemented Interfaces:
Serializable
,Comparable<Event>
,Key
public enum Event extends Enum<Event> implements Key
Mouse events to enable on each annotation.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLICK
A pointing device button has been pressed and released on an element.CONTEXT_MENU
The right button of the mouse is clicked (before the context menu is displayed).DOUBLE_CLICK
A pointing device button is clicked twice on an element.MOUSE_DOWN
A pointing device button is pressed on an element.MOUSE_ENTER
A pointing device is moved onto the element that has the listener attached.MOUSE_LEAVE
A pointing device is moved off the element that has the listener attached.MOUSE_MOVE
A pointing device is moved over an element.MOUSE_OUT
A pointing device is moved off the element that has the listener attached or off one of its children.MOUSE_OVER
A pointing device is moved onto the element that has the listener attached or onto one of its children.MOUSE_UP
A pointing device button is released over an element.WHEEL
A wheel button of a pointing device is rotated in any direction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic Event
valueOf(String name)
Returns the enum constant of this type with the specified name.static Event[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLICK
public static final Event CLICK
A pointing device button has been pressed and released on an element.
-
CONTEXT_MENU
public static final Event CONTEXT_MENU
The right button of the mouse is clicked (before the context menu is displayed).
-
DOUBLE_CLICK
public static final Event DOUBLE_CLICK
A pointing device button is clicked twice on an element.
-
MOUSE_DOWN
public static final Event MOUSE_DOWN
A pointing device button is pressed on an element.
-
MOUSE_ENTER
public static final Event MOUSE_ENTER
A pointing device is moved onto the element that has the listener attached.
-
MOUSE_LEAVE
public static final Event MOUSE_LEAVE
A pointing device is moved off the element that has the listener attached.
-
MOUSE_MOVE
public static final Event MOUSE_MOVE
A pointing device is moved over an element.
-
MOUSE_OVER
public static final Event MOUSE_OVER
A pointing device is moved onto the element that has the listener attached or onto one of its children.
-
MOUSE_OUT
public static final Event MOUSE_OUT
A pointing device is moved off the element that has the listener attached or off one of its children.
-
MOUSE_UP
public static final Event MOUSE_UP
A pointing device button is released over an element.
-
WHEEL
public static final Event WHEEL
A wheel button of a pointing device is rotated in any direction.
-
-
Method Detail
-
values
public static Event[] 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 (Event c : Event.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Event 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
-
-