function _updateLabelFor(){
		var aFields = this.getFields();
		var oField = aFields.length > 0 ? aFields[0] : null;

		var oLabel = this._oLabel;
		if (oLabel) {
			oLabel.setLabelFor(oField); // as Label is internal of FormElement, we can use original labelFor
		} else {
			oLabel = this.getLabel();
			if (oLabel instanceof Control /*might also be a string*/) {
				oLabel.setAlternativeLabelFor(oField);
			}
		}
	}
/*
	 * Update the for association of the related label
	 */
Update the for association of the related label
Update the for association of the related label
function _updateLabelFor(){
		var aFields = this.getFields();
		var oField = aFields.length > 0 ? aFields[0] : null;
		var oLabel = this._oLabel;
		if (oLabel) {
			oLabel.setLabelFor(oField); 
		} else {
			oLabel = this.getLabel();
			if (oLabel instanceof Control ) {
				oLabel.setAlternativeLabelFor(oField);
			}
		}
	}
function _updateLabelFor ( ) { var aFields = this . getFields ( ) ; var oField = aFields . length > 0 ? aFields [ 0 ] : null ; var oLabel = this . _oLabel ; if ( oLabel ) { oLabel . setLabelFor ( oField ) ; } else { oLabel = this . getLabel ( ) ; if ( oLabel instanceof Control ) { oLabel . setAlternativeLabelFor ( oField ) ; } } }
Update the for association of the related label
Update the for association of the related label
// as Label is internal of FormElement, we can use original labelFor /*might also be a string*/