Package org.vaadin.hugerte
Enum Class ValueChangeMode
- All Implemented Interfaces:
Serializable,Comparable<ValueChangeMode>,Constable,ClientSideReference
Enumeration of value change modes for the HugeRTE.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSyncs the value periodically regardless of any user events, as long as there are changes to sync.Syncs the value with the server, when the editor loses the focus ("blur event").Syncs the value with the server on every "change" event, that is fired by the editor.Syncs the value after the last change, when a certain amount of time has passed. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueChangeModefromClientSide(String clientSide) Interprets the given string as the client side representation of an enum and returns the matching instance.Returns the client side representation of this instance.static ValueChangeModeReturns the enum constant of this class with the specified name.static ValueChangeMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ON_CHANGE
Syncs the value with the server on every "change" event, that is fired by the editor. This usually happens either when a new line is added, whole words are deleted at once or the editor loses the focus. -
ON_BLUR
Syncs the value with the server, when the editor loses the focus ("blur event"). -
TIMEOUT
Syncs the value after the last change, when a certain amount of time has passed. If before that timeout any additional changes are made, the timeout is reset and starts again.
This is the equivalent to Vaadin's native
ValueChangeMode.LAZY -
INTERVAL
Syncs the value periodically regardless of any user events, as long as there are changes to sync.
This is the equivalent to Vaadin's native
ValueChangeMode.TIMEOUT
-
-
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
-
getClientSideRepresentation
Description copied from interface:ClientSideReferenceReturns the client side representation of this instance.- Specified by:
getClientSideRepresentationin interfaceClientSideReference- Returns:
- client side representation
-
fromClientSide
Interprets the given string as the client side representation of an enum and returns the matching instance.- Parameters:
clientSide- client side representation- Returns:
- instance
- Throws:
IllegalArgumentException- on any unknown string
-