public enum DoubleClickPolicy extends Enum<DoubleClickPolicy>
ClickInputMode.getDoubleClickPolicy()
Enum Constant and Description |
---|
BOTH_SINGLE_CLICKS_AND_DOUBLE_CLICK
In case of a double click, two single click events are raised, followed by a double click event.
|
DOUBLE_CLICK_ONLY
In case of a double click, only the double click event is raised, but no single click events.
|
INITIAL_SINGLE_AND_DOUBLE_CLICK
In case of a double click, one single click event is raised, followed by a double click event.
|
Modifier and Type | Method and Description |
---|---|
static DoubleClickPolicy |
fromOrdinal(int ordinal) |
int |
value() |
static DoubleClickPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DoubleClickPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DoubleClickPolicy BOTH_SINGLE_CLICKS_AND_DOUBLE_CLICK
public static final DoubleClickPolicy DOUBLE_CLICK_ONLY
Single clicks not belonging to a double click will be reported with a short delay to ensure that they do not become double clicks.
public static final DoubleClickPolicy INITIAL_SINGLE_AND_DOUBLE_CLICK
The second click of the double click is not reported as a single click. Single clicks not belonging to a double click will be reported instantly.
public static final DoubleClickPolicy fromOrdinal(int ordinal)
public int value()
public static DoubleClickPolicy valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static DoubleClickPolicy[] values()
for (DoubleClickPolicy c : DoubleClickPolicy.values()) System.out.println(c);