Class UiBinding.ObjectConverter

java.lang.Object
com.codename1.properties.UiBinding.ObjectConverter
Direct Known Subclasses:
UiBinding.BooleanConverter, UiBinding.DateConverter, UiBinding.DoubleConverter, UiBinding.FloatConverter, UiBinding.IntegerConverter, UiBinding.LongConverter, UiBinding.MappingConverter, UiBinding.StringConverter
Enclosing class:
UiBinding

public static class UiBinding.ObjectConverter extends java.lang.Object
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.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.Object
    convert(java.lang.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ObjectConverter

      public ObjectConverter()
  • Method Details

    • convert

      public java.lang.Object convert(java.lang.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
      • source: an object or null
      Returns

      null or a new object instance