protected void applyContext ( AbstractListBinding binding , Map context ) { if ( context . containsKey ( SELECTABLE_ITEMS_KEY ) ) { binding . setSelectableItems ( decorate ( context . get ( SELECTABLE_ITEMS_KEY ) , selectableItems ) ) ; } else if ( selectableItems != null ) { binding . setSelectableItems ( selectableItems ) ; } if ( context . containsKey ( COMPARATOR_KEY ) ) { binding . setComparator ( ( Comparator ) decorate ( context . get ( COMPARATOR_KEY ) , comparator ) ) ; } else if ( comparator != null ) { binding . setComparator ( comparator ) ; } if ( context . containsKey ( FILTER_KEY ) ) { binding . setFilter ( ( Constraint ) decorate ( context . get ( FILTER_KEY ) , filter ) ) ; } else if ( filter != null ) { binding . setFilter ( filter ) ; } }
Applies any context or preset value .