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

public class NullValueController<V extends Serializable> extends Object implements 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 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 controller
      defaultNullRepresentation - the default representation to use for null