public interface IEventRecognizer
Modifier and Type | Field and Description |
---|---|
static IEventRecognizer |
ALT_PRESSED
An event recognizer that recognizes when the alt modifier is active.
|
static IEventRecognizer |
ALWAYS
A callback that will always return true;.
|
static IEventRecognizer |
CTRL_DOWN
An event recognizer that recognizes when the ctrl modifier is being pressed.
|
static IEventRecognizer |
CTRL_PRESSED
An event recognizer that recognizes when the control modifier is active.
|
static IEventRecognizer |
CTRL_UP
An event recognizer that recognizes when the Ctrl modifier is being released.
|
static IEventRecognizer |
DELETE_PRESSED
An event recognizer that recognizes when delete has been pressed.
|
static IEventRecognizer |
ESCAPE_PRESSED
An event recognizer that recognizes when escape has been pressed.
|
static IEventRecognizer |
ESCAPE_RELEASED
An event recognizer that recognizes when escape has been released.
|
static IEventRecognizer |
ESCAPE_TYPED
An event recognizer that recognizes when escape has been typed.
|
static IEventRecognizer |
KEY_PRESSED
An event recognizer that recognizes when any key has been pressed.
|
static IEventRecognizer |
KEY_RELEASED
An event recognizer that recognizes when any key has been released.
|
static IEventRecognizer |
KEY_TYPED
An event recognizer that recognizes when any key has been typed.
|
static IEventRecognizer |
LOST_CAPTURE_PRIMARY
An
IEventRecognizer that identifies the loss of touch capture for the primary device. |
static IEventRecognizer |
LOST_CAPTURE_SECONDARY
An
IEventRecognizer that identifies the loss of touch capture for the secondary device. |
static IEventRecognizer |
MOUSE_CLICKED
An
IEventRecognizer that identifies button clicks. |
static IEventRecognizer |
MOUSE_DRAGGED
An
IEventRecognizer that identifies mouse drag events. |
static IEventRecognizer |
MOUSE_ENTERED
An
IEventRecognizer that identifies when the mouse has entered the control. |
static IEventRecognizer |
MOUSE_EXITED
An
IEventRecognizer that identifies when the has left the control. |
static IEventRecognizer |
MOUSE_LEFT_CLICKED
An
IEventRecognizer that identifies left mouse button clicks. |
static IEventRecognizer |
MOUSE_LEFT_DOUBLE_CLICKED
An
IEventRecognizer that identifies left mouse button double clicks. |
static IEventRecognizer |
MOUSE_LEFT_DRAGGED
An
IEventRecognizer that identifies left mouse button drags. |
static IEventRecognizer |
MOUSE_LEFT_PRESSED
An
IEventRecognizer that identifies left mouse button press events. |
static IEventRecognizer |
MOUSE_LEFT_RELEASED
An
IEventRecognizer that identifies left mouse button release events. |
static IEventRecognizer |
MOUSE_LOST_CAPTURE
An
IEventRecognizer that identifies the loss of touch capture for the any device. |
static IEventRecognizer |
MOUSE_MIDDLE_CLICKED
An
IEventRecognizer that identifies middle mouse button clicks. |
static IEventRecognizer |
MOUSE_MIDDLE_DOUBLE_CLICKED
An
IEventRecognizer that identifies middle mouse button double clicks. |
static IEventRecognizer |
MOUSE_MIDDLE_DRAGGED
An
IEventRecognizer that identifies middle mouse button drags. |
static IEventRecognizer |
MOUSE_MOVED
An
IEventRecognizer that identifies mouse movements that are not drags. |
static IEventRecognizer |
MOUSE_MOVED_OR_DRAGGED
An
IEventRecognizer that identifies mouse movements. |
static IEventRecognizer |
MOUSE_MULTI_CLICKED
An
IEventRecognizer that identifies button multi-clicks. |
static IEventRecognizer |
MOUSE_PRESSED
An
IEventRecognizer that identifies mouse movements. |
static IEventRecognizer |
MOUSE_RELEASED
An
IEventRecognizer that identifies mouse movements. |
static IEventRecognizer |
MOUSE_RIGHT_CLICKED
An
IEventRecognizer that identifies right mouse button clicks. |
static IEventRecognizer |
MOUSE_RIGHT_DOUBLE_CLICKED
An
IEventRecognizer that identifies right mouse button double clicks. |
static IEventRecognizer |
MOUSE_RIGHT_DRAGGED
An
IEventRecognizer that identifies right mouse button drags. |
static IEventRecognizer |
MOUSE_RIGHT_PRESSED
An
IEventRecognizer that identifies right mouse button press events. |
static IEventRecognizer |
MOUSE_RIGHT_RELEASED
An
IEventRecognizer that identifies right mouse button release events. |
static IEventRecognizer |
NEVER
A callback that will always return false;.
|
static IEventRecognizer |
SHIFT_DOWN
An event recognizer that recognizes when the shift modifier is being pressed.
|
static IEventRecognizer |
SHIFT_PRESSED
An event recognizer that recognizes when the shift modifier is active.
|
static IEventRecognizer |
SHIFT_UP
An event recognizer that recognizes when the shift modifier is being released.
|
static IEventRecognizer |
SHORTCUT_DOWN
An event recognizer that recognizes when the Ctrl modifier on Windows and Linux and the command modifier on Mac OS is being pressed.
|
static IEventRecognizer |
SHORTCUT_PRESSED
An event recognizer that recognizes when the control modifier on Windows and Linux and the command modifier on Mac OS is active.
|
static IEventRecognizer |
SHORTCUT_UP
An event recognizer that recognizes when the Ctrl modifier on Windows and Linux and the command modifier on Mac OS is being released.
|
static IEventRecognizer |
TOUCH_DOUBLE_TAPPED_PRIMARY
An
IEventRecognizer that identifies touch double-taps of the primary device. |
static IEventRecognizer |
TOUCH_DOUBLE_TAPPED_SECONDARY
An
IEventRecognizer that identifies touch double-taps of the secondary device. |
static IEventRecognizer |
TOUCH_DOWN_PRIMARY
An
IEventRecognizer that identifies touch movements of the primary device. |
static IEventRecognizer |
TOUCH_DOWN_SECONDARY
An
IEventRecognizer that identifies touch movements of the secondary device. |
static IEventRecognizer |
TOUCH_ENTERED_PRIMARY
An
IEventRecognizer that identifies when the primary device has entered the control. |
static IEventRecognizer |
TOUCH_ENTERED_SECONDARY
An
IEventRecognizer that identifies when the secondary device has entered the control. |
static IEventRecognizer |
TOUCH_EXITED_PRIMARY
An
IEventRecognizer that identifies when the primary device has left the control. |
static IEventRecognizer |
TOUCH_EXITED_SECONDARY
An
IEventRecognizer that identifies when the secondary device has left the control. |
static IEventRecognizer |
TOUCH_LONG_PRESSED_PRIMARY
An
IEventRecognizer that identifies long presses of the primary device. |
static IEventRecognizer |
TOUCH_LONG_PRESSED_SECONDARY
An
IEventRecognizer that identifies long presses of the secondary device. |
static IEventRecognizer |
TOUCH_MOVED_PRIMARY
An
IEventRecognizer that identifies touch movements of the primary device. |
static IEventRecognizer |
TOUCH_MOVED_SECONDARY
An
IEventRecognizer that identifies touch movements of the secondary device. |
static IEventRecognizer |
TOUCH_MULTI_TAPPED_PRIMARY
An
IEventRecognizer that identifies touch multi-taps of the primary device. |
static IEventRecognizer |
TOUCH_MULTI_TAPPED_SECONDARY
An
IEventRecognizer that identifies touch multi-taps of the secondary device. |
static IEventRecognizer |
TOUCH_TAPPED_PRIMARY
An
IEventRecognizer that identifies touch taps of the primary device. |
static IEventRecognizer |
TOUCH_TAPPED_SECONDARY
An
IEventRecognizer that identifies touch taps of the secondary device. |
static IEventRecognizer |
TOUCH_UP_PRIMARY
An
IEventRecognizer that identifies touch movements of the primary device. |
static IEventRecognizer |
TOUCH_UP_SECONDARY
An
IEventRecognizer that identifies touch movements of the secondary device. |
Modifier and Type | Method and Description |
---|---|
default IEventRecognizer |
and(IEventRecognizer other)
Creates an
IEventRecognizer that performs a logical and operation between this and the other callback. |
static IEventRecognizer |
createAndRecognizer(IEventRecognizer... recognizers)
Creates an instance that is the logical 'and' combination of the provided recognizers.
|
static IEventRecognizer |
createKeyEventRecognizer(char character)
Creates an event recognizer that recognizes a key being typed.
|
static IEventRecognizer |
createKeyEventRecognizer(EventType<KeyEvent> type,
KeyCode data)
Creates an event recognizer for a given key and type using a given set of modifiers.
|
static IEventRecognizer |
createKeyEventRecognizer(EventType<KeyEvent> type,
KeyCode data,
ModifierKeys modifiers)
Creates an event recognizer for a given key and type using a given set of modifiers.
|
static IEventRecognizer |
createKeyPress(KeyCodeCombination gesture)
|
static IEventRecognizer |
createOrRecognizer(IEventRecognizer... recognizers)
Creates an instance that is the logical 'or' combination of the provided recognizers.
|
default IEventRecognizer |
inverse()
Creates an
IEventRecognizer instance that yields the boolean inverse of the given IEventRecognizer . |
boolean |
isRecognized(Object eventSource,
IEventArgs eventArg)
An callback that recognizes events.
|
default IEventRecognizer |
or(IEventRecognizer other)
Creates an
IEventRecognizer that performs a logical or operation between this and the other callback. |
static final IEventRecognizer ALT_PRESSED
static final IEventRecognizer ALWAYS
static final IEventRecognizer CTRL_DOWN
static final IEventRecognizer CTRL_PRESSED
static final IEventRecognizer CTRL_UP
static final IEventRecognizer DELETE_PRESSED
static final IEventRecognizer ESCAPE_PRESSED
static final IEventRecognizer ESCAPE_RELEASED
static final IEventRecognizer ESCAPE_TYPED
static final IEventRecognizer KEY_PRESSED
static final IEventRecognizer KEY_RELEASED
static final IEventRecognizer KEY_TYPED
static final IEventRecognizer LOST_CAPTURE_PRIMARY
IEventRecognizer
that identifies the loss of touch capture for the primary device.static final IEventRecognizer LOST_CAPTURE_SECONDARY
IEventRecognizer
that identifies the loss of touch capture for the secondary device.static final IEventRecognizer MOUSE_CLICKED
IEventRecognizer
that identifies button clicks.static final IEventRecognizer MOUSE_DRAGGED
IEventRecognizer
that identifies mouse drag events.static final IEventRecognizer MOUSE_ENTERED
IEventRecognizer
that identifies when the mouse has entered the control.static final IEventRecognizer MOUSE_EXITED
IEventRecognizer
that identifies when the has left the control.static final IEventRecognizer MOUSE_LEFT_CLICKED
IEventRecognizer
that identifies left mouse button clicks.static final IEventRecognizer MOUSE_LEFT_DOUBLE_CLICKED
IEventRecognizer
that identifies left mouse button double clicks.static final IEventRecognizer MOUSE_LEFT_DRAGGED
IEventRecognizer
that identifies left mouse button drags.static final IEventRecognizer MOUSE_LEFT_PRESSED
IEventRecognizer
that identifies left mouse button press events.static final IEventRecognizer MOUSE_LEFT_RELEASED
IEventRecognizer
that identifies left mouse button release events.static final IEventRecognizer MOUSE_LOST_CAPTURE
IEventRecognizer
that identifies the loss of touch capture for the any device.static final IEventRecognizer MOUSE_MIDDLE_CLICKED
IEventRecognizer
that identifies middle mouse button clicks.static final IEventRecognizer MOUSE_MIDDLE_DOUBLE_CLICKED
IEventRecognizer
that identifies middle mouse button double clicks.static final IEventRecognizer MOUSE_MIDDLE_DRAGGED
IEventRecognizer
that identifies middle mouse button drags.static final IEventRecognizer MOUSE_MOVED
IEventRecognizer
that identifies mouse movements that are not drags.MOUSE_DRAGGED
,
MOUSE_MOVED_OR_DRAGGED
static final IEventRecognizer MOUSE_MOVED_OR_DRAGGED
IEventRecognizer
that identifies mouse movements.static final IEventRecognizer MOUSE_MULTI_CLICKED
IEventRecognizer
that identifies button multi-clicks.static final IEventRecognizer MOUSE_PRESSED
IEventRecognizer
that identifies mouse movements.static final IEventRecognizer MOUSE_RELEASED
IEventRecognizer
that identifies mouse movements.static final IEventRecognizer MOUSE_RIGHT_CLICKED
IEventRecognizer
that identifies right mouse button clicks.static final IEventRecognizer MOUSE_RIGHT_DOUBLE_CLICKED
IEventRecognizer
that identifies right mouse button double clicks.static final IEventRecognizer MOUSE_RIGHT_DRAGGED
IEventRecognizer
that identifies right mouse button drags.static final IEventRecognizer MOUSE_RIGHT_PRESSED
IEventRecognizer
that identifies right mouse button press events.static final IEventRecognizer MOUSE_RIGHT_RELEASED
IEventRecognizer
that identifies right mouse button release events.static final IEventRecognizer NEVER
static final IEventRecognizer SHIFT_DOWN
static final IEventRecognizer SHIFT_PRESSED
static final IEventRecognizer SHIFT_UP
static final IEventRecognizer SHORTCUT_DOWN
static final IEventRecognizer SHORTCUT_PRESSED
static final IEventRecognizer SHORTCUT_UP
static final IEventRecognizer TOUCH_DOUBLE_TAPPED_PRIMARY
IEventRecognizer
that identifies touch double-taps of the primary device.static final IEventRecognizer TOUCH_DOUBLE_TAPPED_SECONDARY
IEventRecognizer
that identifies touch double-taps of the secondary device.static final IEventRecognizer TOUCH_DOWN_PRIMARY
IEventRecognizer
that identifies touch movements of the primary device.static final IEventRecognizer TOUCH_DOWN_SECONDARY
IEventRecognizer
that identifies touch movements of the secondary device.static final IEventRecognizer TOUCH_ENTERED_PRIMARY
IEventRecognizer
that identifies when the primary device has entered the control.static final IEventRecognizer TOUCH_ENTERED_SECONDARY
IEventRecognizer
that identifies when the secondary device has entered the control.static final IEventRecognizer TOUCH_EXITED_PRIMARY
IEventRecognizer
that identifies when the primary device has left the control.static final IEventRecognizer TOUCH_EXITED_SECONDARY
IEventRecognizer
that identifies when the secondary device has left the control.static final IEventRecognizer TOUCH_LONG_PRESSED_PRIMARY
IEventRecognizer
that identifies long presses of the primary device.static final IEventRecognizer TOUCH_LONG_PRESSED_SECONDARY
IEventRecognizer
that identifies long presses of the secondary device.static final IEventRecognizer TOUCH_MOVED_PRIMARY
IEventRecognizer
that identifies touch movements of the primary device.static final IEventRecognizer TOUCH_MOVED_SECONDARY
IEventRecognizer
that identifies touch movements of the secondary device.static final IEventRecognizer TOUCH_MULTI_TAPPED_PRIMARY
IEventRecognizer
that identifies touch multi-taps of the primary device.static final IEventRecognizer TOUCH_MULTI_TAPPED_SECONDARY
IEventRecognizer
that identifies touch multi-taps of the secondary device.static final IEventRecognizer TOUCH_TAPPED_PRIMARY
IEventRecognizer
that identifies touch taps of the primary device.static final IEventRecognizer TOUCH_TAPPED_SECONDARY
IEventRecognizer
that identifies touch taps of the secondary device.static final IEventRecognizer TOUCH_UP_PRIMARY
IEventRecognizer
that identifies touch movements of the primary device.static final IEventRecognizer TOUCH_UP_SECONDARY
IEventRecognizer
that identifies touch movements of the secondary device.default IEventRecognizer and(IEventRecognizer other)
IEventRecognizer
that performs a logical and operation between this and the other callback.other
- The other recognizer.static IEventRecognizer createAndRecognizer(IEventRecognizer... recognizers)
recognizers
- The recognizers to perform the logical operation on.static IEventRecognizer createKeyEventRecognizer(char character)
character
- The text that has been typed.static IEventRecognizer createKeyEventRecognizer(EventType<KeyEvent> type, KeyCode data)
type
- The type of the event.data
- The key that is subject of the event.static IEventRecognizer createKeyEventRecognizer(EventType<KeyEvent> type, KeyCode data, ModifierKeys modifiers)
type
- The type of the event.data
- The key that is subject of the event.modifiers
- The state of the modifiers that must be set. This is ModifierKeys.NONE
if not set.static IEventRecognizer createKeyPress(KeyCodeCombination gesture)
key
- The key to create the recognizer for.modifiers
- The modifier keys that should be pressed for the recognizerstatic IEventRecognizer createOrRecognizer(IEventRecognizer... recognizers)
recognizers
- The recognizers to perform the logical operation on.default IEventRecognizer inverse()
IEventRecognizer
instance that yields the boolean inverse of the given IEventRecognizer
.boolean isRecognized(Object eventSource, IEventArgs eventArg)
default IEventRecognizer or(IEventRecognizer other)
IEventRecognizer
that performs a logical or operation between this and the other callback.other
- The other recognizer.