Subversion Repositories Applications.papyrus

Rev

Rev 1372 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1372 Rev 1422
1
/*
1
/*
2
	Copyright (c) 2004-2006, The Dojo Foundation
2
	Copyright (c) 2004-2006, The Dojo Foundation
3
	All Rights Reserved.
3
	All Rights Reserved.
4
 
4
 
5
	Licensed under the Academic Free License version 2.1 or above OR the
5
	Licensed under the Academic Free License version 2.1 or above OR the
6
	modified BSD license. For more information on Dojo licensing, see:
6
	modified BSD license. For more information on Dojo licensing, see:
7
 
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
8
		http://dojotoolkit.org/community/licensing.shtml
9
*/
9
*/
-
 
10
 
-
 
11
 
10
 
12
 
11
dojo.provide("dojo.widget.demoEngine.DemoPane");
13
dojo.provide("dojo.widget.demoEngine.DemoPane");
12
dojo.require("dojo.widget.*");
14
dojo.require("dojo.widget.*");
13
dojo.require("dojo.widget.HtmlWidget");
15
dojo.require("dojo.widget.HtmlWidget");
14
dojo.widget.defineWidget("my.widget.demoEngine.DemoPane", dojo.widget.HtmlWidget, {templateString:"<div dojoAttachPoint=\"domNode\">\n\t<iframe dojoAttachPoint=\"demoNode\"></iframe>\n</div>\n", templateCssString:".demoPane {\n\twidth: 100%;\n\theight: 100%;\n\tpadding: 0px;\n\tmargin: 0px;\n\toverflow: hidden;\n}\n\n.demoPane iframe {\n\twidth: 100%;\n\theight: 100%;\n\tborder: 0px;\n\tborder: none;\n\toverflow: auto;\n\tpadding: 0px;\n\tmargin:0px;\n\tbackground: #ffffff;\n}\n", templateCssPath:dojo.uri.moduleUri("dojo.widget", "demoEngine/templates/DemoPane.css"), postCreate:function () {
16
dojo.widget.defineWidget("my.widget.demoEngine.DemoPane", dojo.widget.HtmlWidget, {templateString:"<div dojoAttachPoint=\"domNode\">\n\t<iframe dojoAttachPoint=\"demoNode\"></iframe>\n</div>\n", templateCssString:".demoPane {\n\twidth: 100%;\n\theight: 100%;\n\tpadding: 0px;\n\tmargin: 0px;\n\toverflow: hidden;\n}\n\n.demoPane iframe {\n\twidth: 100%;\n\theight: 100%;\n\tborder: 0px;\n\tborder: none;\n\toverflow: auto;\n\tpadding: 0px;\n\tmargin:0px;\n\tbackground: #ffffff;\n}\n", templateCssPath:dojo.uri.moduleUri("dojo.widget", "demoEngine/templates/DemoPane.css"), postCreate:function () {
15
	dojo.html.addClass(this.domNode, this.domNodeClass);
17
	dojo.html.addClass(this.domNode, this.domNodeClass);
16
	dojo.debug("PostCreate");
18
	dojo.debug("PostCreate");
17
	this._launchDemo();
19
	this._launchDemo();
18
}, _launchDemo:function () {
20
}, _launchDemo:function () {
19
	dojo.debug("Launching Demo");
21
	dojo.debug("Launching Demo");
20
	dojo.debug(this.demoNode);
22
	dojo.debug(this.demoNode);
21
	this.demoNode.src = this.href;
23
	this.demoNode.src = this.href;
22
}, setHref:function (url) {
24
}, setHref:function (url) {
23
	this.href = url;
25
	this.href = url;
24
	this._launchDemo();
26
	this._launchDemo();
25
}}, "", function () {
27
}}, "", function () {
26
	dojo.debug("DemoPane Init");
28
	dojo.debug("DemoPane Init");
27
	this.domNodeClass = "demoPane";
29
	this.domNodeClass = "demoPane";
28
	this.demoNode = "";
30
	this.demoNode = "";
29
	this.href = "";
31
	this.href = "";
30
});
32
});
31
 
33