Class ComboBoxDataCommunicator.SelectionPreservingKeyMapper<TItem>
- java.lang.Object
-
- com.vaadin.flow.data.provider.KeyMapper<TItem>
-
- com.vaadin.flow.component.combobox.ComboBoxDataCommunicator.SelectionPreservingKeyMapper<TItem>
-
- Type Parameters:
TItem- The type of the item selectable in the combo box
- All Implemented Interfaces:
com.vaadin.flow.data.provider.DataKeyMapper<TItem>,Serializable
- Enclosing class:
- ComboBoxDataCommunicator<TItem>
protected static class ComboBoxDataCommunicator.SelectionPreservingKeyMapper<TItem> extends com.vaadin.flow.data.provider.KeyMapper<TItem>Customized key mapper that does not remove key for an item as long as it is selected.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SelectionPreservingKeyMapper(ComboBoxBase<?,TItem,?> comboBox)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringkey(TItem item)voidpurgeItems()voidremove(TItem item)
-
-
-
Constructor Detail
-
SelectionPreservingKeyMapper
public SelectionPreservingKeyMapper(ComboBoxBase<?,TItem,?> comboBox)
-
-