You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jk...@apache.org on 2007/05/27 00:48:09 UTC
svn commit: r541946 [36/41] - in /tapestry/tapestry4/trunk:
tapestry-examples/TimeTracker/
tapestry-examples/TimeTracker/src/context/WEB-INF/
tapestry-examples/Workbench/ tapestry-framework/
tapestry-framework/src/java/org/apache/tapestry/ tapestry-fra...
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeRpcControllerV3.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeRpcControllerV3.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeRpcControllerV3.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeRpcControllerV3.js Sat May 26 15:47:41 2007
@@ -0,0 +1,169 @@
+dojo.provide("dojo.widget.TreeRpcControllerV3");
+dojo.require("dojo.event.*");
+dojo.require("dojo.json");
+dojo.require("dojo.io.*");
+dojo.require("dojo.widget.TreeLoadingControllerV3");
+dojo.widget.defineWidget("dojo.widget.TreeRpcControllerV3",dojo.widget.TreeLoadingControllerV3,{extraRpcOnEdit:false,doMove:function(_1,_2,_3,_4){
+var _5={child:this.getInfo(_1),childTree:this.getInfo(_1.tree),oldParent:this.getInfo(_1.parent),oldParentTree:this.getInfo(_1.parent.tree),newParent:this.getInfo(_2),newParentTree:this.getInfo(_2.tree),newIndex:_3};
+var _6=this.runRpc({url:this.getRpcUrl("move"),sync:_4,params:_5});
+var _7=this;
+var _8=arguments;
+_6.addCallback(function(){
+dojo.widget.TreeBasicControllerV3.prototype.doMove.apply(_7,_8);
+});
+return _6;
+},prepareDetach:function(_9,_a){
+var _b=this.startProcessing(_9);
+return _b;
+},finalizeDetach:function(_c){
+this.finishProcessing(_c);
+},doDetach:function(_d,_e){
+var _f={node:this.getInfo(_d),tree:this.getInfo(_d.tree)};
+var _10=this.runRpc({url:this.getRpcUrl("detach"),sync:_e,params:_f});
+var _11=this;
+var _12=arguments;
+_10.addCallback(function(){
+dojo.widget.TreeBasicControllerV3.prototype.doDetach.apply(_11,_12);
+});
+return _10;
+},requestEditConfirmation:function(_13,_14,_15){
+if(!this.extraRpcOnEdit){
+return dojo.Deferred.prototype.makeCalled();
+}
+var _16=this;
+var _17=this.startProcessing(_13);
+var _18={node:this.getInfo(_13),tree:this.getInfo(_13.tree)};
+_17.addCallback(function(){
+return _16.runRpc({url:_16.getRpcUrl(_14),sync:_15,params:_18});
+});
+_17.addBoth(function(r){
+_16.finishProcessing(_13);
+return r;
+});
+return _17;
+},editLabelSave:function(_1a,_1b,_1c){
+var _1d=this.startProcessing(_1a);
+var _1e=this;
+var _1f={node:this.getInfo(_1a),tree:this.getInfo(_1a.tree),newContent:_1b};
+_1d.addCallback(function(){
+return _1e.runRpc({url:_1e.getRpcUrl("editLabelSave"),sync:_1c,params:_1f});
+});
+_1d.addBoth(function(r){
+_1e.finishProcessing(_1a);
+return r;
+});
+return _1d;
+},editLabelStart:function(_21,_22){
+if(!this.canEditLabel(_21)){
+return false;
+}
+var _23=this;
+if(!this.editor.isClosed()){
+var _24=this.editLabelFinish(this.editor.saveOnBlur,_22);
+_24.addCallback(function(){
+return _23.editLabelStart(_21,_22);
+});
+return _24;
+}
+var _24=this.requestEditConfirmation(_21,"editLabelStart",_22);
+_24.addCallback(function(){
+_23.doEditLabelStart(_21);
+});
+return _24;
+},editLabelFinish:function(_25,_26){
+var _27=this;
+var _28=this.editor.node;
+var _29=dojo.Deferred.prototype.makeCalled();
+if(!_25&&!_28.isPhantom){
+_29=this.requestEditConfirmation(this.editor.node,"editLabelFinishCancel",_26);
+}
+if(_25){
+if(_28.isPhantom){
+_29=this.sendCreateChildRequest(_28.parent,_28.getParentIndex(),{title:this.editor.getContents()},_26);
+}else{
+_29=this.editLabelSave(_28,this.editor.getContents(),_26);
+}
+}
+_29.addCallback(function(_2a){
+_27.doEditLabelFinish(_25,_2a);
+});
+_29.addErrback(function(r){
+_27.doEditLabelFinish(false);
+return false;
+});
+return _29;
+},createAndEdit:function(_2c,_2d,_2e){
+var _2f={title:_2c.tree.defaultChildTitle};
+if(!this.canCreateChild(_2c,_2d,_2f)){
+return false;
+}
+if(!this.editor.isClosed()){
+var _30=this.editLabelFinish(this.editor.saveOnBlur,_2e);
+_30.addCallback(function(){
+return _31.createAndEdit(_2c,_2d,_2e);
+});
+return _30;
+}
+var _31=this;
+var _30=this.prepareCreateChild(_2c,_2d,_2f,_2e);
+_30.addCallback(function(){
+var _32=_31.makeDefaultNode(_2c,_2d);
+_32.isPhantom=true;
+return _32;
+});
+_30.addBoth(function(r){
+_31.finalizeCreateChild(_2c,_2d,_2f,_2e);
+return r;
+});
+_30.addCallback(function(_34){
+var d=_31.exposeCreateChild(_2c,_2d,_2f,_2e);
+d.addCallback(function(){
+return _34;
+});
+return d;
+});
+_30.addCallback(function(_36){
+_31.doEditLabelStart(_36);
+return _36;
+});
+return _30;
+},prepareDestroyChild:function(_37,_38){
+var _39=this.startProcessing(_37);
+return _39;
+},finalizeDestroyChild:function(_3a){
+this.finishProcessing(_3a);
+},doDestroyChild:function(_3b,_3c){
+var _3d={node:this.getInfo(_3b),tree:this.getInfo(_3b.tree)};
+var _3e=this.runRpc({url:this.getRpcUrl("destroyChild"),sync:_3c,params:_3d});
+var _3f=this;
+var _40=arguments;
+_3e.addCallback(function(){
+dojo.widget.TreeBasicControllerV3.prototype.doDestroyChild.apply(_3f,_40);
+});
+return _3e;
+},sendCreateChildRequest:function(_41,_42,_43,_44){
+var _45={tree:this.getInfo(_41.tree),parent:this.getInfo(_41),index:_42,data:_43};
+var _46=this.runRpc({url:this.getRpcUrl("createChild"),sync:_44,params:_45});
+return _46;
+},doCreateChild:function(_47,_48,_49,_4a){
+if(dojo.lang.isUndefined(_49.title)){
+_49.title=_47.tree.defaultChildTitle;
+}
+var _4b=this.sendCreateChildRequest(_47,_48,_49,_4a);
+var _4c=this;
+var _4d=arguments;
+_4b.addCallback(function(_4e){
+dojo.lang.mixin(_49,_4e);
+return dojo.widget.TreeBasicControllerV3.prototype.doCreateChild.call(_4c,_47,_48,_49);
+});
+return _4b;
+},doClone:function(_4f,_50,_51,_52,_53){
+var _54={child:this.getInfo(_4f),oldParent:this.getInfo(_4f.parent),oldParentTree:this.getInfo(_4f.parent.tree),newParent:this.getInfo(_50),newParentTree:this.getInfo(_50.tree),index:_51,deep:_52?true:false,tree:this.getInfo(_4f.tree)};
+var _55=this.runRpc({url:this.getRpcUrl("clone"),sync:_53,params:_54});
+var _56=this;
+var _57=arguments;
+_55.addCallback(function(){
+dojo.widget.TreeBasicControllerV3.prototype.doClone.apply(_56,_57);
+});
+return _55;
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeRpcControllerV3.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeRpcControllerV3.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeRpcControllerV3.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelector.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelector.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelector.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelector.js Sat May 26 15:47:41 2007
@@ -0,0 +1,89 @@
+dojo.provide("dojo.widget.TreeSelector");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.widget.defineWidget("dojo.widget.TreeSelector",dojo.widget.HtmlWidget,function(){
+this.eventNames={};
+this.listenedTrees=[];
+},{widgetType:"TreeSelector",selectedNode:null,dieWithTree:false,eventNamesDefault:{select:"select",destroy:"destroy",deselect:"deselect",dblselect:"dblselect"},initialize:function(){
+for(var _1 in this.eventNamesDefault){
+if(dojo.lang.isUndefined(this.eventNames[_1])){
+this.eventNames[_1]=this.widgetId+"/"+this.eventNamesDefault[_1];
+}
+}
+},destroy:function(){
+dojo.event.topic.publish(this.eventNames.destroy,{source:this});
+return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments);
+},listenTree:function(_2){
+dojo.event.topic.subscribe(_2.eventNames.titleClick,this,"select");
+dojo.event.topic.subscribe(_2.eventNames.iconClick,this,"select");
+dojo.event.topic.subscribe(_2.eventNames.collapse,this,"onCollapse");
+dojo.event.topic.subscribe(_2.eventNames.moveFrom,this,"onMoveFrom");
+dojo.event.topic.subscribe(_2.eventNames.removeNode,this,"onRemoveNode");
+dojo.event.topic.subscribe(_2.eventNames.treeDestroy,this,"onTreeDestroy");
+this.listenedTrees.push(_2);
+},unlistenTree:function(_3){
+dojo.event.topic.unsubscribe(_3.eventNames.titleClick,this,"select");
+dojo.event.topic.unsubscribe(_3.eventNames.iconClick,this,"select");
+dojo.event.topic.unsubscribe(_3.eventNames.collapse,this,"onCollapse");
+dojo.event.topic.unsubscribe(_3.eventNames.moveFrom,this,"onMoveFrom");
+dojo.event.topic.unsubscribe(_3.eventNames.removeNode,this,"onRemoveNode");
+dojo.event.topic.unsubscribe(_3.eventNames.treeDestroy,this,"onTreeDestroy");
+for(var i=0;i<this.listenedTrees.length;i++){
+if(this.listenedTrees[i]===_3){
+this.listenedTrees.splice(i,1);
+break;
+}
+}
+},onTreeDestroy:function(_5){
+this.unlistenTree(_5.source);
+if(this.dieWithTree){
+this.destroy();
+}
+},onCollapse:function(_6){
+if(!this.selectedNode){
+return;
+}
+var _7=_6.source;
+var _8=this.selectedNode.parent;
+while(_8!==_7&&_8.isTreeNode){
+_8=_8.parent;
+}
+if(_8.isTreeNode){
+this.deselect();
+}
+},select:function(_9){
+var _a=_9.source;
+var e=_9.event;
+if(this.selectedNode===_a){
+if(e.ctrlKey||e.shiftKey||e.metaKey){
+this.deselect();
+return;
+}
+dojo.event.topic.publish(this.eventNames.dblselect,{node:_a});
+return;
+}
+if(this.selectedNode){
+this.deselect();
+}
+this.doSelect(_a);
+dojo.event.topic.publish(this.eventNames.select,{node:_a});
+},onMoveFrom:function(_c){
+if(_c.child!==this.selectedNode){
+return;
+}
+if(!dojo.lang.inArray(this.listenedTrees,_c.newTree)){
+this.deselect();
+}
+},onRemoveNode:function(_d){
+if(_d.child!==this.selectedNode){
+return;
+}
+this.deselect();
+},doSelect:function(_e){
+_e.markSelected();
+this.selectedNode=_e;
+},deselect:function(){
+var _f=this.selectedNode;
+this.selectedNode=null;
+_f.unMarkSelected();
+dojo.event.topic.publish(this.eventNames.deselect,{node:_f});
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelector.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelector.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelector.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelectorV3.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelectorV3.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelectorV3.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelectorV3.js Sat May 26 15:47:41 2007
@@ -0,0 +1,147 @@
+dojo.provide("dojo.widget.TreeSelectorV3");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.widget.TreeCommon");
+dojo.widget.defineWidget("dojo.widget.TreeSelectorV3",[dojo.widget.HtmlWidget,dojo.widget.TreeCommon],function(){
+this.eventNames={};
+this.listenedTrees={};
+this.selectedNodes=[];
+this.lastClicked={};
+},{listenTreeEvents:["afterTreeCreate","afterCollapse","afterChangeTree","afterDetach","beforeTreeDestroy"],listenNodeFilter:function(_1){
+return _1 instanceof dojo.widget.Widget;
+},allowedMulti:true,dblselectTimeout:300,eventNamesDefault:{select:"select",deselect:"deselect",dblselect:"dblselect"},onAfterTreeCreate:function(_2){
+var _3=_2.source;
+dojo.event.browser.addListener(_3.domNode,"onclick",dojo.lang.hitch(this,this.onTreeClick));
+if(dojo.render.html.ie){
+dojo.event.browser.addListener(_3.domNode,"ondblclick",dojo.lang.hitch(this,this.onTreeDblClick));
+}
+dojo.event.browser.addListener(_3.domNode,"onKey",dojo.lang.hitch(this,this.onKey));
+},onKey:function(e){
+if(!e.key||e.ctrkKey||e.altKey){
+return;
+}
+switch(e.key){
+case e.KEY_ENTER:
+var _5=this.domElement2TreeNode(e.target);
+if(_5){
+this.processNode(_5,e);
+}
+}
+},onAfterChangeTree:function(_6){
+if(!_6.oldTree&&_6.node.selected){
+this.select(_6.node);
+}
+if(!_6.newTree||!this.listenedTrees[_6.newTree.widgetId]){
+if(this.selectedNode&&_6.node.children){
+this.deselectIfAncestorMatch(_6.node);
+}
+}
+},initialize:function(_7){
+for(var _8 in this.eventNamesDefault){
+if(dojo.lang.isUndefined(this.eventNames[_8])){
+this.eventNames[_8]=this.widgetId+"/"+this.eventNamesDefault[_8];
+}
+}
+},onBeforeTreeDestroy:function(_9){
+this.unlistenTree(_9.source);
+},onAfterCollapse:function(_a){
+this.deselectIfAncestorMatch(_a.source);
+},onTreeDblClick:function(_b){
+this.onTreeClick(_b);
+},checkSpecialEvent:function(_c){
+return _c.shiftKey||_c.ctrlKey;
+},onTreeClick:function(_d){
+var _e=this.domElement2TreeNode(_d.target);
+if(!_e){
+return;
+}
+var _f=function(_10){
+return _10===_e.labelNode;
+};
+if(this.checkPathCondition(_d.target,_f)){
+this.processNode(_e,_d);
+}
+},processNode:function(_11,_12){
+if(_11.actionIsDisabled(_11.actions.SELECT)){
+return;
+}
+if(dojo.lang.inArray(this.selectedNodes,_11)){
+if(this.checkSpecialEvent(_12)){
+this.deselect(_11);
+return;
+}
+var _13=this;
+var i=0;
+var _15;
+while(this.selectedNodes.length>i){
+_15=this.selectedNodes[i];
+if(_15!==_11){
+this.deselect(_15);
+continue;
+}
+i++;
+}
+var _16=this.checkRecentClick(_11);
+eventName=_16?this.eventNames.dblselect:this.eventNames.select;
+if(_16){
+eventName=this.eventNames.dblselect;
+this.forgetLastClicked();
+}else{
+eventName=this.eventNames.select;
+this.setLastClicked(_11);
+}
+dojo.event.topic.publish(eventName,{node:_11});
+return;
+}
+this.deselectIfNoMulti(_12);
+this.setLastClicked(_11);
+this.select(_11);
+},forgetLastClicked:function(){
+this.lastClicked={};
+},setLastClicked:function(_17){
+this.lastClicked.date=new Date();
+this.lastClicked.node=_17;
+},checkRecentClick:function(_18){
+var _19=new Date()-this.lastClicked.date;
+if(this.lastClicked.node&&_19<this.dblselectTimeout){
+return true;
+}else{
+return false;
+}
+},deselectIfNoMulti:function(_1a){
+if(!this.checkSpecialEvent(_1a)||!this.allowedMulti){
+this.deselectAll();
+}
+},deselectIfAncestorMatch:function(_1b){
+var _1c=this;
+dojo.lang.forEach(this.selectedNodes,function(_1d){
+var _1e=_1d;
+_1d=_1d.parent;
+while(_1d&&_1d.isTreeNode){
+if(_1d===_1b){
+_1c.deselect(_1e);
+return;
+}
+_1d=_1d.parent;
+}
+});
+},onAfterDetach:function(_1f){
+this.deselectIfAncestorMatch(_1f.child);
+},select:function(_20){
+var _21=dojo.lang.find(this.selectedNodes,_20,true);
+if(_21>=0){
+return;
+}
+this.selectedNodes.push(_20);
+dojo.event.topic.publish(this.eventNames.select,{node:_20});
+},deselect:function(_22){
+var _23=dojo.lang.find(this.selectedNodes,_22,true);
+if(_23<0){
+return;
+}
+this.selectedNodes.splice(_23,1);
+dojo.event.topic.publish(this.eventNames.deselect,{node:_22});
+},deselectAll:function(){
+while(this.selectedNodes.length){
+this.deselect(this.selectedNodes[0]);
+}
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelectorV3.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelectorV3.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeSelectorV3.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeTimeoutIterator.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeTimeoutIterator.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeTimeoutIterator.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeTimeoutIterator.js Sat May 26 15:47:41 2007
@@ -0,0 +1,75 @@
+dojo.provide("dojo.widget.TreeTimeoutIterator");
+dojo.require("dojo.event.*");
+dojo.require("dojo.json");
+dojo.require("dojo.io.*");
+dojo.require("dojo.widget.TreeCommon");
+dojo.declare("dojo.widget.TreeTimeoutIterator",null,function(_1,_2,_3){
+var _4=this;
+this.currentParent=_1;
+this.callFunc=_2;
+this.callObj=_3?_3:this;
+this.stack=[];
+},{maxStackDepth:Number.POSITIVE_INFINITY,stack:null,currentParent:null,currentIndex:0,filterFunc:function(){
+return true;
+},finishFunc:function(){
+return true;
+},setFilter:function(_5,_6){
+this.filterFunc=_5;
+this.filterObj=_6;
+},setMaxLevel:function(_7){
+this.maxStackDepth=_7-2;
+},forward:function(_8){
+var _9=this;
+if(this.timeout){
+var _a=setTimeout(function(){
+_9.processNext();
+clearTimeout(_a);
+},_9.timeout);
+}else{
+return this.processNext();
+}
+},start:function(_b){
+if(_b){
+return this.callFunc.call(this.callObj,this.currentParent,this);
+}
+return this.processNext();
+},processNext:function(){
+var _c;
+var _d=this;
+var _e;
+var _f;
+if(this.maxStackDepth==-2){
+return;
+}
+while(true){
+var _10=this.currentParent.children;
+if(_10&&_10.length){
+do{
+_f=_10[this.currentIndex];
+}while(this.currentIndex++<_10.length&&!(_e=this.filterFunc.call(this.filterObj,_f)));
+if(_e){
+if(_f.isFolder&&this.stack.length<=this.maxStackDepth){
+this.moveParent(_f,0);
+}
+return this.callFunc.call(this.callObj,_f,this);
+}
+}
+if(this.stack.length){
+this.popParent();
+continue;
+}
+break;
+}
+return this.finishFunc.call(this.finishObj);
+},setFinish:function(_11,obj){
+this.finishFunc=_11;
+this.finishObj=obj;
+},popParent:function(){
+var p=this.stack.pop();
+this.currentParent=p[0];
+this.currentIndex=p[1];
+},moveParent:function(_14,_15){
+this.stack.push([this.currentParent,this.currentIndex]);
+this.currentParent=_14;
+this.currentIndex=_15;
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeTimeoutIterator.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeTimeoutIterator.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeTimeoutIterator.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeToggleOnSelect.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeToggleOnSelect.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeToggleOnSelect.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeToggleOnSelect.js Sat May 26 15:47:41 2007
@@ -0,0 +1,10 @@
+dojo.provide("dojo.widget.TreeToggleOnSelect");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.widget.defineWidget("dojo.widget.TreeToggleOnSelect",dojo.widget.HtmlWidget,{selector:"",controller:"",selectEvent:"select",initialize:function(){
+this.selector=dojo.widget.byId(this.selector);
+this.controller=dojo.widget.byId(this.controller);
+dojo.event.topic.subscribe(this.selector.eventNames[this.selectEvent],this,"onSelectEvent");
+},onSelectEvent:function(_1){
+var _2=_1.node;
+_2.isExpanded?this.controller.collapse(_2):this.controller.expand(_2);
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeToggleOnSelect.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeToggleOnSelect.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeToggleOnSelect.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeV3.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeV3.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeV3.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeV3.js Sat May 26 15:47:41 2007
@@ -0,0 +1,122 @@
+dojo.provide("dojo.widget.TreeV3");
+dojo.require("dojo.widget.TreeWithNode");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.event.*");
+dojo.require("dojo.io.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.widget.TreeNodeV3");
+dojo.widget.defineWidget("dojo.widget.TreeV3",[dojo.widget.HtmlWidget,dojo.widget.TreeWithNode],function(){
+this.eventNames={};
+this.DndAcceptTypes=[];
+this.actionsDisabled=[];
+this.listeners=[];
+this.tree=this;
+},{DndMode:"",defaultChildWidget:null,defaultChildTitle:"New Node",eagerWidgetInstantiation:false,eventNamesDefault:{afterTreeCreate:"afterTreeCreate",beforeTreeDestroy:"beforeTreeDestroy",beforeNodeDestroy:"beforeNodeDestroy",afterChangeTree:"afterChangeTree",afterSetFolder:"afterSetFolder",afterUnsetFolder:"afterUnsetFolder",beforeMoveFrom:"beforeMoveFrom",beforeMoveTo:"beforeMoveTo",afterMoveFrom:"afterMoveFrom",afterMoveTo:"afterMoveTo",afterAddChild:"afterAddChild",afterDetach:"afterDetach",afterExpand:"afterExpand",beforeExpand:"beforeExpand",afterSetTitle:"afterSetTitle",afterCollapse:"afterCollapse",beforeCollapse:"beforeCollapse"},classPrefix:"Tree",style:"",allowAddChildToLeaf:true,unsetFolderOnEmpty:true,DndModes:{BETWEEN:1,ONTO:2},DndAcceptTypes:"",templateCssString:"/* indent for all tree children excepts root */\n.TreeNode {\n background-image : url('../templates/images/TreeV3/i.gif');\n background-position : top left;\n background-repeat : repeat-y;\n
margin-left: 19px;\n zoom: 1;\n}\n.TreeIsRoot {\n margin-left: 0;\n}\n \n/* left vertical line (grid) for all nodes */\n.TreeIsLast {\n background-image: url('../templates/images/TreeV3/i_half.gif');\n background-repeat : no-repeat;\n}\n \n.TreeExpandOpen .TreeExpand {\n background-image: url('../templates/images/TreeV3/expand_minus.gif');\n}\n \n/* closed is higher priority than open */\n.TreeExpandClosed .TreeExpand {\n background-image: url('../templates/images/TreeV3/expand_plus.gif');\n}\n \n/* highest priority */\n.TreeExpandLeaf .TreeExpand {\n background-image: url('../templates/images/TreeV3/expand_leaf.gif');\n}\n\n/* \nshould always override any expand setting, but do not touch children.\nif I add .TreeExpand .TreeExpandLoading same time and put it to top/bottom, then it will take precedence over +- for all descendants or always fail\nso I have to remove TreeExpand and process this one specifically\n*/\n\n.TreeExpandLoading {\n width:
18px;\n height: 18px;\n float: left;\n display: inline;\n background-repeat : no-repeat;\n background-image: url('../templates/images/TreeV3/expand_loading.gif');\n}\n \n.TreeContent {\n min-height: 18px;\n min-width: 18px;\n margin-left:18px;\n cursor: default;\n /* can't make inline - multiline bugs */\n}\n\n.TreeIEContent {\n\theight: 18px;\n}\n \n.TreeExpand {\n width: 18px;\n height: 18px;\n float: left;\n display: inline;\n background-repeat : no-repeat;\n}\n \n/* same style as IE selection */\n.TreeNodeEmphasized {\n background-color: Highlight;\n color: HighlightText;\n}\n \n.TreeContent .RichTextEditable, .TreeContent .RichTextEditable iframe {\n background-color: #ffc;\n color: black;\n}\n\n/* don't use :focus due to opera's lack of support on div's */\n.TreeLabelFocused {\n outline: 1px invert dotted;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/TreeV3.css"),templateString:"<di
v style=\"${this.style}\">\n</div>",isExpanded:true,isTree:true,createNode:function(_1){
+_1.tree=this.widgetId;
+if(_1.widgetName){
+return dojo.widget.createWidget(_1.widgetName,_1);
+}else{
+if(this.defaultChildWidget.prototype.createSimple){
+return this.defaultChildWidget.prototype.createSimple(_1);
+}else{
+var ns=this.defaultChildWidget.prototype.ns;
+var wt=this.defaultChildWidget.prototype.widgetType;
+return dojo.widget.createWidget(ns+":"+wt,_1);
+}
+}
+},makeNodeTemplate:function(){
+var _4=document.createElement("div");
+dojo.html.setClass(_4,this.classPrefix+"Node "+this.classPrefix+"ExpandLeaf "+this.classPrefix+"ChildrenNo");
+this.nodeTemplate=_4;
+var _5=document.createElement("div");
+var _6=this.classPrefix+"Expand";
+if(dojo.render.html.ie){
+_6=_6+" "+this.classPrefix+"IEExpand";
+}
+dojo.html.setClass(_5,_6);
+this.expandNodeTemplate=_5;
+var _7=document.createElement("span");
+dojo.html.setClass(_7,this.classPrefix+"Label");
+this.labelNodeTemplate=_7;
+var _8=document.createElement("div");
+var _6=this.classPrefix+"Content";
+if(dojo.render.html.ie&&!dojo.render.html.ie70){
+_6=_6+" "+this.classPrefix+"IEContent";
+}
+dojo.html.setClass(_8,_6);
+this.contentNodeTemplate=_8;
+_4.appendChild(_5);
+_4.appendChild(_8);
+_8.appendChild(_7);
+},makeContainerNodeTemplate:function(){
+var _9=document.createElement("div");
+_9.style.display="none";
+dojo.html.setClass(_9,this.classPrefix+"Container");
+this.containerNodeTemplate=_9;
+},actions:{ADDCHILD:"ADDCHILD"},getInfo:function(){
+var _a={widgetId:this.widgetId,objectId:this.objectId};
+return _a;
+},adjustEventNames:function(){
+for(var _b in this.eventNamesDefault){
+if(dojo.lang.isUndefined(this.eventNames[_b])){
+this.eventNames[_b]=this.widgetId+"/"+this.eventNamesDefault[_b];
+}
+}
+},adjustDndMode:function(){
+var _c=this;
+var _d=0;
+dojo.lang.forEach(this.DndMode.split(";"),function(_e){
+var _f=_c.DndModes[dojo.string.trim(_e).toUpperCase()];
+if(_f){
+_d=_d|_f;
+}
+});
+this.DndMode=_d;
+},destroy:function(){
+dojo.event.topic.publish(this.tree.eventNames.beforeTreeDestroy,{source:this});
+return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments);
+},initialize:function(_10){
+this.domNode.widgetId=this.widgetId;
+for(var i=0;i<this.actionsDisabled.length;i++){
+this.actionsDisabled[i]=this.actionsDisabled[i].toUpperCase();
+}
+if(!_10.defaultChildWidget){
+this.defaultChildWidget=dojo.widget.TreeNodeV3;
+}else{
+this.defaultChildWidget=dojo.lang.getObjPathValue(_10.defaultChildWidget);
+}
+this.adjustEventNames();
+this.adjustDndMode();
+this.makeNodeTemplate();
+this.makeContainerNodeTemplate();
+this.containerNode=this.domNode;
+dojo.html.setClass(this.domNode,this.classPrefix+"Container");
+var _12=this;
+dojo.lang.forEach(this.listeners,function(_13){
+var t=dojo.lang.isString(_13)?dojo.widget.byId(_13):_13;
+t.listenTree(_12);
+});
+},postCreate:function(){
+dojo.event.topic.publish(this.eventNames.afterTreeCreate,{source:this});
+},move:function(_15,_16,_17){
+if(!_15.parent){
+dojo.raise(this.widgetType+": child can be moved only while it's attached");
+}
+var _18=_15.parent;
+var _19=_15.tree;
+var _1a=_15.getParentIndex();
+var _1b=_16.tree;
+var _16=_16;
+var _1c=_17;
+var _1d={oldParent:_18,oldTree:_19,oldIndex:_1a,newParent:_16,newTree:_1b,newIndex:_1c,child:_15};
+dojo.event.topic.publish(_19.eventNames.beforeMoveFrom,_1d);
+dojo.event.topic.publish(_1b.eventNames.beforeMoveTo,_1d);
+this.doMove.apply(this,arguments);
+dojo.event.topic.publish(_19.eventNames.afterMoveFrom,_1d);
+dojo.event.topic.publish(_1b.eventNames.afterMoveTo,_1d);
+},doMove:function(_1e,_1f,_20){
+_1e.doDetach();
+_1f.doAddChild(_1e,_20);
+},toString:function(){
+return "["+this.widgetType+" ID:"+this.widgetId+"]";
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeV3.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeV3.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeV3.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeWithNode.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeWithNode.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeWithNode.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeWithNode.js Sat May 26 15:47:41 2007
@@ -0,0 +1,102 @@
+dojo.require("dojo.lang.declare");
+dojo.provide("dojo.widget.TreeWithNode");
+dojo.declare("dojo.widget.TreeWithNode",null,function(){
+},{loadStates:{UNCHECKED:"UNCHECKED",LOADING:"LOADING",LOADED:"LOADED"},state:"UNCHECKED",objectId:"",isContainer:true,lockLevel:0,lock:function(){
+this.lockLevel++;
+},unlock:function(){
+if(!this.lockLevel){
+dojo.raise(this.widgetType+" unlock: not locked");
+}
+this.lockLevel--;
+},expandLevel:0,loadLevel:0,hasLock:function(){
+return this.lockLevel>0;
+},isLocked:function(){
+var _1=this;
+while(true){
+if(_1.lockLevel){
+return true;
+}
+if(!_1.parent||_1.isTree){
+break;
+}
+_1=_1.parent;
+}
+return false;
+},flushLock:function(){
+this.lockLevel=0;
+},actionIsDisabled:function(_2){
+var _3=false;
+if(dojo.lang.inArray(this.actionsDisabled,_2)){
+_3=true;
+}
+if(this.isTreeNode){
+if(!this.tree.allowAddChildToLeaf&&_2==this.actions.ADDCHILD&&!this.isFolder){
+_3=true;
+}
+}
+return _3;
+},actionIsDisabledNow:function(_4){
+return this.actionIsDisabled(_4)||this.isLocked();
+},setChildren:function(_5){
+if(this.isTreeNode&&!this.isFolder){
+this.setFolder();
+}else{
+if(this.isTreeNode){
+this.state=this.loadStates.LOADED;
+}
+}
+var _6=this.children.length>0;
+if(_6&&_5){
+this.destroyChildren();
+}
+if(_5){
+this.children=_5;
+}
+var _7=this.children.length>0;
+if(this.isTreeNode&&_7!=_6){
+this.viewSetHasChildren();
+}
+for(var i=0;i<this.children.length;i++){
+var _9=this.children[i];
+if(!(_9 instanceof dojo.widget.Widget)){
+_9=this.children[i]=this.tree.createNode(_9);
+var _a=true;
+}else{
+var _a=false;
+}
+if(!_9.parent){
+_9.parent=this;
+if(this.tree!==_9.tree){
+_9.updateTree(this.tree);
+}
+_9.viewAddLayout();
+this.containerNode.appendChild(_9.domNode);
+var _b={child:_9,index:i,parent:this,childWidgetCreated:_a};
+delete dojo.widget.manager.topWidgets[_9.widgetId];
+dojo.event.topic.publish(this.tree.eventNames.afterAddChild,_b);
+}
+if(this.tree.eagerWidgetInstantiation){
+dojo.lang.forEach(this.children,function(_c){
+_c.setChildren();
+});
+}
+}
+},doAddChild:function(_d,_e){
+return this.addChild(_d,_e,true);
+},addChild:function(_f,_10,_11){
+if(dojo.lang.isUndefined(_10)){
+_10=this.children.length;
+}
+if(!_f.isTreeNode){
+dojo.raise("You can only add TreeNode widgets to a "+this.widgetType+" widget!");
+return;
+}
+this.children.splice(_10,0,_f);
+_f.parent=this;
+_f.addedTo(this,_10,_11);
+delete dojo.widget.manager.topWidgets[_f.widgetId];
+},onShow:function(){
+this.animationInProgress=false;
+},onHide:function(){
+this.animationInProgress=false;
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeWithNode.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeWithNode.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/TreeWithNode.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/UsTextbox.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/UsTextbox.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/UsTextbox.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/UsTextbox.js Sat May 26 15:47:41 2007
@@ -0,0 +1,23 @@
+dojo.provide("dojo.widget.UsTextbox");
+dojo.require("dojo.widget.ValidationTextbox");
+dojo.require("dojo.validate.us");
+dojo.widget.defineWidget("dojo.widget.UsStateTextbox",dojo.widget.ValidationTextbox,{mixInProperties:function(_1){
+dojo.widget.UsStateTextbox.superclass.mixInProperties.apply(this,arguments);
+if(_1.allowterritories){
+this.flags.allowTerritories=(_1.allowterritories=="true");
+}
+if(_1.allowmilitary){
+this.flags.allowMilitary=(_1.allowmilitary=="true");
+}
+},isValid:function(){
+return dojo.validate.us.isState(this.textbox.value,this.flags);
+}});
+dojo.widget.defineWidget("dojo.widget.UsZipTextbox",dojo.widget.ValidationTextbox,{isValid:function(){
+return dojo.validate.us.isZipCode(this.textbox.value);
+}});
+dojo.widget.defineWidget("dojo.widget.UsSocialSecurityNumberTextbox",dojo.widget.ValidationTextbox,{isValid:function(){
+return dojo.validate.us.isSocialSecurityNumber(this.textbox.value);
+}});
+dojo.widget.defineWidget("dojo.widget.UsPhoneNumberTextbox",dojo.widget.ValidationTextbox,{isValid:function(){
+return dojo.validate.us.isPhoneNumber(this.textbox.value);
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/UsTextbox.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/UsTextbox.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/UsTextbox.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/ValidationTextbox.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/ValidationTextbox.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/ValidationTextbox.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/ValidationTextbox.js Sat May 26 15:47:41 2007
@@ -0,0 +1,111 @@
+dojo.provide("dojo.widget.ValidationTextbox");
+dojo.require("dojo.widget.Textbox");
+dojo.require("dojo.i18n.common");
+dojo.widget.defineWidget("dojo.widget.ValidationTextbox",dojo.widget.Textbox,function(){
+this.flags={};
+},{required:false,rangeClass:"range",invalidClass:"invalid",missingClass:"missing",classPrefix:"dojoValidate",size:"",maxlength:"",promptMessage:"",invalidMessage:"",missingMessage:"",rangeMessage:"",listenOnKeyPress:true,htmlfloat:"none",lastCheckedValue:null,templateString:"<span style='float:${this.htmlfloat};'>\n\t<input dojoAttachPoint='textbox' type='${this.type}' dojoAttachEvent='onblur;onfocus;onkeyup'\n\t\tid='${this.widgetId}' name='${this.name}' size='${this.size}' maxlength='${this.maxlength}'\n\t\tclass='${this.className}' style=''>\n\t<span dojoAttachPoint='invalidSpan' class='${this.invalidClass}'>${this.messages.invalidMessage}</span>\n\t<span dojoAttachPoint='missingSpan' class='${this.missingClass}'>${this.messages.missingMessage}</span>\n\t<span dojoAttachPoint='rangeSpan' class='${this.rangeClass}'>${this.messages.rangeMessage}</span>\n</span>\n",templateCssString:".dojoValidateEmpty{\n\tbackground-color: #00FFFF;\n}\n.dojoValidateValid{\n\tbackground-col
or: #cfc;\n}\n.dojoValidateInvalid{\n\tbackground-color: #fcc;\n}\n.dojoValidateRange{\n\tbackground-color: #ccf;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/Validate.css"),invalidSpan:null,missingSpan:null,rangeSpan:null,getValue:function(){
+return this.textbox.value;
+},setValue:function(_1){
+this.textbox.value=_1;
+this.update();
+},isValid:function(){
+return true;
+},isInRange:function(){
+return true;
+},isEmpty:function(){
+return (/^\s*$/.test(this.textbox.value));
+},isMissing:function(){
+return (this.required&&this.isEmpty());
+},update:function(){
+this.lastCheckedValue=this.textbox.value;
+this.missingSpan.style.display="none";
+this.invalidSpan.style.display="none";
+this.rangeSpan.style.display="none";
+var _2=this.isEmpty();
+var _3=true;
+if(this.promptMessage!=this.textbox.value){
+_3=this.isValid();
+}
+var _4=this.isMissing();
+if(_4){
+this.missingSpan.style.display="";
+}else{
+if(!_2&&!_3){
+this.invalidSpan.style.display="";
+}else{
+if(!_2&&!this.isInRange()){
+this.rangeSpan.style.display="";
+}
+}
+}
+this.highlight();
+},updateClass:function(_5){
+var _6=this.classPrefix;
+dojo.html.removeClass(this.textbox,_6+"Empty");
+dojo.html.removeClass(this.textbox,_6+"Valid");
+dojo.html.removeClass(this.textbox,_6+"Invalid");
+dojo.html.addClass(this.textbox,_6+_5);
+},highlight:function(){
+if(this.isEmpty()){
+this.updateClass("Empty");
+}else{
+if(this.isValid()&&this.isInRange()){
+this.updateClass("Valid");
+}else{
+if(this.textbox.value!=this.promptMessage){
+this.updateClass("Invalid");
+}else{
+this.updateClass("Empty");
+}
+}
+}
+},onfocus:function(_7){
+if(!this.listenOnKeyPress){
+this.updateClass("Empty");
+}
+},onblur:function(_8){
+this.filter();
+this.update();
+},onkeyup:function(_9){
+if(this.listenOnKeyPress){
+this.update();
+}else{
+if(this.textbox.value!=this.lastCheckedValue){
+this.updateClass("Empty");
+}
+}
+},postMixInProperties:function(_a,_b){
+dojo.widget.ValidationTextbox.superclass.postMixInProperties.apply(this,arguments);
+this.messages=dojo.i18n.getLocalization("dojo.widget","validate",this.lang);
+dojo.lang.forEach(["invalidMessage","missingMessage","rangeMessage"],function(_c){
+if(this[_c]){
+this.messages[_c]=this[_c];
+}
+},this);
+},fillInTemplate:function(){
+dojo.widget.ValidationTextbox.superclass.fillInTemplate.apply(this,arguments);
+this.textbox.isValid=function(){
+this.isValid.call(this);
+};
+this.textbox.isMissing=function(){
+this.isMissing.call(this);
+};
+this.textbox.isInRange=function(){
+this.isInRange.call(this);
+};
+dojo.html.setClass(this.invalidSpan,this.invalidClass);
+this.update();
+this.filter();
+if(dojo.render.html.ie){
+dojo.html.addClass(this.domNode,"ie");
+}
+if(dojo.render.html.moz){
+dojo.html.addClass(this.domNode,"moz");
+}
+if(dojo.render.html.opera){
+dojo.html.addClass(this.domNode,"opera");
+}
+if(dojo.render.html.safari){
+dojo.html.addClass(this.domNode,"safari");
+}
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/ValidationTextbox.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/ValidationTextbox.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/ValidationTextbox.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Widget.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Widget.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Widget.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Widget.js Sat May 26 15:47:41 2007
@@ -0,0 +1,297 @@
+dojo.provide("dojo.widget.Widget");
+dojo.require("dojo.lang.func");
+dojo.require("dojo.lang.array");
+dojo.require("dojo.lang.extras");
+dojo.require("dojo.lang.declare");
+dojo.require("dojo.ns");
+dojo.require("dojo.widget.Manager");
+dojo.require("dojo.event.*");
+dojo.declare("dojo.widget.Widget",null,function(){
+this.children=[];
+this.extraArgs={};
+},{parent:null,isTopLevel:false,disabled:false,isContainer:false,widgetId:"",widgetType:"Widget",ns:"dojo",getNamespacedType:function(){
+return (this.ns?this.ns+":"+this.widgetType:this.widgetType).toLowerCase();
+},toString:function(){
+return "[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]";
+},repr:function(){
+return this.toString();
+},enable:function(){
+this.disabled=false;
+},disable:function(){
+this.disabled=true;
+},onResized:function(){
+this.notifyChildrenOfResize();
+},notifyChildrenOfResize:function(){
+for(var i=0;i<this.children.length;i++){
+var _2=this.children[i];
+if(_2.onResized){
+_2.onResized();
+}
+}
+},create:function(_3,_4,_5,ns){
+if(ns){
+this.ns=ns;
+}
+this.satisfyPropertySets(_3,_4,_5);
+this.mixInProperties(_3,_4,_5);
+this.postMixInProperties(_3,_4,_5);
+dojo.widget.manager.add(this);
+this.buildRendering(_3,_4,_5);
+this.initialize(_3,_4,_5);
+this.postInitialize(_3,_4,_5);
+this.postCreate(_3,_4,_5);
+return this;
+},destroy:function(_7){
+if(this.parent){
+this.parent.removeChild(this);
+}
+this.destroyChildren();
+this.uninitialize();
+this.destroyRendering(_7);
+dojo.widget.manager.removeById(this.widgetId);
+},destroyChildren:function(){
+var _8;
+var i=0;
+while(this.children.length>i){
+_8=this.children[i];
+if(_8 instanceof dojo.widget.Widget){
+this.removeChild(_8);
+_8.destroy();
+continue;
+}
+i++;
+}
+},getChildrenOfType:function(_a,_b){
+var _c=[];
+var _d=dojo.lang.isFunction(_a);
+if(!_d){
+_a=_a.toLowerCase();
+}
+for(var x=0;x<this.children.length;x++){
+if(_d){
+if(this.children[x] instanceof _a){
+_c.push(this.children[x]);
+}
+}else{
+if(this.children[x].widgetType.toLowerCase()==_a){
+_c.push(this.children[x]);
+}
+}
+if(_b){
+_c=_c.concat(this.children[x].getChildrenOfType(_a,_b));
+}
+}
+return _c;
+},getDescendants:function(){
+var _f=[];
+var _10=[this];
+var _11;
+while((_11=_10.pop())){
+_f.push(_11);
+if(_11.children){
+dojo.lang.forEach(_11.children,function(_12){
+_10.push(_12);
+});
+}
+}
+return _f;
+},isFirstChild:function(){
+return this===this.parent.children[0];
+},isLastChild:function(){
+return this===this.parent.children[this.parent.children.length-1];
+},satisfyPropertySets:function(_13){
+return _13;
+},mixInProperties:function(_14,_15){
+if((_14["fastMixIn"])||(_15["fastMixIn"])){
+for(var x in _14){
+this[x]=_14[x];
+}
+return;
+}
+var _17;
+var _18=dojo.widget.lcArgsCache[this.widgetType];
+if(_18==null){
+_18={};
+for(var y in this){
+_18[((new String(y)).toLowerCase())]=y;
+}
+dojo.widget.lcArgsCache[this.widgetType]=_18;
+}
+var _1a={};
+for(var x in _14){
+if(!this[x]){
+var y=_18[(new String(x)).toLowerCase()];
+if(y){
+_14[y]=_14[x];
+x=y;
+}
+}
+if(_1a[x]){
+continue;
+}
+_1a[x]=true;
+if((typeof this[x])!=(typeof _17)){
+if(typeof _14[x]!="string"){
+this[x]=_14[x];
+}else{
+if(dojo.lang.isString(this[x])){
+this[x]=_14[x];
+}else{
+if(dojo.lang.isNumber(this[x])){
+this[x]=new Number(_14[x]);
+}else{
+if(dojo.lang.isBoolean(this[x])){
+this[x]=(_14[x].toLowerCase()=="false")?false:true;
+}else{
+if(dojo.lang.isFunction(this[x])){
+if(_14[x].search(/[^\w\.]+/i)==-1){
+this[x]=dojo.evalObjPath(_14[x],false);
+}else{
+var tn=dojo.lang.nameAnonFunc(new Function(_14[x]),this);
+dojo.event.kwConnect({srcObj:this,srcFunc:x,adviceObj:this,adviceFunc:tn});
+}
+}else{
+if(dojo.lang.isArray(this[x])){
+this[x]=_14[x].split(";");
+}else{
+if(this[x] instanceof Date){
+this[x]=new Date(Number(_14[x]));
+}else{
+if(typeof this[x]=="object"){
+if(this[x] instanceof dojo.uri.Uri){
+this[x]=dojo.uri.dojoUri(_14[x]);
+}else{
+var _1c=_14[x].split(";");
+for(var y=0;y<_1c.length;y++){
+var si=_1c[y].indexOf(":");
+if((si!=-1)&&(_1c[y].length>si)){
+this[x][_1c[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_1c[y].substr(si+1);
+}
+}
+}
+}else{
+this[x]=_14[x];
+}
+}
+}
+}
+}
+}
+}
+}
+}else{
+this.extraArgs[x.toLowerCase()]=_14[x];
+}
+}
+},postMixInProperties:function(_1e,_1f,_20){
+},initialize:function(_21,_22,_23){
+return false;
+},postInitialize:function(_24,_25,_26){
+return false;
+},postCreate:function(_27,_28,_29){
+return false;
+},uninitialize:function(){
+return false;
+},buildRendering:function(_2a,_2b,_2c){
+dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
+return false;
+},destroyRendering:function(){
+dojo.unimplemented("dojo.widget.Widget.destroyRendering");
+return false;
+},addedTo:function(_2d){
+},addChild:function(_2e){
+dojo.unimplemented("dojo.widget.Widget.addChild");
+return false;
+},removeChild:function(_2f){
+for(var x=0;x<this.children.length;x++){
+if(this.children[x]===_2f){
+this.children.splice(x,1);
+_2f.parent=null;
+break;
+}
+}
+return _2f;
+},getPreviousSibling:function(){
+var idx=this.getParentIndex();
+if(idx<=0){
+return null;
+}
+return this.parent.children[idx-1];
+},getSiblings:function(){
+return this.parent.children;
+},getParentIndex:function(){
+return dojo.lang.indexOf(this.parent.children,this,true);
+},getNextSibling:function(){
+var idx=this.getParentIndex();
+if(idx==this.parent.children.length-1){
+return null;
+}
+if(idx<0){
+return null;
+}
+return this.parent.children[idx+1];
+}});
+dojo.widget.lcArgsCache={};
+dojo.widget.tags={};
+dojo.widget.tags.addParseTreeHandler=function(_33){
+dojo.deprecated("addParseTreeHandler",". ParseTreeHandlers are now reserved for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed to be a widget","0.5");
+};
+dojo.widget.tags["dojo:propertyset"]=function(_34,_35,_36){
+var _37=_35.parseProperties(_34["dojo:propertyset"]);
+};
+dojo.widget.tags["dojo:connect"]=function(_38,_39,_3a){
+var _3b=_39.parseProperties(_38["dojo:connect"]);
+};
+dojo.widget.buildWidgetFromParseTree=function(_3c,_3d,_3e,_3f,_40,_41){
+var _42=_3c.split(":");
+_42=(_42.length==2)?_42[1]:_3c;
+var _43=_41||_3e.parseProperties(_3d[_3d["ns"]+":"+_42]);
+var _44=dojo.widget.manager.getImplementation(_42,null,null,_3d["ns"]);
+if(!_44){
+throw new Error("cannot find \""+_3c+"\" widget");
+}else{
+if(!_44.create){
+throw new Error("\""+_3c+"\" widget object has no \"create\" method and does not appear to implement *Widget");
+}
+}
+_43["dojoinsertionindex"]=_40;
+var ret=_44.create(_43,_3d,_3f,_3d["ns"]);
+return ret;
+};
+dojo.widget.defineWidget=function(_46,_47,_48,_49,_4a){
+if(dojo.lang.isString(arguments[3])){
+dojo.widget._defineWidget(arguments[0],arguments[3],arguments[1],arguments[4],arguments[2]);
+}else{
+var _4b=[arguments[0]],p=3;
+if(dojo.lang.isString(arguments[1])){
+_4b.push(arguments[1],arguments[2]);
+}else{
+_4b.push("",arguments[1]);
+p=2;
+}
+if(dojo.lang.isFunction(arguments[p])){
+_4b.push(arguments[p],arguments[p+1]);
+}else{
+_4b.push(null,arguments[p]);
+}
+dojo.widget._defineWidget.apply(this,_4b);
+}
+};
+dojo.widget.defineWidget.renderers="html|svg|vml";
+dojo.widget._defineWidget=function(_4d,_4e,_4f,_50,_51){
+var _52=_4d.split(".");
+var _53=_52.pop();
+var _54="\\.("+(_4e?_4e+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
+var r=_4d.search(new RegExp(_54));
+_52=(r<0?_52.join("."):_4d.substr(0,r));
+dojo.widget.manager.registerWidgetPackage(_52);
+var pos=_52.indexOf(".");
+var _57=(pos>-1)?_52.substring(0,pos):_52;
+_51=(_51)||{};
+_51.widgetType=_53;
+if((!_50)&&(_51["classConstructor"])){
+_50=_51.classConstructor;
+delete _51.classConstructor;
+}
+dojo.declare(_4d,_4f,_50,_51);
+};
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Widget.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Widget.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Widget.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Wizard.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Wizard.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Wizard.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Wizard.js Sat May 26 15:47:41 2007
@@ -0,0 +1,114 @@
+dojo.provide("dojo.widget.Wizard");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.LayoutContainer");
+dojo.require("dojo.widget.ContentPane");
+dojo.require("dojo.event.*");
+dojo.require("dojo.html.style");
+dojo.widget.defineWidget("dojo.widget.WizardContainer",dojo.widget.LayoutContainer,{templateString:"<div class=\"WizardContainer\" dojoAttachPoint=\"wizardNode\">\n <div class=\"WizardText\" dojoAttachPoint=\"wizardPanelContainerNode\">\n </div>\n <div class=\"WizardButtonHolder\" dojoAttachPoint=\"wizardControlContainerNode\">\n <input class=\"WizardButton\" type=\"button\" dojoAttachPoint=\"previousButton\"/>\n <input class=\"WizardButton\" type=\"button\" dojoAttachPoint=\"nextButton\"/>\n <input class=\"WizardButton\" type=\"button\" dojoAttachPoint=\"doneButton\" style=\"display:none\"/>\n <input class=\"WizardButton\" type=\"button\" dojoAttachPoint=\"cancelButton\"/>\n </div>\n</div>\n",templateCssString:".WizardContainer {\n\tbackground: #EEEEEE;\n\tborder: #798EC5 1px solid;\n\tpadding: 2px;\n}\n\n.WizardTitle {\n\tcolor: #003366;\n\tpadding: 8px 5px 15px 2px;\n\tfont-weight: bold;\n\tfont-size: x-small;\n\tfont-style: normal;
\n\tfont-family: Verdana, Arial, Helvetica;\n\ttext-align: left;\n}\n\n.WizardText {\n\tcolor: #000033;\n\tfont-weight: normal;\n\tfont-size: xx-small;\n\tfont-family: Verdana, Arial, Helvetica;\n\tpadding: 2 50; text-align: justify;\n}\n\n.WizardLightText {\n\tcolor: #666666;\n\tfont-weight: normal;\n\tfont-size: xx-small;\n\tfont-family: verdana, arial, helvetica;\n\tpadding: 2px 50px;\n\ttext-align: justify;\n}\n\n.WizardButtonHolder {\n\ttext-align: right;\n\tpadding: 10px 5px;\n}\n\n.WizardButton {\n\tcolor: #ffffff;\n\tbackground: #798EC5;\n\tfont-size: xx-small;\n\tfont-family: verdana, arial, helvetica, sans-serif;\n\tborder-right: #000000 1px solid;\n\tborder-bottom: #000000 1px solid;\n\tborder-left: #666666 1px solid;\n\tborder-top: #666666 1px solid;\n\tpadding-right: 4px;\n\tpadding-left: 4px;\n\ttext-decoration: none; height: 18px;\n}\n\n.WizardButton:hover {\n\tcursor: pointer;\n}\n\n.WizardButtonDisabled {\n\tcolor: #eeeeee;\n\tbackground-color: #999999;\n\tf
ont-size: xx-small;\n\tFONT-FAMILY: verdana, arial, helvetica, sans-serif;\n\tborder-right: #000000 1px solid;\n\tborder-bottom: #000000 1px solid;\n\tborder-left: #798EC5 1px solid;\n\tborder-top: #798EC5 1px solid;\n\tpadding-right: 4px;\n\tpadding-left: 4px;\n\ttext-decoration: none;\n\theight: 18px;\n}\n\n\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/Wizard.css"),selected:null,nextButtonLabel:"next",previousButtonLabel:"previous",cancelButtonLabel:"cancel",doneButtonLabel:"done",cancelFunction:"",hideDisabledButtons:false,fillInTemplate:function(_1,_2){
+dojo.event.connect(this.nextButton,"onclick",this,"_onNextButtonClick");
+dojo.event.connect(this.previousButton,"onclick",this,"_onPreviousButtonClick");
+if(this.cancelFunction){
+dojo.event.connect(this.cancelButton,"onclick",this.cancelFunction);
+}else{
+this.cancelButton.style.display="none";
+}
+dojo.event.connect(this.doneButton,"onclick",this,"done");
+this.nextButton.value=this.nextButtonLabel;
+this.previousButton.value=this.previousButtonLabel;
+this.cancelButton.value=this.cancelButtonLabel;
+this.doneButton.value=this.doneButtonLabel;
+},_checkButtons:function(){
+var _3=!this.hasNextPanel();
+this.nextButton.disabled=_3;
+this._setButtonClass(this.nextButton);
+if(this.selected.doneFunction){
+this.doneButton.style.display="";
+if(_3){
+this.nextButton.style.display="none";
+}
+}else{
+this.doneButton.style.display="none";
+}
+this.previousButton.disabled=((!this.hasPreviousPanel())||(!this.selected.canGoBack));
+this._setButtonClass(this.previousButton);
+},_setButtonClass:function(_4){
+if(!this.hideDisabledButtons){
+_4.style.display="";
+dojo.html.setClass(_4,_4.disabled?"WizardButtonDisabled":"WizardButton");
+}else{
+_4.style.display=_4.disabled?"none":"";
+}
+},registerChild:function(_5,_6){
+dojo.widget.WizardContainer.superclass.registerChild.call(this,_5,_6);
+this.wizardPanelContainerNode.appendChild(_5.domNode);
+_5.hide();
+if(!this.selected){
+this.onSelected(_5);
+}
+this._checkButtons();
+},onSelected:function(_7){
+if(this.selected){
+if(this.selected._checkPass()){
+this.selected.hide();
+}else{
+return;
+}
+}
+_7.show();
+this.selected=_7;
+},getPanels:function(){
+return this.getChildrenOfType("WizardPane",false);
+},selectedIndex:function(){
+if(this.selected){
+return dojo.lang.indexOf(this.getPanels(),this.selected);
+}
+return -1;
+},_onNextButtonClick:function(){
+var _8=this.selectedIndex();
+if(_8>-1){
+var _9=this.getPanels();
+if(_9[_8+1]){
+this.onSelected(_9[_8+1]);
+}
+}
+this._checkButtons();
+},_onPreviousButtonClick:function(){
+var _a=this.selectedIndex();
+if(_a>-1){
+var _b=this.getPanels();
+if(_b[_a-1]){
+this.onSelected(_b[_a-1]);
+}
+}
+this._checkButtons();
+},hasNextPanel:function(){
+var _c=this.selectedIndex();
+return (_c<(this.getPanels().length-1));
+},hasPreviousPanel:function(){
+var _d=this.selectedIndex();
+return (_d>0);
+},done:function(){
+this.selected.done();
+}});
+dojo.widget.defineWidget("dojo.widget.WizardPane",dojo.widget.ContentPane,{canGoBack:true,passFunction:"",doneFunction:"",postMixInProperties:function(_e,_f){
+if(this.passFunction){
+this.passFunction=dj_global[this.passFunction];
+}
+if(this.doneFunction){
+this.doneFunction=dj_global[this.doneFunction];
+}
+dojo.widget.WizardPane.superclass.postMixInProperties.apply(this,arguments);
+},_checkPass:function(){
+if(this.passFunction&&dojo.lang.isFunction(this.passFunction)){
+var _10=this.passFunction();
+if(_10){
+alert(_10);
+return false;
+}
+}
+return true;
+},done:function(){
+if(this.doneFunction&&dojo.lang.isFunction(this.doneFunction)){
+this.doneFunction();
+}
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Wizard.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Wizard.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/Wizard.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/YahooMap.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/YahooMap.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/YahooMap.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/YahooMap.js Sat May 26 15:47:41 2007
@@ -0,0 +1,132 @@
+dojo.provide("dojo.widget.YahooMap");
+dojo.require("dojo.event.*");
+dojo.require("dojo.math");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+(function(){
+var _1=djConfig["yAppId"]||djConfig["yahooAppId"]||"dojotoolkit";
+if(!dojo.hostenv.post_load_){
+if(_1=="dojotoolkit"){
+dojo.debug("please provide a unique Yahoo App ID in djConfig.yahooAppId when using the map widget");
+}
+var _2="<scr"+"ipt src='http://api.maps.yahoo.com/ajaxymap?v=3.0&appid="+_1+"'></scri"+"pt>";
+if(!dj_global["YMap"]){
+document.write(_2);
+}
+}else{
+dojo.debug("cannot initialize map system after the page has been loaded! Please either manually include the script block provided by Yahoo in your page or require() the YahooMap widget before onload has fired");
+}
+})();
+dojo.widget.defineWidget("dojo.widget.YahooMap",dojo.widget.HtmlWidget,function(){
+this.map=null;
+this.datasrc="";
+this.data=[];
+this.width=0;
+this.height=0;
+this.controls=["zoomlong","maptype","pan"];
+},{isContainer:false,templatePath:null,templateCssPath:null,findCenter:function(_3){
+var _4=new YGeoPoint(37,-90);
+if(_3.length==0){
+return _4;
+}
+var _5,_6,_7,_8,_9,_a;
+_5=_6=_3[0].Lat;
+_7=_8=_3[0].Lon;
+for(var i=0;i<_3.length;i++){
+_5=Math.min(_5,_3[i].Lat);
+_6=Math.max(_6,_3[i].Lat);
+_7=Math.min(_7,_3[i].Lon);
+_8=Math.max(_8,_3[i].Lon);
+}
+_9=dojo.math.round((_5+_6)/2,6);
+_a=dojo.math.round((_7+_8)/2,6);
+return new YGeoPoint(_9,_a);
+},setControls:function(){
+var _c={maptype:"addTypeControl",pan:"addPanControl",zoomlong:"addZoomLong",zoomshort:"addZoomShort"};
+var c=this.controls;
+for(var i=0;i<c.length;i++){
+var _f=_c[c[i].toLowerCase()];
+if(this.map[_f]){
+this.map[_f]();
+}
+}
+},parse:function(_10){
+this.data=[];
+var h=_10.getElementsByTagName("thead")[0];
+if(!h){
+return;
+}
+var a=[];
+var _13=h.getElementsByTagName("td");
+if(_13.length==0){
+_13=h.getElementsByTagName("th");
+}
+for(var i=0;i<_13.length;i++){
+var c=_13[i].innerHTML.toLowerCase();
+if(c=="long"){
+c="lng";
+}
+a.push(c);
+}
+var b=_10.getElementsByTagName("tbody")[0];
+if(!b){
+return;
+}
+for(var i=0;i<b.childNodes.length;i++){
+if(!(b.childNodes[i].nodeName&&b.childNodes[i].nodeName.toLowerCase()=="tr")){
+continue;
+}
+var _17=b.childNodes[i].getElementsByTagName("td");
+var o={};
+for(var j=0;j<a.length;j++){
+var col=a[j];
+if(col=="lat"||col=="lng"){
+o[col]=parseFloat(_17[j].innerHTML);
+}else{
+o[col]=_17[j].innerHTML;
+}
+}
+this.data.push(o);
+}
+},render:function(){
+var pts=[];
+var d=this.data;
+for(var i=0;i<d.length;i++){
+var pt=new YGeoPoint(d[i].lat,d[i].lng);
+pts.push(pt);
+var _1f=d[i].icon||null;
+if(_1f){
+_1f=new YImage(_1f);
+}
+var m=new YMarker(pt,_1f);
+if(d[i].description){
+m.addAutoExpand("<div>"+d[i].description+"</div>");
+}
+this.map.addOverlay(m);
+}
+var c=this.findCenter(pts);
+var z=this.map.getZoomLevel(pts);
+this.map.drawZoomAndCenter(c,z);
+},initialize:function(_23,_24){
+if(!YMap||!YGeoPoint){
+dojo.raise("dojo.widget.YahooMap: The Yahoo Map script must be included in order to use this widget.");
+}
+if(this.datasrc){
+this.parse(dojo.byId(this.datasrc));
+}else{
+if(this.domNode.getElementsByTagName("table")[0]){
+this.parse(this.domNode.getElementsByTagName("table")[0]);
+}
+}
+},postCreate:function(){
+while(this.domNode.childNodes.length>0){
+this.domNode.removeChild(this.domNode.childNodes[0]);
+}
+if(this.width>0&&this.height>0){
+this.map=new YMap(this.domNode,YAHOO_MAP_REG,new YSize(this.width,this.height));
+}else{
+this.map=new YMap(this.domNode);
+}
+this.setControls();
+this.render();
+}});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/YahooMap.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/YahooMap.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/YahooMap.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/__package__.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/__package__.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/__package__.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/__package__.js Sat May 26 15:47:41 2007
@@ -0,0 +1,2 @@
+dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"],rhino:["dojo.widget.SwtWidget"]});
+dojo.provide("dojo.widget.*");
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/__package__.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/__package__.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/__package__.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoContainer.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoContainer.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoContainer.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoContainer.js Sat May 26 15:47:41 2007
@@ -0,0 +1,62 @@
+dojo.provide("dojo.widget.demoEngine.DemoContainer");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.widget.demoEngine.DemoPane");
+dojo.require("dojo.widget.demoEngine.SourcePane");
+dojo.require("dojo.widget.TabContainer");
+dojo.widget.defineWidget("my.widget.demoEngine.DemoContainer",dojo.widget.HtmlWidget,{templateString:"<div dojoAttachPoint=\"domNode\">\n\t<table width=\"100%\" cellspacing=\"0\" cellpadding=\"5\">\n\t\t<tbody>\n\t\t\t<tr dojoAttachPoint=\"headerNode\">\n\t\t\t\t<td dojoAttachPoint=\"returnNode\" valign=\"middle\" width=\"1%\">\n\t\t\t\t\t<img dojoAttachPoint=\"returnImageNode\" dojoAttachEvent=\"onclick: returnToDemos\"/>\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<h1 dojoAttachPoint=\"demoNameNode\"></h1>\n\t\t\t\t\t<p dojoAttachPoint=\"summaryNode\"></p>\n\t\t\t\t</td>\n\t\t\t\t<td dojoAttachPoint=\"tabControlNode\" valign=\"middle\" align=\"right\" nowrap>\n\t\t\t\t\t<span dojoAttachPoint=\"sourceButtonNode\" dojoAttachEvent=\"onclick: showSource\">source</span>\n\t\t\t\t\t<span dojoAttachPoint=\"demoButtonNode\" dojoAttachEvent=\"onclick: showDemo\">demo</span>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"3\">\n\t\t\t\t\t<div dojoAttachPoint=\"tabNode\">\
n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</div>\n",templateCssString:".demoContainer{\n\twidth: 100%;\n\theight: 100%;\n\tpadding: 0px;\n\tmargin: 0px;\n}\n\n.demoContainer .return {\n\tcursor: pointer;\n}\n\n.demoContainer span {\n\tmargin-right: 10px;\n\tcursor: pointer;\n}\n\n.demoContainer .selected {\n\tborder-bottom: 5px solid #95bfff;\n}\n\n.demoContainer table {\n\tbackground: #f5f5f5;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.demoContainerTabs {\n\twidth: 100%;\n\theight: 400px;\n}\n\n.demoContainerTabs .dojoTabLabels-top {\n\tdisplay: none;\n}\n\n.demoContainerTabs .dojoTabPaneWrapper {\n\tborder: 0px;\n}\n\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","demoEngine/templates/DemoContainer.css"),postCreate:function(){
+dojo.html.addClass(this.domNode,this.domNodeClass);
+dojo.html.addClass(this.tabNode,this.tabClass);
+dojo.html.addClass(this.returnImageNode,this.returnClass);
+this.returnImageNode.src=this.returnImage;
+this.tabContainer=dojo.widget.createWidget("TabContainer",{},this.tabNode);
+this.demoTab=dojo.widget.createWidget("DemoPane",{});
+this.tabContainer.addChild(this.demoTab);
+this.sourceTab=dojo.widget.createWidget("SourcePane",{});
+this.tabContainer.addChild(this.sourceTab);
+dojo.html.setOpacity(this.domNode,0);
+dojo.html.hide(this.domNode);
+},loadDemo:function(_1){
+this.demoTab.setHref(_1);
+this.sourceTab.setHref(_1);
+this.showDemo();
+},setName:function(_2){
+dojo.html.removeChildren(this.demoNameNode);
+this.demoNameNode.appendChild(document.createTextNode(_2));
+},setSummary:function(_3){
+dojo.html.removeChildren(this.summaryNode);
+this.summaryNode.appendChild(document.createTextNode(_3));
+},showSource:function(){
+dojo.html.removeClass(this.demoButtonNode,this.selectedButtonClass);
+dojo.html.addClass(this.sourceButtonNode,this.selectedButtonClass);
+this.tabContainer.selectTab(this.sourceTab);
+},showDemo:function(){
+dojo.html.removeClass(this.sourceButtonNode,this.selectedButtonClass);
+dojo.html.addClass(this.demoButtonNode,this.selectedButtonClass);
+this.tabContainer.selectTab(this.demoTab);
+},returnToDemos:function(){
+dojo.debug("Return To Demos");
+},show:function(){
+dojo.html.setOpacity(this.domNode,1);
+dojo.html.show(this.domNode);
+this.tabContainer.checkSize();
+}},"",function(){
+dojo.debug("DemoPane Init");
+this.domNodeClass="demoContainer";
+this.tabContainer="";
+this.sourceTab="";
+this.demoTab="";
+this.headerNode="";
+this.returnNode="";
+this.returnImageNode="";
+this.returnImage="images/dojoDemos.gif";
+this.returnClass="return";
+this.summaryNode="";
+this.demoNameNode="";
+this.tabControlNode="";
+this.tabNode="";
+this.tabClass="demoContainerTabs";
+this.sourceButtonNode="";
+this.demoButtonNode="";
+this.selectedButtonClass="selected";
+});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoContainer.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoContainer.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoContainer.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoItem.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoItem.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoItem.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoItem.js Sat May 26 15:47:41 2007
@@ -0,0 +1,39 @@
+dojo.provide("dojo.widget.demoEngine.DemoItem");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.widget.defineWidget("my.widget.demoEngine.DemoItem",dojo.widget.HtmlWidget,{templateString:"<div dojoAttachPoint=\"domNode\">\n\t<div dojoAttachPoint=\"summaryBoxNode\">\n\t\t<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n\t\t\t<tbody>\n\t\t\t\t<tr>\n\t\t\t\t\t<td dojoAttachPoint=\"screenshotTdNode\" valign=\"top\" width=\"1%\">\n\t\t\t\t\t\t<img dojoAttachPoint=\"thumbnailImageNode\" dojoAttachEvent=\"onclick: onSelectDemo\" />\n\t\t\t\t\t</td>\n\t\t\t\t\t<td dojoAttachPoint=\"summaryContainerNode\" valign=\"top\">\n\t\t\t\t\t\t<h1 dojoAttachPoint=\"nameNode\">\n\t\t\t\t\t\t</h1>\n\t\t\t\t\t\t<div dojoAttachPoint=\"summaryNode\">\n\t\t\t\t\t\t\t<p dojoAttachPoint=\"descriptionNode\"></p>\n\t\t\t\t\t\t\t<div dojoAttachPoint=\"viewDemoLinkNode\"><img dojoAttachPoint=\"viewDemoImageNode\"/ dojoAttachEvent=\"onclick: onSelectDemo\"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</tbody>\n\t\t</table>\n\t</div>\n</div>\n",templateCssString:".
demoItemSummaryBox {\n\tbackground: #efefef;\n\tborder:1px solid #dae3ee;\n}\n\n.demoItemScreenshot {\n\tpadding:0.65em;\n\twidth:175px;\n\tborder-right:1px solid #fafafa;\n\ttext-align:center;\n\tcursor: pointer;\n}\n\n.demoItemWrapper{\n\tmargin-bottom:1em;\n}\n\n.demoItemWrapper a:link, .demoItemWrapper a:visited {\n\tcolor:#a6238f;\n\ttext-decoration:none;\n}\n\n.demoItemSummaryContainer {\n\tborder-left:1px solid #ddd;\n}\n\n.demoItemSummaryContainer h1 {\n\tbackground-color:#e8e8e8;\n\tborder-bottom: 1px solid #e6e6e6;\n\tcolor:#738fb9;\n\tmargin:1px;\n\tpadding:0.5em;\n\tfont-family:\"Lucida Grande\", \"Tahoma\", serif;\n\tfont-size:1.25em;\n\tfont-weight:normal;\n}\n\n.demoItemSummaryContainer h1 .packageSummary {\n\tdisplay:block;\n\tcolor:#000;\n\tfont-size:10px;\n\tmargin-top:2px;\n}\n\n.demoItemSummaryContainer .demoItemSummary{\n\tpadding:1em;\n}\n\n.demoItemSummaryContainer .demoItemSummary p {\n\tfont-size:0.85em;\n\tpadding:0;\n\tmargin:0;\n}\n\n.demoItemView
{\n\ttext-align:right;\n\tcursor: pointer;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","demoEngine/templates/DemoItem.css"),postCreate:function(){
+dojo.html.addClass(this.domNode,this.domNodeClass);
+dojo.html.addClass(this.summaryBoxNode,this.summaryBoxClass);
+dojo.html.addClass(this.screenshotTdNode,this.screenshotTdClass);
+dojo.html.addClass(this.summaryContainerNode,this.summaryContainerClass);
+dojo.html.addClass(this.summaryNode,this.summaryClass);
+dojo.html.addClass(this.viewDemoLinkNode,this.viewDemoLinkClass);
+this.nameNode.appendChild(document.createTextNode(this.name));
+this.descriptionNode.appendChild(document.createTextNode(this.description));
+this.thumbnailImageNode.src=this.thumbnail;
+this.thumbnailImageNode.name=this.name;
+this.viewDemoImageNode.src=this.viewDemoImage;
+this.viewDemoImageNode.name=this.name;
+},onSelectDemo:function(){
+}},"",function(){
+this.demo="";
+this.domNodeClass="demoItemWrapper";
+this.summaryBoxNode="";
+this.summaryBoxClass="demoItemSummaryBox";
+this.nameNode="";
+this.thumbnailImageNode="";
+this.viewDemoImageNode="";
+this.screenshotTdNode="";
+this.screenshotTdClass="demoItemScreenshot";
+this.summaryContainerNode="";
+this.summaryContainerClass="demoItemSummaryContainer";
+this.summaryNode="";
+this.summaryClass="demoItemSummary";
+this.viewDemoLinkNode="";
+this.viewDemoLinkClass="demoItemView";
+this.descriptionNode="";
+this.name="Some Demo";
+this.description="This is the description of this demo.";
+this.thumbnail="images/test_thumb.gif";
+this.viewDemoImage="images/viewDemo.png";
+});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoItem.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoItem.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoItem.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoNavigator.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoNavigator.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoNavigator.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoNavigator.js Sat May 26 15:47:41 2007
@@ -0,0 +1,121 @@
+dojo.provide("dojo.widget.demoEngine.DemoNavigator");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.widget.Button");
+dojo.require("dojo.widget.demoEngine.DemoItem");
+dojo.require("dojo.io.*");
+dojo.require("dojo.lfx.*");
+dojo.require("dojo.lang.common");
+dojo.widget.defineWidget("my.widget.demoEngine.DemoNavigator",dojo.widget.HtmlWidget,{templateString:"<div dojoAttachPoint=\"domNode\">\n\t<table width=\"100%\" cellspacing=\"0\" cellpadding=\"5\">\n\t\t<tbody>\n\t\t\t<tr dojoAttachPoint=\"navigationContainer\">\n\t\t\t\t<td dojoAttachPoint=\"categoriesNode\" valign=\"top\" width=\"1%\">\n\t\t\t\t\t<h1>Categories</h1>\n\t\t\t\t\t<div dojoAttachPoint=\"categoriesButtonsNode\"></div>\n\t\t\t\t</td>\n\n\t\t\t\t<td dojoAttachPoint=\"demoListNode\" valign=\"top\">\n\t\t\t\t\t<div dojoAttachPoint=\"demoListWrapperNode\">\n\t\t\t\t\t\t<div dojoAttachPoint=\"demoListContainerNode\">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t<div dojoAttachPoint=\"demoNode\"></div>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</div>\n",templateCssString:".demoNavigatorListWrapper {\n\tborder:1px solid #dcdbdb;\n\tbackground-color:#f8f8f8;\n\tpadding:2px;\n}\n\n.demoN
avigatorListContainer {\n\tborder:1px solid #f0f0f0;\n\tbackground-color:#fff;\n\tpadding:1em;\n}\n\n.demoNavigator h1 {\n\tmargin-top: 0px;\n\tmargin-bottom: 10px;\n\tfont-size: 1.2em;\n\tborder-bottom:1px dotted #a9ccf5;\n}\n\n.demoNavigator .dojoButton {\n\tmargin-bottom: 5px;\n}\n\n.demoNavigator .dojoButton .dojoButtonContents {\n\tfont-size: 1.1em;\n\twidth: 100px;\n\tcolor: black;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","demoEngine/templates/DemoNavigator.css"),postCreate:function(){
+dojo.html.addClass(this.domNode,this.domNodeClass);
+dojo.html.addClass(this.demoListWrapperNode,this.demoListWrapperClass);
+dojo.html.addClass(this.demoListContainerNode,this.demoListContainerClass);
+if(dojo.render.html.ie){
+dojo.debug("render ie");
+dojo.html.hide(this.demoListWrapperNode);
+}else{
+dojo.debug("render non-ie");
+dojo.lfx.html.fadeHide(this.demoListWrapperNode,0).play();
+}
+this.getRegistry(this.demoRegistryUrl);
+this.demoContainer=dojo.widget.createWidget("DemoContainer",{returnImage:this.returnImage},this.demoNode);
+dojo.event.connect(this.demoContainer,"returnToDemos",this,"returnToDemos");
+this.demoContainer.hide();
+},returnToDemos:function(){
+this.demoContainer.hide();
+if(dojo.render.html.ie){
+dojo.debug("render ie");
+dojo.html.show(this.navigationContainer);
+}else{
+dojo.debug("render non-ie");
+dojo.lfx.html.fadeShow(this.navigationContainer,250).play();
+}
+dojo.lang.forEach(this.categoriesChildren,dojo.lang.hitch(this,function(_1){
+_1.checkSize();
+}));
+dojo.lang.forEach(this.demoListChildren,dojo.lang.hitch(this,function(_2){
+_2.checkSize();
+}));
+},show:function(){
+dojo.html.show(this.domNode);
+dojo.html.setOpacity(this.domNode,1);
+dojo.html.setOpacity(this.navigationContainer,1);
+dojo.lang.forEach(this.categoriesChildren,dojo.lang.hitch(this,function(_3){
+_3.checkSize();
+}));
+dojo.lang.forEach(this.demoListChildren,dojo.lang.hitch(this,function(_4){
+_4.checkSize();
+}));
+},getRegistry:function(_5){
+dojo.io.bind({url:_5,load:dojo.lang.hitch(this,this.processRegistry),mimetype:"text/json"});
+},processRegistry:function(_6,_7,e){
+dojo.debug("Processing Registry");
+this.registry=_7;
+dojo.lang.forEach(this.registry.navigation,dojo.lang.hitch(this,this.addCategory));
+},addCategory:function(_9){
+var _a=dojo.widget.createWidget("Button",{caption:_9.name});
+if(!dojo.lang.isObject(this.registry.categories)){
+this.registry.categories=function(){
+};
+}
+this.registry.categories[_9.name]=_9;
+this.categoriesChildren.push(_a);
+this.categoriesButtonsNode.appendChild(_a.domNode);
+_a.domNode.categoryName=_9.name;
+dojo.event.connect(_a,"onClick",this,"onSelectCategory");
+},addDemo:function(_b){
+var _c=this.registry.definitions[_b];
+if(dojo.render.html.ie){
+dojo.html.show(this.demoListWrapperNode);
+}else{
+dojo.lfx.html.fadeShow(this.demoListWrapperNode,250).play();
+}
+var _d=dojo.widget.createWidget("DemoItem",{viewDemoImage:this.viewDemoImage,name:_b,description:_c.description,thumbnail:_c.thumbnail});
+this.demoListChildren.push(_d);
+this.demoListContainerNode.appendChild(_d.domNode);
+dojo.event.connect(_d,"onSelectDemo",this,"onSelectDemo");
+},onSelectCategory:function(e){
+catName=e.currentTarget.categoryName;
+dojo.debug("Selected Category: "+catName);
+dojo.lang.forEach(this.demoListChildren,function(_f){
+_f.destroy();
+});
+this.demoListChildren=[];
+dojo.lang.forEach(this.registry.categories[catName].demos,dojo.lang.hitch(this,function(_10){
+this.addDemo(_10);
+}));
+},onSelectDemo:function(e){
+dojo.debug("Demo Selected: "+e.target.name);
+if(dojo.render.html.ie){
+dojo.debug("render ie");
+dojo.html.hide(this.navigationContainer);
+this.demoContainer.show();
+this.demoContainer.showDemo();
+}else{
+dojo.debug("render non-ie");
+dojo.lfx.html.fadeHide(this.navigationContainer,250,null,dojo.lang.hitch(this,function(){
+this.demoContainer.show();
+this.demoContainer.showDemo();
+})).play();
+}
+this.demoContainer.loadDemo(this.registry.definitions[e.target.name].url);
+this.demoContainer.setName(e.target.name);
+this.demoContainer.setSummary(this.registry.definitions[e.target.name].description);
+}},"",function(){
+this.demoRegistryUrl="demoRegistry.json";
+this.registry=function(){
+};
+this.categoriesNode="";
+this.categoriesButtonsNode="";
+this.navigationContainer="";
+this.domNodeClass="demoNavigator";
+this.demoNode="";
+this.demoContainer="";
+this.demoListWrapperNode="";
+this.demoListWrapperClass="demoNavigatorListWrapper";
+this.demoListContainerClass="demoNavigatorListContainer";
+this.returnImage="images/dojoDemos.gif";
+this.viewDemoImage="images/viewDemo.png";
+this.demoListChildren=[];
+this.categoriesChildren=[];
+});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoNavigator.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoNavigator.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoNavigator.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoPane.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoPane.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoPane.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoPane.js Sat May 26 15:47:41 2007
@@ -0,0 +1,20 @@
+dojo.provide("dojo.widget.demoEngine.DemoPane");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+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(){
+dojo.html.addClass(this.domNode,this.domNodeClass);
+dojo.debug("PostCreate");
+this._launchDemo();
+},_launchDemo:function(){
+dojo.debug("Launching Demo");
+dojo.debug(this.demoNode);
+this.demoNode.src=this.href;
+},setHref:function(_1){
+this.href=_1;
+this._launchDemo();
+}},"",function(){
+dojo.debug("DemoPane Init");
+this.domNodeClass="demoPane";
+this.demoNode="";
+this.href="";
+});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoPane.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoPane.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/DemoPane.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/SourcePane.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/SourcePane.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/SourcePane.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/SourcePane.js Sat May 26 15:47:41 2007
@@ -0,0 +1,22 @@
+dojo.provide("dojo.widget.demoEngine.SourcePane");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.io.*");
+dojo.widget.defineWidget("my.widget.demoEngine.SourcePane",dojo.widget.HtmlWidget,{templateString:"<div dojoAttachPoint=\"domNode\">\n\t<textarea dojoAttachPoint=\"sourceNode\" rows=\"100%\"></textarea>\n</div>\n",templateCssString:".sourcePane {\n\twidth: 100%;\n\theight: 100%;\n\tpadding: 0px;\n\tmargin: 0px;\n\toverflow: hidden;\n}\n\n.sourcePane textarea{\n\twidth: 100%;\n\theight: 100%;\n\tborder: 0px;\n\toverflow: auto;\n\tpadding: 0px;\n\tmargin:0px;\n}\n\n* html .sourcePane {\n\toverflow: auto;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","demoEngine/templates/SourcePane.css"),postCreate:function(){
+dojo.html.addClass(this.domNode,this.domNodeClass);
+dojo.debug("PostCreate");
+},getSource:function(){
+if(this.href){
+dojo.io.bind({url:this.href,load:dojo.lang.hitch(this,"fillInSource"),mimetype:"text/plain"});
+}
+},fillInSource:function(_1,_2,e){
+this.sourceNode.value=_2;
+},setHref:function(_4){
+this.href=_4;
+this.getSource();
+}},"",function(){
+dojo.debug("SourcePane Init");
+this.domNodeClass="sourcePane";
+this.sourceNode="";
+this.href="";
+});
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/SourcePane.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/SourcePane.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/SourcePane.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/__package__.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/__package__.js?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/__package__.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/__package__.js Sat May 26 15:47:41 2007
@@ -0,0 +1,2 @@
+dojo.kwCompoundRequire({browser:["dojo.widget.demoEngine.DemoItem","dojo.widget.demoEngine.DemoNavigator","dojo.widget.demoEngine.DemoPane","dojo.widget.demoEngine.SourcePane","dojo.widget.demoEngine.DemoContainer"]});
+dojo.provide("dojo.widget.demoEngine.*");
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/__package__.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/__package__.js
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/__package__.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/templates/DemoContainer.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/templates/DemoContainer.css?view=auto&rev=541946
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/templates/DemoContainer.css (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/templates/DemoContainer.css Sat May 26 15:47:41 2007
@@ -0,0 +1,39 @@
+.demoContainer{
+ width: 100%;
+ height: 100%;
+ padding: 0px;
+ margin: 0px;
+}
+
+.demoContainer .return {
+ cursor: pointer;
+}
+
+.demoContainer span {
+ margin-right: 10px;
+ cursor: pointer;
+}
+
+.demoContainer .selected {
+ border-bottom: 5px solid #95bfff;
+}
+
+.demoContainer table {
+ background: #f5f5f5;
+ width: 100%;
+ height: 100%;
+}
+
+.demoContainerTabs {
+ width: 100%;
+ height: 400px;
+}
+
+.demoContainerTabs .dojoTabLabels-top {
+ display: none;
+}
+
+.demoContainerTabs .dojoTabPaneWrapper {
+ border: 0px;
+}
+
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/templates/DemoContainer.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/templates/DemoContainer.css
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3/src/widget/demoEngine/templates/DemoContainer.css
------------------------------------------------------------------------------
svn:mime-type = text/css