Like what you see? Have a play with our trial version.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
top
 
 
top

View level converters must extend the abstract class com.hof.mi.interfaces.ConverterConfiguration UI and persistence is available through the normal UserInputParameters API. You can see the documentation on this API <here> here.

The following methods need to be implemented in order to create a view level converter:

...

 

Styleclass
ClasstopLink

top



 

Anchor
acceptsNativeType
acceptsNativeType

 

...

Code Block
languagejava
themeEclipse
@Override
public int getReturnType() {
    return UserInputParameters.TYPE_NUMERIC;
}

 

 

Styleclass
ClasstopLink

top

...

 

Code Block
languagejava
themeEclipse
@Override
public Object convertObjectReverse(Object data) {
   if (data == null) return null;
   return data.toString();
}

 

 

Styleclass
ClasstopLink

top

 

 

 

Section
Column
width75

Previous topic: Converter overview

Column

Next topic: Data transformation extras