Interface FocusEvent
- All Superinterfaces:
Cancelable, Event, SnapshotEvent
Keyboard focus moving. Used by
Focusable.FOCUS_GAINED and
Focusable.FOCUS_LOST. When focus moves from one component to another,
the old one gets FOCUS_LOST first, then the new one gets FOCUS_GAINED; both run after the focus has
already changed. Canceling the event cannot undo the move; it skips the component's default behavior, such as a
text box moving its caret.
Only Strata creates events. Do not implement this interface.
-
Method Summary
Methods inherited from interface Cancelable
cancel, consume, isCancelled, isHandledMethods inherited from interface Event
cause, current, isPropagationStopped, origin, stopPropagation, targetMethods inherited from interface SnapshotEvent
currentSnapshot, snapshot, snapshotOf
-
Method Details
-
other
-
reason
FocusReason reason()Returns why focus moved. A loss and the gain that follows it report the same reason.- Returns:
- the reason
-