2
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
"DTD/xhtml1-strict.dtd">
6
<title>API docs for “elisa.plugins.youtube.controller.YoutubeController”</title>
7
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
8
<link href="apidocs.css" type="text/css" rel="stylesheet" />
9
<script src="sorttable.js" type="text/javascript"></script>
13
<h1 class="class">Class e.p.y.c.YoutubeController(<a href="elisa.plugins.poblesec.base.list.BaseListController.html">BaseListController</a>):</h1>
15
<span id="part">Part of <a href="elisa.html">elisa</a>.<a href="elisa.plugins.html">plugins</a>.<a href="elisa.plugins.youtube.html">youtube</a>.<a href="elisa.plugins.youtube.controller.html">controller</a></span>
17
<a href="classIndex.html#elisa.plugins.youtube.controller.YoutubeController">View In Hierarchy</a>
20
<p>Known subclasses: <a href="elisa.plugins.youtube.controller.YoutubeCoverflowController.html">elisa.plugins.youtube.controller.YoutubeCoverflowController</a>, <a href="elisa.plugins.youtube.controller.YoutubeGridController.html">elisa.plugins.youtube.controller.YoutubeGridController</a>, <a href="elisa.plugins.youtube.controller.YoutubePreviewListController.html">elisa.plugins.youtube.controller.YoutubePreviewListController</a></p>
22
<div class="undocumented">Undocumented</div>
26
<div id="splitTables">
27
<table class="children sortable" id="id3169">
37
<td class="lineno">122</td>
39
<td><a href="elisa.plugins.youtube.controller.YoutubeController.html#initialize">initialize</a></td>
40
<td><span>Initialize the component.</span></td>
41
</tr><tr class="method">
43
<td class="lineno">129</td>
45
<td><a href="elisa.plugins.youtube.controller.YoutubeController.html#populate_model">populate_model</a></td>
46
<td><span>Initial population of the data model (<code>self.model</code>).</span></td>
47
</tr><tr class="method">
49
<td class="lineno">168</td>
51
<td><a href="elisa.plugins.youtube.controller.YoutubeController.html#create_actions">create_actions</a></td>
52
<td><span>Create the default action and the contextual actions associated to
54
</tr><tr class="method">
56
<td class="lineno">171</td>
58
<td><a href="elisa.plugins.youtube.controller.YoutubeController.html#clean">clean</a></td>
59
<td><span>Clean the component.</span></td>
65
Inherited from <a href="elisa.plugins.poblesec.base.list.BaseListController.html">BaseListController</a>:
67
<table class="children sortable" id="id3170">
75
<tr class="basemethod">
77
<td class="lineno">187</td>
79
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#__init__">__init__</a></td>
80
<td><span class="undocumented">Undocumented</span></td>
81
</tr><tr class="basemethod">
83
<td class="lineno">275</td>
85
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#reload">reload</a></td>
86
<td><span>Reload the model as it is done at initialization time.</span></td>
87
</tr><tr class="basemethod">
89
<td class="lineno">320</td>
91
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#set_frontend">set_frontend</a></td>
92
<td><span>Set the frontend for the controller.</span></td>
93
</tr><tr class="basemethod">
95
<td class="lineno">346</td>
97
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#ready">ready</a></td>
98
<td><span>Called after frontend finished creation of the controller and all</span></td>
99
</tr><tr class="basemethod">
101
<td class="lineno">368</td>
103
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#nodes_setup">nodes_setup</a></td>
104
<td><span>Create the list widget.</span></td>
105
</tr><tr class="basemethod">
107
<td class="lineno">376</td>
109
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#fastscroller_setup">fastscroller_setup</a></td>
110
<td><span>Create fastscroller.</span></td>
111
</tr><tr class="basemethod">
113
<td class="lineno">384</td>
115
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#layout_components">layout_components</a></td>
116
<td><span>Layout fastscroller and nodes.</span></td>
117
</tr><tr class="basemethod">
119
<td class="lineno">407</td>
121
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#get_shortcut_for_item">get_shortcut_for_item</a></td>
122
<td><span>DOCME</span></td>
123
</tr><tr class="basemethod">
125
<td class="lineno">415</td>
127
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#shortcut_renderer">shortcut_renderer</a></td>
128
<td><span>DOCME</span></td>
129
</tr><tr class="basemethod">
131
<td class="lineno">444</td>
133
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#item_activated">item_activated</a></td>
134
<td><span>Callback invoked when an item is activated.</span></td>
135
</tr><tr class="basemethod">
137
<td class="lineno">496</td>
139
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#node_clicked">node_clicked</a></td>
140
<td><span>[DEPRECATED] Callback invoked when an item of the list representing
142
</tr><tr class="basemethod">
144
<td class="lineno">532</td>
146
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#stop_loading_animation">stop_loading_animation</a></td>
147
<td><span>[DEPRECATED] This method can be safely removed once the transition
149
</tr><tr class="basemethod">
151
<td class="lineno">542</td>
153
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#sensitive_set">sensitive_set</a></td>
154
<td><span class="undocumented">Undocumented</span></td>
155
</tr><tr class="basemethod">
157
<td class="lineno">545</td>
159
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#sensitive_get">sensitive_get</a></td>
160
<td><span class="undocumented">Undocumented</span></td>
161
</tr><tr class="basemethod">
163
<td class="lineno">550</td>
165
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#display_empty_alert">display_empty_alert</a></td>
166
<td><span>Display an alert widget to inform that the model is empty.</span></td>
167
</tr><tr class="basemethod">
169
<td class="lineno">578</td>
171
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#hide_empty_alert">hide_empty_alert</a></td>
172
<td><span>Hide the alert widget that informs that the model is empty.</span></td>
173
</tr><tr class="basemethod">
175
<td class="lineno">589</td>
177
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#node_renderer">node_renderer</a></td>
178
<td><span>Render an item in a list widget.</span></td>
179
</tr><tr class="basemethod">
181
<td class="lineno">603</td>
183
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#node_selected">node_selected</a></td>
184
<td><span>Callback invoked when an item is selected.</span></td>
185
</tr><tr class="basemethod private">
187
<td class="lineno">244</td>
189
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_populate">_populate</a></td>
190
<td><span class="undocumented">Undocumented</span></td>
191
</tr><tr class="basemethod private">
193
<td class="lineno">349</td>
195
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_monitor_model">_monitor_model</a></td>
196
<td><span class="undocumented">Undocumented</span></td>
197
</tr><tr class="basemethod private">
199
<td class="lineno">356</td>
201
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_start_monitoring_model">_start_monitoring_model</a></td>
202
<td><span class="undocumented">Undocumented</span></td>
203
</tr><tr class="basemethod private">
205
<td class="lineno">363</td>
207
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_stop_monitoring_model">_stop_monitoring_model</a></td>
208
<td><span class="undocumented">Undocumented</span></td>
209
</tr><tr class="basemethod private">
211
<td class="lineno">392</td>
213
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_build_shortcuts">_build_shortcuts</a></td>
214
<td><span class="undocumented">Undocumented</span></td>
215
</tr><tr class="basemethod private">
217
<td class="lineno">423</td>
219
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_get_item_index_for_shortcut">_get_item_index_for_shortcut</a></td>
220
<td><span class="undocumented">Undocumented</span></td>
221
</tr><tr class="basemethod private">
223
<td class="lineno">429</td>
225
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_shortcut_activated">_shortcut_activated</a></td>
226
<td><span class="undocumented">Undocumented</span></td>
227
</tr><tr class="basemethod private">
229
<td class="lineno">433</td>
231
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_get_shortcut_index_for_item_index">_get_shortcut_index_for_item_index</a></td>
232
<td><span class="undocumented">Undocumented</span></td>
233
</tr><tr class="basemethod private">
235
<td class="lineno">438</td>
237
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_fastscroller_stated_changed">_fastscroller_stated_changed</a></td>
238
<td><span class="undocumented">Undocumented</span></td>
239
</tr><tr class="basemethod private">
241
<td class="lineno">480</td>
243
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_do_item_activated">_do_item_activated</a></td>
244
<td><span class="undocumented">Undocumented</span></td>
245
</tr><tr class="basemethod private">
247
<td class="lineno">493</td>
249
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_item_activated_cb">_item_activated_cb</a></td>
250
<td><span class="undocumented">Undocumented</span></td>
251
</tr><tr class="basemethod private">
253
<td class="lineno">512</td>
255
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_node_clicked_proxy">_node_clicked_proxy</a></td>
256
<td><span>[DEPRECATED] This method will be removed once we manage to
257
completely</span></td>
258
</tr><tr class="basemethod private">
260
<td class="lineno">619</td>
262
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_selected_item_cb">_selected_item_cb</a></td>
263
<td><span class="undocumented">Undocumented</span></td>
264
</tr><tr class="basemethod private">
266
<td class="lineno">624</td>
268
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_update_logo">_update_logo</a></td>
269
<td><span class="undocumented">Undocumented</span></td>
270
</tr><tr class="basemethod private">
272
<td class="lineno">633</td>
274
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_schedule_load_background">_schedule_load_background</a></td>
275
<td><span class="undocumented">Undocumented</span></td>
276
</tr><tr class="basemethod private">
278
<td class="lineno">645</td>
280
<td><a href="elisa.plugins.poblesec.base.list.BaseListController.html#_load_background">_load_background</a></td>
281
<td><span class="undocumented">Undocumented</span></td>
287
Inherited from <a href="elisa.plugins.poblesec.base.hierarchy.HierarchyController.html">HierarchyController</a> (via <a href="elisa.plugins.poblesec.base.list.BaseListController.html">BaseListController</a>):
289
<table class="children sortable" id="id3171">
297
<tr class="basemethod">
299
<td class="lineno">50</td>
301
<td><a href="elisa.plugins.poblesec.base.hierarchy.HierarchyController.html#register_deferred">register_deferred</a></td>
302
<td><span>Register a deferred call to be associated to a given key.</span></td>
303
</tr><tr class="basemethod">
305
<td class="lineno">56</td>
307
<td><a href="elisa.plugins.poblesec.base.hierarchy.HierarchyController.html#cancel_deferreds">cancel_deferreds</a></td>
308
<td><span>Cancel all the currently pending deferred calls associated to one
310
</tr><tr class="basemethod">
312
<td class="lineno">73</td>
314
<td><a href="elisa.plugins.poblesec.base.hierarchy.HierarchyController.html#cancel_all_deferreds">cancel_all_deferreds</a></td>
315
<td><span>Cancel all the currently pending deferred calls.</span></td>
321
Inherited from <a href="elisa.plugins.pigment.pigment_controller.PigmentController.html">PigmentController</a> (via <a href="elisa.plugins.poblesec.base.list.BaseListController.html">BaseListController</a>, <a href="elisa.plugins.poblesec.base.hierarchy.HierarchyController.html">HierarchyController</a>):
323
<table class="children sortable" id="id3172">
331
<tr class="basemethod">
333
<td class="lineno">66</td>
335
<td><a href="elisa.plugins.pigment.pigment_controller.PigmentController.html#set_path">set_path</a></td>
336
<td><span>Set the path for the controller.</span></td>
337
</tr><tr class="basemethod">
339
<td class="lineno">75</td>
341
<td><a href="elisa.plugins.pigment.pigment_controller.PigmentController.html#handle_input">handle_input</a></td>
342
<td><span>Handle an Elisa input event.</span></td>
343
</tr><tr class="basemethod">
345
<td class="lineno">99</td>
347
<td><a href="elisa.plugins.pigment.pigment_controller.PigmentController.html#has_focus">has_focus</a></td>
348
<td><span class="undocumented">Undocumented</span></td>
349
</tr><tr class="basemethod">
351
<td class="lineno">102</td>
353
<td><a href="elisa.plugins.pigment.pigment_controller.PigmentController.html#prepare">prepare</a></td>
354
<td><span>Called after <a
355
href="elisa.plugins.pigment.widgets.widget.html"><code>widget</code></a> is
356
added to the canvas. It is sensible to do</span></td>
357
</tr><tr class="basemethod">
359
<td class="lineno">109</td>
361
<td><a href="elisa.plugins.pigment.pigment_controller.PigmentController.html#removed">removed</a></td>
362
<td><span>Called after <a
363
href="elisa.plugins.pigment.widgets.widget.html"><code>widget</code></a> is
364
removed from the canvas.</span></td>
370
Inherited from <a href="elisa.core.component.Component.html">Component</a> (via <a href="elisa.plugins.poblesec.base.list.BaseListController.html">BaseListController</a>, <a href="elisa.plugins.poblesec.base.hierarchy.HierarchyController.html">HierarchyController</a>, <a href="elisa.plugins.pigment.pigment_controller.PigmentController.html">PigmentController</a>, <a href="elisa.core.components.controller.Controller.html">Controller</a>):
372
<table class="children sortable" id="id3173">
380
<tr class="baseclass">
382
<td class="lineno">83</td>
384
<td><a href="elisa.core.component.Component.PathDescriptor.html">PathDescriptor</a></td>
385
<td><span class="undocumented">Undocumented</span></td>
386
</tr><tr class="baseclassmethod">
388
<td class="lineno">95</td>
389
<td>Class Method</td>
390
<td><a href="elisa.core.component.Component.html#create">create</a></td>
391
<td><span>Create and initialize the component.</span></td>
392
</tr><tr class="basemethod">
394
<td class="lineno">153</td>
396
<td><a href="elisa.core.component.Component.html#name__get">name__get</a></td>
397
<td><span class="undocumented">Undocumented</span></td>
398
</tr><tr class="basemethod">
400
<td class="lineno">158</td>
402
<td><a href="elisa.core.component.Component.html#name__set">name__set</a></td>
403
<td><span class="undocumented">Undocumented</span></td>
414
<div class="function">
415
<a name="elisa.plugins.youtube.controller.YoutubeController.initialize">
418
<a name="initialize">
421
<div class="functionHeader">
424
initialize(self, videos=None, uri=start_uri):
427
<div class="functionBody">
428
<div class="interfaceinfo">overrides <a href="elisa.plugins.poblesec.base.list.BaseListController.html#initialize">elisa.plugins.poblesec.base.list.BaseListController.initialize</a></div>
429
<div>Initialize the component.</p>
430
<p>This method is called by <code>Component.create</code> to finish the
431
initialization of a component.<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Returns</td><td colspan="2">a deferred called when a component is fully initialized
432
(type: <code>twisted.internet.defer.Deferred</code>
433
)</td></tr></table></div>
435
</div><div class="function">
436
<a name="elisa.plugins.youtube.controller.YoutubeController.populate_model">
439
<a name="populate_model">
442
<div class="functionHeader">
445
populate_model(self):
448
<div class="functionBody">
449
<div class="interfaceinfo">overrides <a href="elisa.plugins.poblesec.base.list.BaseListController.html#populate_model">elisa.plugins.poblesec.base.list.BaseListController.populate_model</a></div>
450
<div>Initial population of the data model (<code>self.model</code>).</p>
451
<p>This method should be overridden by subclasses. The default
452
implementation returns an empty list.<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Returns</td><td colspan="2">a deferred fired when the population of the model is complete, with the
453
resulting model (of type <code>list</code>)
454
(type: <code>elisa.core.utils.defer.Deferred</code>
455
)</td></tr></table></div>
457
</div><div class="function">
458
<a name="elisa.plugins.youtube.controller.YoutubeController.create_actions">
461
<a name="create_actions">
464
<div class="functionHeader">
467
create_actions(self):
470
<div class="functionBody">
471
<div class="interfaceinfo">overrides <a href="elisa.plugins.poblesec.base.list.BaseListController.html#create_actions">elisa.plugins.poblesec.base.list.BaseListController.create_actions</a></div>
472
<div>Create the default action and the contextual actions associated to the
473
type of item the controller will be presenting.</p>
474
<p>The default implementation does create any action, subclasses should
475
override this method.<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Returns</td><td colspan="2">a 2-tuple containing the default action and a list of contextual actions
477
href="elisa.plugins.poblesec.actions.ContextualAction.html"><code>elisa.plugins.poblesec.actions.ContextualAction</code></a>,
478
<code>list</code> of <a
479
href="elisa.plugins.poblesec.actions.ContextualAction.html"><code>elisa.plugins.poblesec.actions.ContextualAction</code></a>)
480
)</td></tr></table></div>
482
</div><div class="function">
483
<a name="elisa.plugins.youtube.controller.YoutubeController.clean">
489
<div class="functionHeader">
495
<div class="functionBody">
496
<div class="interfaceinfo">overrides <a href="elisa.plugins.poblesec.base.list.BaseListController.html#clean">elisa.plugins.poblesec.base.list.BaseListController.clean</a></div>
497
<div>Clean the component.</p>
498
<p>This method is called when a component is not needed anymore to clean
499
its state.<table class="fieldTable"><tr class="fieldStart"><td class="fieldName">Returns</td><td colspan="2">a deferred called when the component has finished cleaning its state
500
(type: <code>twisted.internet.defer.Deferred</code>
501
)</td></tr></table></div>
505
<a href="index.html">API Documentation</a> for <a href="http://elisa.fluendo.com">Elisa Media Center</a>, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2009-05-25 19:09:45.
b'\\ No newline at end of file'