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
Class wraps ComboBox value change listener and manages its registration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JmixComboBox<V>protected com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<V>,V>> protected com.vaadin.flow.shared.Registration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetItemsSilently(Collection<V> items) Sets items without triggeringAbstractField.ComponentValueChangeEvent.voidsetItemsSilently(Collection<V> items, boolean restoreValue) Sets items without triggeringAbstractField.ComponentValueChangeEvent.voidsetValueChangeListener(com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<V>, V>> listener)
-
Field Details
-
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
-
-
Method Details
-
setValueChangeListener
public void setValueChangeListener(com.vaadin.flow.component.HasValue.ValueChangeListener<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<JmixComboBox<V>, V>> listener) -
setItemsSilently
Sets items without triggeringAbstractField.ComponentValueChangeEvent.Note that field's value will be unset.
- Parameters:
items- items to set
-
setItemsSilently
Sets items without triggeringAbstractField.ComponentValueChangeEvent. If therestoreValueparameter istrue, the field's value will be restored.- Parameters:
items- items to setrestoreValue- whether field's value should be restored after setting items
-