Interface SupportsValueSource<V>

Type Parameters:
V - the type of the value managed by the value source
All Known Subinterfaces:
EntityMultiPickerComponent<E>, EntityPickerComponent<E>, PickerComponent<V>
All Known Implementing Classes:
CodeEditor, EntityComboBox, EntityPicker, FileStorageUploadField, FileUploadField, JmixBigDecimalField, JmixCheckbox, JmixCheckboxGroup, JmixComboBox, JmixEmailField, JmixImage, JmixIntegerField, JmixMultiSelectComboBox, JmixMultiSelectComboBoxPicker, JmixMultiValuePicker, JmixNumberField, JmixPasswordField, JmixRadioButtonGroup, JmixSelect, JmixTextArea, JmixValuePicker, RichTextEditor, Switch, TwinColumn, TypedDatePicker, TypedDateTimePicker, TypedTextField, TypedTimePicker, WebdavDocumentLink, WebdavDocumentUploadField, WebdavDocumentVersionLink

public interface SupportsValueSource<V>
Interface defining a component or object that can be associated with a ValueSource. A ValueSource provides a mechanism for binding the component's value to a data source.
  • Method Details

    • getValueSource

      @Nullable ValueSource<V> getValueSource()
      Returns the current ValueSource associated with this component.
      Returns:
      the associated ValueSource, or null if no value source is set
    • setValueSource

      void setValueSource(@Nullable ValueSource<V> valueSource)
      Sets a ValueSource for this component, allowing it to bind its value to a specified data source.
      Parameters:
      valueSource - the ValueSource to be associated with this component, or null to remove the current association