0 0 false null null null 0 "" 0 ? this.getIndexOfItem(this.selectedItems[0]) : -1; ]]> = 0) this.selectItem(this.getItemAtIndex(val)); else this.clearSelection(); ]]> 0 ? this.selectedItems[0] : null; ]]> 0) return this.selectedItem.value; else return null; ]]> = 0) this.currentItem = this.getItemAtIndex(val); else this.currentItem = null; ]]> = 0; --i) this.selectedItems[i].selected = false; this.selectedItems.splice(0, this.selectedItems.length); } this._selectionStart = null; this._fireOnSelect(); ]]> return this.listBoxObject.getIndexOfItem(item); return this.listBoxObject.getItemAtIndex(index); return this.listBoxObject.ensureIndexIsVisible(index); return this.ensureIndexIsVisible(this.listBoxObject.getIndexOfItem(element)); return this.listBoxObject.scrollToIndex(index); return this.listBoxObject.getNumberOfVisibleRows(); return this.listBoxObject.getIndexOfFirstVisibleRow(); return this.listBoxObject.getRowCount(); 1 ) this.removeItemFromSelection(this.selectedItems[l-1]); if ( l <= 2 ) this._isDownSelection=0; } else { this.addItemToSelection(n); this._isUpSelection=1; } } ]]> 1 ) this.removeItemFromSelection(this.selectedItems[l-1]); if ( l <= 2 ) this._isUpSelection=0; } else { this.addItemToSelection(n); this._isDownSelection=1; } } ]]> = count - v ) n=this.getItemAtIndex(count - 1); else { n = this.getNextItem(this.selectedItems[l-1], v); var newIndex = i + v; if ( ! n || newIndex > count - v ) { newIndex = count - v; n = this.getItemAtIndex(newIndex + this.getIndexOfItem(this.selectedItems[l-1]) - i); } this.scrollToIndex(newIndex); } this.timedSelect(n, this._selectDelay); ]]> 0 && !event.altKey && !event.ctrlKey && !event.shiftKey && !event.metaKey) { var key = String.fromCharCode(event.charCode); key = key.toLowerCase(); if (event.timeStamp - this._lastKeyTime > 1000) this._incrementalString = key; else this._incrementalString += key; this._lastKeyTime = event.timeStamp; var length = this._incrementalString.length; var incrementalString = this._incrementalString; var charIndex = 1; while (charIndex < length && incrementalString[charIndex] == incrementalString[charIndex - 1]) charIndex++; // If all letters in incremental string are same, just try to match the first one if (charIndex == length) { length = 1; incrementalString = incrementalString.substring(0, length); } var l = this.selectedItems.length; var c = -1; if (l > 0) c = this.getIndexOfItem(this.selectedItems[l-1]); var rowCount = this.getRowCount(); var start = 1; if (length > 1) { start = 0; if (c < 0) c = 0; } for (var i = 0; i < rowCount; i++) { var k = (i + start + c) % rowCount; var item = this.getItemAtIndex(k); //listitem var cellText = item.getAttribute("label"); cellText = cellText.substring(0, length).toLowerCase(); if (cellText == incrementalString) { this._isUpSelection=0; this._isDownSelection=0; this.ensureIndexIsVisible(k); this.timedSelect(item, this._selectDelay); break; } } } ]]>