|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Converter | |
|---|---|
| com.vaadin.data | Contains interfaces for the data layer, mainly for binding typed data and data collections to components, and for validating data. |
| com.vaadin.data.util.converter | |
| com.vaadin.ui | |
| com.vaadin.ui.components.grid | |
| Uses of Converter in com.vaadin.data |
|---|
| Methods in com.vaadin.data with parameters of type Converter | ||
|---|---|---|
static
|
RpcDataProviderExtension.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. |
|
| 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 |
StringToBooleanConverter
A converter that converts from String to Boolean 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 |
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. |
| 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. |
|
| Uses of Converter in com.vaadin.ui |
|---|
| Methods in com.vaadin.ui that return Converter | |
|---|---|
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 | |
|---|---|
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. |
| Uses of Converter in com.vaadin.ui.components.grid |
|---|
| Methods in com.vaadin.ui.components.grid that return Converter | |
|---|---|
Converter<?,?> |
GridColumn.getConverter()
Returns the converter instance used by this column. |
| Methods in com.vaadin.ui.components.grid with parameters of type Converter | ||
|---|---|---|
void |
GridColumn.setConverter(Converter<?,?> converter)
Sets the converter used to convert from the property value type to the renderer presentation type. |
|
|
GridColumn.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. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||