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:
DataKeyMapper<TItem>
,Serializable
- Enclosing class:
- ComboBoxDataCommunicator<TItem>
protected static class ComboBoxDataCommunicator.SelectionPreservingKeyMapper<TItem> extends 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 String
key(TItem item)
Gets key for an object.void
purgeItems()
void
remove(TItem item)
Removes object from the mapper.-
Methods inherited from class com.vaadin.flow.data.provider.KeyMapper
containsKey, createKey, get, has, refresh, removeAll, setIdentifierGetter
-
-
-
-
Constructor Detail
-
SelectionPreservingKeyMapper
public SelectionPreservingKeyMapper(ComboBoxBase<?,TItem,?> comboBox)
-
-