|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Converter | |
|---|---|
| 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 | |
|---|---|
class |
AbstractStringToNumberConverter<T>
A converter that converts from the number type T to String and back. |
class |
DateToLongConverter
A converter that converts from Long to Date and back. |
class |
DateToSqlDateConverter
Converter for handling conversion between Date and
Date. |
class |
ReverseConverter<PRESENTATION,MODEL>
A converter that wraps another Converter and reverses source and
target types. |
class |
StringToBigDecimalConverter
A converter that converts from String to BigDecimal and back. |
class |
StringToBigIntegerConverter
A converter that converts from String to BigInteger and back. |
class |
StringToBooleanConverter
A converter that converts from String to Boolean and back. |
class |
StringToByteConverter
A converter that converts from String to Byte and back. |
class |
StringToCollectionConverter
A converter that converts from String to Collection of tokens
and back. |
class |
StringToDateConverter
A converter that converts from Date to String and back. |
class |
StringToDoubleConverter
A converter that converts from String to Double and back. |
class |
StringToEnumConverter
A converter that converts from String to an Enum and back. |
class |
StringToFloatConverter
A converter that converts from String to Float and back. |
class |
StringToIntegerConverter
A converter that converts from String to Integer and back. |
class |
StringToLongConverter
A converter that converts from String to Long and back. |
class |
StringToShortConverter
A converter that converts from String to Short and back. |
| Methods in com.vaadin.data.util.converter that return Converter | ||
|---|---|---|
|
DefaultConverterFactory.createConverter(java.lang.Class<PRESENTATION> presentationType,
java.lang.Class<MODEL> modelType)
|
|
|
ConverterFactory.createConverter(java.lang.Class<PRESENTATION> presentationType,
java.lang.Class<MODEL> modelType)
|
|
protected Converter<java.util.Date,?> |
DefaultConverterFactory.createDateConverter(java.lang.Class<?> sourceType)
|
|
protected Converter<java.lang.String,?> |
DefaultConverterFactory.createStringConverter(java.lang.Class<?> sourceType)
|
|
protected
|
DefaultConverterFactory.findConverter(java.lang.Class<PRESENTATION> presentationType,
java.lang.Class<MODEL> modelType)
|
|
static
|
ConverterUtil.getConverter(java.lang.Class<PRESENTATIONTYPE> presentationType,
java.lang.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 | ||
|---|---|---|
static boolean |
ConverterUtil.canConverterHandle(Converter<?,?> converter,
java.lang.Class<?> presentationType,
java.lang.Class<?> modelType)
Checks if the given converter can handle conversion between the given presentation and model type. |
|
static boolean |
ConverterUtil.canConverterPossiblyHandle(Converter<?,?> converter,
java.lang.Class<?> presentationType,
java.lang.Class<?> modelType)
Checks if it possible that the given converter can handle conversion between the given presentation and model type somehow. |
|
static
|
ConverterUtil.convertFromModel(MODELTYPE modelValue,
java.lang.Class<? extends PRESENTATIONTYPE> presentationType,
Converter<PRESENTATIONTYPE,MODELTYPE> converter,
java.util.Locale locale)
Convert the given value from the data source type to the UI type. |
|
static
|
ConverterUtil.convertToModel(PRESENTATIONTYPE presentationValue,
java.lang.Class<MODELTYPE> modelType,
Converter<PRESENTATIONTYPE,MODELTYPE> converter,
java.util.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 | |
|---|---|
ReverseConverter(Converter<MODEL,PRESENTATION> converter)
Creates a converter from source to target based on a converter that converts from target to source. |
|
StringToCollectionConverter(Converter<java.lang.String,?> tokenConverter,
java.lang.Class<?> tokenType)
Creates converter with given tokenConverter for convert tokens
and expected tokenType. |
|
StringToCollectionConverter(java.lang.String delimiter,
Converter<java.lang.String,?> tokenConverter,
java.lang.Class<?> tokenClass)
Creates converter with given tokenConverter for convert tokens
and expected tokenType. |
|
StringToCollectionConverter(java.lang.String delimiter,
Converter<java.lang.String,?> tokenConverter,
java.lang.Class<?> tokenClass,
StringToCollectionConverter.CollectionFactory factory)
Creates converter with given tokenConverter for convert tokens
and expected tokenType. |
|
| Uses of Converter in com.vaadin.ui |
|---|
| Methods in com.vaadin.ui that return Converter | |
|---|---|
Converter<?,?> |
Grid.Column.getConverter()
Returns the converter instance used by this column. |
Converter<java.lang.String,java.lang.Object> |
Label.getConverter()
Gets the converter used to convert the property data source value to the label value. |
Converter<T,java.lang.Object> |
AbstractField.getConverter()
Gets the converter used to convert the property data source value to the field value. |
Converter<java.lang.String,java.lang.Object> |
Table.getConverter(java.lang.Object propertyId)
Returns the converter used to format the given propertyId. |
| Methods in com.vaadin.ui with parameters of type Converter | ||
|---|---|---|
static
|
Grid.AbstractRenderer.encodeValue(java.lang.Object modelValue,
Renderer<T> renderer,
Converter<?,?> converter,
java.util.Locale locale)
Converts and encodes the given data model property value using the given converter and renderer. |
|
Grid.Column |
Grid.Column.setConverter(Converter<?,?> converter)
Sets the converter used to convert from the property value type to the renderer presentation type. |
|
void |
Label.setConverter(Converter<java.lang.String,?> converter)
Sets the converter used to convert the label value to the property data source type. |
|
void |
AbstractField.setConverter(Converter<T,?> converter)
Sets the converter used to convert the field value to property data source type. |
|
void |
Table.setConverter(java.lang.Object propertyId,
Converter<java.lang.String,?> converter)
Sets a converter for a property id. |
|
|
Grid.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 | ||
|---|---|---|
protected
|
DesignFormatter.findConverterFor(java.lang.Class<? extends T> sourceType)
Finds a converter for a given type. |
|
protected
|
DesignFormatter.findConverterFor(java.lang.Class<? extends T> sourceType,
boolean strict)
Finds a converter for a given type. |
|
| Methods in com.vaadin.ui.declarative with parameters of type Converter | ||
|---|---|---|
protected
|
DesignFormatter.addConverter(java.lang.Class<?> type,
Converter<java.lang.String,?> converter)
Adds a converter for a given type. |
|
protected
|
DesignFormatter.addConverter(Converter<java.lang.String,T> converter)
Adds a converter for a new type. |
|
| Uses of Converter in com.vaadin.ui.declarative.converters |
|---|
| Classes in com.vaadin.ui.declarative.converters that implement Converter | |
|---|---|
class |
DesignDateConverter
A date converter to be used by DesignAttributeHandler. |
class |
DesignEnumConverter
An converter for Enum to/from String for DesignAttributeHandler to
use internally. |
class |
DesignObjectConverter
An converter for Object to/from String for DesignAttributeHandler to
use internally. |
class |
DesignResourceConverter
A converter for Resource implementations supported by
DesignAttributeHandler. |
class |
DesignShortcutActionConverter
Converter for ShortcutActions. |
class |
DesignTimeZoneConverter
Utility class for DesignAttributeHandler that deals with converting
various TimeZones to string. |
class |
DesignToStringConverter<TYPE>
Utility class for DesignAttributeHandler that deals with converting
various types to string. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||