public enum ValueChangeMode extends Enum<ValueChangeMode>
HasValueChangeMode
. Depending on the mode used, the component's
value
is synced differently from the client to the server.Enum Constant and Description |
---|
EAGER
Syncs the value to the server each time it's changed on the client.
|
ON_BLUR
Syncs the value to the server on
blur event, i.e. |
ON_CHANGE
Syncs the value to the server on
change event, i.e. |
Modifier and Type | Method and Description |
---|---|
static String |
eventForMode(ValueChangeMode mode,
String eagerEventName)
Gets the name of the event associated with the given mode.
|
static ValueChangeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueChangeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueChangeMode EAGER
public static final ValueChangeMode ON_BLUR
blur
event, i.e. when the
component looses focus.public static final ValueChangeMode ON_CHANGE
change
event, i.e. when the
component value is committed.public static ValueChangeMode[] values()
for (ValueChangeMode c : ValueChangeMode.values()) System.out.println(c);
public static ValueChangeMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String eventForMode(ValueChangeMode mode, String eagerEventName)
null
, then null is returned. If the mode is EAGER
,
then the provided eager event name is returned.mode
- the value change modeeagerEventName
- the event name to use for the eager modeHasValueChangeMode.setValueChangeMode(ValueChangeMode)
,
AbstractSinglePropertyField.setSynchronizedEvent(String)
Copyright © 2019. All rights reserved.