You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by jk...@apache.org on 2008/02/04 23:08:37 UTC

svn commit: r618461 [28/43] - in /tapestry/tapestry4/trunk/tapestry-framework/src/js: dojo-0.4.3-custom-4.1.5/ dojo-0.4.3-custom-4.1.5/nls/ dojo-0.4.3-custom-4.1.5/src/ dojo-0.4.3-custom-4.1.5/src/animation/ dojo-0.4.3-custom-4.1.5/src/cal/ dojo-0.4.3-...

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ContentPane.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ContentPane.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ContentPane.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ContentPane.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,428 @@
+dojo.provide("dojo.widget.ContentPane");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.io.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.string");
+dojo.require("dojo.string.extras");
+dojo.require("dojo.html.style");
+dojo.widget.defineWidget("dojo.widget.ContentPane",dojo.widget.HtmlWidget,function(){
+this._styleNodes=[];
+this._onLoadStack=[];
+this._onUnloadStack=[];
+this._callOnUnload=false;
+this._ioBindObj;
+this.scriptScope;
+this.bindArgs={};
+},{isContainer:true,adjustPaths:true,href:"",extractContent:true,parseContent:true,cacheContent:true,preload:false,refreshOnShow:false,handler:"",executeScripts:false,scriptSeparation:true,loadingMessage:"Loading...",isLoaded:false,postCreate:function(_1,_2,_3){
+if(this.handler!==""){
+this.setHandler(this.handler);
+}
+if(this.isShowing()||this.preload){
+this.loadContents();
+}
+},show:function(){
+if(this.refreshOnShow){
+this.refresh();
+}else{
+this.loadContents();
+}
+dojo.widget.ContentPane.superclass.show.call(this);
+},refresh:function(){
+this.isLoaded=false;
+this.loadContents();
+},loadContents:function(){
+if(this.isLoaded){
+return;
+}
+if(dojo.lang.isFunction(this.handler)){
+this._runHandler();
+}else{
+if(this.href!=""){
+this._downloadExternalContent(this.href,this.cacheContent&&!this.refreshOnShow);
+}
+}
+},setUrl:function(_4){
+this.href=_4;
+this.isLoaded=false;
+if(this.preload||this.isShowing()){
+this.loadContents();
+}
+},abort:function(){
+var _5=this._ioBindObj;
+if(!_5||!_5.abort){
+return;
+}
+_5.abort();
+delete this._ioBindObj;
+},_downloadExternalContent:function(_6,_7){
+this.abort();
+this._handleDefaults(this.loadingMessage,"onDownloadStart");
+var _8=this;
+this._ioBindObj=dojo.io.bind(this._cacheSetting({url:_6,mimetype:"text/html",handler:function(_9,_a,_b){
+delete _8._ioBindObj;
+if(_9=="load"){
+_8.onDownloadEnd.call(_8,_6,_a);
+}else{
+var e={responseText:_b.responseText,status:_b.status,statusText:_b.statusText,responseHeaders:_b.getAllResponseHeaders(),text:"Error loading '"+_6+"' ("+_b.status+" "+_b.statusText+")"};
+_8._handleDefaults.call(_8,e,"onDownloadError");
+_8.onLoad();
+}
+}},_7));
+},_cacheSetting:function(_d,_e){
+for(var x in this.bindArgs){
+if(dojo.lang.isUndefined(_d[x])){
+_d[x]=this.bindArgs[x];
+}
+}
+if(dojo.lang.isUndefined(_d.useCache)){
+_d.useCache=_e;
+}
+if(dojo.lang.isUndefined(_d.preventCache)){
+_d.preventCache=!_e;
+}
+if(dojo.lang.isUndefined(_d.mimetype)){
+_d.mimetype="text/html";
+}
+return _d;
+},onLoad:function(e){
+this._runStack("_onLoadStack");
+this.isLoaded=true;
+},onUnLoad:function(e){
+dojo.deprecated(this.widgetType+".onUnLoad, use .onUnload (lowercased load)",0.5);
+},onUnload:function(e){
+this._runStack("_onUnloadStack");
+delete this.scriptScope;
+if(this.onUnLoad!==dojo.widget.ContentPane.prototype.onUnLoad){
+this.onUnLoad.apply(this,arguments);
+}
+},_runStack:function(_13){
+var st=this[_13];
+var err="";
+var _16=this.scriptScope||window;
+for(var i=0;i<st.length;i++){
+try{
+st[i].call(_16);
+}
+catch(e){
+err+="\n"+st[i]+" failed: "+e.description;
+}
+}
+this[_13]=[];
+if(err.length){
+var _18=(_13=="_onLoadStack")?"addOnLoad":"addOnUnLoad";
+this._handleDefaults(_18+" failure\n "+err,"onExecError","debug");
+}
+},addOnLoad:function(obj,_1a){
+this._pushOnStack(this._onLoadStack,obj,_1a);
+},addOnUnload:function(obj,_1c){
+this._pushOnStack(this._onUnloadStack,obj,_1c);
+},addOnUnLoad:function(){
+dojo.deprecated(this.widgetType+".addOnUnLoad, use addOnUnload instead. (lowercased Load)",0.5);
+this.addOnUnload.apply(this,arguments);
+},_pushOnStack:function(_1d,obj,_1f){
+if(typeof _1f=="undefined"){
+_1d.push(obj);
+}else{
+_1d.push(function(){
+obj[_1f]();
+});
+}
+},destroy:function(){
+this.onUnload();
+dojo.widget.ContentPane.superclass.destroy.call(this);
+},onExecError:function(e){
+},onContentError:function(e){
+},onDownloadError:function(e){
+},onDownloadStart:function(e){
+},onDownloadEnd:function(url,_25){
+_25=this.splitAndFixPaths(_25,url);
+this.setContent(_25);
+},_handleDefaults:function(e,_27,_28){
+if(!_27){
+_27="onContentError";
+}
+if(dojo.lang.isString(e)){
+e={text:e};
+}
+if(!e.text){
+e.text=e.toString();
+}
+e.toString=function(){
+return this.text;
+};
+if(typeof e.returnValue!="boolean"){
+e.returnValue=true;
+}
+if(typeof e.preventDefault!="function"){
+e.preventDefault=function(){
+this.returnValue=false;
+};
+}
+this[_27](e);
+if(e.returnValue){
+switch(_28){
+case true:
+case "alert":
+alert(e.toString());
+break;
+case "debug":
+dojo.debug(e.toString());
+break;
+default:
+if(this._callOnUnload){
+this.onUnload();
+}
+this._callOnUnload=false;
+if(arguments.callee._loopStop){
+dojo.debug(e.toString());
+}else{
+arguments.callee._loopStop=true;
+this._setContent(e.toString());
+}
+}
+}
+arguments.callee._loopStop=false;
+},splitAndFixPaths:function(s,url){
+var _2b=[],_2c=[],tmp=[];
+var _2e=[],_2f=[],_30=[],_31=[];
+var str="",_33="",fix="",_35="",tag="",_37="";
+if(!url){
+url="./";
+}
+if(s){
+var _38=/<title[^>]*>([\s\S]*?)<\/title>/i;
+while(_2e=_38.exec(s)){
+_2b.push(_2e[1]);
+s=s.substring(0,_2e.index)+s.substr(_2e.index+_2e[0].length);
+}
+if(this.adjustPaths){
+var _39=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;
+var _3a=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;
+var _3b=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;
+while(tag=_39.exec(s)){
+str+=s.substring(0,tag.index);
+s=s.substring((tag.index+tag[0].length),s.length);
+tag=tag[0];
+_35="";
+while(_30=_3a.exec(tag)){
+_33="";
+_37=_30[3];
+switch(_30[1].toLowerCase()){
+case "src":
+case "href":
+if(_3b.exec(_37)){
+_33=_37;
+}else{
+_33=(new dojo.uri.Uri(url,_37).toString());
+}
+break;
+case "style":
+_33=dojo.html.fixPathsInCssText(_37,url);
+break;
+default:
+_33=_37;
+}
+fix=" "+_30[1]+"="+_30[2]+_33+_30[2];
+_35+=tag.substring(0,_30.index)+fix;
+tag=tag.substring((_30.index+_30[0].length),tag.length);
+}
+str+=_35+tag;
+}
+s=str+s;
+}
+_38=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;
+while(_2e=_38.exec(s)){
+if(_2e[1]&&_2e[1].toLowerCase()=="style"){
+_31.push(dojo.html.fixPathsInCssText(_2e[2],url));
+}else{
+if(_30=_2e[3].match(/href=(['"]?)([^'">]*)\1/i)){
+_31.push({path:_30[2]});
+}
+}
+s=s.substring(0,_2e.index)+s.substr(_2e.index+_2e[0].length);
+}
+var _38=/<script([^>]*)>([\s\S]*?)<\/script>/i;
+var _3c=/src=(['"]?)([^"']*)\1/i;
+var _3d=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;
+var _3e=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;
+var _3f=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;
+while(_2e=_38.exec(s)){
+if(this.executeScripts&&_2e[1]){
+if(_30=_3c.exec(_2e[1])){
+if(_3d.exec(_30[2])){
+dojo.debug("Security note! inhibit:"+_30[2]+" from  being loaded again.");
+}else{
+_2c.push({path:_30[2]});
+}
+}
+}
+if(_2e[2]){
+var sc=_2e[2].replace(_3e,"");
+if(!sc){
+continue;
+}
+while(tmp=_3f.exec(sc)){
+_2f.push(tmp[0]);
+sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length);
+}
+if(this.executeScripts){
+_2c.push(sc);
+}
+}
+s=s.substr(0,_2e.index)+s.substr(_2e.index+_2e[0].length);
+}
+if(this.extractContent){
+_2e=s.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
+if(_2e){
+s=_2e[1];
+}
+}
+if(this.executeScripts&&this.scriptSeparation){
+var _38=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;
+var _41=/([\s'";:\(])scriptScope(.*)/;
+str="";
+while(tag=_38.exec(s)){
+tmp=((tag[3]=="'")?"\"":"'");
+fix="";
+str+=s.substring(0,tag.index)+tag[1];
+while(_30=_41.exec(tag[2])){
+tag[2]=tag[2].substring(0,_30.index)+_30[1]+"dojo.widget.byId("+tmp+this.widgetId+tmp+").scriptScope"+_30[2];
+}
+str+=tag[2];
+s=s.substr(tag.index+tag[0].length);
+}
+s=str+s;
+}
+}
+return {"xml":s,"styles":_31,"titles":_2b,"requires":_2f,"scripts":_2c,"url":url};
+},_setContent:function(_42){
+this.destroyChildren();
+for(var i=0;i<this._styleNodes.length;i++){
+if(this._styleNodes[i]&&this._styleNodes[i].parentNode){
+this._styleNodes[i].parentNode.removeChild(this._styleNodes[i]);
+}
+}
+this._styleNodes=[];
+try{
+var _44=this.containerNode||this.domNode;
+while(_44.firstChild){
+dojo.html.destroyNode(_44.firstChild);
+}
+if(typeof _42!="string"){
+_44.appendChild(_42);
+}else{
+_44.innerHTML=_42;
+}
+}
+catch(e){
+e.text="Couldn't load content:"+e.description;
+this._handleDefaults(e,"onContentError");
+}
+},setContent:function(_45){
+this.abort();
+if(this._callOnUnload){
+this.onUnload();
+}
+this._callOnUnload=true;
+if(!_45||dojo.html.isNode(_45)){
+this._setContent(_45);
+this.onResized();
+this.onLoad();
+}else{
+if(typeof _45.xml!="string"){
+this.href="";
+_45=this.splitAndFixPaths(_45);
+}
+this._setContent(_45.xml);
+for(var i=0;i<_45.styles.length;i++){
+if(_45.styles[i].path){
+this._styleNodes.push(dojo.html.insertCssFile(_45.styles[i].path,dojo.doc(),false,true));
+}else{
+this._styleNodes.push(dojo.html.insertCssText(_45.styles[i]));
+}
+}
+if(this.parseContent){
+for(var i=0;i<_45.requires.length;i++){
+try{
+eval(_45.requires[i]);
+}
+catch(e){
+e.text="ContentPane: error in package loading calls, "+(e.description||e);
+this._handleDefaults(e,"onContentError","debug");
+}
+}
+}
+var _47=this;
+function asyncParse(){
+if(_47.executeScripts){
+_47._executeScripts(_45.scripts);
+}
+if(_47.parseContent){
+var _48=_47.containerNode||_47.domNode;
+var _49=new dojo.xml.Parse();
+var _4a=_49.parseElement(_48,null,true);
+dojo.widget.getParser().createSubComponents(_4a,_47);
+}
+_47.onResized();
+_47.onLoad();
+}
+if(dojo.hostenv.isXDomain&&_45.requires.length){
+dojo.addOnLoad(asyncParse);
+}else{
+asyncParse();
+}
+}
+},setHandler:function(_4b){
+var fcn=dojo.lang.isFunction(_4b)?_4b:window[_4b];
+if(!dojo.lang.isFunction(fcn)){
+this._handleDefaults("Unable to set handler, '"+_4b+"' not a function.","onExecError",true);
+return;
+}
+this.handler=function(){
+return fcn.apply(this,arguments);
+};
+},_runHandler:function(){
+var ret=true;
+if(dojo.lang.isFunction(this.handler)){
+this.handler(this,this.domNode);
+ret=false;
+}
+this.onLoad();
+return ret;
+},_executeScripts:function(_4e){
+var _4f=this;
+var tmp="",_51="";
+for(var i=0;i<_4e.length;i++){
+if(_4e[i].path){
+dojo.io.bind(this._cacheSetting({"url":_4e[i].path,"load":function(_53,_54){
+dojo.lang.hitch(_4f,tmp=";"+_54);
+},"error":function(_55,_56){
+_56.text=_55+" downloading remote script";
+_4f._handleDefaults.call(_4f,_56,"onExecError","debug");
+},"mimetype":"text/plain","sync":true},this.cacheContent));
+_51+=tmp;
+}else{
+_51+=_4e[i];
+}
+}
+try{
+if(this.scriptSeparation){
+delete this.scriptScope;
+this.scriptScope=new (new Function("_container_",_51+"; return this;"))(_4f);
+}else{
+var djg=dojo.global();
+if(djg.execScript){
+djg.execScript(_51);
+}else{
+var djd=dojo.doc();
+var sc=djd.createElement("script");
+sc.appendChild(djd.createTextNode(_51));
+(this.containerNode||this.domNode).appendChild(sc);
+}
+}
+}
+catch(e){
+e.text="Error running scripts from content:\n"+e.description;
+this._handleDefaults(e,"onExecError","debug");
+}
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ContentPane.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ContentPane.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/ContentPane.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/CurrencyTextbox.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/CurrencyTextbox.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/CurrencyTextbox.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/CurrencyTextbox.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,27 @@
+dojo.provide("dojo.widget.CurrencyTextbox");
+dojo.require("dojo.widget.IntegerTextbox");
+dojo.require("dojo.validate.common");
+dojo.widget.defineWidget("dojo.widget.CurrencyTextbox",dojo.widget.IntegerTextbox,{mixInProperties:function(_1,_2){
+dojo.widget.CurrencyTextbox.superclass.mixInProperties.apply(this,arguments);
+if(_1.fractional){
+this.flags.fractional=(_1.fractional=="true");
+}else{
+if(_1.cents){
+dojo.deprecated("dojo.widget.IntegerTextbox","use fractional attr instead of cents","0.5");
+this.flags.fractional=(_1.cents=="true");
+}
+}
+if(_1.symbol){
+this.flags.symbol=_1.symbol;
+}
+if(_1.min){
+this.flags.min=parseFloat(_1.min);
+}
+if(_1.max){
+this.flags.max=parseFloat(_1.max);
+}
+},isValid:function(){
+return dojo.validate.isCurrency(this.textbox.value,this.flags);
+},isInRange:function(){
+return dojo.validate.isInRange(this.textbox.value,this.flags);
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/CurrencyTextbox.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/CurrencyTextbox.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/CurrencyTextbox.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DatePicker.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DatePicker.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DatePicker.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DatePicker.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,345 @@
+dojo.provide("dojo.widget.DatePicker");
+dojo.require("dojo.date.common");
+dojo.require("dojo.date.format");
+dojo.require("dojo.date.serialize");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.event.*");
+dojo.require("dojo.dom");
+dojo.require("dojo.html.style");
+dojo.widget.defineWidget("dojo.widget.DatePicker",dojo.widget.HtmlWidget,{value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",staticDisplay:false,dayWidth:"narrow",classNames:{previous:"previousMonth",disabledPrevious:"previousMonthDisabled",current:"currentMonth",disabledCurrent:"currentMonthDisabled",next:"nextMonth",disabledNext:"nextMonthDisabled",currentDate:"currentDate",selectedDate:"selectedDate"},templateString:"<div class=\"datePickerContainer\" dojoAttachPoint=\"datePickerContainerNode\">\n\t<table cellspacing=\"0\" cellpadding=\"0\" class=\"calendarContainer\">\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<td class=\"monthWrapper\" valign=\"top\">\n\t\t\t\t\t<table class=\"monthContainer\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"monthCurve monthCurveTL\" valign=\"top\"></td>\n\t\t\t\t\t\t\t<td class=\"monthLabelContainer\" valign=\"top\">\n\t\t\t\t\t\t\t\t<span d
 ojoAttachPoint=\"increaseWeekNode\" \n\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementWeek;\" \n\t\t\t\t\t\t\t\t\tclass=\"incrementControl increase\">\n\t\t\t\t\t\t\t\t\t<img src=\"${dojoWidgetModuleUri}templates/images/incrementMonth.png\" \n\t\t\t\t\t\t\t\t\talt=\"&darr;\" style=\"width:7px;height:5px;\" />\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span \n\t\t\t\t\t\t\t\t\tdojoAttachPoint=\"increaseMonthNode\" \n\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementMonth;\" class=\"incrementControl increase\">\n\t\t\t\t\t\t\t\t\t<img src=\"${dojoWidgetModuleUri}templates/images/incrementMonth.png\" \n\t\t\t\t\t\t\t\t\t\talt=\"&darr;\"  dojoAttachPoint=\"incrementMonthImageNode\">\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span \n\t\t\t\t\t\t\t\t\tdojoAttachPoint=\"decreaseWeekNode\" \n\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementWeek;\" \n\t\t\t\t\t\t\t\t\tclass=\"incrementControl decrease\">\n\t\t\t\t\t\t\t\t\t<img src=\"${dojoWidgetModuleUri}templat
 es/images/decrementMonth.png\" alt=\"&uarr;\" style=\"width:7px;height:5px;\" />\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span \n\t\t\t\t\t\t\t\t\tdojoAttachPoint=\"decreaseMonthNode\" \n\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementMonth;\" class=\"incrementControl decrease\">\n\t\t\t\t\t\t\t\t\t<img src=\"${dojoWidgetModuleUri}templates/images/decrementMonth.png\" \n\t\t\t\t\t\t\t\t\t\talt=\"&uarr;\" dojoAttachPoint=\"decrementMonthImageNode\">\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span dojoAttachPoint=\"monthLabelNode\" class=\"month\"></span>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td class=\"monthCurve monthCurveTR\" valign=\"top\"></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</thead>\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"3\">\n\t\t\t\t\t<table class=\"calendarBodyContainer\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t<tr dojoAttachPoint=\"dayLabelsRow\">\n\t\t\t\t\t\t\t\
 t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t<tbody dojoAttachPoint=\"calendarDatesContainerNode\" \n\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: _handleUiClick;\">\n\t\t\t\t\t\t\t<tr dojoAttachPoint=\"calendarWeekTemplate\">\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t\t<td></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t\t<tfoot>\n\t\t\t<tr>\n\t\t\t\t<td colspan=\"3\" class=\"yearWrapper\">\n\t\t\t\t\t<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" class=\"yearContainer\">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"curveBL\" valign=\"top\"></td>\n\t\t\t\t\t\t\t<td valign=\"top\">\n\t\t\t\t\t
 \t\t\t<h3 class=\"yearLabel\">\n\t\t\t\t\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\"\n\t\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementYear;\" class=\"previousYear\"></span>\n\t\t\t\t\t\t\t\t\t<span class=\"selectedYear\" dojoAttachPoint=\"currentYearLabelNode\"></span>\n\t\t\t\t\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" \n\t\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementYear;\" class=\"nextYear\"></span>\n\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td class=\"curveBR\" valign=\"top\"></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</tfoot>\n\t</table>\n\t\n</div>\n",templateCssString:".datePickerContainer {\n\twidth:164px; /* needed for proper user styling */\n}\n\n.calendarContainer {\n/*\tborder:1px solid #566f8f;*/\n}\n\n.calendarBodyContainer {\n\twidth:100%; /* needed for the explode effect (explain?) */\n\tbackground: #7591bc url(\"images/dpBg.gif\") top left repeat-x;\n}\n\n.calend
 arBodyContainer thead tr td {\n\tcolor:#293a4b;\n\tfont:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\n\ttext-align:center;\n\tpadding:0.25em;\n\tbackground: url(\"images/dpHorizLine.gif\") bottom left repeat-x;\n}\n\n.calendarBodyContainer tbody tr td {\n\tcolor:#fff;\n\tfont:bold 0.7em Helvetica, Arial, Verdana, sans-serif;\n\ttext-align:center;\n\tpadding:0.4em;\n\tbackground: url(\"images/dpVertLine.gif\") top right repeat-y;\n\tcursor:pointer;\n\tcursor:hand;\n}\n\n\n.monthWrapper {\n\tpadding-bottom:2px;\n\tbackground: url(\"images/dpHorizLine.gif\") bottom left repeat-x;\n}\n\n.monthContainer {\n\twidth:100%;\n}\n\n.monthLabelContainer {\n\ttext-align:center;\n\tfont:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\n\tbackground: url(\"images/dpMonthBg.png\") repeat-x top left !important;\n\tcolor:#293a4b;\n\tpadding:0.25em;\n}\n\n.monthCurve {\n\twidth:12px;\n}\n\n.monthCurveTL {\n\tbackground: url(\"images/dpCurveTL.png\") no-repeat top left !important;\n}\n\
 n.monthCurveTR {\n\t\tbackground: url(\"images/dpCurveTR.png\") no-repeat top right !important;\n}\n\n\n.yearWrapper {\n\tbackground: url(\"images/dpHorizLineFoot.gif\") top left repeat-x;\n\tpadding-top:2px;\n}\n\n.yearContainer {\n\twidth:100%;\n}\n\n.yearContainer td {\n\tbackground:url(\"images/dpYearBg.png\") top left repeat-x;\n}\n\n.yearContainer .yearLabel {\n\tmargin:0;\n\tpadding:0.45em 0 0.45em 0;\n\tcolor:#fff;\n\tfont:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\n\ttext-align:center;\n}\n\n.curveBL {\n\tbackground: url(\"images/dpCurveBL.png\") bottom left no-repeat !important;\n\twidth:9px !important;\n\tpadding:0;\n\tmargin:0;\n}\n\n.curveBR {\n\tbackground: url(\"images/dpCurveBR.png\") bottom right no-repeat !important;\n\twidth:9px !important;\n\tpadding:0;\n\tmargin:0;\n}\n\n\n.previousMonth {\n\tbackground-color:#6782a8 !important;\n}\n\n.previousMonthDisabled {\n\tbackground-color:#a4a5a6 !important;\n\tcursor:default !important\n}\n.currentMonth {
 \n}\n\n.currentMonthDisabled {\n\tbackground-color:#bbbbbc !important;\n\tcursor:default !important\n}\n.nextMonth {\n\tbackground-color:#6782a8 !important;\n}\n.nextMonthDisabled {\n\tbackground-color:#a4a5a6 !important;\n\tcursor:default !important;\n}\n\n.currentDate {\n\ttext-decoration:underline;\n\tfont-style:italic;\n}\n\n.selectedDate {\n\tbackground-color:#fff !important;\n\tcolor:#6782a8 !important;\n}\n\n.yearLabel .selectedYear {\n\tpadding:0.2em;\n\tbackground-color:#9ec3fb !important;\n}\n\n.nextYear, .previousYear {\n\tcursor:pointer;cursor:hand;\n\tpadding:0;\n}\n\n.nextYear {\n\tmargin:0 0 0 0.55em;\n}\n\n.previousYear {\n\tmargin:0 0.55em 0 0;\n}\n\n.incrementControl {\n\tcursor:pointer;cursor:hand;\n\twidth:1em;\n}\n\n.increase {\n\tfloat:right;\n}\n\n.decrease {\n\tfloat:left;\n}\n\n.lastColumn {\n\tbackground-image:none !important;\n}\n\n\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/DatePicker.css"),postMixInProperties:function(){
+dojo.widget.DatePicker.superclass.postMixInProperties.apply(this,arguments);
+if(!this.weekStartsOn){
+this.weekStartsOn=dojo.date.getFirstDayOfWeek(this.lang);
+}
+this.today=new Date();
+this.today.setHours(0,0,0,0);
+if(typeof (this.value)=="string"&&this.value.toLowerCase()=="today"){
+this.value=new Date();
+}else{
+if(this.value&&(typeof this.value=="string")&&(this.value.split("-").length>2)){
+this.value=dojo.date.fromRfc3339(this.value);
+this.value.setHours(0,0,0,0);
+}
+}
+},fillInTemplate:function(_1,_2){
+dojo.widget.DatePicker.superclass.fillInTemplate.apply(this,arguments);
+var _3=this.getFragNodeRef(_2);
+dojo.html.copyStyle(this.domNode,_3);
+this.weekTemplate=dojo.dom.removeNode(this.calendarWeekTemplate);
+this._preInitUI(this.value?this.value:this.today,false,true);
+var _4=dojo.lang.unnest(dojo.date.getNames("days",this.dayWidth,"standAlone",this.lang));
+if(this.weekStartsOn>0){
+for(var i=0;i<this.weekStartsOn;i++){
+_4.push(_4.shift());
+}
+}
+var _6=this.dayLabelsRow.getElementsByTagName("td");
+for(i=0;i<7;i++){
+_6.item(i).innerHTML=_4[i];
+}
+if(this.value){
+this.setValue(this.value);
+}
+},getValue:function(){
+return dojo.date.toRfc3339(new Date(this.value),"dateOnly");
+},getDate:function(){
+return this.value;
+},setValue:function(_7){
+this.setDate(_7);
+},setDate:function(_8){
+var d=_8;
+if(typeof (d)=="string"&&d!=""){
+var t=dojo.date.fromRfc3339(d);
+}else{
+if(typeof (d)=="object"){
+var t=new Date(d);
+}else{
+t="";
+}
+}
+if(typeof (t)=="object"){
+this.value=new Date(t);
+this.value.setHours(0,0,0,0);
+}else{
+this.value="";
+}
+if(this.selectedNode!=null){
+dojo.html.removeClass(this.selectedNode,this.classNames.selectedDate);
+}
+if(this.clickedNode!=null){
+dojo.html.addClass(this.clickedNode,this.classNames.selectedDate);
+this.selectedNode=this.clickedNode;
+}else{
+this._preInitUI((this.value=="")?this.curMonth:this.value,false,true);
+}
+this.clickedNode=null;
+this.onValueChanged(this.value);
+},_preInitUI:function(_b,_c,_d){
+function checkDate(d,s){
+if(typeof (d)=="string"){
+var t=dojo.date.fromRfc3339(d);
+if(t==null&&typeof (s)=="string"){
+var t=dojo.date.fromRfc3339(s);
+}
+return t;
+}
+return d;
+}
+this.startDate=checkDate(this.startDate,"1492-10-12");
+this.endDate=checkDate(this.endDate,"2941-10-12");
+this.startDate.setHours(0,0,0,0);
+this.endDate.setHours(24,0,0,-1);
+if(_b<this.startDate||_b>this.endDate){
+_b=new Date((_b<this.startDate)?this.startDate:this.endDate);
+}
+this.firstDay=this._initFirstDay(_b,_c);
+this.selectedIsUsed=false;
+this.currentIsUsed=false;
+var _11=new Date(this.firstDay);
+var _12=_11.getMonth();
+this.curMonth=new Date(_11);
+this.curMonth.setDate(_11.getDate()+6);
+this.curMonth.setDate(1);
+if(this.displayWeeks==""||this.adjustWeeks){
+this.adjustWeeks=true;
+this.displayWeeks=Math.ceil((dojo.date.getDaysInMonth(this.curMonth)+this._getAdjustedDay(this.curMonth))/7);
+}
+var _13=this.displayWeeks*7;
+if(dojo.date.diff(this.startDate,this.endDate,dojo.date.dateParts.DAY)<_13){
+this.staticDisplay=true;
+if(dojo.date.diff(_11,this.endDate,dojo.date.dateParts.DAY)>_13){
+this._preInitUI(this.startDate,true,false);
+_11=new Date(this.firstDay);
+}
+this.curMonth=new Date(_11);
+this.curMonth.setDate(_11.getDate()+6);
+this.curMonth.setDate(1);
+var _14=(_11.getMonth()==this.curMonth.getMonth())?"current":"previous";
+}
+if(_d){
+this._initUI(_13);
+}
+},_initUI:function(_15){
+dojo.dom.removeChildren(this.calendarDatesContainerNode);
+for(var i=0;i<this.displayWeeks;i++){
+this.calendarDatesContainerNode.appendChild(this.weekTemplate.cloneNode(true));
+}
+var _17=new Date(this.firstDay);
+this._setMonthLabel(this.curMonth.getMonth());
+this._setYearLabels(this.curMonth.getFullYear());
+var _18=this.calendarDatesContainerNode.getElementsByTagName("td");
+var _19=this.calendarDatesContainerNode.getElementsByTagName("tr");
+var _1a;
+for(i=0;i<_15;i++){
+_1a=_18.item(i);
+_1a.innerHTML=_17.getDate();
+_1a.setAttribute("djDateValue",_17.valueOf());
+var _1b=(_17.getMonth()!=this.curMonth.getMonth()&&Number(_17)<Number(this.curMonth))?"previous":(_17.getMonth()==this.curMonth.getMonth())?"current":"next";
+var _1c=_1b;
+if(this._isDisabledDate(_17)){
+var _1d={previous:"disabledPrevious",current:"disabledCurrent",next:"disabledNext"};
+_1c=_1d[_1b];
+}
+dojo.html.setClass(_1a,this._getDateClassName(_17,_1c));
+if(dojo.html.hasClass(_1a,this.classNames.selectedDate)){
+this.selectedNode=_1a;
+}
+_17=dojo.date.add(_17,dojo.date.dateParts.DAY,1);
+}
+this.lastDay=dojo.date.add(_17,dojo.date.dateParts.DAY,-1);
+this._initControls();
+},_initControls:function(){
+var d=this.firstDay;
+var d2=this.lastDay;
+var _20,_21,_22,_23,_24,_25;
+_20=_21=_22=_23=_24=_25=!this.staticDisplay;
+with(dojo.date.dateParts){
+var add=dojo.date.add;
+if(_20&&add(d,DAY,(-1*(this._getAdjustedDay(d)+1)))<this.startDate){
+_20=_22=_24=false;
+}
+if(_21&&d2>this.endDate){
+_21=_23=_25=false;
+}
+if(_22&&add(d,DAY,-1)<this.startDate){
+_22=_24=false;
+}
+if(_23&&add(d2,DAY,1)>this.endDate){
+_23=_25=false;
+}
+if(_24&&add(d2,YEAR,-1)<this.startDate){
+_24=false;
+}
+if(_25&&add(d,YEAR,1)>this.endDate){
+_25=false;
+}
+}
+function enableControl(_27,_28){
+dojo.html.setVisibility(_27,_28?"":"hidden");
+}
+enableControl(this.decreaseWeekNode,_20);
+enableControl(this.increaseWeekNode,_21);
+enableControl(this.decreaseMonthNode,_22);
+enableControl(this.increaseMonthNode,_23);
+enableControl(this.previousYearLabelNode,_24);
+enableControl(this.nextYearLabelNode,_25);
+},_incrementWeek:function(evt){
+var d=new Date(this.firstDay);
+switch(evt.target){
+case this.increaseWeekNode.getElementsByTagName("img").item(0):
+case this.increaseWeekNode:
+var _2b=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
+if(_2b<this.endDate){
+d=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
+}
+break;
+case this.decreaseWeekNode.getElementsByTagName("img").item(0):
+case this.decreaseWeekNode:
+if(d>=this.startDate){
+d=dojo.date.add(d,dojo.date.dateParts.WEEK,-1);
+}
+break;
+}
+this._preInitUI(d,true,true);
+},_incrementMonth:function(evt){
+var d=new Date(this.curMonth);
+var _2e=new Date(this.firstDay);
+switch(evt.currentTarget){
+case this.increaseMonthNode.getElementsByTagName("img").item(0):
+case this.increaseMonthNode:
+_2e=dojo.date.add(_2e,dojo.date.dateParts.DAY,this.displayWeeks*7);
+if(_2e<this.endDate){
+d=dojo.date.add(d,dojo.date.dateParts.MONTH,1);
+}else{
+var _2f=true;
+}
+break;
+case this.decreaseMonthNode.getElementsByTagName("img").item(0):
+case this.decreaseMonthNode:
+if(_2e>this.startDate){
+d=dojo.date.add(d,dojo.date.dateParts.MONTH,-1);
+}else{
+var _30=true;
+}
+break;
+}
+if(_30){
+d=new Date(this.startDate);
+}else{
+if(_2f){
+d=new Date(this.endDate);
+}
+}
+this._preInitUI(d,false,true);
+},_incrementYear:function(evt){
+var _32=this.curMonth.getFullYear();
+var _33=new Date(this.firstDay);
+switch(evt.target){
+case this.nextYearLabelNode:
+_33=dojo.date.add(_33,dojo.date.dateParts.YEAR,1);
+if(_33<this.endDate){
+_32++;
+}else{
+var _34=true;
+}
+break;
+case this.previousYearLabelNode:
+_33=dojo.date.add(_33,dojo.date.dateParts.YEAR,-1);
+if(_33>this.startDate){
+_32--;
+}else{
+var _35=true;
+}
+break;
+}
+var d;
+if(_35){
+d=new Date(this.startDate);
+}else{
+if(_34){
+d=new Date(this.endDate);
+}else{
+d=new Date(_32,this.curMonth.getMonth(),1);
+}
+}
+this._preInitUI(d,false,true);
+},onIncrementWeek:function(evt){
+evt.stopPropagation();
+if(!this.staticDisplay){
+this._incrementWeek(evt);
+}
+},onIncrementMonth:function(evt){
+evt.stopPropagation();
+if(!this.staticDisplay){
+this._incrementMonth(evt);
+}
+},onIncrementYear:function(evt){
+evt.stopPropagation();
+if(!this.staticDisplay){
+this._incrementYear(evt);
+}
+},_setMonthLabel:function(_3a){
+this.monthLabelNode.innerHTML=dojo.date.getNames("months","wide","standAlone",this.lang)[_3a];
+},_setYearLabels:function(_3b){
+var y=_3b-1;
+var _3d=this;
+function f(n){
+_3d[n+"YearLabelNode"].innerHTML=dojo.date.format(new Date(y++,0),{selector:"yearOnly",locale:_3d.lang});
+}
+f("previous");
+f("current");
+f("next");
+},_getDateClassName:function(_3f,_40){
+var _41=this.classNames[_40];
+if((!this.selectedIsUsed&&this.value)&&(Number(_3f)==Number(this.value))){
+_41=this.classNames.selectedDate+" "+_41;
+this.selectedIsUsed=true;
+}
+if((!this.currentIsUsed)&&(Number(_3f)==Number(this.today))){
+_41=_41+" "+this.classNames.currentDate;
+this.currentIsUsed=true;
+}
+return _41;
+},onClick:function(evt){
+dojo.event.browser.stopEvent(evt);
+},_handleUiClick:function(evt){
+var _44=evt.target;
+if(_44.nodeType!=dojo.dom.ELEMENT_NODE){
+_44=_44.parentNode;
+}
+dojo.event.browser.stopEvent(evt);
+this.selectedIsUsed=this.todayIsUsed=false;
+if(dojo.html.hasClass(_44,this.classNames["disabledPrevious"])||dojo.html.hasClass(_44,this.classNames["disabledCurrent"])||dojo.html.hasClass(_44,this.classNames["disabledNext"])){
+return;
+}
+this.clickedNode=_44;
+this.setDate(new Date(Number(dojo.html.getAttribute(_44,"djDateValue"))));
+},onValueChanged:function(_45){
+},_isDisabledDate:function(_46){
+if(_46<this.startDate||_46>this.endDate){
+return true;
+}
+return this.isDisabledDate(_46,this.lang);
+},isDisabledDate:function(_47,_48){
+return false;
+},_initFirstDay:function(_49,adj){
+var d=new Date(_49);
+if(!adj){
+d.setDate(1);
+}
+d.setDate(d.getDate()-this._getAdjustedDay(d,this.weekStartsOn));
+d.setHours(0,0,0,0);
+return d;
+},_getAdjustedDay:function(_4c){
+var _4d=[0,1,2,3,4,5,6];
+if(this.weekStartsOn>0){
+for(var i=0;i<this.weekStartsOn;i++){
+_4d.unshift(_4d.pop());
+}
+}
+return _4d[_4c.getDay()];
+},destroy:function(){
+dojo.widget.DatePicker.superclass.destroy.apply(this,arguments);
+dojo.html.destroyNode(this.weekTemplate);
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DatePicker.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DatePicker.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DatePicker.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DateTextbox.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DateTextbox.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DateTextbox.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DateTextbox.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,34 @@
+dojo.provide("dojo.widget.DateTextbox");
+dojo.require("dojo.widget.ValidationTextbox");
+dojo.require("dojo.date.format");
+dojo.require("dojo.validate.datetime");
+dojo.widget.defineWidget("dojo.widget.DateTextbox",dojo.widget.ValidationTextbox,{displayFormat:"",formatLength:"short",mixInProperties:function(_1){
+dojo.widget.DateTextbox.superclass.mixInProperties.apply(this,arguments);
+if(_1.format){
+this.flags.format=_1.format;
+}
+},isValid:function(){
+if(this.flags.format){
+dojo.deprecated("dojo.widget.DateTextbox","format attribute is deprecated; use displayFormat or formatLength instead","0.5");
+return dojo.validate.isValidDate(this.textbox.value,this.flags.format);
+}
+return dojo.date.parse(this.textbox.value,{formatLength:this.formatLength,selector:"dateOnly",locale:this.lang,datePattern:this.displayFormat});
+}});
+dojo.widget.defineWidget("dojo.widget.TimeTextbox",dojo.widget.ValidationTextbox,{displayFormat:"",formatLength:"short",mixInProperties:function(_2){
+dojo.widget.TimeTextbox.superclass.mixInProperties.apply(this,arguments);
+if(_2.format){
+this.flags.format=_2.format;
+}
+if(_2.amsymbol){
+this.flags.amSymbol=_2.amsymbol;
+}
+if(_2.pmsymbol){
+this.flags.pmSymbol=_2.pmsymbol;
+}
+},isValid:function(){
+if(this.flags.format){
+dojo.deprecated("dojo.widget.TimeTextbox","format attribute is deprecated; use displayFormat or formatLength instead","0.5");
+return dojo.validate.isValidTime(this.textbox.value,this.flags);
+}
+return dojo.date.parse(this.textbox.value,{formatLength:this.formatLength,selector:"timeOnly",locale:this.lang,timePattern:this.displayFormat});
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DateTextbox.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DateTextbox.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DateTextbox.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DebugConsole.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DebugConsole.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DebugConsole.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DebugConsole.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,10 @@
+dojo.provide("dojo.widget.DebugConsole");
+dojo.require("dojo.widget.Widget");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.FloatingPane");
+dojo.widget.defineWidget("dojo.widget.DebugConsole",dojo.widget.FloatingPane,{fillInTemplate:function(){
+dojo.widget.DebugConsole.superclass.fillInTemplate.apply(this,arguments);
+this.containerNode.id="debugConsoleClientPane";
+djConfig.isDebug=true;
+djConfig.debugContainerId=this.containerNode.id;
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DebugConsole.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DebugConsole.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DebugConsole.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Dialog.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Dialog.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Dialog.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Dialog.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,287 @@
+dojo.provide("dojo.widget.Dialog");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.ContentPane");
+dojo.require("dojo.event.*");
+dojo.require("dojo.gfx.color");
+dojo.require("dojo.html.layout");
+dojo.require("dojo.html.display");
+dojo.require("dojo.html.iframe");
+dojo.declare("dojo.widget.ModalDialogBase",null,{isContainer:true,focusElement:"",bgColor:"black",bgOpacity:0.4,followScroll:true,closeOnBackgroundClick:false,trapTabs:function(e){
+if(e.target==this.tabStartOuter){
+if(this._fromTrap){
+this.tabStart.focus();
+this._fromTrap=false;
+}else{
+this._fromTrap=true;
+this.tabEnd.focus();
+}
+}else{
+if(e.target==this.tabStart){
+if(this._fromTrap){
+this._fromTrap=false;
+}else{
+this._fromTrap=true;
+this.tabEnd.focus();
+}
+}else{
+if(e.target==this.tabEndOuter){
+if(this._fromTrap){
+this.tabEnd.focus();
+this._fromTrap=false;
+}else{
+this._fromTrap=true;
+this.tabStart.focus();
+}
+}else{
+if(e.target==this.tabEnd){
+if(this._fromTrap){
+this._fromTrap=false;
+}else{
+this._fromTrap=true;
+this.tabStart.focus();
+}
+}
+}
+}
+}
+},clearTrap:function(e){
+var _3=this;
+setTimeout(function(){
+_3._fromTrap=false;
+},100);
+},postCreate:function(){
+with(this.domNode.style){
+position="absolute";
+zIndex=999;
+display="none";
+overflow="visible";
+}
+var b=dojo.body();
+b.appendChild(this.domNode);
+this.bg=document.createElement("div");
+this.bg.className="dialogUnderlay";
+with(this.bg.style){
+position="absolute";
+left=top="0px";
+zIndex=998;
+display="none";
+}
+b.appendChild(this.bg);
+this.setBackgroundColor(this.bgColor);
+this.bgIframe=new dojo.html.BackgroundIframe();
+if(this.bgIframe.iframe){
+with(this.bgIframe.iframe.style){
+position="absolute";
+left=top="0px";
+zIndex=90;
+display="none";
+}
+}
+if(this.closeOnBackgroundClick){
+dojo.event.kwConnect({srcObj:this.bg,srcFunc:"onclick",adviceObj:this,adviceFunc:"onBackgroundClick",once:true});
+}
+},uninitialize:function(){
+this.bgIframe.remove();
+dojo.html.removeNode(this.bg,true);
+},setBackgroundColor:function(_5){
+if(arguments.length>=3){
+_5=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2]);
+}else{
+_5=new dojo.gfx.color.Color(_5);
+}
+this.bg.style.backgroundColor=_5.toString();
+return this.bgColor=_5;
+},setBackgroundOpacity:function(op){
+if(arguments.length==0){
+op=this.bgOpacity;
+}
+dojo.html.setOpacity(this.bg,op);
+try{
+this.bgOpacity=dojo.html.getOpacity(this.bg);
+}
+catch(e){
+this.bgOpacity=op;
+}
+return this.bgOpacity;
+},_sizeBackground:function(){
+if(this.bgOpacity>0){
+var _7=dojo.html.getViewport();
+var h=_7.height;
+var w=_7.width;
+with(this.bg.style){
+width=w+"px";
+height=h+"px";
+}
+var _a=dojo.html.getScroll().offset;
+this.bg.style.top=_a.y+"px";
+this.bg.style.left=_a.x+"px";
+var _7=dojo.html.getViewport();
+if(_7.width!=w){
+this.bg.style.width=_7.width+"px";
+}
+if(_7.height!=h){
+this.bg.style.height=_7.height+"px";
+}
+}
+this.bgIframe.size(this.bg);
+},_showBackground:function(){
+if(this.bgOpacity>0){
+this.bg.style.display="block";
+}
+if(this.bgIframe.iframe){
+this.bgIframe.iframe.style.display="block";
+}
+},placeModalDialog:function(){
+var _b=dojo.html.getScroll().offset;
+var _c=dojo.html.getViewport();
+var mb;
+if(this.isShowing()){
+mb=dojo.html.getMarginBox(this.domNode);
+}else{
+dojo.html.setVisibility(this.domNode,false);
+dojo.html.show(this.domNode);
+mb=dojo.html.getMarginBox(this.domNode);
+dojo.html.hide(this.domNode);
+dojo.html.setVisibility(this.domNode,true);
+}
+var x=_b.x+(_c.width-mb.width)/2;
+var y=_b.y+(_c.height-mb.height)/2;
+with(this.domNode.style){
+left=x+"px";
+top=y+"px";
+}
+},_onKey:function(evt){
+if(evt.key){
+var _11=evt.target;
+while(_11!=null){
+if(_11==this.domNode){
+return;
+}
+_11=_11.parentNode;
+}
+if(evt.key!=evt.KEY_TAB){
+dojo.event.browser.stopEvent(evt);
+}else{
+if(!dojo.render.html.opera){
+try{
+this.tabStart.focus();
+}
+catch(e){
+}
+}
+}
+}
+},showModalDialog:function(){
+if(this.followScroll&&!this._scrollConnected){
+this._scrollConnected=true;
+dojo.event.connect(window,"onscroll",this,"_onScroll");
+}
+dojo.event.connect(document.documentElement,"onkey",this,"_onKey");
+this.placeModalDialog();
+this.setBackgroundOpacity();
+this._sizeBackground();
+this._showBackground();
+this._fromTrap=true;
+setTimeout(dojo.lang.hitch(this,function(){
+try{
+this.tabStart.focus();
+}
+catch(e){
+}
+}),50);
+},hideModalDialog:function(){
+if(this.focusElement){
+dojo.byId(this.focusElement).focus();
+dojo.byId(this.focusElement).blur();
+}
+this.bg.style.display="none";
+this.bg.style.width=this.bg.style.height="1px";
+if(this.bgIframe.iframe){
+this.bgIframe.iframe.style.display="none";
+}
+dojo.event.disconnect(document.documentElement,"onkey",this,"_onKey");
+if(this._scrollConnected){
+this._scrollConnected=false;
+dojo.event.disconnect(window,"onscroll",this,"_onScroll");
+}
+},_onScroll:function(){
+var _12=dojo.html.getScroll().offset;
+this.bg.style.top=_12.y+"px";
+this.bg.style.left=_12.x+"px";
+this.placeModalDialog();
+},checkSize:function(){
+if(this.isShowing()){
+this._sizeBackground();
+this.placeModalDialog();
+this.onResized();
+}
+},onBackgroundClick:function(){
+if(this.lifetime-this.timeRemaining>=this.blockDuration){
+return;
+}
+this.hide();
+}});
+dojo.widget.defineWidget("dojo.widget.Dialog",[dojo.widget.ContentPane,dojo.widget.ModalDialogBase],{templateString:"<div id=\"${this.widgetId}\" class=\"dojoDialog\" dojoattachpoint=\"wrapper\">\n\t<span dojoattachpoint=\"tabStartOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\"\ttabindex=\"0\"></span>\n\t<span dojoattachpoint=\"tabStart\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n\t<div dojoattachpoint=\"containerNode\" style=\"position: relative; z-index: 2;\"></div>\n\t<span dojoattachpoint=\"tabEnd\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n\t<span dojoattachpoint=\"tabEndOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n</div>\n",blockDuration:0,lifetime:0,closeNode:"",postMixInProperties:function(){
+dojo.widget.Dialog.superclass.postMixInProperties.apply(this,arguments);
+if(this.closeNode){
+this.setCloseControl(this.closeNode);
+}
+},postCreate:function(){
+dojo.widget.Dialog.superclass.postCreate.apply(this,arguments);
+dojo.widget.ModalDialogBase.prototype.postCreate.apply(this,arguments);
+},show:function(){
+if(this.lifetime){
+this.timeRemaining=this.lifetime;
+if(this.timerNode){
+this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);
+}
+if(this.blockDuration&&this.closeNode){
+if(this.lifetime>this.blockDuration){
+this.closeNode.style.visibility="hidden";
+}else{
+this.closeNode.style.display="none";
+}
+}
+if(this.timer){
+clearInterval(this.timer);
+}
+this.timer=setInterval(dojo.lang.hitch(this,"_onTick"),100);
+}
+this.showModalDialog();
+dojo.widget.Dialog.superclass.show.call(this);
+},onLoad:function(){
+this.placeModalDialog();
+dojo.widget.Dialog.superclass.onLoad.call(this);
+},fillInTemplate:function(){
+},hide:function(){
+this.hideModalDialog();
+dojo.widget.Dialog.superclass.hide.call(this);
+if(this.timer){
+clearInterval(this.timer);
+}
+},setTimerNode:function(_13){
+this.timerNode=_13;
+},setCloseControl:function(_14){
+this.closeNode=dojo.byId(_14);
+dojo.event.connect(this.closeNode,"onclick",this,"hide");
+},setShowControl:function(_15){
+_15=dojo.byId(_15);
+dojo.event.connect(_15,"onclick",this,"show");
+},_onTick:function(){
+if(this.timer){
+this.timeRemaining-=100;
+if(this.lifetime-this.timeRemaining>=this.blockDuration){
+if(this.closeNode){
+this.closeNode.style.visibility="visible";
+}
+}
+if(!this.timeRemaining){
+clearInterval(this.timer);
+this.hide();
+}else{
+if(this.timerNode){
+this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);
+}
+}
+}
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Dialog.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Dialog.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Dialog.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DocPane.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DocPane.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DocPane.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DocPane.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,249 @@
+dojo.provide("dojo.widget.DocPane");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.io.*");
+dojo.require("dojo.event.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.widget.Editor2");
+dojo.require("dojo.widget.Dialog");
+dojo.require("dojo.html.common");
+dojo.require("dojo.html.display");
+dojo.widget.DocPane=function(){
+dojo.event.topic.subscribe("/docs/function/results",this,"onDocResults");
+dojo.event.topic.subscribe("/docs/package/results",this,"onPkgResults");
+dojo.event.topic.subscribe("/docs/function/detail",this,"onDocSelectFunction");
+};
+dojo.widget.defineWidget("dojo.widget.DocPane",dojo.widget.HtmlWidget,{dialog:null,dialogBg:null,dialogFg:null,logIn:null,edit:null,save:null,cancel:null,detail:null,result:null,packag:null,fn:null,fnLink:null,count:null,row:null,summary:null,description:null,variables:null,vRow:null,vLink:null,vDesc:null,methods:null,mRow:null,mLink:null,mDesc:null,requires:null,rRow:null,rRow2:null,rH3:null,rLink:null,parameters:null,pRow:null,pLink:null,pDesc:null,pOpt:null,pType:null,sType:null,sName:null,sParams:null,sPType:null,sPTypeSave:null,sPName:null,sPNameSave:null,pkgDescription:null,_appends:[],templateString:"<div class=\"dojoDocPane\">\n\t<div dojoAttachPoint=\"containerNode\" class=\"container\"></div>\n\n\t<div dojoAttachPoint=\"dialog\" class=\"dialog\">\n\t\t<div class=\"container\" dojoAttachPoint=\"dialogBg\">\n\t\t\t<div class=\"docDialog\" dojoAttachPoint=\"dialogFg\">\n\t\t\t\t<h2>Log In</h2>\n\t\t\t\t<p><input id=\"dojoDocUserName\" dojoAttachPoint=\"userName\"><lab
 el for=\"dojoDocUserName\">User Name:</label></p>\n\t\t\t\t<p><input id=\"dojoDocPassword\" dojoAttachPoint=\"password\" type=\"password\"><label for=\"dojoDocPassword\">Password:</label></p>\n\t\t\t\t<p><input type=\"button\" dojoAttachPoint=\"cancel\" value=\"cancel\"> <input type=\"button\" dojoAttachPoint=\"logIn\" value=\"Log In\"></p>\n\t\t\t\t<p></p>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\n\t<div dojoAttachPoint=\"nav\" class=\"nav\"><span>Detail</span> | <span>Source</span> | <span>Examples</span> | <span>Walkthrough</span></div>\n\n\t<div dojoAttachPoint=\"detail\" class=\"detail\">\n\t\t<h1>Detail: <span class=\"fn\" dojoAttachPoint=\"fn\">dojo.select</span></h1>\n\t\t<div class=\"description\" dojoAttachPoint=\"description\">Description</div>\n\t\t<div class=\"params\" dojoAttachPoint=\"parameters\">\n\t\t\t<h2>Parameters</h2>\n\t\t\t<div class=\"row\" dojoAttachPoint=\"pRow\">\n\t\t\t\t<span dojoAttachPoint=\"pOpt\"><em>optional</em> </span>\n\t\t\t\t<span><span d
 ojoAttachPoint=\"pType\">type</span> </span>\n\t\t\t\t<a href=\"#\" dojoAttachPoint=\"pLink\">variable</a>\n\t\t\t\t<span> - <span dojoAttachPoint=\"pDesc\"></span></span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"variables\" dojoAttachPoint=\"variables\">\n\t\t\t<h2>Variables</h2>\n\t\t\t<div class\"row\" dojoAttachPoint=\"vRow\">\n\t\t\t\t<a href=\"#\" dojoAttachPoint=\"vLink\">variable</a><span> - <span dojoAttachPoint=\"vDesc\"></span></span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"signature\">\n\t\t\t<h2>Signature</h2>\n\t\t\t<div class=\"source\">\n\t\t\t\t<span class=\"return\" dojoAttachPoint=\"sType\">returnType</span> \n\t\t\t\t<span class=\"function\" dojoAttachPoint=\"sName\">foo</span>\n\t\t\t\t(<span class=\"params\" dojoAttachPoint=\"sParams\">\n\t\t\t\t\t<span class=\"type\" dojoAttachPoint=\"sPType\">type </span>\n\t\t\t\t\t<span class=\"name\" dojoAttachPoint=\"sPName\">paramName</span>\n\t\t\t\t</span>)\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\n\t<div
  dojoAttachPoint=\"result\" class=\"result\">\n\t\t<h1>Search Results: <span dojoAttachPoint=\"count\">0</span> matches</h1>\n\t\t<div class=\"row\" dojoAttachPoint=\"row\">\n\t\t\t<a href=\"#\" dojoAttachPoint=\"fnLink\">dojo.fnLink</a>\n\t\t\t<span> - <span class=\"summary\" dojoAttachPoint=\"summary\">summary</span></span>\n\t\t</div>\n\t</div>\n\n\t<div dojoAttachPoint=\"packag\" class=\"package\">\n\t\t<h1>Package: \n\t\t\t<span class=\"pkg\" dojoAttachPoint=\"pkg\">dojo.package</span> \n\t\t\t<span class=\"edit\" dojoAttachPoint=\"edit\">[edit]</span> \n\t\t\t<span class=\"save\" dojoAttachPoint=\"save\">[save]</span>\n\t\t</h1>\n\t\t<div dojoAttachPoint=\"pkgDescription\" class=\"description\">Description</div>\n\t\t<div class=\"methods\" dojoAttachPoint=\"methods\">\n\t\t\t<h2>Methods</h2>\n\t\t\t<div class=\"row\" dojoAttachPoint=\"mRow\">\n\t\t\t\t<a href=\"#\" dojoAttachPoint=\"mLink\">method</a>\n\t\t\t\t<span> - <span class=\"description\" dojoAttachPoint=\"mDes
 c\"></span></span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"requires\" dojoAttachPoint=\"requires\">\n\t\t\t<h2>Requires</h2>\n\t\t\t<div class=\"row\" dojoAttachPoint=\"rRow\">\n\t\t\t\t<h3 dojoAttachPoint=\"rH3\">Environment</h3>\n\t\t\t\t<div dojoAttachPoint=\"rRow2\"><a href=\"#\" dojoAttachPoint=\"rLink\" class=\"package\">require</a></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n",templateCssString:".dojoDocPane { padding:1em; font: 1em Georgia,Times,\"Times New Roman\",serif; }\n\n.dojoDocPane .container{ }\n\n.dojoDocPane .dialog{ }\n.dojoDocPane .dialog .container{ padding: 0.5em; background: #fff; border: 2px solid #333; }\n.dojoDocPane .dialog .docDialog{ background: transparent; width: 20em; }\n.dojoDocPane .dialog .docDialog h2{ margin-top: 0; padding-top: 0; }\n.dojoDocPane .dialog .docDialog input { float: right; margin-right: 1em; }\n.dojoDocPane .dialog .docDialog p{ clear: both; }\n#dojoDocUserName, #dojoDocPassword { width: 10em; }\n\n.dojoDocPane 
 .nav{ }\n.dojoDocPane .nav span{ }\n\n.dojoDocPane .detail{ }\n.dojoDocPane .detail h1{ }\n.dojoDocPane .detail h1 span.fn{ }\n.dojoDocPane .detail .description{ }\n.dojoDocPane .detail .params{ }\n.dojoDocPane .detail .params .row{ }\n.dojoDocPane .detail .params .row span{ }\n.dojoDocPane .detail .variables{ }\n.dojoDocPane .detail .variables .row{ }\n.dojoDocPane .detail .signature{ }\n.dojoDocPane .detail .signature .source{ white-space: pre; font: 0.8em Monaco, Courier, \"Courier New\", monospace; }\n.dojoDocPane .detail .signature .source .return{ color:#369; }\n.dojoDocPane .detail .signature .source .function{ color: #98543F; font-weight: bold; }\n.dojoDocPane .detail .signature .source .params{ }\n.dojoDocPane .detail .signature .source .params .type{ font-style: italic; color: #d17575; }\n.dojoDocPane .detail .signature .source .params .name{ color: #d14040; }\n\n.dojoDocPane .result{ }\n.dojoDocPane .result h1{ }\n.dojoDocPane .result .row{ }\n.dojoDocPane .result
  .row .summary{ }\n\n.dojoDocPane .package{ }\n.dojoDocPane .package h1{ }\n.dojoDocPane .package .row{ }\n.dojoDocPane .package .row .summary{ }\n.dojoDocPane .package .description{ }\n.dojoDocPane .package .methods{ }\n.dojoDocPane .package .methods h2{ }\n.dojoDocPane .package .methods .row{ }\n.dojoDocPane .package .methods .row .description{ }\n.dojoDocPane .package .requires{ }\n.dojoDocPane .package .requires h2{ }\n.dojoDocPane .package .requires .row{ }\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/DocPane.css"),isContainer:true,fillInTemplate:function(){
+this.requires=dojo.html.removeNode(this.requires);
+this.rRow.style.display="none";
+this.rRow2.style.display="none";
+this.methods=dojo.html.removeNode(this.methods);
+this.mRow.style.display="none";
+this.dialog=dojo.widget.createWidget("dialog",{},this.dialog);
+this.dialog.setCloseControl(this.cancel);
+dojo.html.setOpacity(this.dialogBg,0.8);
+dojo.html.setOpacity(this.dialogFg,1);
+dojo.event.connect(this.edit,"onclick",dojo.lang.hitch(this,function(){
+if(!this._isLoggedIn){
+this.dialog.show();
+}
+}));
+dojo.event.connect(this.logIn,"onclick",this,"_logIn");
+dojo.event.connect(this.save,"onclick",this,"_save");
+dojo.event.connect(dojo.docs,"logInSuccess",this,"_loggedIn");
+this.homeSave=this.containerNode.cloneNode(true);
+this.detailSave=dojo.html.removeNode(this.detail);
+this.resultSave=dojo.html.removeNode(this.result);
+this.packageSave=dojo.html.removeNode(this.packag);
+this.results=dojo.html.removeNode(this.results);
+this.rowParent=this.row.parentNode;
+this.rowSave=dojo.html.removeNode(this.row);
+this.vParent=this.vRow.parentNode;
+this.vSave=dojo.html.removeNode(this.vRow);
+this.pParent=this.pRow.parentNode;
+this.pSave=dojo.html.removeNode(this.pRow);
+this.sPTypeSave=dojo.html.removeNode(this.sPType);
+this.sPNameSave=dojo.html.removeNode(this.sPName);
+this.navSave=dojo.html.removeNode(this.nav);
+},_logIn:function(){
+dojo.docs.setUserName(this.userName.value);
+dojo.docs.setPassword(this.password.value);
+},_loggedIn:function(){
+this._isLoggedIn=true;
+this.dialog.hide();
+this.pkgEditor=dojo.widget.createWidget("editor2",{toolbarAlwaysVisible:true},this.pkgDescription);
+},_save:function(){
+if(this.pkgEditor){
+dojo.docs.savePackage(this._pkgPath,{description:this.pkgEditor.getEditorContent()});
+}
+},onDocSelectFunction:function(_1){
+dojo.debug("onDocSelectFunction()");
+for(var _2 in _1){
+dojo.debug(_2+": "+dojo.json.serialize(_1[_2]));
+}
+var _3=_1.meta;
+if(_3){
+var _4=_3.variables;
+var _5=_3.this_variables;
+var _6=_3.child_variables;
+var _7=_3.parameters;
+}
+var _8=_1.doc;
+dojo.debug(dojo.json.serialize(_8));
+var _9=this._appends;
+dojo.html.removeChildren(this.domNode);
+this.fn.innerHTML=_1.name;
+this.variables.style.display="block";
+var _a=[];
+if(_4){
+_a=_4;
+}
+if(_5){
+_a=_a.concat(_5);
+}
+if(_6){
+_a=_a.concat(_6);
+}
+if(!_a.length){
+this.variables.style.display="none";
+}else{
+for(var i=0,_c;_c=_a[i];i++){
+this.vLink.innerHTML=_c;
+this.vDesc.parentNode.style.display="none";
+_9.push(this.vParent.appendChild(this.vSave.cloneNode(true)));
+}
+}
+this.sParams.innerHTML="";
+var _d=true;
+for(var _e in _7){
+var _f=_7[_e].type;
+var _10=_7[_e].summary;
+var _11=_e;
+this.parameters.style.display="block";
+this.pLink.innerHTML=_11;
+this.pOpt.style.display="none";
+if(_7[_e].opt){
+this.pOpt.style.display="inline";
+}
+this.pType.parentNode.style.display="none";
+if(_7[_e][0]){
+this.pType.parentNode.style.display="inline";
+this.pType.innerHTML=_f;
+}
+this.pDesc.parentNode.style.display="none";
+if(_10){
+this.pDesc.parentNode.style.display="inline";
+this.pDesc.innerHTML=_10;
+}
+_9.push(this.pParent.appendChild(this.pSave.cloneNode(true)));
+if(!_d){
+this.sParams.appendChild(document.createTextNode(", "));
+}
+_d=false;
+if(_f){
+dojo.debug(this.sPTypeSave);
+this.sPTypeSave.innerHTML=_f;
+this.sParams.appendChild(this.sPTypeSave.cloneNode(true));
+this.sParams.appendChild(document.createTextNode(" "));
+}
+dojo.debug(this.sPNameSave);
+this.sPNameSave.innerHTML=_11;
+this.sParams.appendChild(this.sPNameSave.cloneNode(true));
+}
+if(_1.returns){
+this.sType.innerHTML=_1.returns;
+}else{
+this.sType.innerHTML="void";
+}
+this.sName.innerHTML=_1.name;
+this.domNode.appendChild(this.navSave);
+this.domNode.appendChild(this.detailSave.cloneNode(true));
+for(var i=0,_12;_12=_9[i];i++){
+dojo.html.removeNode(_12);
+}
+},onPkgResult:function(_13){
+if(this.pkgEditor){
+this.pkgEditor.close(true);
+dojo.debug(this.pkgDescription);
+}
+var _14=_13.methods;
+var _15=_13.requires;
+var _16=_13.description;
+this._pkgPath=_13.path;
+var _17=[];
+var _18=this._appends;
+while(_18.length){
+dojo.html.removeNode(_18.shift());
+}
+dojo.html.removeChildren(this.domNode);
+this.pkg.innerHTML=_13.pkg;
+var _19=false;
+for(var env in _15){
+_19=true;
+this.rH3.style.display="none";
+if(env!="common"){
+this.rH3.style.display="";
+this.rH3.innerHTML=env;
+}
+for(var i=0,_1c;_1c=_15[env][i];i++){
+_17.push({name:_1c});
+this.rLink.innerHTML=_1c;
+this.rLink.href="#"+_1c;
+var _1d=this.rRow2.parentNode.insertBefore(this.rRow2.cloneNode(true),this.rRow2);
+_1d.style.display="";
+_18.push(_1d);
+}
+var _1e=this.rRow.parentNode.insertBefore(this.rRow.cloneNode(true),this.rRow);
+_1e.style.display="";
+_18.push(_1e);
+}
+if(_19){
+_18.push(this.packageSave.appendChild(this.requires.cloneNode(true)));
+}
+if(_13.size){
+for(var i=0,_1f;_1f=_14[i];i++){
+this.mLink.innerHTML=_1f.name;
+this.mLink.href="#"+_1f.name;
+this.mDesc.parentNode.style.display="none";
+if(_1f.summary){
+this.mDesc.parentNode.style.display="inline";
+this.mDesc.innerHTML=_1f.summary;
+}
+var _20=this.mRow.parentNode.insertBefore(this.mRow.cloneNode(true),this.mRow);
+_20.style.display="";
+_18.push(_20);
+}
+_18.push(this.packageSave.appendChild(this.methods.cloneNode(true)));
+}
+this.domNode.appendChild(this.packageSave);
+this.pkgDescription.innerHTML=_16;
+function makeSelect(_21,x){
+return function(e){
+dojo.event.topic.publish("/docs/"+_21+"/select",x);
+};
+}
+var as=this.domNode.getElementsByTagName("a");
+for(var i=0,a;a=as[i];i++){
+if(a.className=="docMLink"){
+dojo.event.connect(a,"onclick",makeSelect("function",_14[i]));
+}else{
+if(a.className=="docRLink"){
+dojo.event.connect(a,"onclick",makeSelect("package",_17[i]));
+}
+}
+}
+},onDocResults:function(fns){
+dojo.debug("onDocResults(): called");
+if(fns.length==1){
+dojo.event.topic.publish("/docs/function/select",fns[0]);
+return;
+}
+dojo.html.removeChildren(this.domNode);
+this.count.innerHTML=fns.length;
+var _27=[];
+for(var i=0,fn;fn=fns[i];i++){
+this.fnLink.innerHTML=fn.name;
+this.fnLink.href="#"+fn.name;
+if(fn.id){
+this.fnLink.href=this.fnLink.href+","+fn.id;
+}
+this.summary.parentNode.style.display="none";
+if(fn.summary){
+this.summary.parentNode.style.display="inline";
+this.summary.innerHTML=fn.summary;
+}
+_27.push(this.rowParent.appendChild(this.rowSave.cloneNode(true)));
+}
+function makeSelect(x){
+return function(e){
+dojo.event.topic.publish("/docs/function/select",x);
+};
+}
+this.domNode.appendChild(this.resultSave.cloneNode(true));
+var as=this.domNode.getElementsByTagName("a");
+for(var i=0,a;a=as[i];i++){
+dojo.event.connect(a,"onclick",makeSelect(fns[i]));
+}
+for(var i=0,_2e;_2e=_27[i];i++){
+this.rowParent.removeChild(_2e);
+}
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DocPane.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DocPane.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DocPane.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DomWidget.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DomWidget.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DomWidget.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DomWidget.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,494 @@
+dojo.provide("dojo.widget.DomWidget");
+dojo.require("dojo.event.*");
+dojo.require("dojo.widget.Widget");
+dojo.require("dojo.dom");
+dojo.require("dojo.html.style");
+dojo.require("dojo.xml.Parse");
+dojo.require("dojo.uri.*");
+dojo.require("dojo.lang.func");
+dojo.require("dojo.lang.extras");
+dojo.widget._cssFiles={};
+dojo.widget._cssStrings={};
+dojo.widget._templateCache={};
+dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),dojoWidgetModuleUri:dojo.uri.moduleUri("dojo.widget"),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
+dojo.widget.fillFromTemplateCache=function(_1,_2,_3,_4){
+var _5=_2||_1.templatePath;
+var _6=dojo.widget._templateCache;
+if(!_5&&!_1["widgetType"]){
+do{
+var _7="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
+}while(_6[_7]);
+_1.widgetType=_7;
+}
+var wt=_5?_5.toString():_1.widgetType;
+var ts=_6[wt];
+if(!ts){
+_6[wt]={"string":null,"node":null};
+if(_4){
+ts={};
+}else{
+ts=_6[wt];
+}
+}
+if((!_1.templateString)&&(!_4)){
+_1.templateString=_3||ts["string"];
+}
+if(_1.templateString){
+_1.templateString=this._sanitizeTemplateString(_1.templateString);
+}
+if((!_1.templateNode)&&(!_4)){
+_1.templateNode=ts["node"];
+}
+if((!_1.templateNode)&&(!_1.templateString)&&(_5)){
+var _a=this._sanitizeTemplateString(dojo.hostenv.getText(_5));
+_1.templateString=_a;
+if(!_4){
+_6[wt]["string"]=_a;
+}
+}
+if((!ts["string"])&&(!_4)){
+ts.string=_1.templateString;
+}
+};
+dojo.widget._sanitizeTemplateString=function(_b){
+if(_b){
+_b=_b.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
+var _c=_b.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
+if(_c){
+_b=_c[1];
+}
+}else{
+_b="";
+}
+return _b;
+};
+dojo.widget._templateCache.dummyCount=0;
+dojo.widget.attachProperties=["dojoAttachPoint","id"];
+dojo.widget.eventAttachProperty="dojoAttachEvent";
+dojo.widget.onBuildProperty="dojoOnBuild";
+dojo.widget.waiNames=["waiRole","waiState"];
+dojo.widget.wai={waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(_d,ns,_f,_10){
+if(dojo.render.html.ie){
+_d.setAttribute(this[ns].alias+":"+_f,this[ns].prefix+_10);
+}else{
+_d.setAttributeNS(this[ns]["namespace"],_f,this[ns].prefix+_10);
+}
+},getAttr:function(_11,ns,_13){
+if(dojo.render.html.ie){
+return _11.getAttribute(this[ns].alias+":"+_13);
+}else{
+return _11.getAttributeNS(this[ns]["namespace"],_13);
+}
+},removeAttr:function(_14,ns,_16){
+var _17=true;
+if(dojo.render.html.ie){
+_17=_14.removeAttribute(this[ns].alias+":"+_16);
+}else{
+_14.removeAttributeNS(this[ns]["namespace"],_16);
+}
+return _17;
+}};
+dojo.widget.attachTemplateNodes=function(_18,_19,_1a){
+var _1b=dojo.dom.ELEMENT_NODE;
+function trim(str){
+return str.replace(/^\s+|\s+$/g,"");
+}
+if(!_18){
+_18=_19.domNode;
+}
+if(_18.nodeType!=_1b){
+return;
+}
+var _1d=_18.all||_18.getElementsByTagName("*");
+var _1e=_19;
+for(var x=-1;x<_1d.length;x++){
+var _20=(x==-1)?_18:_1d[x];
+var _21=[];
+if(!_19.widgetsInTemplate||!_20.getAttribute("dojoType")){
+for(var y=0;y<this.attachProperties.length;y++){
+var _23=_20.getAttribute(this.attachProperties[y]);
+if(_23){
+_21=_23.split(";");
+for(var z=0;z<_21.length;z++){
+if(dojo.lang.isArray(_19[_21[z]])){
+_19[_21[z]].push(_20);
+}else{
+_19[_21[z]]=_20;
+}
+}
+break;
+}
+}
+var _25=_20.getAttribute(this.eventAttachProperty);
+if(_25){
+var _26=_25.split(";");
+for(var y=0;y<_26.length;y++){
+if((!_26[y])||(!_26[y].length)){
+continue;
+}
+var _27=null;
+var _28=trim(_26[y]);
+if(_26[y].indexOf(":")>=0){
+var _29=_28.split(":");
+_28=trim(_29[0]);
+_27=trim(_29[1]);
+}
+if(!_27){
+_27=_28;
+}
+var tf=function(){
+var ntf=new String(_27);
+return function(evt){
+if(_1e[ntf]){
+_1e[ntf](dojo.event.browser.fixEvent(evt,this));
+}
+};
+}();
+dojo.event.browser.addListener(_20,_28,tf,false,true);
+}
+}
+for(var y=0;y<_1a.length;y++){
+var _2d=_20.getAttribute(_1a[y]);
+if((_2d)&&(_2d.length)){
+var _27=null;
+var _2e=_1a[y].substr(4);
+_27=trim(_2d);
+var _2f=[_27];
+if(_27.indexOf(";")>=0){
+_2f=dojo.lang.map(_27.split(";"),trim);
+}
+for(var z=0;z<_2f.length;z++){
+if(!_2f[z].length){
+continue;
+}
+var tf=function(){
+var ntf=new String(_2f[z]);
+return function(evt){
+if(_1e[ntf]){
+_1e[ntf](dojo.event.browser.fixEvent(evt,this));
+}
+};
+}();
+dojo.event.browser.addListener(_20,_2e,tf,false,true);
+}
+}
+}
+}
+var _32=_20.getAttribute(this.templateProperty);
+if(_32){
+_19[_32]=_20;
+}
+dojo.lang.forEach(dojo.widget.waiNames,function(_33){
+var wai=dojo.widget.wai[_33];
+var val=_20.getAttribute(wai.name);
+if(val){
+if(val.indexOf("-")==-1){
+dojo.widget.wai.setAttr(_20,wai.name,"role",val);
+}else{
+var _36=val.split("-");
+dojo.widget.wai.setAttr(_20,wai.name,_36[0],_36[1]);
+}
+}
+},this);
+var _37=_20.getAttribute(this.onBuildProperty);
+if(_37){
+eval("var node = baseNode; var widget = targetObj; "+_37);
+}
+}
+};
+dojo.widget.getDojoEventsFromStr=function(str){
+var re=/(dojoOn([a-z]+)(\s?))=/gi;
+var _3a=str?str.match(re)||[]:[];
+var ret=[];
+var lem={};
+for(var x=0;x<_3a.length;x++){
+if(_3a[x].length<1){
+continue;
+}
+var cm=_3a[x].replace(/\s/,"");
+cm=(cm.slice(0,cm.length-1));
+if(!lem[cm]){
+lem[cm]=true;
+ret.push(cm);
+}
+}
+return ret;
+};
+dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,function(){
+if((arguments.length>0)&&(typeof arguments[0]=="object")){
+this.create(arguments[0]);
+}
+},{templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,widgetsInTemplate:false,addChild:function(_3f,_40,pos,ref,_43){
+if(!this.isContainer){
+dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
+return null;
+}else{
+if(_43==undefined){
+_43=this.children.length;
+}
+this.addWidgetAsDirectChild(_3f,_40,pos,ref,_43);
+this.registerChild(_3f,_43);
+}
+return _3f;
+},addWidgetAsDirectChild:function(_44,_45,pos,ref,_48){
+if((!this.containerNode)&&(!_45)){
+this.containerNode=this.domNode;
+}
+var cn=(_45)?_45:this.containerNode;
+if(!pos){
+pos="after";
+}
+if(!ref){
+if(!cn){
+cn=dojo.body();
+}
+ref=cn.lastChild;
+}
+if(!_48){
+_48=0;
+}
+_44.domNode.setAttribute("dojoinsertionindex",_48);
+if(!ref){
+cn.appendChild(_44.domNode);
+}else{
+if(pos=="insertAtIndex"){
+dojo.dom.insertAtIndex(_44.domNode,ref.parentNode,_48);
+}else{
+if((pos=="after")&&(ref===cn.lastChild)){
+cn.appendChild(_44.domNode);
+}else{
+dojo.dom.insertAtPosition(_44.domNode,cn,pos);
+}
+}
+}
+},registerChild:function(_4a,_4b){
+_4a.dojoInsertionIndex=_4b;
+var idx=-1;
+for(var i=0;i<this.children.length;i++){
+if(this.children[i].dojoInsertionIndex<=_4b){
+idx=i;
+}
+}
+this.children.splice(idx+1,0,_4a);
+_4a.parent=this;
+_4a.addedTo(this,idx+1);
+delete dojo.widget.manager.topWidgets[_4a.widgetId];
+},removeChild:function(_4e){
+dojo.dom.removeNode(_4e.domNode);
+return dojo.widget.DomWidget.superclass.removeChild.call(this,_4e);
+},getFragNodeRef:function(_4f){
+if(!_4f){
+return null;
+}
+if(!_4f[this.getNamespacedType()]){
+dojo.raise("Error: no frag for widget type "+this.getNamespacedType()+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
+}
+return _4f[this.getNamespacedType()]["nodeRef"];
+},postInitialize:function(_50,_51,_52){
+var _53=this.getFragNodeRef(_51);
+if(_52&&(_52.snarfChildDomOutput||!_53)){
+_52.addWidgetAsDirectChild(this,"","insertAtIndex","",_50["dojoinsertionindex"],_53);
+}else{
+if(_53){
+if(this.domNode&&(this.domNode!==_53)){
+this._sourceNodeRef=dojo.dom.replaceNode(_53,this.domNode);
+}
+}
+}
+if(_52){
+_52.registerChild(this,_50.dojoinsertionindex);
+}else{
+dojo.widget.manager.topWidgets[this.widgetId]=this;
+}
+if(this.widgetsInTemplate){
+var _54=new dojo.xml.Parse();
+var _55;
+var _56=this.domNode.getElementsByTagName("*");
+for(var i=0;i<_56.length;i++){
+if(_56[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
+_55=_56[i];
+}
+if(_56[i].getAttribute("dojoType")){
+_56[i].setAttribute("isSubWidget",true);
+}
+}
+if(this.isContainer&&!this.containerNode){
+if(_55){
+var src=this.getFragNodeRef(_51);
+if(src){
+dojo.dom.moveChildren(src,_55);
+_51["dojoDontFollow"]=true;
+}
+}else{
+dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
+}
+}
+var _59=_54.parseElement(this.domNode,null,true);
+dojo.widget.getParser().createSubComponents(_59,this);
+var _5a=[];
+var _5b=[this];
+var w;
+while((w=_5b.pop())){
+for(var i=0;i<w.children.length;i++){
+var _5d=w.children[i];
+if(_5d._processedSubWidgets||!_5d.extraArgs["issubwidget"]){
+continue;
+}
+_5a.push(_5d);
+if(_5d.isContainer){
+_5b.push(_5d);
+}
+}
+}
+for(var i=0;i<_5a.length;i++){
+var _5e=_5a[i];
+if(_5e._processedSubWidgets){
+dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
+return;
+}
+_5e._processedSubWidgets=true;
+if(_5e.extraArgs["dojoattachevent"]){
+var _5f=_5e.extraArgs["dojoattachevent"].split(";");
+for(var j=0;j<_5f.length;j++){
+var _61=null;
+var _62=dojo.string.trim(_5f[j]);
+if(_62.indexOf(":")>=0){
+var _63=_62.split(":");
+_62=dojo.string.trim(_63[0]);
+_61=dojo.string.trim(_63[1]);
+}
+if(!_61){
+_61=_62;
+}
+if(dojo.lang.isFunction(_5e[_62])){
+dojo.event.kwConnect({srcObj:_5e,srcFunc:_62,targetObj:this,targetFunc:_61});
+}else{
+alert(_62+" is not a function in widget "+_5e);
+}
+}
+}
+if(_5e.extraArgs["dojoattachpoint"]){
+this[_5e.extraArgs["dojoattachpoint"]]=_5e;
+}
+}
+}
+if(this.isContainer&&!_51["dojoDontFollow"]){
+dojo.widget.getParser().createSubComponents(_51,this);
+}
+},buildRendering:function(_64,_65){
+var ts=dojo.widget._templateCache[this.widgetType];
+if(_64["templatecsspath"]){
+_64["templateCssPath"]=_64["templatecsspath"];
+}
+var _67=_64["templateCssPath"]||this.templateCssPath;
+if(_67&&!dojo.widget._cssFiles[_67.toString()]){
+if((!this.templateCssString)&&(_67)){
+this.templateCssString=dojo.hostenv.getText(_67);
+this.templateCssPath=null;
+}
+dojo.widget._cssFiles[_67.toString()]=true;
+}
+if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){
+dojo.html.insertCssText(this.templateCssString,null,_67);
+dojo.widget._cssStrings[this.templateCssString]=true;
+}
+if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){
+this.buildFromTemplate(_64,_65);
+}else{
+this.domNode=this.getFragNodeRef(_65);
+}
+this.fillInTemplate(_64,_65);
+},buildFromTemplate:function(_68,_69){
+var _6a=false;
+if(_68["templatepath"]){
+_68["templatePath"]=_68["templatepath"];
+}
+dojo.widget.fillFromTemplateCache(this,_68["templatePath"],null,_6a);
+var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
+if((ts)&&(!_6a)){
+if(!this.templateString.length){
+this.templateString=ts["string"];
+}
+if(!this.templateNode){
+this.templateNode=ts["node"];
+}
+}
+var _6c=false;
+var _6d=null;
+var _6e=this.templateString;
+if((!this.templateNode)&&(this.templateString)){
+_6c=this.templateString.match(/\$\{([^\}]+)\}/g);
+if(_6c){
+var _6f=this.strings||{};
+for(var key in dojo.widget.defaultStrings){
+if(dojo.lang.isUndefined(_6f[key])){
+_6f[key]=dojo.widget.defaultStrings[key];
+}
+}
+for(var i=0;i<_6c.length;i++){
+var key=_6c[i];
+key=key.substring(2,key.length-1);
+var _72=(key.substring(0,5)=="this.")?dojo.lang.getObjPathValue(key.substring(5),this):_6f[key];
+var _73;
+if((_72)||(dojo.lang.isString(_72))){
+_73=new String((dojo.lang.isFunction(_72))?_72.call(this,key,this.templateString):_72);
+while(_73.indexOf("\"")>-1){
+_73=_73.replace("\"","&quot;");
+}
+_6e=_6e.replace(_6c[i],_73);
+}
+}
+}else{
+this.templateNode=this.createNodesFromText(this.templateString,true)[0];
+if(!_6a){
+ts.node=this.templateNode;
+}
+}
+}
+if((!this.templateNode)&&(!_6c)){
+dojo.debug("DomWidget.buildFromTemplate: could not create template");
+return false;
+}else{
+if(!_6c){
+_6d=this.templateNode.cloneNode(true);
+if(!_6d){
+return false;
+}
+}else{
+_6d=this.createNodesFromText(_6e,true)[0];
+}
+}
+this.domNode=_6d;
+this.attachTemplateNodes();
+if(this.isContainer&&this.containerNode){
+var src=this.getFragNodeRef(_69);
+if(src){
+dojo.dom.moveChildren(src,this.containerNode);
+}
+}
+},attachTemplateNodes:function(_75,_76){
+if(!_75){
+_75=this.domNode;
+}
+if(!_76){
+_76=this;
+}
+return dojo.widget.attachTemplateNodes(_75,_76,dojo.widget.getDojoEventsFromStr(this.templateString));
+},fillInTemplate:function(){
+},destroyRendering:function(){
+try{
+dojo.dom.destroyNode(this.domNode);
+delete this.domNode;
+}
+catch(e){
+}
+if(this._sourceNodeRef){
+try{
+dojo.dom.destroyNode(this._sourceNodeRef);
+}
+catch(e){
+}
+}
+},createNodesFromText:function(){
+dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DomWidget.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DomWidget.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DomWidget.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownContainer.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownContainer.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownContainer.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownContainer.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,52 @@
+dojo.provide("dojo.widget.DropdownContainer");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.widget.PopupContainer");
+dojo.require("dojo.event.*");
+dojo.require("dojo.html.layout");
+dojo.require("dojo.html.display");
+dojo.require("dojo.html.iframe");
+dojo.require("dojo.html.util");
+dojo.widget.defineWidget("dojo.widget.DropdownContainer",dojo.widget.HtmlWidget,{inputWidth:"7em",id:"",inputId:"",inputName:"",iconURL:dojo.uri.moduleUri("dojo.widget","templates/images/combo_box_arrow.png"),copyClasses:false,iconAlt:"",containerToggle:"plain",containerToggleDuration:150,templateString:"<span style=\"white-space:nowrap\"><input type=\"hidden\" name=\"\" value=\"\" dojoAttachPoint=\"valueNode\" /><input name=\"\" type=\"text\" value=\"\" style=\"vertical-align:middle;\" dojoAttachPoint=\"inputNode\" autocomplete=\"off\" /> <img src=\"${this.iconURL}\" alt=\"${this.iconAlt}\" dojoAttachEvent=\"onclick:onIconClick\" dojoAttachPoint=\"buttonNode\" style=\"vertical-align:middle; cursor:pointer; cursor:hand\" /></span>",templateCssPath:"",isContainer:true,attachTemplateNodes:function(){
+dojo.widget.DropdownContainer.superclass.attachTemplateNodes.apply(this,arguments);
+this.popup=dojo.widget.createWidget("PopupContainer",{toggle:this.containerToggle,toggleDuration:this.containerToggleDuration});
+this.containerNode=this.popup.domNode;
+},fillInTemplate:function(_1,_2){
+this.domNode.appendChild(this.popup.domNode);
+if(this.id){
+this.domNode.id=this.id;
+}
+if(this.inputId){
+this.inputNode.id=this.inputId;
+}
+if(this.inputName){
+this.inputNode.name=this.inputName;
+}
+this.inputNode.style.width=this.inputWidth;
+this.inputNode.disabled=this.disabled;
+if(this.copyClasses){
+this.inputNode.style="";
+this.inputNode.className=this.getFragNodeRef(_2).className;
+}
+dojo.event.connect(this.inputNode,"onchange",this,"onInputChange");
+},onIconClick:function(_3){
+if(this.disabled){
+return;
+}
+if(!this.popup.isShowingNow){
+this.popup.open(this.inputNode,this,this.buttonNode);
+}else{
+this.popup.close();
+}
+},hideContainer:function(){
+if(this.popup.isShowingNow){
+this.popup.close();
+}
+},onInputChange:function(){
+},enable:function(){
+this.inputNode.disabled=false;
+dojo.widget.DropdownContainer.superclass.enable.apply(this,arguments);
+},disable:function(){
+this.inputNode.disabled=true;
+dojo.widget.DropdownContainer.superclass.disable.apply(this,arguments);
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownContainer.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownContainer.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownContainer.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownDatePicker.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownDatePicker.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownDatePicker.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownDatePicker.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,95 @@
+dojo.provide("dojo.widget.DropdownDatePicker");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.DropdownContainer");
+dojo.require("dojo.widget.DatePicker");
+dojo.require("dojo.event.*");
+dojo.require("dojo.html.*");
+dojo.require("dojo.date.format");
+dojo.require("dojo.date.serialize");
+dojo.require("dojo.string.common");
+dojo.require("dojo.i18n.common");
+dojo.requireLocalization("dojo.widget","DropdownDatePicker",null,"ROOT");
+dojo.widget.defineWidget("dojo.widget.DropdownDatePicker",dojo.widget.DropdownContainer,{iconURL:dojo.uri.moduleUri("dojo.widget","templates/images/dateIcon.gif"),formatLength:"short",displayFormat:"",saveFormat:"",value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",staticDisplay:false,postMixInProperties:function(_1,_2){
+dojo.widget.DropdownDatePicker.superclass.postMixInProperties.apply(this,arguments);
+var _3=dojo.i18n.getLocalization("dojo.widget","DropdownDatePicker",this.lang);
+this.iconAlt=_3.selectDate;
+if(typeof (this.value)=="string"&&this.value.toLowerCase()=="today"){
+this.value=new Date();
+}else{
+if(this.value&&isNaN(this.value)){
+var _4=this.value;
+this.value=dojo.date.fromRfc3339(this.value);
+}else{
+if(this.value&&!isNaN(this.value)){
+this.value=new Date(this.value);
+}
+}
+}
+},fillInTemplate:function(_5,_6){
+dojo.widget.DropdownDatePicker.superclass.fillInTemplate.call(this,_5,_6);
+var _7={widgetContainerId:this.widgetId,lang:this.lang,value:this.value,startDate:this.startDate,endDate:this.endDate,displayWeeks:this.displayWeeks,weekStartsOn:this.weekStartsOn,adjustWeeks:this.adjustWeeks,staticDisplay:this.staticDisplay};
+this.datePicker=dojo.widget.createWidget("DatePicker",_7,this.containerNode,"child");
+dojo.event.connect(this.datePicker,"onValueChanged",this,"_updateText");
+dojo.event.connect(this.inputNode,"onChange",this,"_updateText");
+if(this.value){
+this._updateText();
+}
+this.containerNode.explodeClassName="calendarBodyContainer";
+this.valueNode.name=this.name;
+},getValue:function(){
+return this.valueNode.value;
+},getDate:function(){
+return this.datePicker.value;
+},setValue:function(_8){
+this.setDate(_8);
+},setDate:function(_9){
+this.datePicker.setDate(_9);
+this._syncValueNode();
+},_updateText:function(){
+this.inputNode.value=this.datePicker.value?dojo.date.format(this.datePicker.value,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang}):"";
+if(this.datePicker.value<this.datePicker.startDate||this.value>this.datePicker.endDate){
+this.inputNode.value="";
+}
+this._syncValueNode();
+this.onValueChanged(this.getDate());
+this.hideContainer();
+},onValueChanged:function(_a){
+},onInputChange:function(){
+var _b=dojo.string.trim(this.inputNode.value);
+if(_b){
+var _c=dojo.date.parse(_b,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang});
+if(!this.datePicker._isDisabledDate(_c)){
+this.setDate(_c);
+}
+}else{
+if(_b==""){
+this.datePicker.setDate("");
+}
+this.valueNode.value=_b;
+}
+if(_b){
+this._updateText();
+}
+},_syncValueNode:function(){
+var _d=this.datePicker.value;
+var _e="";
+switch(this.saveFormat.toLowerCase()){
+case "rfc":
+case "iso":
+case "":
+_e=dojo.date.toRfc3339(_d,"dateOnly");
+break;
+case "posix":
+case "unix":
+_e=Number(_d);
+break;
+default:
+if(_d){
+_e=dojo.date.format(_d,{datePattern:this.saveFormat,selector:"dateOnly",locale:this.lang});
+}
+}
+this.valueNode.value=_e;
+},destroy:function(_f){
+this.datePicker.destroy(_f);
+dojo.widget.DropdownDatePicker.superclass.destroy.apply(this,arguments);
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownDatePicker.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownDatePicker.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/DropdownDatePicker.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain