1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include
"nsISupports.idl"
8 interface nsIAccessible
;
12 * An accessibility interface for selectable widgets.
14 [scriptable
, builtinclass
, uuid(8efb03d4
-1354-4875-94cf
-261336057626)]
15 interface nsIAccessibleSelectable
: nsISupports
18 * Return an nsIArray of selected items within the widget.
20 readonly attribute nsIArray selectedItems
;
23 * Return the number of currently selected items.
25 readonly attribute
unsigned long selectedItemCount
;
28 * Return a nth selected item within the widget.
30 nsIAccessible getSelectedItemAt
(in unsigned long index
);
33 * Return true if the given item is selected.
35 boolean isItemSelected
(in unsigned long index
);
38 * Adds the specified item to the widget's selection.
40 void addItemToSelection
(in unsigned long index
);
43 * Removes the specified item from the widget's selection.
45 void removeItemFromSelection
(in unsigned long index
);
50 * @return false if the object does not accept multiple selection,