Interface HasValue<V>

Type Parameters:
V - value type
All Superinterfaces:
Component
All Known Subinterfaces:
CheckBox, CheckBoxGroup<I>, ColorPicker, ComboBox<V>, CurrencyField<V>, DateField<V>, DatePicker<V>, EntityComboBox<V>, EntityLinkField<V>, EntityPicker<V>, EntitySuggestionField<V>, Field<V>, FileStorageUploadField, FileUploadField, FullTextFilter, GrapesJsHtmlEditor, GrapesJsNewsletterHtmlEditor, GrapesJsWebpageHtmlEditor, JpqlFilter<V>, Label<V>, MaskedField<V>, MultiSelectList<V>, NotificationsIndicator, OptionsField<V,I>, PasswordField, ProgressBar, PropertyFilter<V>, RadioButtonGroup<I>, ResizableTextArea<V>, RichTextArea, SearchField, SelectList<V,I>, SingleFilterComponent<V>, SingleSelectList<V>, Slider<V>, SourceCodeEditor, SuggestionField<V>, SuggestionFieldComponent<V,I>, TagField<V>, TagPicker<V>, TextArea<V>, TextField<V>, TextInputField<V>, TimeField<V>, TwinColumn<V>, ValuePicker<V>, ValuesPicker<V>, WebdavDocumentUploadField
All Known Implementing Classes:
AbstractField, AbstractFileStorageUploadField, AbstractSelectList, AbstractSingleFileUploadField, AbstractSingleFilterComponent, AbstractSuggestionField, AbstractTextArea, AbstractValueComponent, AbstractViewComponent, CheckBoxGroupImpl, CheckBoxImpl, ColorPickerImpl, ComboBoxImpl, CurrencyFieldImpl, DateFieldImpl, DatePickerImpl, EntityComboBoxImpl, EntityLinkFieldImpl, EntityPickerImpl, EntitySuggestionFieldImpl, FileStorageUploadFieldImpl, FileUploadFieldImpl, FullTextFilterImpl, GrapesJsHtmlEditorImpl, GrapesJsNewsletterHtmlEditorImpl, GrapesJsWebpageHtmlEditorImpl, JpqlFilterImpl, LabelImpl, MaskedFieldImpl, MultiSelectListImpl, NotificationsIndicatorImpl, PasswordFieldImpl, ProgressBarImpl, PropertyFilterImpl, RadioButtonGroupImpl, ResizableTextAreaImpl, RichTextAreaImpl, SearchFieldImpl, SingleSelectListImpl, SliderImpl, SourceCodeEditorImpl, SuggestionFieldImpl, TagFieldImpl, TagPickerImpl, TextAreaImpl, TextFieldImpl, TimeFieldImpl, TwinColumnImpl, ValuePickerImpl, ValuesPickerImpl, WebdavDocumentUploadFieldImpl

public interface HasValue<V> extends Component
UI component having a value.
  • Method Details

    • getValue

      @Nullable V getValue()
    • setValue

      void setValue(@Nullable V value)
    • clear

      default void clear()
    • getEmptyValue

      @Nullable default V getEmptyValue()
    • isEmpty

      default boolean isEmpty()
    • addValueChangeListener

      Subscription addValueChangeListener(Consumer<HasValue.ValueChangeEvent<V>> listener)