public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function(value, sendUpdatedEvt) {
	   
	   if(!lang.isArray(value) ) {
	      throw new Error("inputEx.ListField.setValue expected an array, got "+(typeof value));
	   }
	      
	   // Set the values (and add the lines if necessary)
	   for(var i = 0 ; i < value.length ; i++) {
	      if(i == this.subFields.length) {
	         this.addElement(value[i]);
	      }
	      else {
	         this.subFields[i].setValue(value[i], false);
	      }
	   }
	      
	   // Remove additional subFields
	   var additionalElements = this.subFields.length-value.length;
	   if(additionalElements > 0) {
	      for(i = 0 ; i < additionalElements ; i++) { 
	         this.removeElement(value.length);
	      }
	   }
	   
	   inputEx.ListField.superclass.setValue.call(this, value, sendUpdatedEvt);
	}
function(value, sendUpdatedEvt) {
	   
	   if(!lang.isArray(value) ) {
	      throw new Error("inputEx.ListField.setValue expected an array, got "+(typeof value));
	   }
	      
	   // Set the values (and add the lines if necessary)
	   for(var i = 0 ; i < value.length ; i++) {
	      if(i == this.subFields.length) {
	         this.addElement(value[i]);
	      }
	      else {
	         this.subFields[i].setValue(value[i], false);
	      }
	   }
	      
	   // Remove additional subFields
	   var additionalElements = this.subFields.length-value.length;
	   if(additionalElements > 0) {
	      for(i = 0 ; i < additionalElements ; i++) { 
	         this.removeElement(value.length);
	      }
	   }
	   
	   inputEx.ListField.superclass.setValue.call(this, value, sendUpdatedEvt);
	}
function ( value , sendUpdatedEvt ) { if ( ! lang . isArray ( value ) ) { throw new Error ( "inputEx.ListField.setValue expected an array, got " + ( typeof value ) ) ; } // Set the values (and add the lines if necessary) for ( var i = 0 ; i < value . length ; i ++ ) { if ( i == this . subFields . length ) { this . addElement ( value [ i ] ) ; } else { this . subFields [ i ] . setValue ( value [ i ] , false ) ; } } // Remove additional subFields var additionalElements = this . subFields . length - value . length ; if ( additionalElements > 0 ) { for ( i = 0 ; i < additionalElements ; i ++ ) { this . removeElement ( value . length ) ; } } inputEx . ListField . superclass . setValue . call ( this , value , sendUpdatedEvt ) ; }
Set the value of all the subfields
@param {Array} value The list of values to set
@param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)
Set the value of all the subfields