private void populateContainer ( FieldType field , byte [ ] values , byte [ ] descriptions ) { CustomField config = m_container . getCustomField ( field ) ; CustomFieldLookupTable table = config . getLookupTable ( ) ; List < Object > descriptionList = convertType ( DataType . STRING , descriptions ) ; List < Object > valueList = convertType ( field . getDataType ( ) , values ) ; for ( int index = 0 ; index < descriptionList . size ( ) ; index ++ ) { CustomFieldValueItem item = new CustomFieldValueItem ( Integer . valueOf ( 0 ) ) ; item . setDescription ( ( String ) descriptionList . get ( index ) ) ; if ( index < valueList . size ( ) ) { item . setValue ( valueList . get ( index ) ) ; } table . add ( item ) ; } }
Populate the container converting raw data into Java types .