public static enum InputHandler.Result extends java.lang.Enum<InputHandler.Result>
EventPattern
(PROCEED
)
CONSUME
)
IGNORE
)
Enum Constant and Description |
---|
CONSUME
Stop trying to match the event type with the next given
EventPattern and consume the event |
IGNORE
Stop trying to match the event type with the next given
EventPattern and do not consume it |
PROCEED
Try to continue to match the event type with the next given
EventPattern . |
Modifier and Type | Method and Description |
---|---|
static InputHandler.Result |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InputHandler.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InputHandler.Result PROCEED
EventPattern
. This can be
used to run some code before an InputHandler
that consumes the event.public static final InputHandler.Result CONSUME
EventPattern
and consume the eventpublic static final InputHandler.Result IGNORE
EventPattern
and do not consume itpublic static InputHandler.Result[] values()
for (InputHandler.Result c : InputHandler.Result.values()) System.out.println(c);
public static InputHandler.Result valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null