sbIMediaListViewTreeView.idl
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25 */
26 
31 #include "nsISupports.idl"
32 #include "nsITreeView.idl"
33 
34 interface nsISimpleEnumerator;
35 interface nsITreeColumn;
36 interface sbIMediaItem;
37 interface nsIDOMDataTransfer;
38 
44 [scriptable, uuid(a3919d1c-1dd1-11b2-a776-a4e0a382f10f)]
46 {
47  const long DROP_BEFORE = -1;
48  const long DROP_ON = 0;
49  const long DROP_AFTER = 1;
50 
51  boolean canDrop(in long index,
52  in long orientation,
53  in nsIDOMDataTransfer dataTransfer);
54  void drop(in long row,
55  in long orientation,
56  in nsIDOMDataTransfer dataTransfer);
57  void cycleHeader(in nsITreeColumn col);
58 
66  void onCellEdited(in sbIMediaItem item,
67  in AString property,
68  in AString oldValue);
69 };
70 
75 [scriptable, uuid(b5ad98fa-15a8-40dd-a3e2-9170a983ffc3)]
77 {
92  long getNextRowIndexForKeyNavigation(in AString aKeyString,
93  in unsigned long aStartFrom);
94 
100 };
A tree view that views a media list view.
long getNextRowIndexForKeyNavigation(in AString aKeyString, in unsigned long aStartFrom)
Calculates the first row index based on a series of keystrokes.
void cycleHeader(in nsITreeColumn col)
boolean canDrop(in long index, in long orientation, in nsIDOMDataTransfer dataTransfer)
var uuid
void drop(in long row, in long orientation, in nsIDOMDataTransfer dataTransfer)
Observer to implement the nsITreeView methods that a sbIMediaListViewTreeView does not...
void onCellEdited(in sbIMediaItem item, in AString property, in AString oldValue)
Called back when a cell has been edited in the playlist tree.
attribute sbIMediaListViewTreeViewObserver observer
Get and set an observer for this media list tree view. This observer must support nsIWeakReference...
Interface that defines a single item of media in the system.