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
Modifier 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setItemsSilently
(Collection<V> items) Sets items without triggeringAbstractField.ComponentValueChangeEvent
.void
setItemsSilently
(Collection<V> items, boolean restoreValue) Sets items without triggeringAbstractField.ComponentValueChangeEvent
.void
setValueChangeListener
(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 therestoreValue
parameter istrue
, the field's value will be restored.- Parameters:
items
- items to setrestoreValue
- whether field's value should be restored after setting items
-