-1
-1
-1
= 0; --i) {
var elem = this.contentView.getItemAtIndex(i);
if (elem.tagName.toLowerCase() == "option" && !elem.disabled)
break;
}
return i;
]]>
0) {
var p = this.treeBoxObject.getPageLength();
if (f - p >= 0)
i = aCurrentIndex - p;
else
i = aCurrentIndex - f;
}
return this.getPrevOptionIndex(i+1);
]]>
/* Update our hasgroups attribute */
if (this.selectElement.hasOptGroups)
document.getAnonymousElementByAttribute(this, "anonid", "treebody").setAttribute("hasgroups", "true");
= this.view.rowCount)
return;
} catch (e) {}
this.selectionHead = this.selectionTail = -1;
this.view.selection.timedSelect(i, 500);
this.treeBoxObject.ensureRowIsVisible(i);
var selIndex = this.adjustIndexForNesting(i);
this.selectElement.setOptionsSelectedByIndex(selIndex, selIndex, true, true, false,
false);
if ("onchange" in this)
this.onchange();
]]>
= this.view.rowCount)
return;
} catch (e) {}
var selection = this.view.selection;
var select = this.selectElement;
var selIndex = this.adjustIndexForNesting(c);
var nextSelIndex = this.adjustIndexForNesting(i);
if (c == this.selectionTail) {
if (this.selectionHead > this.selectionTail) {
selection.toggleSelect(c);
select.setOptionsSelectedByIndex(selIndex, selIndex, selection.isSelected(c), false, false, false);
this.currentIndex = i;
}
else {
selection.toggleSelect(i);
select.setOptionsSelectedByIndex(nextSelIndex, nextSelIndex, selection.isSelected(i), false, false, false);
}
}
else {
selection.clearSelection();
this.selectionHead = c;
selection.rangedSelect(c, i, true);
select.setOptionsSelectedByIndex(selIndex, nextSelIndex, true, true, false, false);
}
this.selectionTail = i;
this.treeBoxObject.ensureRowIsVisible(i);
if ("onchange" in this)
this.onchange();
]]>
= this.view.rowCount)
return;
} catch (e) {}
this.currentIndex = i;
this.treeBoxObject.ensureRowIsVisible(i);
]]>
= l)
return;
this.selectionHead = this.selectionTail = -1;
var i = this.computePageDownIndex(c);
this.treeBoxObject.scrollByPages(1);
this.view.selection.timedSelect(i, 500);
var selIndex = this.adjustIndexForNesting(i);
this.selectElement.setOptionsSelectdByIndex(selIndex, selIndex, true, true,
false, false);
if ("onchange" in this)
this.onchange();
]]>
= l)
return;
var i = this.getPageDownIndex(c);
var box = this.treeBoxObject;
box.scrollByPages(1);
var selection = box.view.selection;
var select = this.selectElement;
var selIndex = this.adjustIndexForNesting(c);
var selEndIndex = this.adjustIndexforNesting(i);
var selHeadPrevIndex = this.adjustIndexForNesting(this.getPrevOptionIndex(this.selectionHead));
var selHeadNextIndex = this.adjustIndexForNesting(this.getNextOptionIndex(this.selectionHead));
var selEndPrevIndex = this.adjustIndexForNesting(this.getPrevOptionIndex(i));
var curNextIndex = this.adjustIndexForNesting(this.getNextOptionIndex(c));
if (c == this.selectionTail) {
if (this.selectionHead > this.selectionTail) {
if (i > this.selectionHead) {
selection.clearRange(c, this.selectionHead - 1);
selection.rangedSelect(this.selectionHead + 1, i, true);
select.setOptionsSelectedByIndex(selIndex, selHeadPrevIndex, false, false,
false, false);
select.setOptionsSelectedByIndex(selHeadNextIndex, selEndIndex, true, false,
false, false);
}
else {
selection.clearRange(c, i - 1);
select.setOptionsSelectedByIndex(selIndex, selEndPrevIndex, false, false,
false, false);
this.currentIndex = i;
}
}
else {
selection.rangedSelect(c + 1, i, true);
select.setOptionsSelectedByIndex(curNextIndex, i, true, false, false, false);
}
}
else {
selection.clearSelection();
this.selectionHead = c;
selection.rangedSelect(c, i, true);
select.setOptionsSelectedByIndex(selIndex, selEndIndex, true, true, false, false);
}
this.selectionTail = i;
if ("onchange" in this)
this.onchange();
]]>
= l)
return;
this.treeBoxObject.scrollByPages(1);
this.currentIndex = this.computePageDownIndex(c);
]]>
= this.view.rowCount ||
this.currentIndex == firstOptionIndex)
return;
this.selectionHead = this.selectionTail = -1;
var box = this.treeBoxObject;
box.view.selection.timedSelect(firstOptionIndex, 500);
var selIndex = this.adjustIndexForNesting(firstOptionIndex);
this.selectElement.setOptionsSelectedByIndex(selIndex, selIndex, true, true,
false, false);
box.ensureRowIsVisible(firstOptionIndex);
if ("onchange" in this)
this.onchange();
]]>
= this.view.rowCount ||
c == firstOptionIndex)
return;
var box = this.treeBoxObject;
var selection = box.view.selection;
var select = this.selectElement;
if (c != this.selectionTail) {
selection.clearSelection();
select.setOptionsSelectedByIndex(-1, -1, true, true, false, false);
this.selectionHead = c;
}
selection.rangedSelect(c, firstOptionIndex, true);
var selIndex = this.adjustIndexForNesting(firstOptionIndex);
select.setOptionsSelectedByIndex(c, selIndex, true, false, false, false);
this.selectionTail = firstOptionIndex;
box.ensureRowIsVisible(firstOptionIndex);
if ("onchange" in this)
this.onchange();
]]>
= this.view.rowCount)
return;
this.currentIndex = firstOptionIndex;
this.treeBoxObject.ensureRowIsVisible(firstOptionIndex);
]]>