Interface HasNullValueOptionallyAllowed<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<V>,​V>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue

        com.vaadin.flow.component.HasValue.ValueChangeEvent<V extends Object>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
      • Methods inherited from interface com.vaadin.flow.component.HasValue

        addValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible, setValue
    • Method Detail

      • isNullValueAllowed

        boolean isNullValueAllowed()
        Checks whether null is allowed as a value of the component.
        Returns:
        Whether null is allowed as a value. Should default to false.
      • setNullValueAllowed

        void setNullValueAllowed​(boolean allowingNullValue)
        Sets allowance of null as this component's value.
        Parameters:
        allowingNullValue - Whether to allow null as a value.