Package io.jmix.ui.component
Enum Class TextInputField.TextChangeEventMode
java.lang.Object
java.lang.Enum<TextInputField.TextChangeEventMode>
io.jmix.ui.component.TextInputField.TextChangeEventMode
- All Implemented Interfaces:
Serializable
,Comparable<TextInputField.TextChangeEventMode>
,Constable
- Enclosing interface:
- TextInputField<V>
public static enum TextInputField.TextChangeEventMode
extends Enum<TextInputField.TextChangeEventMode>
Different modes how the TextField can trigger
TextInputField.TextChangeEvent
s.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFires a server-side event when the field loses focus.An event is triggered on each text content change, most commonly key press events.An event is triggered when there is a pause of text modifications.Each text change event in the UI causes the event to be communicated to the application after a timeout. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TextInputField.TextChangeEventMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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. -
TIMEOUT
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 withTextInputField.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
HasValue.ValueChangeEvent
the schedule is not kept strictly. Before aHasValue.ValueChangeEvent
aTextInputField.TextChangeEvent
is triggered if the text content has changed since the previous TextChangeEvent regardless of the schedule. -
LAZY
An event is triggered when there is a pause of text modifications. The length of the pause can be modified withTextInputField.TextChangeNotifier.setTextChangeTimeout(int)
. Like with theTIMEOUT
mode, an event is forced beforeHasValue.ValueChangeEvent
s, even if the user did not keep a pause while entering the text.This is the default mode.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-