[scriptable, uuid(f8a13364-184e-4da3-badf-5c04837537f8)]
interface nsITreeSelection : nsISupports

Attributes

 The number of rows currently selected in this tree.
readonly attribute long count
 The current item (the one that gets a focus rect in addition to being
 selected).
attribute long currentIndex
 This attribute is a boolean indicating whether or not the
 "select" event should fire when the selection is changed using
 one of our methods.  A view can use this to temporarily suppress
 the selection while manipulating all of the indices, e.g., on 
 a sort.
attribute boolean selectEventsSuppressed
 The selection "pivot".  This is the first item the user selected as
 part of a ranged select.
readonly attribute long shiftSelectPivot
 This attribute is a boolean indicating single selection.
readonly attribute boolean single
 The tree widget for this selection.
attribute nsITreeBoxObject tree

Methods

 Called when the row count changes to adjust selection indices.
void adjustSelection(in long index, in long count)
 Clears the range.
void clearRange(in long startIndex, in long endIndex)
 Clears the selection.
void clearSelection()

          
void getRangeAt(in long i, out long min, out long max)
 Iterate the selection using these methods.
long getRangeCount()
 Can be used to invalidate the selection.
void invalidateSelection()
 Inverts the selection.
void invertSelection()
 Indicates whether or not the row at the specified index is
 part of the selection.
boolean isSelected(in long index)
 Select the range specified by the indices.  If augment is true,
 then we add the range to the selection without clearing out anything
 else.  If augment is false, everything is cleared except for the specified range.
void rangedSelect(in long startIndex, in long endIndex, in boolean augment)
 Deselect all rows and select the row at the specified index. 
void select(in long index)
 Selects all rows.
void selectAll()
 Perform a timed select.
void timedSelect(in long index, in long delay)
 Toggle the selection state of the row at the specified index.
void toggleSelect(in long index)