Package com.vaadin.featurepack.ui
Class InputSelectionController<V>
java.lang.Object
com.vaadin.featurepack.ui.InputSelectionController<V>
- Type Parameters:
V- the value type of the component that uses this controller
- All Implemented Interfaces:
Serializable
Controls the logic of handling input selection and cursor placement for
components that do not inherently support these features. This allows the
behavior of legacy Vaadin Framework v7/v8 components to be implemented in
newer Vaadin Flow components. The component using this controller should
implement
InputSelectionCapable.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputSelectionController(com.vaadin.flow.component.HasValueAndElement<?, V> inputComponent, ValueToDisplayedTextConverter<V> valueToDisplayedText) Constructs a new controller for the given component. -
Method Summary
-
Constructor Details
-
InputSelectionController
public InputSelectionController(com.vaadin.flow.component.HasValueAndElement<?, V> inputComponent, ValueToDisplayedTextConverter<V> valueToDisplayedText) Constructs a new controller for the given component.- Parameters:
inputComponent- the reference to the component that uses this controller.valueToDisplayedText- the converter that maps the internal value to the displayed value.
-