private void populateContainer ( FieldType field , List < Pair < String , String > > items ) { CustomField config = m_container . getCustomField ( field ) ; CustomFieldLookupTable table = config . getLookupTable ( ) ; for ( Pair < String , String > pair : items ) { CustomFieldValueItem item = new CustomFieldValueItem ( Integer . valueOf ( 0 ) ) ; item . setValue ( pair . getFirst ( ) ) ; item . setDescription ( pair . getSecond ( ) ) ; table . add ( item ) ; } }
Populate the container from outline code data .