public void initElement ( ElementBase element , IPropertyProvider propertyProvider ) { if ( propertyProvider != null ) { for ( PropertyInfo propInfo : getProperties ( ) ) { String key = propInfo . getId ( ) ; if ( propertyProvider . hasProperty ( key ) ) { String value = propertyProvider . getProperty ( key ) ; propInfo . setPropertyValue ( element , value ) ; } } } }
Initialize the element s properties using the specified property provider .