code: function() {
  			if (!this.selectionmodel) {
  				this.selectionmodel = new SelectionModel(SelectionModel.MULTI_SELECTION);
  			} else {
  				this.selectionmodel.clearSelection();
  			}
  
  			var aIndices = this._getSelectedIndicesFromModel();
  			for (var i = 0; i < aIndices.length; i++) {
  				this.selectionmodel.addSelectionInterval(aIndices[i], aIndices[i]);
  			}
  
  			if (this._doAfterInitSelectionModel) {
  				this._doAfterInitSelectionModel();
  			}
  		}
docs: Private