public interface HasValueChangeMode extends Serializable
A class implementing this interface should typically also implement
HasValue
even though this is not required on the API level.
AbstractSinglePropertyField.setSynchronizedEvent(String)
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CHANGE_TIMEOUT
Default value change timeout for textual inputs in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
ValueChangeMode |
getValueChangeMode()
Gets current value change mode of the component.
|
default int |
getValueChangeTimeout()
Returns the currently set timeout, for how often
HasValue.ValueChangeEvent s are triggered when the ValueChangeMode is set
to ValueChangeMode.LAZY , or ValueChangeMode.TIMEOUT . |
void |
setValueChangeMode(ValueChangeMode valueChangeMode)
Sets new value change mode for the component.
|
default void |
setValueChangeTimeout(int valueChangeTimeout)
Sets how often
HasValue.ValueChangeEvent s are triggered when the
ValueChangeMode is set to ValueChangeMode.LAZY , or
ValueChangeMode.TIMEOUT . |
static final int DEFAULT_CHANGE_TIMEOUT
ValueChangeMode getValueChangeMode()
null
if
the value is not synchronizedvoid setValueChangeMode(ValueChangeMode valueChangeMode)
valueChangeMode
- new value change mode, or null
to disable the value
synchronizationdefault void setValueChangeTimeout(int valueChangeTimeout)
HasValue.ValueChangeEvent
s are triggered when the
ValueChangeMode is set to ValueChangeMode.LAZY
, or
ValueChangeMode.TIMEOUT
.
Implementations should use
ValueChangeMode.applyChangeTimeout(ValueChangeMode, int, DomListenerRegistration)
.
valueChangeTimeout
- the timeout in milliseconds of how often
HasValue.ValueChangeEvent
s are triggered.UnsupportedOperationException
- if neither ValueChangeMode.LAZY
, nor
ValueChangeMode.TIMEOUT
is supporteddefault int getValueChangeTimeout()
HasValue.ValueChangeEvent
s are triggered when the ValueChangeMode is set
to ValueChangeMode.LAZY
, or ValueChangeMode.TIMEOUT
.HasValue.ValueChangeEvent
s are triggered.UnsupportedOperationException
- if neither ValueChangeMode.LAZY
, nor
ValueChangeMode.TIMEOUT
is supportedCopyright © 2022. All rights reserved.