private static < T extends Serializable > void createDisplayPropertyConverters ( final List < String > displayProperties , final ComponentContainer formContent , final Binder < T > binder , final PropertyDescriptor [ ] propertyDescriptors ) { for ( final String property : displayProperties ) { final Class < ? > typeOfProperty = getTypeOfProperty ( propertyDescriptors , property ) ; if ( typeOfProperty != null ) { final AbstractField < ? > field = new TextField ( ) ; field . setReadOnly ( true ) ; field . setCaption ( property ) ; field . setWidth ( ContentSize . FULL_SIZE ) ; formContent . addComponent ( field ) ; final Converter converter = getConverterForType ( typeOfProperty ) ; if ( converter != null ) { binder . forField ( field ) . withConverter ( converter ) . bind ( property ) ; } else { binder . forField ( field ) . bind ( property ) ; } } } }
Creates the display property converters .