protected void applyContext ( ShuttleListBinding binding , Map context ) { if ( context . containsKey ( MODEL_KEY ) ) { binding . setModel ( ( ListModel ) context . get ( MODEL_KEY ) ) ; } if ( context . containsKey ( SELECTABLE_ITEMS_HOLDER_KEY ) ) { binding . setSelectableItemsHolder ( ( ValueModel ) context . get ( SELECTABLE_ITEMS_HOLDER_KEY ) ) ; } if ( context . containsKey ( SELECTED_ITEMS_HOLDER_KEY ) ) { binding . setSelectedItemsHolder ( ( ValueModel ) context . get ( SELECTED_ITEMS_HOLDER_KEY ) ) ; } if ( context . containsKey ( RENDERER_KEY ) ) { binding . setRenderer ( ( ListCellRenderer ) context . get ( RENDERER_KEY ) ) ; } if ( context . containsKey ( COMPARATOR_KEY ) ) { binding . setComparator ( ( Comparator ) context . get ( COMPARATOR_KEY ) ) ; } if ( context . containsKey ( SELECTED_ITEM_TYPE_KEY ) ) { binding . setSelectedItemType ( ( Class ) context . get ( SELECTED_ITEM_TYPE_KEY ) ) ; } if ( context . containsKey ( FORM_ID ) ) { binding . setFormId ( ( String ) context . get ( FORM_ID ) ) ; } }
Apply the values from the context to the specified binding .