@Immutable public enum FocusTriggerEvent extends java.lang.Enum<FocusTriggerEvent> implements TriggerEvent
Enum Constant and Description |
---|
IN
Event fired when Component receives focus.
|
OUT
Event fired when Component loses focus.
|
Modifier and Type | Method and Description |
---|---|
abstract FocusTriggerEvent |
getOppositeEvent()
This method returns the 'opposite' event from itself.
|
static FocusTriggerEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FocusTriggerEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FocusTriggerEvent IN
public static final FocusTriggerEvent OUT
public static FocusTriggerEvent[] values()
for (FocusTriggerEvent c : FocusTriggerEvent.values()) System.out.println(c);
public static FocusTriggerEvent 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 nullpublic abstract FocusTriggerEvent getOppositeEvent()
TriggerEvent
Trigger
in running an auto-reversing animation, to determine
whether an opposite event has occurred (and whether to stop/reverse the
animation). Note that some events may have no opposite. Default behavior
returns same event; subclasses with multiple/opposite events must override
to do the right thing here.getOppositeEvent
in interface TriggerEvent