Debian Codegraph @

dojox/mobile/tests/imageControlsApp/app/assistants/flickr-search-selection-assistant.js

raw symbols SCIP
1 dojo.require("dojox.mobile.app.SceneAssistant");
2
3 dojo.declare("FlickrSearchSelectionAssistant", dojox.mobile.app.SceneAssistant, {
4
5 setup: function(){
6
7 // Instantiate widgets in the template HTML.
8 this.controller.parse();
9
10 var scenes = [
11 {
12 label: "Interesting Photos",
13 scene: "flickr-image-view",
14 type: "interesting"
15 },
16 {
17 label: "Search for Group",
18 scene: "flickr-search-group",
19 type: "group"
20 },
21 {
22 label: "Search for Text",
23 scene: "flickr-image-thumb-view",
24 type: "text"
25 },
26 {
27 label: "Search Tags",
28 scene: "flickr-image-thumb-view",
29 type: "tag"
30 }
31 ];
32
33 var listWidget = dijit.byId("browseFlickrList");
34 listWidget.set("items", scenes);
35
36 var _this = this;
37
38 dojo.connect(listWidget, "onSelect", function(data, index, rowNode){
39 // Push the chosen scene, and pass in the data type, if any.
40 // The serach scene uses the "type" to determine
41 // what to search for
42 _this.controller.stageController.pushScene(data.scene, {
43 type: data.type
44 });
45 });
46 },
47
48 activate: function(){
49
50
51 }
52
53 });