src/sap.ui.core/src/sap/ui/model/TreeBindingAdapter.js
function (oNode) {

				// do not count the artifical root node
				if (!oNode || !oNode.isArtificial) {
					iNodeCounter++;
				}

				if (oNode) {
					// Always reset selectAllMode
					oNode.nodeState.selectAllMode = false;

					if (this._mTreeState.selected[oNode.groupID]) {
						// remember changed index, push it to the limit!
						if (!oNode.isArtificial) {
							aChangedIndices.push(iNodeCounter);
						}
						// deslect the node
						this.setNodeSelection(oNode.nodeState, false);

						//also remember the old lead index
						if (oNode.groupID === this._sLeadSelectionGroupID) {
							iOldLeadIndex = iNodeCounter;
						}

						return true;
					}
				}
			}
function (oNode) {

				// do not count the artifical root node
				if (!oNode || !oNode.isArtificial) {
					iNodeCounter++;
				}

				if (oNode) {
					// Always reset selectAllMode
					oNode.nodeState.selectAllMode = false;

					if (this._mTreeState.selected[oNode.groupID]) {
						// remember changed index, push it to the limit!
						if (!oNode.isArtificial) {
							aChangedIndices.push(iNodeCounter);
						}
						// deslect the node
						this.setNodeSelection(oNode.nodeState, false);

						//also remember the old lead index
						if (oNode.groupID === this._sLeadSelectionGroupID) {
							iOldLeadIndex = iNodeCounter;
						}

						return true;
					}
				}
			}
function ( oNode ) { // do not count the artifical root node if ( ! oNode || ! oNode . isArtificial ) { iNodeCounter ++ ; } if ( oNode ) { // Always reset selectAllMode oNode . nodeState . selectAllMode = false ; if ( this . _mTreeState . selected [ oNode . groupID ] ) { // remember changed index, push it to the limit! if ( ! oNode . isArtificial ) { aChangedIndices . push ( iNodeCounter ) ; } // deslect the node this . setNodeSelection ( oNode . nodeState , false ) ; //also remember the old lead index if ( oNode . groupID === this . _sLeadSelectionGroupID ) { iOldLeadIndex = iNodeCounter ; } return true ; } } }
matches all selected nodes and retrieves their absolute row index
matches all selected nodes and retrieves their absolute row index