Package com.vaadin.featurepack.ui
Class NullValueController<V extends Serializable>
java.lang.Object
com.vaadin.featurepack.ui.NullValueController<V>
- Type Parameters:
V- the value type of the component that uses this controller
- All Implemented Interfaces:
Serializable
Controls the logic of handling null values and their representations for
components that inherently do not accept
null values. Used for
implementing the behaviour of v7/v8 legacy components for their newer Vaadin
Flow counterparts. The component should implement NullValueCapable.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNullValueController(com.vaadin.flow.component.HasValue<?, V> hasValue, V defaultNullRepresentation) Constructs a new controller for the given component with the specified default null representation. -
Method Summary
-
Constructor Details
-
NullValueController
public NullValueController(com.vaadin.flow.component.HasValue<?, V> hasValue, V defaultNullRepresentation) Constructs a new controller for the given component with the specified default null representation.- Parameters:
hasValue- the reference to the component that uses this controllerdefaultNullRepresentation- the default representation to use fornull
-