THIS - Self-referential generic THISVALUE - The value typepublic interface FluentHasValue<THIS,VALUE>
extends com.vaadin.data.HasValue<VALUE>
HasValueHasValue| Modifier and Type | Method and Description |
|---|---|
default THIS |
withReadOnly(boolean readOnly)
Sets the read-only mode of this
HasValue to given mode. |
default THIS |
withRequiredIndicatorVisible(boolean requiredIndicatorVisible)
Sets the required indicator visible or not.
|
default THIS |
withValue(VALUE value)
Sets the value of this object.
|
default THIS |
withValueChangeListener(com.vaadin.data.HasValue.ValueChangeListener<VALUE> listener)
Adds a value change listener.
|
default THIS withValue(VALUE value)
getValue(), fires a value change event. May throw
IllegalArgumentException if the value is not acceptable.
Implementation note: the implementing class should document whether null values are accepted or not.
value - the new valueIllegalArgumentException - if the value is invalidHasValue.setValue(Object)default THIS withReadOnly(boolean readOnly)
HasValue to given mode. The user
can't change the value when in read-only mode.
A HasValue with a visual component in read-only mode typically
looks visually different to signal to the user that the value cannot be
edited.
readOnly - a boolean value specifying whether the component is put
read-only mode or notHasValue.setReadOnly(boolean)default THIS withRequiredIndicatorVisible(boolean requiredIndicatorVisible)
If set visible, it is visually indicated in the user interface.
requiredIndicatorVisible - true to make the required indicator visible,
false if notHasValue.setRequiredIndicatorVisible(boolean)default THIS withValueChangeListener(com.vaadin.data.HasValue.ValueChangeListener<VALUE> listener)
HasValue is changed either by the user or programmatically.listener - the value change listener, not nullHasValue.addValueChangeListener(com.vaadin.data.HasValue.ValueChangeListener)Copyright © 2017 Jean-Christophe Fortier. All rights reserved.