Uses of Interface
com.vaadin.data.util.converter.Converter
-
Packages that use Converter Package Description com.vaadin.data.util.converter com.vaadin.ui com.vaadin.ui.declarative com.vaadin.ui.declarative.converters -
-
Uses of Converter in com.vaadin.data.util.converter
Classes in com.vaadin.data.util.converter that implement Converter Modifier and Type Class Description classAbstractStringToNumberConverter<T>A converter that converts from the number type T toStringand back.classDateToLongConverterclassDateToSqlDateConverterclassReverseConverter<PRESENTATION,MODEL>A converter that wraps anotherConverterand reverses source and target types.classStringToBigDecimalConverterA converter that converts fromStringtoBigDecimaland back.classStringToBigIntegerConverterA converter that converts fromStringtoBigIntegerand back.classStringToBooleanConverterclassStringToByteConverterclassStringToCollectionConverterA converter that converts fromStringtoCollectionof tokens and back.classStringToDateConverterclassStringToDoubleConverterclassStringToEnumConverterclassStringToFloatConverterclassStringToIntegerConverterclassStringToLongConverterclassStringToShortConverterMethods in com.vaadin.data.util.converter that return Converter Modifier and Type Method Description <PRESENTATION,MODEL>
Converter<PRESENTATION,MODEL>ConverterFactory. createConverter(Class<PRESENTATION> presentationType, Class<MODEL> modelType)<PRESENTATION,MODEL>
Converter<PRESENTATION,MODEL>DefaultConverterFactory. createConverter(Class<PRESENTATION> presentationType, Class<MODEL> modelType)protected Converter<Date,?>DefaultConverterFactory. createDateConverter(Class<?> sourceType)protected Converter<String,?>DefaultConverterFactory. createStringConverter(Class<?> sourceType)protected <PRESENTATION,MODEL>
Converter<PRESENTATION,MODEL>DefaultConverterFactory. findConverter(Class<PRESENTATION> presentationType, Class<MODEL> modelType)static <PRESENTATIONTYPE,MODELTYPE>
Converter<PRESENTATIONTYPE,MODELTYPE>ConverterUtil. getConverter(Class<PRESENTATIONTYPE> presentationType, Class<MODELTYPE> modelType, VaadinSession session)Finds a converter that can convert from the given presentation type to the given model type and back.Methods in com.vaadin.data.util.converter with parameters of type Converter Modifier and Type Method Description static booleanConverterUtil. canConverterHandle(Converter<?,?> converter, Class<?> presentationType, Class<?> modelType)Checks if the given converter can handle conversion between the given presentation and model type.static booleanConverterUtil. canConverterPossiblyHandle(Converter<?,?> converter, Class<?> presentationType, Class<?> modelType)Checks if it possible that the given converter can handle conversion between the given presentation and model type somehow.static <PRESENTATIONTYPE,MODELTYPE>
PRESENTATIONTYPEConverterUtil. convertFromModel(MODELTYPE modelValue, Class<? extends PRESENTATIONTYPE> presentationType, Converter<PRESENTATIONTYPE,MODELTYPE> converter, Locale locale)Convert the given value from the data source type to the UI type.static <MODELTYPE,PRESENTATIONTYPE>
MODELTYPEConverterUtil. convertToModel(PRESENTATIONTYPE presentationValue, Class<MODELTYPE> modelType, Converter<PRESENTATIONTYPE,MODELTYPE> converter, Locale locale)Convert the given value from the presentation (UI) type to model (data source) type.Constructors in com.vaadin.data.util.converter with parameters of type Converter Constructor Description ReverseConverter(Converter<MODEL,PRESENTATION> converter)Creates a converter from source to target based on a converter that converts from target to source.StringToCollectionConverter(Converter<String,?> tokenConverter, Class<?> tokenType)Creates converter with giventokenConverterfor convert tokens and expectedtokenType.StringToCollectionConverter(String delimiter, Converter<String,?> tokenConverter, Class<?> tokenClass)Creates converter with giventokenConverterfor convert tokens and expectedtokenType.StringToCollectionConverter(String delimiter, Converter<String,?> tokenConverter, Class<?> tokenClass, StringToCollectionConverter.CollectionFactory factory)Creates converter with giventokenConverterfor convert tokens and expectedtokenType. -
Uses of Converter in com.vaadin.ui
Methods in com.vaadin.ui that return Converter Modifier and Type Method Description Converter<T,Object>AbstractField. getConverter()Gets the converter used to convert the property data source value to the field value.Converter<?,?>Grid.Column. getConverter()Returns the converter instance used by this column.Converter<String,Object>Label. getConverter()Gets the converter used to convert the property data source value to the label value.Converter<String,Object>Table. getConverter(Object propertyId)Returns the converter used to format the given propertyId.Methods in com.vaadin.ui with parameters of type Converter Modifier and Type Method Description static <T> elemental.json.JsonValueGrid.AbstractRenderer. encodeValue(Object modelValue, Renderer<T> renderer, Converter<?,?> converter, Locale locale)Converts and encodes the given data model property value using the given converter and renderer.voidAbstractField. setConverter(Converter<T,?> converter)Sets the converter used to convert the field value to property data source type.Grid.ColumnGrid.Column. setConverter(Converter<?,?> converter)Sets the converter used to convert from the property value type to the renderer presentation type.voidLabel. setConverter(Converter<String,?> converter)Sets the converter used to convert the label value to the property data source type.voidTable. setConverter(Object propertyId, Converter<String,?> converter)Sets a converter for a property id.<T> Grid.ColumnGrid.Column. setRenderer(Renderer<T> renderer, Converter<? extends T,?> converter)Sets the renderer for this column and the converter used to convert from the property value type to the renderer presentation type. -
Uses of Converter in com.vaadin.ui.declarative
Methods in com.vaadin.ui.declarative that return Converter Modifier and Type Method Description protected <T> Converter<String,T>DesignFormatter. findConverterFor(Class<? extends T> sourceType)Finds a converter for a given type.protected <T> Converter<String,T>DesignFormatter. findConverterFor(Class<? extends T> sourceType, boolean strict)Finds a converter for a given type.Methods in com.vaadin.ui.declarative with parameters of type Converter Modifier and Type Method Description protected <T> voidDesignFormatter. addConverter(Converter<String,T> converter)Adds a converter for a new type.protected <T> voidDesignFormatter. addConverter(Class<?> type, Converter<String,?> converter)Adds a converter for a given type. -
Uses of Converter in com.vaadin.ui.declarative.converters
Classes in com.vaadin.ui.declarative.converters that implement Converter Modifier and Type Class Description classDesignDateConverterA date converter to be used byDesignAttributeHandler.classDesignEnumConverterAn converter for Enum to/from String forDesignAttributeHandlerto use internally.classDesignObjectConverterAn converter for Object to/from String forDesignAttributeHandlerto use internally.classDesignResourceConverterA converter forResourceimplementations supported byDesignAttributeHandler.classDesignShortcutActionConverterConverter forShortcutActions.classDesignTimeZoneConverterUtility class forDesignAttributeHandlerthat deals with converting various TimeZones to string.classDesignToStringConverter<TYPE>Utility class forDesignAttributeHandlerthat deals with converting various types to string.
-