E - Event type.V - Value type.public interface HasNullValueOptionallyAllowed<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<V>,V>
extends com.vaadin.flow.component.HasValue<E,V>
HasValue that may optionally allow null as value.
By default, objects should not allow nulls.
In general, when this feature is turned on and HasValue.setValue(Object) is called with null, the
object should never throw a NullPointerException.| Modifier and Type | Method and Description |
|---|---|
boolean |
isNullValueAllowed()
Checks whether
null is allowed as a value of the component. |
void |
setNullValueAllowed(boolean allowingNullValue)
Sets allowance of
null as this component's value. |
boolean isNullValueAllowed()
null is allowed as a value of the component.null is allowed as a value. Should default to false.void setNullValueAllowed(boolean allowingNullValue)
null as this component's value.allowingNullValue - Whether to allow null as a value.Copyright © 2023 Miki. All rights reserved.