Package com.vaadin.flow.dom
Enum Class DisabledUpdateMode
- All Implemented Interfaces:
Serializable
,Comparable<DisabledUpdateMode>
,Constable
Controls RPC communication from the client side to the server side respecting
enabled state.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIf used then updates from the client side are allowed even for disabled element.If used then updates from the client side are allowed only if element is enabled. -
Method Summary
Modifier and TypeMethodDescriptionstatic DisabledUpdateMode
mostPermissive
(DisabledUpdateMode mode1, DisabledUpdateMode mode2) Gets the most permissive out of two update modes.static DisabledUpdateMode
Returns the enum constant of this class with the specified name.static DisabledUpdateMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
If used then updates from the client side are allowed even for disabled element. -
ONLY_WHEN_ENABLED
If used then updates from the client side are allowed only if element is enabled.
-
-
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
-
mostPermissive
Gets the most permissive out of two update modes.- Parameters:
mode1
- the first mode, ornull
mode2
- the second mode, ornull
- Returns:
- the most permissive mode, or
null
if both parameters arenull
-