Class FormattedNumberToStringConverter<T extends Number>

    • Constructor Detail

      • FormattedNumberToStringConverter

        public FormattedNumberToStringConverter​(String format)
    • Method Detail

      • convertToModel

        public com.vaadin.flow.data.binder.Result<T> convertToModel​(@CheckForNull
                                                                    String value,
                                                                    com.vaadin.flow.data.binder.ValueContext context)
        Specified by:
        convertToModel in interface com.vaadin.flow.data.converter.Converter<String,​T extends Number>
      • getNullValue

        @CheckForNull
        protected abstract T getNullValue()
      • convertToModel

        protected abstract T convertToModel​(Number value)
      • convertToPresentation

        public String convertToPresentation​(@CheckForNull
                                            T value,
                                            com.vaadin.flow.data.binder.ValueContext context)
        Specified by:
        convertToPresentation in interface com.vaadin.flow.data.converter.Converter<String,​T extends Number>
      • getEmptyPresentation

        protected String getEmptyPresentation​(com.vaadin.flow.data.binder.ValueContext context)