public static class UiBinding.ObjectConverter
- Object
- UiBinding.ObjectConverter
Known subtypesUiBinding.BooleanConverter, UiBinding.DateConverter, UiBinding.DoubleConverter, UiBinding.FloatConverter, UiBinding.IntegerConverter, UiBinding.LongConverter, UiBinding.MappingConverter, UiBinding.StringConverter
Object converter can convert an object from one type to another e.g. a String to an integer an
array to a list model. Use this object converter to keep source/values the same e.g. when
converting using a
com.codename1.properties.UiBinding.TextAreaAdapter to a String
property.Constructors
public ObjectConverter() |
Methods
public Object convert(Object source) | Converts an object of source type to the type matching this class, the default implementation does nothing and can be used as a stand-in |
Inherited methods
Constructor details
ObjectConverter
public ObjectConverter()Method details
convert
public Object convert(Object source)Converts an object of source type to the type matching this class, the default implementation
does nothing and can be used as a stand-in
Parameters
sourceObject- an object or null
Returns
null or a new object instance