Manage the selection of items within a view. This interface is a subset of nsITreeViewSelection. Note that if you are part of the user interface, you probably want to be calling nsITreeView.selection instead - otherwise things can get subtly out of sync.
More...
import"sbIMediaListViewSelection.idl";
Manage the selection of items within a view. This interface is a subset of nsITreeViewSelection. Note that if you are part of the user interface, you probably want to be calling nsITreeView.selection instead - otherwise things can get subtly out of sync.
Definition at line 62 of file sbIMediaListViewSelection.idl.
Add a listener to the selection. It will be notified when the selection or current index changes.
- Parameters
-
aListener | The listener to add |
void sbIMediaListViewSelection::clear |
( |
in long |
aIndex | ) |
|
Unselect the item at the given index.
- Parameters
-
aIndex | Index of the item in the view |
void sbIMediaListViewSelection::clearRange |
( |
in long |
aStartIndex, |
|
|
in long |
aEndIndex |
|
) |
| |
Clear the specified range.
- Parameters
-
aStartIndex | Index of the starting item in the view |
aEndIndex | Index of the ending item in the view |
boolean sbIMediaListViewSelection::isContentTypeSelected |
( |
in AString |
aContentType | ) |
|
Indicates whether or not any item with the specified content type is selected.
- Parameters
-
aContentType | Content type of the item |
boolean sbIMediaListViewSelection::isIndexSelected |
( |
in long |
aIndex | ) |
|
Indicates whether or not the item at the specified index is part of the selection.
- Parameters
-
aIndex | Index of the item in the view |
Remove a listener from the selection.
- Parameters
-
aListener | The listener to remove |
void sbIMediaListViewSelection::select |
( |
in long |
aIndex | ) |
|
Select the item at the given index.
- Parameters
-
aIndex | Index of the item in the view |
void sbIMediaListViewSelection::selectAll |
( |
| ) |
|
void sbIMediaListViewSelection::selectNone |
( |
| ) |
|
void sbIMediaListViewSelection::selectOnly |
( |
in long |
aIndex | ) |
|
Select only the item at the given index, all others will be deselected.
- Parameters
-
aIndex | Index of the item in the view |
void sbIMediaListViewSelection::selectRange |
( |
in long |
aStartIndex, |
|
|
in long |
aEndIndex |
|
) |
| |
Select the range specified by the indices.
- Parameters
-
aStartIndex | Index of the starting item in the view. |
aEndIndex | Index of the ending item in the view. |
void sbIMediaListViewSelection::timedSelectOnly |
( |
in long |
aIndex, |
|
|
in long |
aDelay |
|
) |
| |
Same as selectOnly but notifies listeners after a delay (analogous to nsITreeSelection.timedSelect()).
- Parameters
-
aIndex | Index of the item in the view |
aDelay | Delay in milliseconds before notification |
void sbIMediaListViewSelection::toggle |
( |
in long |
aIndex | ) |
|
Toggle the selection state of the item at the given index.
- Parameters
-
aIndex | Index of the item in the view |
readonly attribute long sbIMediaListViewSelection::count |
attribute long sbIMediaListViewSelection::currentIndex |
readonly attribute sbIMediaItem sbIMediaListViewSelection::currentMediaItem |
Get an enumerator of all the selected media items. The elements contained in the enumerator implement sbIIndexedMediaItem which allows the consumer of the enumerator to know the item and the index of the item.
Definition at line 99 of file sbIMediaListViewSelection.idl.
Get an enumertaor of all the selected media items. The elements contained in the enumerator implement sbIMediaItem. This differs from selectedIndexedMediaItems in that there is no indices involved.
Definition at line 106 of file sbIMediaListViewSelection.idl.
attribute boolean sbIMediaListViewSelection::selectionNotificationsSuppressed |
The documentation for this interface was generated from the following file: