0 true false null null null null null 0 false false false false false false null null false null null null null false = 0) { var item = this.mLastResults[obj.session].items.QueryElementAt(obj.index, nsIAutoCompleteItem); return item; } } return null; ]]> 0) return name; } return null; ]]> 0 && results.defaultItemIndex != -1) { defaultSession = name; break; } } if (defaultSession) { results = this.mLastResults[defaultSession]; if (results && !this.noMatch) if (results.defaultItemIndex != -1) this.value = this.getSessionValueAt(defaultSession, results.defaultItemIndex); else this.value = this.getSessionValueAt(defaultSession, 0); // preselect the first one... } } this.closeResultPopup(); } this.mNeedToComplete = false; this.clearTimer(); if (aFireTextCommand) this._fireEvent("textcommand", this.userAction, aTriggeringEvent); ]]> = aIndex) { return {session: name, index: aIndex-idx}; } idx += this.mLastResults[name].items.Count(); } } return null; ]]> = str.length) this.mAutoCompleteTimer = setTimeout(this.callListener, this.timeout, this, "startLookup"); else this.noMatch = true; ]]> 0 || this.alwaysOpenPopup)) { this.openResultPopup(); return; } this.userAction = "scrolling"; this.mNeedToComplete = false; var dir = k == KeyEvent.DOM_VK_DOWN || k == KeyEvent.DOM_VK_PAGE_DOWN || (k == KeyEvent.DOM_VK_TAB && !aEvent.shiftKey) ? 1 : -1; var amt = k == KeyEvent.DOM_VK_PAGE_UP || k == KeyEvent.DOM_VK_PAGE_DOWN ? this.resultsPopup.pageCount-1 : 1; var selected = this.resultsPopup.selectBy(dir, amt); // determine which value to place in the textbox this.ignoreInputEvent = true; if (selected != null) { if (this.getSessionStatusAt(selected) == Components.interfaces.nsIAutoCompleteStatus.failureItems) { if (this.currentSearchString) this.value = this.currentSearchString; } else { this.value = this.getResultValueAt(selected); } this.mTransientValue = true; } else { if (this.currentSearchString) this.value = this.currentSearchString; this.mTransientValue = false; } // move cursor to the end this.mInputElt.setSelectionRange(this.value.length, this.value.length); this.ignoreInputEvent = false; } ]]> > " + resultValue; this.mInputElt.setSelectionRange(entry.length, this.value.length); } else { var postIndex = resultValue.indexOf(this.value); if (postIndex >= 0) { var startPt = this.value.length; this.value = this.value + resultValue.substr(startPt+postIndex); this.mInputElt.setSelectionRange(startPt, this.value.length); } } } this.mNeedToComplete = true; this.ignoreInputEvent = false; this.mDefaultMatchFilled = true; } } ]]> = this.minResultsForPopup || this.mFailureItems)) { var w = this.boxObject.width; if (w != this.resultsPopup.boxObject.width) this.resultsPopup.setAttribute("width", w); this.resultsPopup.showPopup(this, -1, -1, "popup", "bottomleft", "topleft"); this.mMenuOpen = true; } ]]> document.getAnonymousElementByAttribute(this, "anonid", "outliner"); document.getAnonymousElementByAttribute(this, "anonid", "outlinercols"); document.getAnonymousElementByAttribute(this, "anonid", "outlinerbody"); 0 aMaxRow && aIndex != aMaxRow) newIdx = aMaxRow; else if (aDir > 0 && aIndex == null || newIdx < 0 && aIndex != 0) newIdx = 0; if (newIdx < 0 && aIndex == 0 || newIdx > aMaxRow && aIndex == aMaxRow) aIndex = null; else aIndex = newIdx; return aIndex; ]]> this.textbox.mMenuOpen = true; this.textbox.mMenuOpen = false; this.selectedIndex = null; new Date() = 0) return {row: row.value, column: col.value}; else return null; ]]> 30) { var rc = this.getHoverCell(event); if (rc && rc.row != this.textbox.view.selectedIndex) this.textbox.view.selectedIndex = rc.row; this.mLastMoveTime = new Date(); } ]]>