E- the value change event type
V- the value type
public interface HasValueAndElement<E extends HasValue.ValueChangeEvent<V>,V> extends HasValue<E,V>, HasElement, HasEnabled
|Modifier and Type||Method and Description|
Returns whether this
Checks whether the required indicator is visible.
Sets the read-only mode of this
Sets the required indicator visible or not.
addValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, setValue
default void setRequiredIndicatorVisible(boolean requiredIndicatorVisible)
If set visible, it is visually indicated in the user interface.
The method is intended to be used with
Binder which does
server-side validation. In case HTML element has its own (client-side)
validation it should be disabled when
setRequiredIndicatorVisible(true) is called and re-enabled
responsibility of each component implementation to follow the contract so
that the method call doesn't do anything else than show/hide the
"required" indication. Usually components provide their own
setRequired method which should be called in case the
client-side validation is required.
default boolean isRequiredIndicatorVisible()
default void setReadOnly(boolean readOnly)
HasValueto given mode. The user can't change the value when in read-only mode.
HasValue with a visual component in read-only mode typically
looks visually different to signal to the user that the value cannot be
Copyright © 2021. All rights reserved.