Class ValueAspectDefinition

    • Constructor Detail

      • ValueAspectDefinition

        public ValueAspectDefinition()
      • ValueAspectDefinition

        public ValueAspectDefinition​(com.vaadin.flow.data.converter.Converter<?,​?> converter)
    • Method Detail

      • getInvalidInputMessage

        protected MessageList getInvalidInputMessage​(@CheckForNull
                                                     Object value)
        Warns the user that the user input is not set due to conversion error.
      • getValueContext

        protected com.vaadin.flow.data.binder.ValueContext getValueContext​(com.vaadin.flow.component.HasValue<?,​Object> source)
      • getConverter

        protected com.vaadin.flow.data.converter.Converter<?,​?> getConverter​(Type presentationType,
                                                                                   Type modelType)
        Returns a converter that should be used to convert a value of model type to a value of presentation type. Note that the presentation type should match the value type of the input field.

        Uses Converter.identity() by default. Override to add converters.

        Parameters:
        presentationType - value type of the input field
        modelType - the model type
        Returns:
        a converter from model type to presentation type
        See Also:
        LinkkiConverterRegistry