Enum FormMouseEvent.Type
- java.lang.Object
-
- java.lang.Enum<FormMouseEvent.Type>
-
- net.sf.jguiraffe.gui.builder.event.FormMouseEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<FormMouseEvent.Type>
- Enclosing class:
- FormMouseEvent
public static enum FormMouseEvent.Type extends Enum<FormMouseEvent.Type>
An enumeration class defining constants for the possible mouse actions that can trigger aFormMouseEvent
. EachFormMouseEvent
is associated with such a type constant, so that it is possible to find out what exactly has happened.- Version:
- $Id: FormMouseEvent.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MOUSE_CLICKED
A mouse button was clicked.MOUSE_DOUBLE_CLICKED
A double click with a mouse button was performed.MOUSE_ENTERED
The mouse cursor entered the monitored component.MOUSE_EXITED
The mouse cursor exited the monitored component.MOUSE_PRESSED
A mouse button was pressed.MOUSE_RELEASED
A mouse button was released.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FormMouseEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static FormMouseEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOUSE_PRESSED
public static final FormMouseEvent.Type MOUSE_PRESSED
A mouse button was pressed.
-
MOUSE_RELEASED
public static final FormMouseEvent.Type MOUSE_RELEASED
A mouse button was released.
-
MOUSE_CLICKED
public static final FormMouseEvent.Type MOUSE_CLICKED
A mouse button was clicked. This means the button was pressed and released.
-
MOUSE_DOUBLE_CLICKED
public static final FormMouseEvent.Type MOUSE_DOUBLE_CLICKED
A double click with a mouse button was performed. This means the button was clicked twice during an OS-specific interval.
-
MOUSE_ENTERED
public static final FormMouseEvent.Type MOUSE_ENTERED
The mouse cursor entered the monitored component.
-
MOUSE_EXITED
public static final FormMouseEvent.Type MOUSE_EXITED
The mouse cursor exited the monitored component.
-
-
Method Detail
-
values
public static FormMouseEvent.Type[] 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 (FormMouseEvent.Type c : FormMouseEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FormMouseEvent.Type 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
-
-