Class ReportDetailView.JmixComboBoxBinder<V>

java.lang.Object
io.jmix.reportsflowui.view.report.ReportDetailView.JmixComboBoxBinder<V>
Type Parameters:
V - type of field value
Enclosing class:
ReportDetailView

protected static class ReportDetailView.JmixComboBoxBinder<V> extends Object
Class wraps ComboBox value change listener and manages its registration.
  • Field Details

    • comboBox

      protected JmixComboBox<V> comboBox
    • valueChangeRegistration

      protected com.vaadin.flow.shared.Registration valueChangeRegistration
    • listener

      protected com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<V>,V>> listener
  • Constructor Details

    • JmixComboBoxBinder

      public JmixComboBoxBinder(JmixComboBox<V> comboBox)
  • Method Details

    • setValueChangeListener

      public void setValueChangeListener(com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<V>,V>> listener)
    • setItemsSilently

      public void setItemsSilently(Collection<V> items)
      Sets items without triggering AbstractField.ComponentValueChangeEvent.

      Note that field's value will be unset.

      Parameters:
      items - items to set
    • setItemsSilently

      public void setItemsSilently(Collection<V> items, boolean restoreValue)
      Sets items without triggering AbstractField.ComponentValueChangeEvent. If the restoreValue parameter is true, the field's value will be restored.
      Parameters:
      items - items to set
      restoreValue - whether field's value should be restored after setting items