public class SimpleBindingProcessorConfig extends Object
Constructor and Description |
---|
SimpleBindingProcessorConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
protected Map<org.metawidget.vaadin.ui.widgetprocessor.binding.simple.ConvertFromTo,Converter<?,?>> |
getConverters() |
int |
hashCode() |
<F,T> SimpleBindingProcessorConfig |
setConverter(Class<F> fromClass,
Class<T> toClass,
Converter<F,T> converter)
Sets a Converter for the given Class.
|
public <F,T> SimpleBindingProcessorConfig setConverter(Class<F> fromClass, Class<T> toClass, Converter<F,T> converter)
Converters also apply to subclasses of the given Class. So for example registering a
Converter for Number.class
will match Integer.class
,
Double.class
etc., unless a more subclass-specific Converter is also registered.
Note: this is not a JavaBean 'setter': multiple different Converters can be set by calling
setConverter
multiple times with different source classes.
Copyright © 2015. All Rights Reserved.