Property Conversion

Hi,

we store several values as Long. But in the UI we want show eg Double values or Time values. For example:

USD 100.45 stored as 10045
10:15pm stored as 1060601000 + 1560*1000 (milliseconds)

The UI field will be a text field.

Can someone give me some pointers on how to do conversion and validation of input?

Thanks,
Rene

There is a PropertyFormatter class for that purpose. But the most complete examples for conversion are found in the CustomField add-on, in the examples.