|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AbstractTextField.TextChangeEventMode>
com.vaadin.ui.AbstractTextField.TextChangeEventMode
public static enum AbstractTextField.TextChangeEventMode
Different modes how the TextField can trigger FieldEvents.TextChangeEvents.
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
static AbstractTextField.TextChangeEventMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AbstractTextField.TextChangeEventMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final AbstractTextField.TextChangeEventMode EAGER
public static final AbstractTextField.TextChangeEventMode TIMEOUT
AbstractTextField.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 FieldEvents.TextChangeEvent
is triggered if the text content has changed since the previous
TextChangeEvent regardless of the schedule.
public static final AbstractTextField.TextChangeEventMode LAZY
AbstractTextField.setTextChangeTimeout(int). Like with the
TIMEOUT mode, an event is forced before
ValueChangeEvents, even if the user did not keep a pause
while entering the text.
This is the default mode.
| Method Detail |
|---|
public static AbstractTextField.TextChangeEventMode[] values()
for (AbstractTextField.TextChangeEventMode c : AbstractTextField.TextChangeEventMode.values()) System.out.println(c);
public static AbstractTextField.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 name
java.lang.NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||