T - the type of the event that will be passed into process(Event)@FunctionalInterface
public interface InputHandler<T extends javafx.event.Event>
extends javafx.event.EventHandler<T>
EventPattern matches a given event type (e.g. the block of code
to run in a more powerful switch statement)| Modifier and Type | Interface and Description |
|---|---|
static class |
InputHandler.Result
Signifies what to do after handling some input:
continue trying to match the event type with the next given
EventPattern (InputHandler.Result.PROCEED)
stop trying to match the event type and consume the event (InputHandler.Result.CONSUME)
stop trying to match the event type and do not consume it (InputHandler.Result.IGNORE)
|
| Modifier and Type | Method and Description |
|---|---|
default void |
handle(T event) |
InputHandler.Result |
process(T event)
When the corresponding
EventPattern matches an event type, this method is called. |
InputHandler.Result process(T event)
EventPattern matches an event type, this method is called. The implementation
does not need to consume the event.