sbIPlaylistWidget.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 
33 #include "nsISupports.idl"
34 
35 interface sbIMediaListView;
36 interface sbIPlaylistCommands;
37 interface sbIPropertyInfo;
38 interface sbIPlaylistClickEvent;
39 
40 /*
41  Class PlaylistWidget
42  */
47 [scriptable, uuid(7660f28b-6b55-40b8-8660-353aad8df5a3)]
49 {
59  void rescanCommands();
60 
69 
82  void bind( in sbIMediaListView mediaListView,
83  in sbIPlaylistCommands commands,
84  in boolean resize,
85  in boolean collapse );
86 
91  /*
92  Method: getColumnCount()
93 
94  Get the total number of columns in the web playlist
95 
96  See Also:
97  <clearColumns()>
98  <insertColumnBefore()>
99  <removeColumn()>
100  */
101  unsigned long getColumnCount();
102 
106  /*
107  Method: clearColumns()
108 
109  Clear all columns from the web playlist
110  */
111  void clearColumns( );
112 
121  /*
122  Method: appendColumn()
123 
124  Arguments:
125  aPropertyID - The ID of the property you want to add as a column
126  aWidth - The width in pixels of the column. If there has been a
127  width set for this particular column then that width
128  will be respected and this ignored.
129 
130  Add a column to the right side of visible columns
131  */
132  void appendColumn( in AString aPropertyID,
133  [optional] in AString aWidth );
134 
146  /*
147  Method: insertColumnBefore()
148 
149  Insert a column into the web playlist
150 
151  Arguments:
152  aPropertyID - The ID of the property you want to add as a column
153  aBeforePropertyID - If specified, the new column will appear before the
154  column that is bound to the specified property. If not specified, the
155  column will be added to the end of the list.
156  aWidth - The width in pixels of the column. If there has been a
157  width set for this particular column then that width
158  will be respected and this ignored.
159  */
160  void insertColumnBefore( in AString aPropertyID,
161  [optional] in AString aBeforePropertyID,
162  [optional] in AString aWidth );
163 
170  /*
171  Method: removeColumn()
172 
173  Remove a column from the playlist
174 
175  Arguments:
176  aPropertyID - The ID of the property that is bound to the column you wish
177  to remove.
178  */
179  void removeColumn( in AString aPropertyID );
180 
189  /*
190  Method: getColumnPropertyIDByIndex()
191 
192  Get the property ID bould to a particular column at a given index
193 
194  Arguments:
195  aIndex - The index of the column from which you want to retrieve the bound
196  property
197 
198  Returns:
199  The ID of the property bound to the specified column
200  */
201  AString getColumnPropertyIDByIndex( in unsigned long aIndex );
202 
211  /*
212  Method: setSortColumn()
213 
214  Set the sort of the web playlist
215 
216  Arguments:
217  aPropertyID - The ID of the property that is bound to the column you wish
218  to sort.
219  aIsAscending - True if the sort should be ascending, false if the sort
220  should be descending.
221  */
222  void setSortColumn( in AString aPropertyID,
223  in boolean aIsAscending );
224 
232 };
void clearColumns()
Clear all columns from the web playlist.
restoreDimensions aWidth
void insertColumnBefore(in AString aPropertyID, [optional] in AString aBeforePropertyID, [optional] in AString aWidth)
Insert a column into the web playlist.
void setSortColumn(in AString aPropertyID, in boolean aIsAscending)
Set the sort of the web playlist.
void appendColumn(in AString aPropertyID, [optional] in AString aWidth)
Add a column to the right side of visible columns.
unsigned long getColumnCount()
Get the total number of columns in the web playlist.
var uuid
A distinct view on a given media list.
void removeColumn(in AString aPropertyID)
Remove a column from the playlist.
an interface to maintain information about the last event that occurred
An interface used to describe a metadata property for use by the UI and other sbILibrary interfaces (...
void bind(in sbIMediaListView mediaListView, in sbIPlaylistCommands commands, in boolean resize, in boolean collapse)
Attach the <WebPlaylist> to the view passed in.
An interface that represents the set of command buttons and context menu items available on a display...
readonly attribute sbIPlaylistClickEvent lastClickEvent
The last click even that occured on this <WebPlaylist>
sbIMediaListView getListView()
Get the view being displayed in the <WebPlaylist>
window resize(function(e){var bodyHeight=$('body')[0].scrollHeight;var height=bodyHeight-$('#header')[0].scrollHeight;var height2=$('#left-content')[0].scrollHeight;if(height2 > height) height=height2;$('#right-nav').css({"min-height":height});height=$('#content')[0].scrollHeight+$('#header')[0].scrollHeight;$(".wrapper-box").css({"height":bodyHeight,"max-height":bodyHeight});$("#login-page").css({"min-height":height});$("#subscriber-page").css({"min-height":height});})
AString getColumnPropertyIDByIndex(in unsigned long aIndex)
Get the property ID bould to a particular column at a given index.
void rescanCommands()
Cause the commands to be re-fetched.