nsISupports
Last changed in Gecko 1.9 (Firefox 3)void adjustSelection(in long index, in long count); |
void clearRange(in long startIndex, in long endIndex); |
void clearSelection(); |
void getRangeAt(in long i, out long min, out long max); |
long getRangeCount(); |
void invalidateSelection(); |
void invertSelection(); |
boolean isSelected(in long index); |
void rangedSelect(in long startIndex, in long endIndex, in boolean augment); |
void select(in long index); |
void selectAll(); |
void timedSelect(in long index, in long delay); |
void toggleSelect(in long index); |
| Attribute | Type | Description |
count |
long |
The number of rows currently selected in this tree. Read only. |
currentColumn |
|
The current column. |
currentIndex |
long |
The current item (the one with focus). Note: This property indicates only the index of the row with tree cursor around it. This is not a reliable method of determining the selected row, as the selection may include multiple rows, or the focused row may not even be selected. |
selectEventsSuppressed |
boolean |
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, for example, on a sort. Note: Setting this attribute to false will fire a select event. |
shiftSelectPivot |
long |
The selection "pivot". This is the first item the user selected as part of a ranged select. Read only. |
single |
boolean |
This attribute is a boolean indicating single selection. Read only. |
tree |
|
The tree widget for this selection. |
Called when the row count changes to adjust selection indices.
void adjustSelection( in long index, in long count );
indexcountClears the range.
void clearRange( in long startIndex, in long endIndex );
startIndexendIndexClears the selection.
void clearSelection();
None.
Returns two objects whose value properties represent the minimum and maximum indices of the given selection range. See the Tree Selection tutorial.
void getRangeAt( in long i, out long min, out long max );
iIndex of range to get (0 <= i < getRangeCount())minIndex of first object in range.maxIndex of last object in this range. For single selections, min == max.Returns a count of selection ranges.
long getRangeCount();
None.
long - number of selection ranges
Can be used to invalidate the selection.
void invalidateSelection();
None.
Inverts the selection.
void invertSelection();
None.
Indicates whether or not the row at the specified index is part of the selection.
boolean isSelected( in long index );
index
Select the range specified by the indices.
void rangedSelect( in long startIndex, in long endIndex, in boolean augment );
startIndexendIndexaugmenttrue, the range is added to the selection without clearing out anything else. If false, everything is cleared except for the specified range.Deselect all rows and select the row at the specified index.
void select( in long index );
indexSelects all rows.
void selectAll();
None.
Perform a timed select.
void timedSelect( in long index, in long delay );
indexdelayToggle the selection state of the row at the specified index.
void toggleSelect( in long index );
index