Enum ScrollSurface.EditTrigger
- All Implemented Interfaces:
Comparable<ScrollSurface.EditTrigger>
- Enclosing class:
ScrollSurface
What started a possible edit, as
editStarted is told.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA drag where an edit may start on anything editable: the default with a mouse, or whereversetDragEdits(true)was called.A drag on a touch screen: it pans unless it starts on something made to be dragged, such as the resize handle of a selected item.A long press. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScrollSurface.EditTriggerReturns the enum constant of this type with the specified name.static ScrollSurface.EditTrigger[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
DRAG
A drag where an edit may start on anything editable: the default with a mouse, or whereversetDragEdits(true)was called. -
HANDLE_DRAG
A drag on a touch screen: it pans unless it starts on something made to be dragged, such as the resize handle of a selected item. -
LONG_PRESS
A long press.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-