Package com.vaadin.v7.ui
Enum AbstractTextField.TextChangeEventMode
- java.lang.Object
-
- java.lang.Enum<AbstractTextField.TextChangeEventMode>
-
- com.vaadin.v7.ui.AbstractTextField.TextChangeEventMode
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractTextField.TextChangeEventMode>
- Enclosing class:
- AbstractTextField
@Deprecated public static enum AbstractTextField.TextChangeEventMode extends Enum<AbstractTextField.TextChangeEventMode>
Deprecated.Different modes how the TextField can triggerFieldEvents.TextChangeEvent
s.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EAGER
Deprecated.An event is triggered on each text content change, most commonly key press events.LAZY
Deprecated.An event is triggered when there is a pause of text modifications.TIMEOUT
Deprecated.Each text change event in the UI causes the event to be communicated to the application after a timeout.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AbstractTextField.TextChangeEventMode
valueOf(String name)
Deprecated.Returns the enum constant of this type with the specified name.static AbstractTextField.TextChangeEventMode[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EAGER
public static final AbstractTextField.TextChangeEventMode EAGER
Deprecated.An event is triggered on each text content change, most commonly key press events.
-
TIMEOUT
public static final AbstractTextField.TextChangeEventMode TIMEOUT
Deprecated.Each text change event in the UI causes the event to be communicated to the application after a timeout. The length of the timeout can be controlled withAbstractTextField.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
Field.ValueChangeEvent
the schedule is not kept strictly. Before aField.ValueChangeEvent
aFieldEvents.TextChangeEvent
is triggered if the text content has changed since the previous TextChangeEvent regardless of the schedule.
-
LAZY
public static final AbstractTextField.TextChangeEventMode LAZY
Deprecated.An event is triggered when there is a pause of text modifications. The length of the pause can be modified withAbstractTextField.setTextChangeTimeout(int)
. Like with theTIMEOUT
mode, an event is forced beforeField.ValueChangeEvent
s, even if the user did not keep a pause while entering the text.This is the default mode.
-
-
Method Detail
-
values
public static AbstractTextField.TextChangeEventMode[] values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractTextField.TextChangeEventMode c : AbstractTextField.TextChangeEventMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractTextField.TextChangeEventMode valueOf(String name)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-