public void setElements ( final List < ? extends Binding > bindings ) { if ( bindings == null || bindings . size ( ) == 0 ) { clear ( ) ; return ; } for ( Binding binding : bindings ) { if ( binding == null ) { throw new IllegalArgumentException ( "null elemnt" ) ; } } clear ( ) ; for ( Binding binding : bindings ) { addElement ( binding ) ; } }
Sets the element bindings of this binding .