# contentView is obsolete (see bug 202391)
# builderView is obsolete (see bug 202393)
#ifdef XP_MACOSX
false
#else
true
#endif
-1
-1
true
0
""
0) {
currentX += cw;
if (currentX - (cw*aThresh) > aX)
return col;
}
lastCol = col;
}
col = col.boxObject.nextSibling;
}
if (aPos) aPos.value = "after";
return lastCol;
]]>
= 0) {
this.treeBoxObject.selection.select(parentIndex);
this.treeBoxObject.ensureRowIsVisible(parentIndex);
}
}
]]>
this.selectionTail) {
this.treeBoxObject.selection.toggleSelect(c);
this.currentIndex = c + 1;
}
else
this.treeBoxObject.selection.toggleSelect(c + 1);
}
else {
this.treeBoxObject.selection.clearSelection();
this.selectionHead = c;
this.treeBoxObject.selection.rangedSelect(c, c + 1, true);
}
this.selectionTail = c + 1;
this.treeBoxObject.ensureRowIsVisible(c + 1);
]]>
0) {
var p = this.treeBoxObject.getPageCount();
if (f - p >= 0)
i = c - p;
else
i = c - f;
this.treeBoxObject.scrollByPages(-1);
}
this.treeBoxObject.selection.timedSelect(i, this._selectDelay);
]]>
0) {
var p = this.treeBoxObject.getPageCount();
if (f - p >= 0)
i = c - p;
else
i = c - f;
this.treeBoxObject.scrollByPages(-1);
}
if (c == this.selectionTail) {
if (this.selectionHead < this.selectionTail) {
if (i < this.selectionHead) {
this.treeBoxObject.selection.clearRange(c, this.selectionHead + 1);
this.treeBoxObject.selection.rangedSelect(this.selectionHead - 1, i, true);
}
else {
this.treeBoxObject.selection.clearRange(c, i + 1);
this.currentIndex = i;
}
}
else
this.treeBoxObject.selection.rangedSelect(c - 1, i, true);
}
else {
this.treeBoxObject.selection.clearSelection();
this.selectionHead = c;
this.treeBoxObject.selection.rangedSelect(c, i, true);
}
this.selectionTail = i;
]]>
this.selectionTail) {
if (i > this.selectionHead) {
this.treeBoxObject.selection.clearRange(c, this.selectionHead - 1);
this.treeBoxObject.selection.rangedSelect(this.selectionHead + 1, i, true);
}
else {
this.treeBoxObject.selection.clearRange(c, i - 1);
this.currentIndex = i;
}
}
else
this.treeBoxObject.selection.rangedSelect(c + 1, i, true);
}
else {
this.treeBoxObject.selection.clearSelection();
this.selectionHead = c;
this.treeBoxObject.selection.rangedSelect(c, i, true);
}
this.selectionTail = i;
]]>
0) {
var p = this.treeBoxObject.getPageCount();
if (f - p >= 0)
i = c - p;
else
i = c - f;
this.treeBoxObject.scrollByPages(-1);
}
this.currentIndex = i;
]]>
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 primarycol = this.treeBoxObject.getKeyColumnIndex();
var colID = this.treeBoxObject.getColumnID(primarycol);
var rowCount = this.treeBoxObject.view.rowCount;
var start = 1;
if (length > 1) {
start = 0;
if (c < 0)
c = 0;
}
for (var i = 0; i < rowCount; i++) {
var l = (i + start + c) % rowCount;
var cellText = this.treeBoxObject.view.getCellText(l, colID);
cellText = cellText.substring(0, length).toLowerCase();
if (cellText == incrementalString) {
this.selectionHead = -1;
this.selectionTail = -1;
this.treeBoxObject.selection.timedSelect(l, this._selectDelay);
this.treeBoxObject.ensureRowIsVisible(l);
break;
}
}
}
]]>
if ("_ensureColumnOrder" in this.parentNode)
this.parentNode._ensureColumnOrder();
-1
= 0 &&
b.view.isContainerOpen(row.value)) {
var parentIndex = b.view.getParentIndex(b.selection.currentIndex);
while (parentIndex >= 0 && parentIndex != row.value)
parentIndex = b.view.getParentIndex(parentIndex);
if (parentIndex == row.value)
b.selection.select(parentIndex);
}
b.view.toggleOpenState(row.value);
return;
}
if (! this.parentNode.treeBoxObject.selection.single) {
var augment = event.ctrlKey || event.metaKey;
if (event.shiftKey) {
b.selection.rangedSelect(-1, row.value, augment);
b.ensureRowIsVisible(row.value);
return;
}
if (augment) {
b.selection.toggleSelect(row.value);
b.ensureRowIsVisible(row.value);
b.selection.currentIndex = row.value;
return;
}
}
/* We want to deselect all the selected items except what was
clicked, UNLESS it was a right-click. We have to do this
in click rather than mousedown so that you can drag a
selected group of items */
if (!col.value) return;
var column = document.getElementById(col.value);
var cycler = column.hasAttribute('cycler');
// if the last row has changed in between the time we
// mousedown and the time we click, don't fire the select handler.
// see bug #92366
if (!cycler && this._lastSelectedRow == row.value) {
b.selection.select(row.value);
b.ensureRowIsVisible(row.value);
}
]]>
this.parentNode.parentNode._columnsDirty = true;
0 && sib.parentNode == this.parentNode)
return sib;
sib = sib.boxObject.previousSibling;
}
return null;
]]>
0) ++visible;
if (visible > 1) {
window.addEventListener("mousemove", this.onDragMouseMove, false);
window.addEventListener("mouseup", this.onDragMouseUp, false);
document.treecolDragging = this;
this.mDragGesturing = true;
this.mStartDragX = event.clientX;
this.mStartDragY = event.clientY;
}
}
]]>