private IndexedContainer createContainerForBundleWithoutDescriptor ( ) throws IOException , CmsException { IndexedContainer container = new IndexedContainer ( ) ; // create properties container . addContainerProperty ( TableProperty . KEY , String . class , "" ) ; container . addContainerProperty ( TableProperty . TRANSLATION , String . class , "" ) ; // add entries SortedProperties localization = getLocalization ( m_locale ) ; Set < Object > keySet = m_keyset . getKeySet ( ) ; for ( Object key : keySet ) { Object itemId = container . addItem ( ) ; Item item = container . getItem ( itemId ) ; item . getItemProperty ( TableProperty . KEY ) . setValue ( key ) ; Object translation = localization . get ( key ) ; item . getItemProperty ( TableProperty . TRANSLATION ) . setValue ( null == translation ? "" : translation ) ; } return container ; }
Creates the container for a bundle without descriptor .