public static enum TextInputField.TextChangeEventMode extends java.lang.Enum<TextInputField.TextChangeEventMode>
TextInputField.TextChangeEvent
s.Enum Constant and Description |
---|
BLUR
Fires a server-side event when the field loses focus.
|
EAGER
An event is triggered on each text content change, most commonly key
press events.
|
LAZY
An event is triggered when there is a pause of text modifications.
|
TIMEOUT
Each text change event in the UI causes the event to be communicated to the application after a timeout.
|
Modifier and Type | Method and Description |
---|---|
static TextInputField.TextChangeEventMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextInputField.TextChangeEventMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextInputField.TextChangeEventMode BLUR
public static final TextInputField.TextChangeEventMode EAGER
public static final TextInputField.TextChangeEventMode TIMEOUT
TextInputField.TextChangeNotifier.setTextChangeTimeout(int)
.
Only the last input event is reported to the server side if several text change events happen during the timeout.
In case of a ValueChangeEvent
the schedule is not kept strictly. Before a ValueChangeEvent
a TextInputField.TextChangeEvent
is triggered if the text content has changed since the previous TextChangeEvent
regardless of the schedule.
public static final TextInputField.TextChangeEventMode LAZY
TextInputField.TextChangeNotifier.setTextChangeTimeout(int)
. Like with the TIMEOUT
mode, an event is
forced before ValueChangeEvent
s, even if the user did not keep a pause while entering the text.
This is the default mode.
public static TextInputField.TextChangeEventMode[] values()
for (TextInputField.TextChangeEventMode c : TextInputField.TextChangeEventMode.values()) System.out.println(c);
public static TextInputField.TextChangeEventMode 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