aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dojox/data/demos/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'includes/js/dojox/data/demos/widgets')
-rw-r--r--includes/js/dojox/data/demos/widgets/FlickrView.js36
-rw-r--r--includes/js/dojox/data/demos/widgets/FlickrViewList.js37
-rw-r--r--includes/js/dojox/data/demos/widgets/PicasaView.js37
-rw-r--r--includes/js/dojox/data/demos/widgets/PicasaViewList.js37
-rw-r--r--includes/js/dojox/data/demos/widgets/templates/FlickrView.html34
-rw-r--r--includes/js/dojox/data/demos/widgets/templates/FlickrViewList.html2
-rw-r--r--includes/js/dojox/data/demos/widgets/templates/PicasaView.html35
-rw-r--r--includes/js/dojox/data/demos/widgets/templates/PicasaViewList.html2
8 files changed, 0 insertions, 220 deletions
diff --git a/includes/js/dojox/data/demos/widgets/FlickrView.js b/includes/js/dojox/data/demos/widgets/FlickrView.js
deleted file mode 100644
index cacb127..0000000
--- a/includes/js/dojox/data/demos/widgets/FlickrView.js
+++ /dev/null
@@ -1,36 +0,0 @@
-if(!dojo._hasResource["dojox.data.demos.widgets.FlickrView"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
-dojo._hasResource["dojox.data.demos.widgets.FlickrView"] = true;
-dojo.provide("dojox.data.demos.widgets.FlickrView");
-dojo.require("dijit._Templated");
-dojo.require("dijit._Widget");
-
-dojo.declare("dojox.data.demos.widgets.FlickrView", [dijit._Widget, dijit._Templated], {
- //Simple demo widget for representing a view of a Flickr Item.
-
- templateString:"<table class=\"flickrView\">\n\t<tbody>\n\t\t<tr class=\"flickrTitle\">\n\t\t\t<td>\n\t\t\t\t<b>\n\t\t\t\t\tTitle:\n\t\t\t\t</b>\n\t\t\t</td>\n\t\t\t<td dojoAttachPoint=\"titleNode\">\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<b>\n\t\t\t\t\tAuthor:\n\t\t\t\t</b>\n\t\t\t</td>\n\t\t\t<td dojoAttachPoint=\"authorNode\">\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t<b>\n\t\t\t\t\tImage:\n\t\t\t\t</b>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td dojoAttachPoint=\"imageNode\" colspan=\"2\">\n\t\t\t</td>\n\t\t</tr>\n\t</tbody>\n</table>\n\n",
-
- //Attach points for reference.
- titleNode: null,
- descriptionNode: null,
- imageNode: null,
- authorNode: null,
-
- title: "",
- author: "",
- imageUrl: "",
- iconUrl: "",
-
- postCreate: function(){
- this.titleNode.appendChild(document.createTextNode(this.title));
- this.authorNode.appendChild(document.createTextNode(this.author));
- var href = document.createElement("a");
- href.setAttribute("href", this.imageUrl);
- href.setAttribute("target", "_blank");
- var imageTag = document.createElement("img");
- imageTag.setAttribute("src", this.iconUrl);
- href.appendChild(imageTag);
- this.imageNode.appendChild(href);
- }
-});
-
-}
diff --git a/includes/js/dojox/data/demos/widgets/FlickrViewList.js b/includes/js/dojox/data/demos/widgets/FlickrViewList.js
deleted file mode 100644
index 2c3c881..0000000
--- a/includes/js/dojox/data/demos/widgets/FlickrViewList.js
+++ /dev/null
@@ -1,37 +0,0 @@
-if(!dojo._hasResource["dojox.data.demos.widgets.FlickrViewList"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
-dojo._hasResource["dojox.data.demos.widgets.FlickrViewList"] = true;
-dojo.provide("dojox.data.demos.widgets.FlickrViewList");
-dojo.require("dijit._Templated");
-dojo.require("dijit._Widget");
-dojo.require("dojox.data.demos.widgets.FlickrView");
-
-dojo.declare("dojox.data.demos.widgets.FlickrViewList", [dijit._Widget, dijit._Templated], {
- //Simple demo widget that is just a list of FlickrView Widgets.
-
- templateString:"<div dojoAttachPoint=\"list\"></div>\n\n",
-
- //Attach points for reference.
- listNode: null,
-
- postCreate: function(){
- this.fViewWidgets = [];
- },
-
- clearList: function(){
- while(this.list.firstChild){
- this.list.removeChild(this.list.firstChild);
- }
- for(var i = 0; i < this.fViewWidgets.length; i++){
- this.fViewWidgets[i].destroy();
- }
- this.fViewWidgets = [];
- },
-
- addView: function(viewData){
- var newView = new dojox.data.demos.widgets.FlickrView(viewData);
- this.fViewWidgets.push(newView);
- this.list.appendChild(newView.domNode);
- }
-});
-
-}
diff --git a/includes/js/dojox/data/demos/widgets/PicasaView.js b/includes/js/dojox/data/demos/widgets/PicasaView.js
deleted file mode 100644
index 6b100ac..0000000
--- a/includes/js/dojox/data/demos/widgets/PicasaView.js
+++ /dev/null
@@ -1,37 +0,0 @@
-if(!dojo._hasResource["dojox.data.demos.widgets.PicasaView"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
-dojo._hasResource["dojox.data.demos.widgets.PicasaView"] = true;
-dojo.provide("dojox.data.demos.widgets.PicasaView");
-dojo.require("dijit._Templated");
-dojo.require("dijit._Widget");
-
-dojo.declare("dojox.data.demos.widgets.PicasaView", [dijit._Widget, dijit._Templated], {
- //Simple demo widget for representing a view of a Picasa Item.
-
- templateString:"<table class=\"picasaView\">\n\t<tbody>\n\t\t<tr class=\"picasaTitle\">\n\t\t\t<td>\n\t\t\t\t<b>\n\t\t\t\t\tTitle:\n\t\t\t\t</b>\n\t\t\t</td>\n\t\t\t<td dojoAttachPoint=\"titleNode\">\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<b>\n\t\t\t\t\tAuthor:\n\t\t\t\t</b>\n\t\t\t</td>\n\t\t\t<td dojoAttachPoint=\"authorNode\">\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t<b>\n\t\t\t\t\tSummary:\n\t\t\t\t</b>\n\t\t\t\t<span class=\"picasaSummary\" dojoAttachPoint=\"descriptionNode\"></span>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td dojoAttachPoint=\"imageNode\" colspan=\"2\">\n\t\t\t</td>\n\t\t</tr>\n\t</tbody>\n</table>\n\n",
-
- //Attach points for reference.
- titleNode: null,
- descriptionNode: null,
- imageNode: null,
- authorNode: null,
-
- title: "",
- author: "",
- imageUrl: "",
- iconUrl: "",
-
- postCreate: function(){
- this.titleNode.appendChild(document.createTextNode(this.title));
- this.authorNode.appendChild(document.createTextNode(this.author));
- this.descriptionNode.appendChild(document.createTextNode(this.description));
- var href = document.createElement("a");
- href.setAttribute("href", this.imageUrl);
- href.setAttribute("target", "_blank");
- var imageTag = document.createElement("img");
- imageTag.setAttribute("src", this.iconUrl);
- href.appendChild(imageTag);
- this.imageNode.appendChild(href);
- }
-});
-
-}
diff --git a/includes/js/dojox/data/demos/widgets/PicasaViewList.js b/includes/js/dojox/data/demos/widgets/PicasaViewList.js
deleted file mode 100644
index 45371cd..0000000
--- a/includes/js/dojox/data/demos/widgets/PicasaViewList.js
+++ /dev/null
@@ -1,37 +0,0 @@
-if(!dojo._hasResource["dojox.data.demos.widgets.PicasaViewList"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
-dojo._hasResource["dojox.data.demos.widgets.PicasaViewList"] = true;
-dojo.provide("dojox.data.demos.widgets.PicasaViewList");
-dojo.require("dijit._Templated");
-dojo.require("dijit._Widget");
-dojo.require("dojox.data.demos.widgets.PicasaView");
-
-dojo.declare("dojox.data.demos.widgets.PicasaViewList", [dijit._Widget, dijit._Templated], {
- //Simple demo widget that is just a list of PicasaView Widgets.
-
- templateString:"<div dojoAttachPoint=\"list\"></div>\n\n",
-
- //Attach points for reference.
- listNode: null,
-
- postCreate: function(){
- this.fViewWidgets = [];
- },
-
- clearList: function(){
- while(this.list.firstChild){
- this.list.removeChild(this.list.firstChild);
- }
- for(var i = 0; i < this.fViewWidgets.length; i++){
- this.fViewWidgets[i].destroy();
- }
- this.fViewWidgets = [];
- },
-
- addView: function(viewData){
- var newView = new dojox.data.demos.widgets.PicasaView(viewData);
- this.fViewWidgets.push(newView);
- this.list.appendChild(newView.domNode);
- }
-});
-
-}
diff --git a/includes/js/dojox/data/demos/widgets/templates/FlickrView.html b/includes/js/dojox/data/demos/widgets/templates/FlickrView.html
deleted file mode 100644
index b9d3bf9..0000000
--- a/includes/js/dojox/data/demos/widgets/templates/FlickrView.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<table class="flickrView">
- <tbody>
- <tr class="flickrTitle">
- <td>
- <b>
- Title:
- </b>
- </td>
- <td dojoAttachPoint="titleNode">
- </td>
- </tr>
- <tr>
- <td>
- <b>
- Author:
- </b>
- </td>
- <td dojoAttachPoint="authorNode">
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <b>
- Image:
- </b>
- </td>
- </tr>
- <tr>
- <td dojoAttachPoint="imageNode" colspan="2">
- </td>
- </tr>
- </tbody>
-</table>
-
diff --git a/includes/js/dojox/data/demos/widgets/templates/FlickrViewList.html b/includes/js/dojox/data/demos/widgets/templates/FlickrViewList.html
deleted file mode 100644
index 3a9f565..0000000
--- a/includes/js/dojox/data/demos/widgets/templates/FlickrViewList.html
+++ /dev/null
@@ -1,2 +0,0 @@
-<div dojoAttachPoint="list"></div>
-
diff --git a/includes/js/dojox/data/demos/widgets/templates/PicasaView.html b/includes/js/dojox/data/demos/widgets/templates/PicasaView.html
deleted file mode 100644
index 88dbb31..0000000
--- a/includes/js/dojox/data/demos/widgets/templates/PicasaView.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<table class="picasaView">
- <tbody>
- <tr class="picasaTitle">
- <td>
- <b>
- Title:
- </b>
- </td>
- <td dojoAttachPoint="titleNode">
- </td>
- </tr>
- <tr>
- <td>
- <b>
- Author:
- </b>
- </td>
- <td dojoAttachPoint="authorNode">
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <b>
- Summary:
- </b>
- <span class="picasaSummary" dojoAttachPoint="descriptionNode"></span>
- </td>
- </tr>
- <tr>
- <td dojoAttachPoint="imageNode" colspan="2">
- </td>
- </tr>
- </tbody>
-</table>
-
diff --git a/includes/js/dojox/data/demos/widgets/templates/PicasaViewList.html b/includes/js/dojox/data/demos/widgets/templates/PicasaViewList.html
deleted file mode 100644
index 3a9f565..0000000
--- a/includes/js/dojox/data/demos/widgets/templates/PicasaViewList.html
+++ /dev/null
@@ -1,2 +0,0 @@
-<div dojoAttachPoint="list"></div>
-