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 2008/02/04 23:08:37 UTC

svn commit: r618461 [34/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/SplitContainer.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SplitContainer.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SplitContainer.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SplitContainer.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,312 @@
+dojo.provide("dojo.widget.SplitContainer");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.ContentPane");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.html.style");
+dojo.require("dojo.html.layout");
+dojo.require("dojo.html.selection");
+dojo.require("dojo.io.cookie");
+dojo.widget.defineWidget("dojo.widget.SplitContainer",dojo.widget.HtmlWidget,function(){
+this.sizers=[];
+},{isContainer:true,templateCssString:".dojoSplitContainer{\n\tposition: relative;\n\toverflow: hidden;\n\tdisplay: block;\n}\n\n.dojoSplitPane{\n\tposition: absolute;\n}\n\n.dojoSplitContainerSizerH,\n.dojoSplitContainerSizerV {\n\tfont-size: 1px;\n\tcursor: move;\n\tcursor: w-resize;\n\tbackground-color: ThreeDFace;\n\tborder: 1px solid;\n\tborder-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;\n\tmargin: 0;\n}\n\n.dojoSplitContainerSizerV {\n\tcursor: n-resize;\n}\n\n.dojoSplitContainerVirtualSizerH,\n.dojoSplitContainerVirtualSizerV {\n\tfont-size: 1px;\n\tcursor: move;\n\tcursor: w-resize;\n\tbackground-color: ThreeDShadow;\n\t-moz-opacity: 0.5;\n\topacity: 0.5;\n\tfilter: Alpha(Opacity=50);\n\tmargin: 0;\n}\n\n.dojoSplitContainerVirtualSizerV {\n\tcursor: n-resize;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/SplitContainer.css"),activeSizing:false,sizerWidth:15,orientation:"horizontal",persist:true,postMixInProperties:function(){
+dojo.widget.SplitContainer.superclass.postMixInProperties.apply(this,arguments);
+this.isHorizontal=(this.orientation=="horizontal");
+},fillInTemplate:function(){
+dojo.widget.SplitContainer.superclass.fillInTemplate.apply(this,arguments);
+dojo.html.addClass(this.domNode,"dojoSplitContainer");
+if(dojo.render.html.moz){
+this.domNode.style.overflow="-moz-scrollbars-none";
+}
+var _1=dojo.html.getContentBox(this.domNode);
+this.paneWidth=_1.width;
+this.paneHeight=_1.height;
+},onResized:function(e){
+var _3=dojo.html.getContentBox(this.domNode);
+this.paneWidth=_3.width;
+this.paneHeight=_3.height;
+this._layoutPanels();
+},postCreate:function(_4,_5,_6){
+dojo.widget.SplitContainer.superclass.postCreate.apply(this,arguments);
+for(var i=0;i<this.children.length;i++){
+with(this.children[i].domNode.style){
+position="absolute";
+}
+dojo.html.addClass(this.children[i].domNode,"dojoSplitPane");
+if(i==this.children.length-1){
+break;
+}
+this._addSizer();
+}
+if(typeof this.sizerWidth=="object"){
+try{
+this.sizerWidth=parseInt(this.sizerWidth.toString());
+}
+catch(e){
+this.sizerWidth=15;
+}
+}
+this.virtualSizer=document.createElement("div");
+this.virtualSizer.style.position="absolute";
+this.virtualSizer.style.display="none";
+this.virtualSizer.style.zIndex=10;
+this.virtualSizer.className=this.isHorizontal?"dojoSplitContainerVirtualSizerH":"dojoSplitContainerVirtualSizerV";
+this.domNode.appendChild(this.virtualSizer);
+dojo.html.disableSelection(this.virtualSizer);
+if(this.persist){
+this._restoreState();
+}
+this.resizeSoon();
+},_injectChild:function(_8){
+with(_8.domNode.style){
+position="absolute";
+}
+dojo.html.addClass(_8.domNode,"dojoSplitPane");
+},_addSizer:function(){
+var i=this.sizers.length;
+this.sizers[i]=document.createElement("div");
+this.sizers[i].style.position="absolute";
+this.sizers[i].className=this.isHorizontal?"dojoSplitContainerSizerH":"dojoSplitContainerSizerV";
+var _a=this;
+var _b=(function(){
+var _c=i;
+return function(e){
+_a.beginSizing(e,_c);
+};
+})();
+dojo.event.connect(this.sizers[i],"onmousedown",_b);
+this.domNode.appendChild(this.sizers[i]);
+dojo.html.disableSelection(this.sizers[i]);
+},removeChild:function(_e){
+if(this.sizers.length>0){
+for(var x=0;x<this.children.length;x++){
+if(this.children[x]===_e){
+var i=this.sizers.length-1;
+this.domNode.removeChild(this.sizers[i]);
+this.sizers.length=i;
+break;
+}
+}
+}
+dojo.widget.SplitContainer.superclass.removeChild.call(this,_e,arguments);
+this.onResized();
+},addChild:function(_11){
+dojo.widget.SplitContainer.superclass.addChild.apply(this,arguments);
+this._injectChild(_11);
+if(this.children.length>1){
+this._addSizer();
+}
+this._layoutPanels();
+},_layoutPanels:function(){
+if(this.children.length==0){
+return;
+}
+var _12=this.isHorizontal?this.paneWidth:this.paneHeight;
+if(this.children.length>1){
+_12-=this.sizerWidth*(this.children.length-1);
+}
+var _13=0;
+for(var i=0;i<this.children.length;i++){
+_13+=this.children[i].sizeShare;
+}
+var _15=_12/_13;
+var _16=0;
+for(var i=0;i<this.children.length-1;i++){
+var _17=Math.round(_15*this.children[i].sizeShare);
+this.children[i].sizeActual=_17;
+_16+=_17;
+}
+this.children[this.children.length-1].sizeActual=_12-_16;
+this._checkSizes();
+var pos=0;
+var _17=this.children[0].sizeActual;
+this._movePanel(this.children[0],pos,_17);
+this.children[0].position=pos;
+pos+=_17;
+for(var i=1;i<this.children.length;i++){
+this._moveSlider(this.sizers[i-1],pos,this.sizerWidth);
+this.sizers[i-1].position=pos;
+pos+=this.sizerWidth;
+_17=this.children[i].sizeActual;
+this._movePanel(this.children[i],pos,_17);
+this.children[i].position=pos;
+pos+=_17;
+}
+},_movePanel:function(_19,pos,_1b){
+if(this.isHorizontal){
+_19.domNode.style.left=pos+"px";
+_19.domNode.style.top=0;
+_19.resizeTo(_1b,this.paneHeight);
+}else{
+_19.domNode.style.left=0;
+_19.domNode.style.top=pos+"px";
+_19.resizeTo(this.paneWidth,_1b);
+}
+},_moveSlider:function(_1c,pos,_1e){
+if(this.isHorizontal){
+_1c.style.left=pos+"px";
+_1c.style.top=0;
+dojo.html.setMarginBox(_1c,{width:_1e,height:this.paneHeight});
+}else{
+_1c.style.left=0;
+_1c.style.top=pos+"px";
+dojo.html.setMarginBox(_1c,{width:this.paneWidth,height:_1e});
+}
+},_growPane:function(_1f,_20){
+if(_1f>0){
+if(_20.sizeActual>_20.sizeMin){
+if((_20.sizeActual-_20.sizeMin)>_1f){
+_20.sizeActual=_20.sizeActual-_1f;
+_1f=0;
+}else{
+_1f-=_20.sizeActual-_20.sizeMin;
+_20.sizeActual=_20.sizeMin;
+}
+}
+}
+return _1f;
+},_checkSizes:function(){
+var _21=0;
+var _22=0;
+for(var i=0;i<this.children.length;i++){
+_22+=this.children[i].sizeActual;
+_21+=this.children[i].sizeMin;
+}
+if(_21<=_22){
+var _24=0;
+for(var i=0;i<this.children.length;i++){
+if(this.children[i].sizeActual<this.children[i].sizeMin){
+_24+=this.children[i].sizeMin-this.children[i].sizeActual;
+this.children[i].sizeActual=this.children[i].sizeMin;
+}
+}
+if(_24>0){
+if(this.isDraggingLeft){
+for(var i=this.children.length-1;i>=0;i--){
+_24=this._growPane(_24,this.children[i]);
+}
+}else{
+for(var i=0;i<this.children.length;i++){
+_24=this._growPane(_24,this.children[i]);
+}
+}
+}
+}else{
+for(var i=0;i<this.children.length;i++){
+this.children[i].sizeActual=Math.round(_22*(this.children[i].sizeMin/_21));
+}
+}
+},beginSizing:function(e,i){
+this.paneBefore=this.children[i];
+this.paneAfter=this.children[i+1];
+this.isSizing=true;
+this.sizingSplitter=this.sizers[i];
+this.originPos=dojo.html.getAbsolutePosition(this.children[0].domNode,true,dojo.html.boxSizing.MARGIN_BOX);
+if(this.isHorizontal){
+var _27=(e.layerX?e.layerX:e.offsetX);
+var _28=e.pageX;
+this.originPos=this.originPos.x;
+}else{
+var _27=(e.layerY?e.layerY:e.offsetY);
+var _28=e.pageY;
+this.originPos=this.originPos.y;
+}
+this.startPoint=this.lastPoint=_28;
+this.screenToClientOffset=_28-_27;
+this.dragOffset=this.lastPoint-this.paneBefore.sizeActual-this.originPos-this.paneBefore.position;
+if(!this.activeSizing){
+this._showSizingLine();
+}
+dojo.event.connect(document.documentElement,"onmousemove",this,"changeSizing");
+dojo.event.connect(document.documentElement,"onmouseup",this,"endSizing");
+dojo.event.browser.stopEvent(e);
+},changeSizing:function(e){
+this.lastPoint=this.isHorizontal?e.pageX:e.pageY;
+if(this.activeSizing){
+this.movePoint();
+this._updateSize();
+}else{
+this.movePoint();
+this._moveSizingLine();
+}
+dojo.event.browser.stopEvent(e);
+},endSizing:function(e){
+if(!this.activeSizing){
+this._hideSizingLine();
+}
+this._updateSize();
+this.isSizing=false;
+dojo.event.disconnect(document.documentElement,"onmousemove",this,"changeSizing");
+dojo.event.disconnect(document.documentElement,"onmouseup",this,"endSizing");
+if(this.persist){
+this._saveState(this);
+}
+},movePoint:function(){
+var p=this.lastPoint-this.screenToClientOffset;
+var a=p-this.dragOffset;
+a=this.legaliseSplitPoint(a);
+p=a+this.dragOffset;
+this.lastPoint=p+this.screenToClientOffset;
+},legaliseSplitPoint:function(a){
+a+=this.sizingSplitter.position;
+this.isDraggingLeft=(a>0)?true:false;
+if(!this.activeSizing){
+if(a<this.paneBefore.position+this.paneBefore.sizeMin){
+a=this.paneBefore.position+this.paneBefore.sizeMin;
+}
+if(a>this.paneAfter.position+(this.paneAfter.sizeActual-(this.sizerWidth+this.paneAfter.sizeMin))){
+a=this.paneAfter.position+(this.paneAfter.sizeActual-(this.sizerWidth+this.paneAfter.sizeMin));
+}
+}
+a-=this.sizingSplitter.position;
+this._checkSizes();
+return a;
+},_updateSize:function(){
+var pos=this.lastPoint-this.dragOffset-this.originPos;
+var _2f=this.paneBefore.position;
+var _30=this.paneAfter.position+this.paneAfter.sizeActual;
+this.paneBefore.sizeActual=pos-_2f;
+this.paneAfter.position=pos+this.sizerWidth;
+this.paneAfter.sizeActual=_30-this.paneAfter.position;
+for(var i=0;i<this.children.length;i++){
+this.children[i].sizeShare=this.children[i].sizeActual;
+}
+this._layoutPanels();
+},_showSizingLine:function(){
+this._moveSizingLine();
+if(this.isHorizontal){
+dojo.html.setMarginBox(this.virtualSizer,{width:this.sizerWidth,height:this.paneHeight});
+}else{
+dojo.html.setMarginBox(this.virtualSizer,{width:this.paneWidth,height:this.sizerWidth});
+}
+this.virtualSizer.style.display="block";
+},_hideSizingLine:function(){
+this.virtualSizer.style.display="none";
+},_moveSizingLine:function(){
+var pos=this.lastPoint-this.startPoint+this.sizingSplitter.position;
+if(this.isHorizontal){
+this.virtualSizer.style.left=pos+"px";
+}else{
+var pos=(this.lastPoint-this.startPoint)+this.sizingSplitter.position;
+this.virtualSizer.style.top=pos+"px";
+}
+},_getCookieName:function(i){
+return this.widgetId+"_"+i;
+},_restoreState:function(){
+for(var i=0;i<this.children.length;i++){
+var _35=this._getCookieName(i);
+var _36=dojo.io.cookie.getCookie(_35);
+if(_36!=null){
+var pos=parseInt(_36);
+if(typeof pos=="number"){
+this.children[i].sizeShare=pos;
+}
+}
+}
+},_saveState:function(){
+for(var i=0;i<this.children.length;i++){
+var _39=this._getCookieName(i);
+dojo.io.cookie.setCookie(_39,this.children[i].sizeShare,null,null,null,null);
+}
+}});
+dojo.lang.extend(dojo.widget.Widget,{sizeMin:10,sizeShare:10});
+dojo.widget.defineWidget("dojo.widget.SplitContainerPanel",dojo.widget.ContentPane,{});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SvgButton.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SvgButton.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SvgButton.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SvgButton.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,87 @@
+dojo.provide("dojo.widget.SvgButton");
+dojo.require("dojo.experimental");
+dojo.experimental("dojo.widget.SvgButton");
+dojo.widget.SvgButton=function(){
+dojo.widget.DomButton.call(this);
+dojo.widget.SvgWidget.call(this);
+this.onFoo=function(){
+alert("bar");
+};
+this.label="huzzah!";
+this.setLabel=function(x,y,_3,_4,_5){
+var _6=dojo.widget.SvgButton.prototype.coordinates(x,y,_3,_4,_5);
+var _7="";
+switch(_5){
+case "ellipse":
+_7="<text x='"+_6[6]+"' y='"+_6[7]+"'>"+_4+"</text>";
+break;
+case "rectangle":
+_7="";
+break;
+case "circle":
+_7="";
+break;
+}
+return _7;
+};
+this.fillInTemplate=function(x,y,_a,_b,_c){
+this.textSize=_a||12;
+this.label=_b;
+var _d=this.label.length*this.textSize;
+};
+};
+dojo.inherits(dojo.widget.SvgButton,dojo.widget.DomButton);
+dojo.widget.SvgButton.prototype.shapeString=function(x,y,_10,_11,_12){
+switch(_12){
+case "ellipse":
+var _13=dojo.widget.SvgButton.prototype.coordinates(x,y,_10,_11,_12);
+return "<ellipse cx='"+_13[4]+"' cy='"+_13[5]+"' rx='"+_13[2]+"' ry='"+_13[3]+"'/>";
+break;
+case "rect":
+return "";
+break;
+case "circle":
+return "";
+break;
+}
+};
+dojo.widget.SvgButton.prototype.coordinates=function(x,y,_16,_17,_18){
+switch(_18){
+case "ellipse":
+var _19=_17.length*_16;
+var _1a=_16*2.5;
+var rx=_19/2;
+var ry=_1a/2;
+var cx=rx+x;
+var cy=ry+y;
+var _1f=cx-rx*_16/25;
+var _20=cy*1.1;
+return [_19,_1a,rx,ry,cx,cy,_1f,_20];
+break;
+case "rectangle":
+return "";
+break;
+case "circle":
+return "";
+break;
+}
+};
+dojo.widget.SvgButton.prototype.labelString=function(x,y,_23,_24,_25){
+var _26="";
+var _27=dojo.widget.SvgButton.prototype.coordinates(x,y,_23,_24,_25);
+switch(_25){
+case "ellipse":
+_26="<text x='"+_27[6]+"' y='"+_27[7]+"'>"+_24+"</text>";
+break;
+case "rectangle":
+_26="";
+break;
+case "circle":
+_26="";
+break;
+}
+return _26;
+};
+dojo.widget.SvgButton.prototype.templateString=function(x,y,_2a,_2b,_2c){
+return "<g class='dojoButton' dojoAttachEvent='onClick; onMouseMove: onFoo;' dojoAttachPoint='labelNode'>"+dojo.widgets.SVGButton.prototype.shapeString(x,y,_2a,_2b,_2c)+dojo.widget.SVGButton.prototype.labelString(x,y,_2a,_2b,_2c)+"</g>";
+};

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SvgWidget.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SvgWidget.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SvgWidget.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SvgWidget.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,58 @@
+dojo.require("dojo.widget.DomWidget");
+dojo.provide("dojo.widget.SvgWidget");
+dojo.provide("dojo.widget.SVGWidget");
+dojo.require("dojo.dom");
+dojo.require("dojo.experimental");
+dojo.experimental("dojo.widget.SvgWidget");
+dojo.widget.declare("dojo.widget.SvgWidget",dojo.widget.DomWidget,{createNodesFromText:function(_1,_2){
+return dojo.svg.createNodesFromText(_1,_2);
+}});
+dojo.widget.SVGWidget=dojo.widget.SvgWidget;
+try{
+(function(){
+var tf=function(){
+var rw=new function(){
+dojo.widget.SvgWidget.call(this);
+this.buildRendering=function(){
+return;
+};
+this.destroyRendering=function(){
+return;
+};
+this.postInitialize=function(){
+return;
+};
+this.widgetType="SVGRootWidget";
+this.domNode=document.documentElement;
+};
+var wm=dojo.widget.manager;
+wm.root=rw;
+wm.add(rw);
+wm.getWidgetFromNode=function(_6){
+var _7=function(x){
+if(x.domNode==_6){
+return true;
+}
+};
+var _9=[];
+while((_6)&&(_9.length<1)){
+_9=this.getWidgetsByFilter(_7);
+_6=_6.parentNode;
+}
+if(_9.length>0){
+return _9[0];
+}else{
+return null;
+}
+};
+wm.getWidgetFromEvent=function(_a){
+return this.getWidgetFromNode(_a.target);
+};
+wm.getWidgetFromPrimitive=wm.getWidgetFromNode;
+};
+dojo.event.connect(dojo.hostenv,"loaded",tf);
+})();
+}
+catch(e){
+alert(e);
+}

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SwtWidget.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SwtWidget.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SwtWidget.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/SwtWidget.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,41 @@
+dojo.provide("dojo.widget.SwtWidget");
+dojo.require("dojo.experimental");
+dojo.experimental("dojo.widget.SwtWidget");
+dojo.require("dojo.event.*");
+dojo.require("dojo.widget.Widget");
+dojo.require("dojo.uri.*");
+dojo.require("dojo.lang.func");
+dojo.require("dojo.lang.extras");
+try{
+importPackage(Packages.org.eclipse.swt.widgets);
+dojo.declare("dojo.widget.SwtWidget",dojo.widget.Widget,function(){
+if((arguments.length>0)&&(typeof arguments[0]=="object")){
+this.create(arguments[0]);
+}
+},{display:null,shell:null,show:function(){
+},hide:function(){
+},addChild:function(){
+},registerChild:function(){
+},addWidgetAsDirectChild:function(){
+},removeChild:function(){
+},destroyRendering:function(){
+},postInitialize:function(){
+}});
+dojo.widget.SwtWidget.prototype.display=new Display();
+dojo.widget.SwtWidget.prototype.shell=new Shell(dojo.widget.SwtWidget.prototype.display);
+dojo.widget.manager.startShell=function(){
+var sh=dojo.widget.SwtWidget.prototype.shell;
+var d=dojo.widget.SwtWidget.prototype.display;
+sh.open();
+while(!sh.isDisposed()){
+dojo.widget.manager.doNext();
+if(!d.readAndDispatch()){
+d.sleep();
+}
+}
+d.dispose();
+};
+}
+catch(e){
+dojo.debug("dojo.widget.SwtWidget not loaded. SWT classes not available");
+}

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TabContainer.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TabContainer.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TabContainer.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TabContainer.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,76 @@
+dojo.provide("dojo.widget.TabContainer");
+dojo.require("dojo.lang.func");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.PageContainer");
+dojo.require("dojo.event.*");
+dojo.require("dojo.html.selection");
+dojo.require("dojo.widget.html.layout");
+dojo.widget.defineWidget("dojo.widget.TabContainer",dojo.widget.PageContainer,{labelPosition:"top",closeButton:"none",templateString:null,templateString:"<div id=\"${this.widgetId}\" class=\"dojoTabContainer\">\n\t<div dojoAttachPoint=\"tablistNode\"></div>\n\t<div class=\"dojoTabPaneWrapper\" dojoAttachPoint=\"containerNode\" dojoAttachEvent=\"onKey\" waiRole=\"tabpanel\"></div>\n</div>\n",templateCssString:".dojoTabContainer {\n\tposition : relative;\n}\n\n.dojoTabPaneWrapper {\n\tborder : 1px solid #6290d2;\n\t_zoom: 1; /* force IE6 layout mode so top border doesnt disappear */\n\tdisplay: block;\n\tclear: both;\n\toverflow: hidden;\n}\n\n.dojoTabLabels-top {\n\tposition : relative;\n\ttop : 0px;\n\tleft : 0px;\n\toverflow : visible;\n\tmargin-bottom : -1px;\n\twidth : 100%;\n\tz-index: 2;\t/* so the bottom of the tab label will cover up the border of dojoTabPaneWrapper */\n}\n\n.dojoTabNoLayout.dojoTabLabels-top .dojoTab {\n\tmargin-bottom: -1px;\n\t_margin-bottom: 0px; 
 /* IE filter so top border lines up correctly */\n}\n\n.dojoTab {\n\tposition : relative;\n\tfloat : left;\n\tpadding-left : 9px;\n\tborder-bottom : 1px solid #6290d2;\n\tbackground : url(images/tab_left.gif) no-repeat left top;\n\tcursor: pointer;\n\twhite-space: nowrap;\n\tz-index: 3;\n}\n\n.dojoTab div {\n\tdisplay : block;\n\tpadding : 4px 15px 4px 6px;\n\tbackground : url(images/tab_top_right.gif) no-repeat right top;\n\tcolor : #333;\n\tfont-size : 90%;\n}\n\n.dojoTab .close {\n\tdisplay : inline-block;\n\theight : 12px;\n\twidth : 12px;\n\tpadding : 0 12px 0 0;\n\tmargin : 0 -10px 0 10px;\n\tcursor : default;\n\tfont-size: small;\n}\n\n.dojoTab .closeImage {\n\tbackground : url(images/tab_close.gif) no-repeat right top;\n}\n\n.dojoTab .closeHover {\n\tbackground-image : url(images/tab_close_h.gif);\n}\n\n.dojoTab.current {\n\tpadding-bottom : 1px;\n\tborder-bottom : 0;\n\tbackground-position : 0 -150px;\n}\n\n.dojoTab.current div {\n\tpadding-bottom : 5px;\n\tmargin-b
 ottom : -1px;\n\tbackground-position : 100% -150px;\n}\n\n/* bottom tabs */\n\n.dojoTabLabels-bottom {\n\tposition : relative;\n\tbottom : 0px;\n\tleft : 0px;\n\toverflow : visible;\n\tmargin-top : -1px;\n\twidth : 100%;\n\tz-index: 2;\n}\n\n.dojoTabNoLayout.dojoTabLabels-bottom {\n\tposition : relative;\n}\n\n.dojoTabLabels-bottom .dojoTab {\n\tborder-top :  1px solid #6290d2;\n\tborder-bottom : 0;\n\tbackground : url(images/tab_bot_left.gif) no-repeat left bottom;\n}\n\n.dojoTabLabels-bottom .dojoTab div {\n\tbackground : url(images/tab_bot_right.gif) no-repeat right bottom;\n}\n\n.dojoTabLabels-bottom .dojoTab.current {\n\tborder-top : 0;\n\tbackground : url(images/tab_bot_left_curr.gif) no-repeat left bottom;\n}\n\n.dojoTabLabels-bottom .dojoTab.current div {\n\tpadding-top : 4px;\n\tbackground : url(images/tab_bot_right_curr.gif) no-repeat right bottom;\n}\n\n/* right-h tabs */\n\n.dojoTabLabels-right-h {\n\toverflow : visible;\n\tmargin-left : -1px;\n\tz-index: 2;\n}\n
 \n.dojoTabLabels-right-h .dojoTab {\n\tpadding-left : 0;\n\tborder-left :  1px solid #6290d2;\n\tborder-bottom : 0;\n\tbackground : url(images/tab_bot_right.gif) no-repeat right bottom;\n\tfloat : none;\n}\n\n.dojoTabLabels-right-h .dojoTab div {\n\tpadding : 4px 15px 4px 15px;\n}\n\n.dojoTabLabels-right-h .dojoTab.current {\n\tborder-left :  0;\n\tborder-bottom :  1px solid #6290d2;\n}\n\n/* left-h tabs */\n\n.dojoTabLabels-left-h {\n\toverflow : visible;\n\tmargin-right : -1px;\n\tz-index: 2;\n}\n\n.dojoTabLabels-left-h .dojoTab {\n\tborder-right :  1px solid #6290d2;\n\tborder-bottom : 0;\n\tfloat : none;\n\tbackground : url(images/tab_top_left.gif) no-repeat left top;\n}\n\n.dojoTabLabels-left-h .dojoTab.current {\n\tborder-right : 0;\n\tborder-bottom :  1px solid #6290d2;\n\tpadding-bottom : 0;\n\tbackground : url(images/tab_top_left.gif) no-repeat 0 -150px;\n}\n\n.dojoTabLabels-left-h .dojoTab div {\n\tbackground : 0;\n\tborder-bottom :  1px solid #6290d2;\n}\n",templa
 teCssPath:dojo.uri.moduleUri("dojo.widget","templates/TabContainer.css"),selectedTab:"",postMixInProperties:function(){
+if(this.selectedTab){
+dojo.deprecated("selectedTab deprecated, use selectedChild instead, will be removed in","0.5");
+this.selectedChild=this.selectedTab;
+}
+if(this.closeButton!="none"){
+dojo.deprecated("closeButton deprecated, use closable='true' on each child instead, will be removed in","0.5");
+}
+dojo.widget.TabContainer.superclass.postMixInProperties.apply(this,arguments);
+},fillInTemplate:function(){
+this.tablist=dojo.widget.createWidget("TabController",{id:this.widgetId+"_tablist",labelPosition:this.labelPosition,doLayout:this.doLayout,containerId:this.widgetId},this.tablistNode);
+dojo.widget.TabContainer.superclass.fillInTemplate.apply(this,arguments);
+},postCreate:function(_1,_2){
+dojo.widget.TabContainer.superclass.postCreate.apply(this,arguments);
+this.onResized();
+},_setupChild:function(_3){
+if(this.closeButton=="tab"||this.closeButton=="pane"){
+_3.closable=true;
+}
+dojo.html.addClass(_3.domNode,"dojoTabPane");
+dojo.widget.TabContainer.superclass._setupChild.apply(this,arguments);
+},onResized:function(){
+if(!this.doLayout){
+return;
+}
+var _4=this.labelPosition.replace(/-h/,"");
+var _5=[{domNode:this.tablist.domNode,layoutAlign:_4},{domNode:this.containerNode,layoutAlign:"client"}];
+dojo.widget.html.layout(this.domNode,_5);
+if(this.selectedChildWidget){
+var _6=dojo.html.getContentBox(this.containerNode);
+this.selectedChildWidget.resizeTo(_6.width,_6.height);
+}
+},selectTab:function(_7,_8){
+dojo.deprecated("use selectChild() rather than selectTab(), selectTab() will be removed in","0.5");
+this.selectChild(_7,_8);
+},onKey:function(e){
+if(e.keyCode==e.KEY_UP_ARROW&&e.ctrlKey){
+var _a=this.correspondingTabButton||this.selectedTabWidget.tabButton;
+_a.focus();
+dojo.event.browser.stopEvent(e);
+}else{
+if(e.keyCode==e.KEY_DELETE&&e.altKey){
+if(this.selectedChildWidget.closable){
+this.closeChild(this.selectedChildWidget);
+dojo.event.browser.stopEvent(e);
+}
+}
+}
+},destroy:function(){
+this.tablist.destroy();
+dojo.widget.TabContainer.superclass.destroy.apply(this,arguments);
+}});
+dojo.widget.defineWidget("dojo.widget.TabController",dojo.widget.PageController,{templateString:"<div wairole='tablist' dojoAttachEvent='onKey'></div>",labelPosition:"top",doLayout:true,"class":"",buttonWidget:"TabButton",postMixInProperties:function(){
+if(!this["class"]){
+this["class"]="dojoTabLabels-"+this.labelPosition+(this.doLayout?"":" dojoTabNoLayout");
+}
+dojo.widget.TabController.superclass.postMixInProperties.apply(this,arguments);
+}});
+dojo.widget.defineWidget("dojo.widget.TabButton",dojo.widget.PageButton,{templateString:"<div class='dojoTab' dojoAttachEvent='onClick'>"+"<div dojoAttachPoint='innerDiv'>"+"<span dojoAttachPoint='titleNode' tabIndex='-1' waiRole='tab'>${this.label}</span>"+"<span dojoAttachPoint='closeButtonNode' class='close closeImage' style='${this.closeButtonStyle}'"+"    dojoAttachEvent='onMouseOver:onCloseButtonMouseOver; onMouseOut:onCloseButtonMouseOut; onClick:onCloseButtonClick'></span>"+"</div>"+"</div>",postMixInProperties:function(){
+this.closeButtonStyle=this.closeButton?"":"display: none";
+dojo.widget.TabButton.superclass.postMixInProperties.apply(this,arguments);
+},fillInTemplate:function(){
+dojo.html.disableSelection(this.titleNode);
+dojo.widget.TabButton.superclass.fillInTemplate.apply(this,arguments);
+},onCloseButtonClick:function(_b){
+_b.stopPropagation();
+dojo.widget.TabButton.superclass.onCloseButtonClick.apply(this,arguments);
+}});
+dojo.widget.defineWidget("dojo.widget.a11y.TabButton",dojo.widget.TabButton,{imgPath:dojo.uri.moduleUri("dojo.widget","templates/images/tab_close.gif"),templateString:"<div class='dojoTab' dojoAttachEvent='onClick;onKey'>"+"<div dojoAttachPoint='innerDiv'>"+"<span dojoAttachPoint='titleNode' tabIndex='-1' waiRole='tab'>${this.label}</span>"+"<img class='close' src='${this.imgPath}' alt='[x]' style='${this.closeButtonStyle}'"+"    dojoAttachEvent='onClick:onCloseButtonClick'>"+"</div>"+"</div>"});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TaskBar.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TaskBar.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TaskBar.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TaskBar.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,36 @@
+dojo.provide("dojo.widget.TaskBar");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.FloatingPane");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.event.*");
+dojo.require("dojo.html.selection");
+dojo.widget.defineWidget("dojo.widget.TaskBarItem",dojo.widget.HtmlWidget,{iconSrc:"",caption:"Untitled",templateString:"<div class=\"dojoTaskBarItem\" dojoAttachEvent=\"onClick\">\n</div>\n",templateCssString:".dojoTaskBarItem {\n\tdisplay: inline-block;\n\tbackground-color: ThreeDFace;\n\tborder: outset 2px;\n\tmargin-right: 5px;\n\tcursor: pointer;\n\theight: 35px;\n\twidth: 100px;\n\tfont-size: 10pt;\n\twhite-space: nowrap;\n\ttext-align: center;\n\tfloat: left;\n\toverflow: hidden;\n}\n\n.dojoTaskBarItem img {\n\tvertical-align: middle;\n\tmargin-right: 5px;\n\tmargin-left: 5px;\t\n\theight: 32px;\n\twidth: 32px;\n}\n\n.dojoTaskBarItem a {\n\t color: black;\n\ttext-decoration: none;\n}\n\n\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/TaskBar.css"),fillInTemplate:function(){
+if(this.iconSrc){
+var _1=document.createElement("img");
+_1.src=this.iconSrc;
+this.domNode.appendChild(_1);
+}
+this.domNode.appendChild(document.createTextNode(this.caption));
+dojo.html.disableSelection(this.domNode);
+},postCreate:function(){
+this.window=dojo.widget.getWidgetById(this.windowId);
+this.window.explodeSrc=this.domNode;
+dojo.event.connect(this.window,"destroy",this,"destroy");
+},onClick:function(){
+this.window.toggleDisplay();
+}});
+dojo.widget.defineWidget("dojo.widget.TaskBar",dojo.widget.FloatingPane,function(){
+this._addChildStack=[];
+},{resizable:false,titleBarDisplay:false,addChild:function(_2){
+if(!this.containerNode){
+this._addChildStack.push(_2);
+}else{
+if(this._addChildStack.length>0){
+var _3=this._addChildStack;
+this._addChildStack=[];
+dojo.lang.forEach(_3,this.addChild,this);
+}
+}
+var _4=dojo.widget.createWidget("TaskBarItem",{windowId:_2.widgetId,caption:_2.title,iconSrc:_2.iconSrc});
+dojo.widget.TaskBar.superclass.addChild.call(this,_4);
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Textbox.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Textbox.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Textbox.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Textbox.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,39 @@
+dojo.provide("dojo.widget.Textbox");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.widget.Manager");
+dojo.require("dojo.widget.Parse");
+dojo.require("dojo.xml.Parse");
+dojo.require("dojo.lang.array");
+dojo.require("dojo.lang.common");
+dojo.require("dojo.i18n.common");
+dojo.requireLocalization("dojo.widget","validate",null,"zh-cn,ja,fr,ROOT");
+dojo.widget.defineWidget("dojo.widget.Textbox",dojo.widget.HtmlWidget,{className:"",name:"",value:"",type:"",trim:false,uppercase:false,lowercase:false,ucFirst:false,digit:false,htmlfloat:"none",templateString:"<span style='float:${this.htmlfloat};'>\n\t<input dojoAttachPoint='textbox' dojoAttachEvent='onblur;onfocus'\n\t\tid='${this.widgetId}' name='${this.name}'\n\t\tclass='${this.className}' type='${this.type}' >\n</span>\n",textbox:null,fillInTemplate:function(){
+this.textbox.value=this.value;
+},filter:function(){
+if(this.trim){
+this.textbox.value=this.textbox.value.replace(/(^\s*|\s*$)/g,"");
+}
+if(this.uppercase){
+this.textbox.value=this.textbox.value.toUpperCase();
+}
+if(this.lowercase){
+this.textbox.value=this.textbox.value.toLowerCase();
+}
+if(this.ucFirst){
+this.textbox.value=this.textbox.value.replace(/\b\w+\b/g,function(_1){
+return _1.substring(0,1).toUpperCase()+_1.substring(1).toLowerCase();
+});
+}
+if(this.digit){
+this.textbox.value=this.textbox.value.replace(/\D/g,"");
+}
+},onfocus:function(){
+},onblur:function(){
+this.filter();
+},mixInProperties:function(_2,_3){
+dojo.widget.Textbox.superclass.mixInProperties.apply(this,arguments);
+if(_2["class"]){
+this.className=_2["class"];
+}
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TimePicker.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TimePicker.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TimePicker.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TimePicker.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,265 @@
+dojo.provide("dojo.widget.TimePicker");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.HtmlWidget");
+dojo.require("dojo.event.*");
+dojo.require("dojo.date.serialize");
+dojo.require("dojo.date.format");
+dojo.require("dojo.dom");
+dojo.require("dojo.html.style");
+dojo.requireLocalization("dojo.i18n.calendar","gregorian",null,"zh-cn,zh-hk,de,ko,zh-tw,zh,ja,fi,pt-br,fr,es,ROOT,hu,en,it,sv,nl,pt");
+dojo.requireLocalization("dojo.widget","TimePicker",null,"ROOT");
+dojo.widget.defineWidget("dojo.widget.TimePicker",dojo.widget.HtmlWidget,function(){
+this.time="";
+this.useDefaultTime=false;
+this.useDefaultMinutes=false;
+this.storedTime="";
+this.currentTime={};
+this.classNames={selectedTime:"selectedItem"};
+this.any="any";
+this.selectedTime={hour:"",minute:"",amPm:"",anyTime:false};
+this.hourIndexMap=["",2,4,6,8,10,1,3,5,7,9,11,0];
+this.minuteIndexMap=[0,2,4,6,8,10,1,3,5,7,9,11];
+},{isContainer:false,templateString:"<div class=\"timePickerContainer\" dojoAttachPoint=\"timePickerContainerNode\">\n\t<table class=\"timeContainer\" cellspacing=\"0\" >\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<td class=\"timeCorner cornerTopLeft\" valign=\"top\">&nbsp;</td>\n\t\t\t\t<td class=\"timeLabelContainer hourSelector\">${this.calendar.field-hour}</td>\n\t\t\t\t<td class=\"timeLabelContainer minutesHeading\">${this.calendar.field-minute}</td>\n\t\t\t\t<td class=\"timeCorner cornerTopRight\" valign=\"top\">&nbsp;</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 valign=\"top\" colspan=\"2\" class=\"hours\">\n\t\t\t\t\t<table align=\"center\">\n\t\t\t\t\t\t<tbody dojoAttachPoint=\"hourContainerNode\"  \n\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onSetSelectedHour;\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>12</td>\n\t\t\t\t\t\t\t\t<td>6</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>1</td>\n\t\t\t\t\t\t\t\t<td>7</td>\n\t\t\t\t\t\t\t</
 tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>2</td>\n\t\t\t\t\t\t\t\t<td>8</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>3</td>\n\t\t\t\t\t\t\t\t<td>9</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>4</td>\n\t\t\t\t\t\t\t\t<td>10</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>5</td>\n\t\t\t\t\t\t\t\t<td>11</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\t<td valign=\"top\" class=\"minutes\" colspan=\"2\">\n\t\t\t\t\t<table align=\"center\">\n\t\t\t\t\t\t<tbody dojoAttachPoint=\"minuteContainerNode\" \n\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onSetSelectedMinute;\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>00</td>\n\t\t\t\t\t\t\t\t<td>30</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>05</td>\n\t\t\t\t\t\t\t\t<td>35</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>10</td>\n\t\t\t\t\t\t\t\t<td>40</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<t
 r>\n\t\t\t\t\t\t\t\t<td>15</td>\n\t\t\t\t\t\t\t\t<td>45</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>20</td>\n\t\t\t\t\t\t\t\t<td>50</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>25</td>\n\t\t\t\t\t\t\t\t<td>55</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\t<tr>\n\t\t\t\t<td class=\"cornerBottomLeft\">&nbsp;</td>\n\t\t\t\t<td valign=\"top\" class=\"timeOptions\">\n\t\t\t\t\t<table class=\"amPmContainer\">\n\t\t\t\t\t\t<tbody dojoAttachPoint=\"amPmContainerNode\" \n\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onSetSelectedAmPm;\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td id=\"am\">${this.calendar.am}</td>\n\t\t\t\t\t\t\t\t<td id=\"pm\">${this.calendar.pm}</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\t<td class=\"timeOptions\">\n\t\t\t\t\t<div dojoAttachPoint=\"anyTimeContainerNode\" \n\t\t\t\t\t\tdojoAttachEvent=\"onClick: onSetSelectedA
 nyTime;\" \n\t\t\t\t\t\tclass=\"anyTimeContainer\">${this.widgetStrings.any}</div>\n\t\t\t\t</td>\n\t\t\t\t<td class=\"cornerBottomRight\">&nbsp;</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</div>\n",templateCssString:"/*Time Picker */\n.timePickerContainer {\n\twidth:122px;\n\tfont-family:Tahoma, Myriad, Helvetica, Arial, Verdana, sans-serif;\n\tfont-size:16px;\n}\n\n.timeContainer {\n\tborder-collapse:collapse;\n\tborder-spacing:0;\n}\n\n.timeContainer thead {\n\tcolor:#293a4b;\n\tfont-size:0.9em;\n\tfont-weight:700;\n}\n\n.timeContainer thead td {\n\tpadding:0.25em;\n\tfont-size:0.80em;\n\tborder-bottom:1px solid #6782A8;\n}\n\n.timeCorner {\n\twidth:10px;\n}\n\n.cornerTopLeft {\n\tbackground: url(\"images/dpCurveTL.png\") top left no-repeat;\n}\n\n.cornerTopRight {\n\tbackground: url(\"images/dpCurveTR.png\") top right no-repeat;\n}\n\n.timeLabelContainer {\n\tbackground: url(\"images/dpMonthBg.png\") top left repeat-x;\n}\n\n.hours, .minutes, .timeBorder {\n\tbackgroun
 d: #7591bc url(\"images/dpBg.gif\") top left repeat-x;\n\n}\n\n.hours td, .minutes td {\n\tpadding:0.2em;\n\ttext-align:center;\n\tfont-size:0.7em;\n\tfont-weight:bold;\n\tcursor:pointer;\n\tcursor:hand;\n\tcolor:#fff;\n}\n\n.minutes {\n\tborder-left:1px solid #f5d1db;\n}\n\n.hours {\n\tborder-right:1px solid #6782A8;\n}\n\n.hourSelector {\n\tborder-right:1px solid #6782A8;\n\tpadding:5px;\n\tpadding-right:10px;\n}\n\n.minutesSelector {\n\tpadding:5px;\n\tborder-left:1px solid #f5c7d4;\n\ttext-align:center;\n}\n\n.minutesHeading {\n\tpadding-left:9px !important;\n}\n\n.timeOptions {\n\tbackground-color:#F9C9D7;\n}\n\n.timeContainer .cornerBottomLeft, .timeContainer .cornerBottomRight, .timeContainer .timeOptions {\n\tborder-top:1px solid #6782A8;\n}\n\n.timeContainer .cornerBottomLeft {\n\tbackground: url(\"images/dpCurveBL.png\") bottom left no-repeat !important;\n\twidth:9px !important;\n\tpadding:0;\n\tmargin:0;\n}\n\n.timeContainer .cornerBottomRight {\n\tbackground: url
 (\"images/dpCurveBR.png\") bottom right no-repeat !important;\n\twidth:9px !important;\n\tpadding:0;\n\tmargin:0;\n}\n\n.timeOptions {\n\tcolor:#fff;\n\tbackground:url(\"images/dpYearBg.png\") top left repeat-x;\n\n}\n\n.selectedItem {\n\tbackground-color:#fff;\n\tcolor:#6782a8 !important;\n}\n\n.timeOptions .selectedItem {\n\tcolor:#fff !important;\n\tbackground-color:#9ec3fb !important;\n}\n\n.anyTimeContainer {\n\ttext-align:center;\n\tfont-weight:bold;\n\tfont-size:0.7em;\n\tpadding:0.1em;\n\tcursor:pointer;\n\tcursor:hand;\n\tcolor:#fff !important;\n}\n\n.amPmContainer {\n\twidth:100%;\n}\n\n.amPmContainer td {\n\ttext-align:center;\n\tfont-size:0.7em;\n\tfont-weight:bold;\n\tcursor:pointer;\n\tcursor:hand;\n\tcolor:#fff;\n}\n\n\n\n/*.timePickerContainer {\n\tmargin:1.75em 0 0.5em 0;\n\twidth:10em;\n\tfloat:left;\n}\n\n.timeContainer {\n\tborder-collapse:collapse;\n\tborder-spacing:0;\n}\n\n.timeContainer thead td{\n\tborder-bottom:1px solid #e6e6e6;\n\tpadding:0 0.4em 
 0.2em 0.4em;\n}\n\n.timeContainer td {\n\tfont-size:0.9em;\n\tpadding:0 0.25em 0 0.25em;\n\ttext-align:left;\n\tcursor:pointer;cursor:hand;\n}\n\n.timeContainer td.minutesHeading {\n\tborder-left:1px solid #e6e6e6;\n\tborder-right:1px solid #e6e6e6;\t\n}\n\n.timeContainer .minutes {\n\tborder-left:1px solid #e6e6e6;\n\tborder-right:1px solid #e6e6e6;\n}\n\n.selectedItem {\n\tbackground-color:#3a3a3a;\n\tcolor:#ffffff;\n}*/\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/TimePicker.css"),postMixInProperties:function(_1,_2){
+dojo.widget.TimePicker.superclass.postMixInProperties.apply(this,arguments);
+this.calendar=dojo.i18n.getLocalization("dojo.i18n.calendar","gregorian",this.lang);
+this.widgetStrings=dojo.i18n.getLocalization("dojo.widget","TimePicker",this.lang);
+},fillInTemplate:function(_3,_4){
+var _5=this.getFragNodeRef(_4);
+dojo.html.copyStyle(this.domNode,_5);
+if(_3.value){
+if(_3.value instanceof Date){
+this.storedTime=dojo.date.toRfc3339(_3.value);
+}else{
+this.storedTime=_3.value;
+}
+}
+this.initData();
+this.initUI();
+},initData:function(){
+if(this.storedTime.indexOf("T")!=-1&&this.storedTime.split("T")[1]&&this.storedTime!=" "&&this.storedTime.split("T")[1]!="any"){
+this.time=dojo.widget.TimePicker.util.fromRfcDateTime(this.storedTime,this.useDefaultMinutes,this.selectedTime.anyTime);
+}else{
+if(this.useDefaultTime){
+this.time=dojo.widget.TimePicker.util.fromRfcDateTime("",this.useDefaultMinutes,this.selectedTime.anyTime);
+}else{
+this.selectedTime.anyTime=true;
+this.time=dojo.widget.TimePicker.util.fromRfcDateTime("",0,1);
+}
+}
+},initUI:function(){
+if(!this.selectedTime.anyTime&&this.time){
+var _6=dojo.widget.TimePicker.util.toAmPmHour(this.time.getHours());
+var _7=_6[0];
+var _8=_6[1];
+var _9=this.time.getMinutes();
+var _a=parseInt(_9/5);
+this.onSetSelectedHour(this.hourIndexMap[_7]);
+this.onSetSelectedMinute(this.minuteIndexMap[_a]);
+this.onSetSelectedAmPm(_8);
+}else{
+this.onSetSelectedAnyTime();
+}
+},setTime:function(_b){
+if(_b){
+this.selectedTime.anyTime=false;
+this.setDateTime(dojo.date.toRfc3339(_b));
+}else{
+this.selectedTime.anyTime=true;
+}
+this.initData();
+this.initUI();
+},setDateTime:function(_c){
+this.storedTime=_c;
+},onClearSelectedHour:function(_d){
+this.clearSelectedHour();
+},onClearSelectedMinute:function(_e){
+this.clearSelectedMinute();
+},onClearSelectedAmPm:function(_f){
+this.clearSelectedAmPm();
+},onClearSelectedAnyTime:function(evt){
+this.clearSelectedAnyTime();
+if(this.selectedTime.anyTime){
+this.selectedTime.anyTime=false;
+this.time=dojo.widget.TimePicker.util.fromRfcDateTime("",this.useDefaultMinutes);
+this.initUI();
+}
+},clearSelectedHour:function(){
+var _11=this.hourContainerNode.getElementsByTagName("td");
+for(var i=0;i<_11.length;i++){
+dojo.html.setClass(_11.item(i),"");
+}
+},clearSelectedMinute:function(){
+var _13=this.minuteContainerNode.getElementsByTagName("td");
+for(var i=0;i<_13.length;i++){
+dojo.html.setClass(_13.item(i),"");
+}
+},clearSelectedAmPm:function(){
+var _15=this.amPmContainerNode.getElementsByTagName("td");
+for(var i=0;i<_15.length;i++){
+dojo.html.setClass(_15.item(i),"");
+}
+},clearSelectedAnyTime:function(){
+dojo.html.setClass(this.anyTimeContainerNode,"anyTimeContainer");
+},onSetSelectedHour:function(evt){
+this.onClearSelectedAnyTime();
+this.onClearSelectedHour();
+this.setSelectedHour(evt);
+this.onSetTime();
+},setSelectedHour:function(evt){
+if(evt&&evt.target){
+if(evt.target.nodeType==dojo.dom.ELEMENT_NODE){
+var _19=evt.target;
+}else{
+var _19=evt.target.parentNode;
+}
+dojo.event.browser.stopEvent(evt);
+dojo.html.setClass(_19,this.classNames.selectedTime);
+this.selectedTime["hour"]=_19.innerHTML;
+}else{
+if(!isNaN(evt)){
+var _1a=this.hourContainerNode.getElementsByTagName("td");
+if(_1a.item(evt)){
+dojo.html.setClass(_1a.item(evt),this.classNames.selectedTime);
+this.selectedTime["hour"]=_1a.item(evt).innerHTML;
+}
+}
+}
+this.selectedTime.anyTime=false;
+},onSetSelectedMinute:function(evt){
+this.onClearSelectedAnyTime();
+this.onClearSelectedMinute();
+this.setSelectedMinute(evt);
+this.selectedTime.anyTime=false;
+this.onSetTime();
+},setSelectedMinute:function(evt){
+if(evt&&evt.target){
+if(evt.target.nodeType==dojo.dom.ELEMENT_NODE){
+var _1d=evt.target;
+}else{
+var _1d=evt.target.parentNode;
+}
+dojo.event.browser.stopEvent(evt);
+dojo.html.setClass(_1d,this.classNames.selectedTime);
+this.selectedTime["minute"]=_1d.innerHTML;
+}else{
+if(!isNaN(evt)){
+var _1e=this.minuteContainerNode.getElementsByTagName("td");
+if(_1e.item(evt)){
+dojo.html.setClass(_1e.item(evt),this.classNames.selectedTime);
+this.selectedTime["minute"]=_1e.item(evt).innerHTML;
+}
+}
+}
+},onSetSelectedAmPm:function(evt){
+this.onClearSelectedAnyTime();
+this.onClearSelectedAmPm();
+this.setSelectedAmPm(evt);
+this.selectedTime.anyTime=false;
+this.onSetTime();
+},setSelectedAmPm:function(evt){
+var _21=evt.target;
+if(evt&&_21){
+if(_21.nodeType!=dojo.dom.ELEMENT_NODE){
+_21=_21.parentNode;
+}
+dojo.event.browser.stopEvent(evt);
+this.selectedTime.amPm=_21.id;
+dojo.html.setClass(_21,this.classNames.selectedTime);
+}else{
+evt=evt?0:1;
+var _22=this.amPmContainerNode.getElementsByTagName("td");
+if(_22.item(evt)){
+this.selectedTime.amPm=_22.item(evt).id;
+dojo.html.setClass(_22.item(evt),this.classNames.selectedTime);
+}
+}
+},onSetSelectedAnyTime:function(evt){
+this.onClearSelectedHour();
+this.onClearSelectedMinute();
+this.onClearSelectedAmPm();
+this.setSelectedAnyTime();
+this.onSetTime();
+},setSelectedAnyTime:function(evt){
+this.selectedTime.anyTime=true;
+dojo.html.setClass(this.anyTimeContainerNode,this.classNames.selectedTime+" "+"anyTimeContainer");
+},onClick:function(evt){
+dojo.event.browser.stopEvent(evt);
+},onSetTime:function(){
+if(this.selectedTime.anyTime){
+this.time=new Date();
+var _26=dojo.widget.TimePicker.util.toRfcDateTime(this.time);
+this.setDateTime(_26.split("T")[0]);
+}else{
+var _27=12;
+var _28=0;
+var _29=false;
+if(this.selectedTime["hour"]){
+_27=parseInt(this.selectedTime["hour"],10);
+}
+if(this.selectedTime["minute"]){
+_28=parseInt(this.selectedTime["minute"],10);
+}
+if(this.selectedTime["amPm"]){
+_29=(this.selectedTime["amPm"].toLowerCase()=="am");
+}
+this.time=new Date();
+this.time.setHours(dojo.widget.TimePicker.util.fromAmPmHour(_27,_29));
+this.time.setMinutes(_28);
+this.setDateTime(dojo.widget.TimePicker.util.toRfcDateTime(this.time));
+}
+this.onValueChanged(this.time);
+},onValueChanged:function(_2a){
+}});
+dojo.widget.TimePicker.util=new function(){
+this.toRfcDateTime=function(_2b){
+if(!_2b){
+_2b=new Date();
+}
+_2b.setSeconds(0);
+return dojo.date.strftime(_2b,"%Y-%m-%dT%H:%M:00%z");
+};
+this.fromRfcDateTime=function(_2c,_2d,_2e){
+var _2f=new Date();
+if(!_2c||_2c.indexOf("T")==-1){
+if(_2d){
+_2f.setMinutes(Math.floor(_2f.getMinutes()/5)*5);
+}else{
+_2f.setMinutes(0);
+}
+}else{
+var _30=_2c.split("T")[1].split(":");
+var _2f=new Date();
+_2f.setHours(_30[0]);
+_2f.setMinutes(_30[1]);
+}
+return _2f;
+};
+this.toAmPmHour=function(_31){
+var _32=_31;
+var _33=true;
+if(_32==0){
+_32=12;
+}else{
+if(_32>12){
+_32=_32-12;
+_33=false;
+}else{
+if(_32==12){
+_33=false;
+}
+}
+}
+return [_32,_33];
+};
+this.fromAmPmHour=function(_34,_35){
+var _36=parseInt(_34,10);
+if(_35&&_36==12){
+_36=0;
+}else{
+if(!_35&&_36<12){
+_36=_36+12;
+}
+}
+return _36;
+};
+};

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TitlePane.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TitlePane.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TitlePane.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/TitlePane.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,30 @@
+dojo.provide("dojo.widget.TitlePane");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.widget.ContentPane");
+dojo.require("dojo.html.style");
+dojo.require("dojo.lfx.*");
+dojo.widget.defineWidget("dojo.widget.TitlePane",dojo.widget.ContentPane,{labelNodeClass:"",containerNodeClass:"",label:"",open:true,templateString:"<div dojoAttachPoint=\"domNode\">\n<div dojoAttachPoint=\"labelNode\" dojoAttachEvent=\"onclick: onLabelClick\"></div>\n<div dojoAttachPoint=\"containerNode\"></div>\n</div>\n",postCreate:function(){
+if(this.label){
+this.labelNode.appendChild(document.createTextNode(this.label));
+}
+if(this.labelNodeClass){
+dojo.html.addClass(this.labelNode,this.labelNodeClass);
+}
+if(this.containerNodeClass){
+dojo.html.addClass(this.containerNode,this.containerNodeClass);
+}
+if(!this.open){
+dojo.html.hide(this.containerNode);
+}
+dojo.widget.TitlePane.superclass.postCreate.apply(this,arguments);
+},onLabelClick:function(){
+if(this.open){
+dojo.lfx.wipeOut(this.containerNode,250).play();
+this.open=false;
+}else{
+dojo.lfx.wipeIn(this.containerNode,250).play();
+this.open=true;
+}
+},setLabel:function(_1){
+this.labelNode.innerHTML=_1;
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toaster.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toaster.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toaster.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toaster.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,150 @@
+dojo.provide("dojo.widget.Toaster");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.lfx.*");
+dojo.require("dojo.html.iframe");
+dojo.widget.defineWidget("dojo.widget.Toaster",dojo.widget.HtmlWidget,{templateString:"<div dojoAttachPoint=\"clipNode\"><div dojoAttachPoint=\"containerNode\" dojoAttachEvent=\"onClick:onSelect\"><div dojoAttachPoint=\"contentNode\"></div></div></div>",templateCssString:".dojoToasterClip {\n\tposition: absolute;\n\toverflow: hidden;\n}\n\n.dojoToasterContainer {\n\tdisplay: block;\n\tposition: absolute;\n\twidth: 17.5em;\n\tz-index: 5000;\n\tmargin: 0px;\n\tfont:0.75em Tahoma, Helvetica, Verdana, Arial;\n}\n\n.dojoToasterContent{\n\tpadding:1em;\n\tpadding-top:0.25em;\n\tbackground:#73c74a;\n}\n\n.dojoToasterMessage{ \n\tcolor:#fff;\n}\n.dojoToasterWarning{ }\n.dojoToasterError,\n.dojoToasterFatal{\n\tfont-weight:bold;\n\tcolor:#fff;\n}\n\n\n.dojoToasterWarning .dojoToasterContent{\n\tpadding:1em;\n\tpadding-top:0.25em;\n\tbackground:#d4d943;\n} \n\n.dojoToasterError .dojoToasterContent{\n\tpadding:1em;\n\tpadding-top:0.25em;\n\tbackground:#c46600;\n} \n",templateCssPath:do
 jo.uri.moduleUri("dojo.widget","templates/Toaster.css"),messageTopic:"",messageTypes:{MESSAGE:"MESSAGE",WARNING:"WARNING",ERROR:"ERROR",FATAL:"FATAL"},defaultType:"MESSAGE",clipCssClass:"dojoToasterClip",containerCssClass:"dojoToasterContainer",contentCssClass:"dojoToasterContent",messageCssClass:"dojoToasterMessage",warningCssClass:"dojoToasterWarning",errorCssClass:"dojoToasterError",fatalCssClass:"dojoToasterFatal",positionDirection:"br-up",positionDirectionTypes:["br-up","br-left","bl-up","bl-right","tr-down","tr-left","tl-down","tl-right"],showDelay:2000,postCreate:function(){
+this.hide();
+dojo.html.setClass(this.clipNode,this.clipCssClass);
+dojo.html.addClass(this.containerNode,this.containerCssClass);
+dojo.html.setClass(this.contentNode,this.contentCssClass);
+if(this.messageTopic){
+dojo.event.topic.subscribe(this.messageTopic,this,"_handleMessage");
+}
+if(!this.positionDirection||!dojo.lang.inArray(this.positionDirectionTypes,this.positionDirection)){
+this.positionDirection=this.positionDirectionTypes.BRU;
+}
+},_handleMessage:function(_1){
+if(dojo.lang.isString(_1)){
+this.setContent(_1);
+}else{
+this.setContent(_1["message"],_1["type"],_1["delay"]);
+}
+},setContent:function(_2,_3,_4){
+var _4=_4||this.showDelay;
+if(this.slideAnim&&this.slideAnim.status()=="playing"){
+dojo.lang.setTimeout(50,dojo.lang.hitch(this,function(){
+this.setContent(_2,_3);
+}));
+return;
+}else{
+if(this.slideAnim){
+this.slideAnim.stop();
+if(this.fadeAnim){
+this.fadeAnim.stop();
+}
+}
+}
+if(!_2){
+dojo.debug(this.widgetId+".setContent() incoming content was null, ignoring.");
+return;
+}
+if(!this.positionDirection||!dojo.lang.inArray(this.positionDirectionTypes,this.positionDirection)){
+dojo.raise(this.widgetId+".positionDirection is an invalid value: "+this.positionDirection);
+}
+dojo.html.removeClass(this.containerNode,this.messageCssClass);
+dojo.html.removeClass(this.containerNode,this.warningCssClass);
+dojo.html.removeClass(this.containerNode,this.errorCssClass);
+dojo.html.removeClass(this.containerNode,this.fatalCssClass);
+dojo.html.clearOpacity(this.containerNode);
+if(_2 instanceof String||typeof _2=="string"){
+this.contentNode.innerHTML=_2;
+}else{
+if(dojo.html.isNode(_2)){
+this.contentNode.innerHTML=dojo.html.getContentAsString(_2);
+}else{
+dojo.raise("Toaster.setContent(): msg is of unknown type:"+_2);
+}
+}
+switch(_3){
+case this.messageTypes.WARNING:
+dojo.html.addClass(this.containerNode,this.warningCssClass);
+break;
+case this.messageTypes.ERROR:
+dojo.html.addClass(this.containerNode,this.errorCssClass);
+break;
+case this.messageTypes.FATAL:
+dojo.html.addClass(this.containerNode,this.fatalCssClass);
+break;
+case this.messageTypes.MESSAGE:
+default:
+dojo.html.addClass(this.containerNode,this.messageCssClass);
+break;
+}
+this.show();
+var _5=dojo.html.getMarginBox(this.containerNode);
+if(this.positionDirection.indexOf("-up")>=0){
+this.containerNode.style.left=0+"px";
+this.containerNode.style.top=_5.height+10+"px";
+}else{
+if(this.positionDirection.indexOf("-left")>=0){
+this.containerNode.style.left=_5.width+10+"px";
+this.containerNode.style.top=0+"px";
+}else{
+if(this.positionDirection.indexOf("-right")>=0){
+this.containerNode.style.left=0-_5.width-10+"px";
+this.containerNode.style.top=0+"px";
+}else{
+if(this.positionDirection.indexOf("-down")>=0){
+this.containerNode.style.left=0+"px";
+this.containerNode.style.top=0-_5.height-10+"px";
+}else{
+dojo.raise(this.widgetId+".positionDirection is an invalid value: "+this.positionDirection);
+}
+}
+}
+}
+this.slideAnim=dojo.lfx.html.slideTo(this.containerNode,{top:0,left:0},450,null,dojo.lang.hitch(this,function(_6,_7){
+dojo.lang.setTimeout(dojo.lang.hitch(this,function(_8){
+if(this.bgIframe){
+this.bgIframe.hide();
+}
+this.fadeAnim=dojo.lfx.html.fadeOut(this.containerNode,1000,null,dojo.lang.hitch(this,function(_9){
+this.hide();
+})).play();
+}),_4);
+})).play();
+},_placeClip:function(){
+var _a=dojo.html.getScroll();
+var _b=dojo.html.getViewport();
+var _c=dojo.html.getMarginBox(this.containerNode);
+this.clipNode.style.height=_c.height+"px";
+this.clipNode.style.width=_c.width+"px";
+if(this.positionDirection.match(/^t/)){
+this.clipNode.style.top=_a.top+"px";
+}else{
+if(this.positionDirection.match(/^b/)){
+this.clipNode.style.top=(_b.height-_c.height-2+_a.top)+"px";
+}
+}
+if(this.positionDirection.match(/^[tb]r-/)){
+this.clipNode.style.left=(_b.width-_c.width-1-_a.left)+"px";
+}else{
+if(this.positionDirection.match(/^[tb]l-/)){
+this.clipNode.style.left=0+"px";
+}
+}
+this.clipNode.style.clip="rect(0px, "+_c.width+"px, "+_c.height+"px, 0px)";
+if(dojo.render.html.ie){
+if(!this.bgIframe){
+this.bgIframe=new dojo.html.BackgroundIframe(this.containerNode);
+this.bgIframe.setZIndex(this.containerNode);
+}
+this.bgIframe.onResized();
+this.bgIframe.show();
+}
+},onSelect:function(e){
+},show:function(){
+dojo.widget.Toaster.superclass.show.call(this);
+this._placeClip();
+if(!this._scrollConnected){
+this._scrollConnected=true;
+dojo.event.connect(window,"onscroll",this,"_placeClip");
+}
+},hide:function(){
+dojo.widget.Toaster.superclass.hide.call(this);
+if(this._scrollConnected){
+this._scrollConnected=false;
+dojo.event.disconnect(window,"onscroll",this,"_placeClip");
+}
+dojo.html.setOpacity(this.containerNode,1);
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toggler.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toggler.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toggler.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toggler.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,13 @@
+dojo.provide("dojo.widget.Toggler");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.event.*");
+dojo.widget.defineWidget("dojo.widget.Toggler",dojo.widget.HtmlWidget,{targetId:"",fillInTemplate:function(){
+dojo.event.connect(this.domNode,"onclick",this,"onClick");
+},onClick:function(){
+var _1=dojo.widget.byId(this.targetId);
+if(!_1){
+return;
+}
+_1.explodeSrc=this.domNode;
+_1.toggleShowing();
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toolbar.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toolbar.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toolbar.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Toolbar.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,711 @@
+dojo.provide("dojo.widget.Toolbar");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.html.style");
+dojo.widget.defineWidget("dojo.widget.ToolbarContainer",dojo.widget.HtmlWidget,{isContainer:true,templateString:"<div class=\"toolbarContainer\" dojoAttachPoint=\"containerNode\"></div>",templateCssString:".toolbarContainer {\n\tborder-bottom : 0;\n\tbackground-color : #def;\n\tcolor : ButtonText;\n\tfont : Menu;\n\tbackground-image: url(images/toolbar-bg.gif);\n}\n\n.toolbar {\n\tpadding : 2px 4px;\n\tmin-height : 26px;\n\t_height : 26px;\n}\n\n.toolbarItem {\n\tfloat : left;\n\tpadding : 1px 2px;\n\tmargin : 0 2px 1px 0;\n\tcursor : pointer;\n}\n\n.toolbarItem.selected, .toolbarItem.down {\n\tmargin : 1px 1px 0 1px;\n\tpadding : 0px 1px;\n\tborder : 1px solid #bbf;\n\tbackground-color : #fafaff;\n}\n\n.toolbarButton img {\n\tvertical-align : bottom;\n}\n\n.toolbarButton span {\n\tline-height : 16px;\n\tvertical-align : middle;\n}\n\n.toolbarButton.hover {\n\tpadding : 0px 1px;\n\tborder : 1px solid #99c;\n}\n\n.toolbarItem.disabled {\n\topacity : 0.3;\n\tfilter : alpha(opa
 city=30);\n\tcursor : default;\n}\n\n.toolbarSeparator {\n\tcursor : default;\n}\n\n.toolbarFlexibleSpace {\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/Toolbar.css"),getItem:function(_1){
+if(_1 instanceof dojo.widget.ToolbarItem){
+return _1;
+}
+for(var i=0;i<this.children.length;i++){
+var _3=this.children[i];
+if(_3 instanceof dojo.widget.Toolbar){
+var _4=_3.getItem(_1);
+if(_4){
+return _4;
+}
+}
+}
+return null;
+},getItems:function(){
+var _5=[];
+for(var i=0;i<this.children.length;i++){
+var _7=this.children[i];
+if(_7 instanceof dojo.widget.Toolbar){
+_5=_5.concat(_7.getItems());
+}
+}
+return _5;
+},enable:function(){
+for(var i=0;i<this.children.length;i++){
+var _9=this.children[i];
+if(_9 instanceof dojo.widget.Toolbar){
+_9.enable.apply(_9,arguments);
+}
+}
+},disable:function(){
+for(var i=0;i<this.children.length;i++){
+var _b=this.children[i];
+if(_b instanceof dojo.widget.Toolbar){
+_b.disable.apply(_b,arguments);
+}
+}
+},select:function(_c){
+for(var i=0;i<this.children.length;i++){
+var _e=this.children[i];
+if(_e instanceof dojo.widget.Toolbar){
+_e.select(arguments);
+}
+}
+},deselect:function(_f){
+for(var i=0;i<this.children.length;i++){
+var _11=this.children[i];
+if(_11 instanceof dojo.widget.Toolbar){
+_11.deselect(arguments);
+}
+}
+},getItemsState:function(){
+var _12={};
+for(var i=0;i<this.children.length;i++){
+var _14=this.children[i];
+if(_14 instanceof dojo.widget.Toolbar){
+dojo.lang.mixin(_12,_14.getItemsState());
+}
+}
+return _12;
+},getItemsActiveState:function(){
+var _15={};
+for(var i=0;i<this.children.length;i++){
+var _17=this.children[i];
+if(_17 instanceof dojo.widget.Toolbar){
+dojo.lang.mixin(_15,_17.getItemsActiveState());
+}
+}
+return _15;
+},getItemsSelectedState:function(){
+var _18={};
+for(var i=0;i<this.children.length;i++){
+var _1a=this.children[i];
+if(_1a instanceof dojo.widget.Toolbar){
+dojo.lang.mixin(_18,_1a.getItemsSelectedState());
+}
+}
+return _18;
+}});
+dojo.widget.defineWidget("dojo.widget.Toolbar",dojo.widget.HtmlWidget,{isContainer:true,templateString:"<div class=\"toolbar\" dojoAttachPoint=\"containerNode\" unselectable=\"on\" dojoOnMouseover=\"_onmouseover\" dojoOnMouseout=\"_onmouseout\" dojoOnClick=\"_onclick\" dojoOnMousedown=\"_onmousedown\" dojoOnMouseup=\"_onmouseup\"></div>",_getItem:function(_1b){
+var _1c=new Date();
+var _1d=null;
+while(_1b&&_1b!=this.domNode){
+if(dojo.html.hasClass(_1b,"toolbarItem")){
+var _1e=dojo.widget.manager.getWidgetsByFilter(function(w){
+return w.domNode==_1b;
+});
+if(_1e.length==1){
+_1d=_1e[0];
+break;
+}else{
+if(_1e.length>1){
+dojo.raise("Toolbar._getItem: More than one widget matches the node");
+}
+}
+}
+_1b=_1b.parentNode;
+}
+return _1d;
+},_onmouseover:function(e){
+var _21=this._getItem(e.target);
+if(_21&&_21._onmouseover){
+_21._onmouseover(e);
+}
+},_onmouseout:function(e){
+var _23=this._getItem(e.target);
+if(_23&&_23._onmouseout){
+_23._onmouseout(e);
+}
+},_onclick:function(e){
+var _25=this._getItem(e.target);
+if(_25&&_25._onclick){
+_25._onclick(e);
+}
+},_onmousedown:function(e){
+var _27=this._getItem(e.target);
+if(_27&&_27._onmousedown){
+_27._onmousedown(e);
+}
+},_onmouseup:function(e){
+var _29=this._getItem(e.target);
+if(_29&&_29._onmouseup){
+_29._onmouseup(e);
+}
+},addChild:function(_2a,pos,_2c){
+var _2d=dojo.widget.ToolbarItem.make(_2a,null,_2c);
+var ret=dojo.widget.Toolbar.superclass.addChild.call(this,_2d,null,pos,null);
+return ret;
+},push:function(){
+for(var i=0;i<arguments.length;i++){
+this.addChild(arguments[i]);
+}
+},getItem:function(_30){
+if(_30 instanceof dojo.widget.ToolbarItem){
+return _30;
+}
+for(var i=0;i<this.children.length;i++){
+var _32=this.children[i];
+if(_32 instanceof dojo.widget.ToolbarItem&&_32._name==_30){
+return _32;
+}
+}
+return null;
+},getItems:function(){
+var _33=[];
+for(var i=0;i<this.children.length;i++){
+var _35=this.children[i];
+if(_35 instanceof dojo.widget.ToolbarItem){
+_33.push(_35);
+}
+}
+return _33;
+},getItemsState:function(){
+var _36={};
+for(var i=0;i<this.children.length;i++){
+var _38=this.children[i];
+if(_38 instanceof dojo.widget.ToolbarItem){
+_36[_38._name]={selected:_38._selected,enabled:!_38.disabled};
+}
+}
+return _36;
+},getItemsActiveState:function(){
+var _39=this.getItemsState();
+for(var _3a in _39){
+_39[_3a]=_39[_3a].enabled;
+}
+return _39;
+},getItemsSelectedState:function(){
+var _3b=this.getItemsState();
+for(var _3c in _3b){
+_3b[_3c]=_3b[_3c].selected;
+}
+return _3b;
+},enable:function(){
+var _3d=arguments.length?arguments:this.children;
+for(var i=0;i<_3d.length;i++){
+var _3f=this.getItem(_3d[i]);
+if(_3f instanceof dojo.widget.ToolbarItem){
+_3f.enable(false,true);
+}
+}
+},disable:function(){
+var _40=arguments.length?arguments:this.children;
+for(var i=0;i<_40.length;i++){
+var _42=this.getItem(_40[i]);
+if(_42 instanceof dojo.widget.ToolbarItem){
+_42.disable();
+}
+}
+},select:function(){
+for(var i=0;i<arguments.length;i++){
+var _44=arguments[i];
+var _45=this.getItem(_44);
+if(_45){
+_45.select();
+}
+}
+},deselect:function(){
+for(var i=0;i<arguments.length;i++){
+var _47=arguments[i];
+var _48=this.getItem(_47);
+if(_48){
+_48.disable();
+}
+}
+},setValue:function(){
+for(var i=0;i<arguments.length;i+=2){
+var _4a=arguments[i],_4b=arguments[i+1];
+var _4c=this.getItem(_4a);
+if(_4c){
+if(_4c instanceof dojo.widget.ToolbarItem){
+_4c.setValue(_4b);
+}
+}
+}
+}});
+dojo.widget.defineWidget("dojo.widget.ToolbarItem",dojo.widget.HtmlWidget,{templateString:"<span unselectable=\"on\" class=\"toolbarItem\"></span>",_name:null,getName:function(){
+return this._name;
+},setName:function(_4d){
+return (this._name=_4d);
+},getValue:function(){
+return this.getName();
+},setValue:function(_4e){
+return this.setName(_4e);
+},_selected:false,isSelected:function(){
+return this._selected;
+},setSelected:function(is,_50,_51){
+if(!this._toggleItem&&!_50){
+return;
+}
+is=Boolean(is);
+if(_50||!this.disabled&&this._selected!=is){
+this._selected=is;
+this.update();
+if(!_51){
+this._fireEvent(is?"onSelect":"onDeselect");
+this._fireEvent("onChangeSelect");
+}
+}
+},select:function(_52,_53){
+return this.setSelected(true,_52,_53);
+},deselect:function(_54,_55){
+return this.setSelected(false,_54,_55);
+},_toggleItem:false,isToggleItem:function(){
+return this._toggleItem;
+},setToggleItem:function(_56){
+this._toggleItem=Boolean(_56);
+},toggleSelected:function(_57){
+return this.setSelected(!this._selected,_57);
+},isEnabled:function(){
+return !this.disabled;
+},setEnabled:function(is,_59,_5a){
+is=Boolean(is);
+if(_59||this.disabled==is){
+this.disabled=!is;
+this.update();
+if(!_5a){
+this._fireEvent(this.disabled?"onDisable":"onEnable");
+this._fireEvent("onChangeEnabled");
+}
+}
+return !this.disabled;
+},enable:function(_5b,_5c){
+return this.setEnabled(true,_5b,_5c);
+},disable:function(_5d,_5e){
+return this.setEnabled(false,_5d,_5e);
+},toggleEnabled:function(_5f,_60){
+return this.setEnabled(this.disabled,_5f,_60);
+},_icon:null,getIcon:function(){
+return this._icon;
+},setIcon:function(_61){
+var _62=dojo.widget.Icon.make(_61);
+if(this._icon){
+this._icon.setIcon(_62);
+}else{
+this._icon=_62;
+}
+var _63=this._icon.getNode();
+if(_63.parentNode!=this.domNode){
+if(this.domNode.hasChildNodes()){
+this.domNode.insertBefore(_63,this.domNode.firstChild);
+}else{
+this.domNode.appendChild(_63);
+}
+}
+return this._icon;
+},_label:"",getLabel:function(){
+return this._label;
+},setLabel:function(_64){
+var ret=(this._label=_64);
+if(!this.labelNode){
+this.labelNode=document.createElement("span");
+this.domNode.appendChild(this.labelNode);
+}
+this.labelNode.innerHTML="";
+this.labelNode.appendChild(document.createTextNode(this._label));
+this.update();
+return ret;
+},update:function(){
+if(this.disabled){
+this._selected=false;
+dojo.html.addClass(this.domNode,"disabled");
+dojo.html.removeClass(this.domNode,"down");
+dojo.html.removeClass(this.domNode,"hover");
+}else{
+dojo.html.removeClass(this.domNode,"disabled");
+if(this._selected){
+dojo.html.addClass(this.domNode,"selected");
+}else{
+dojo.html.removeClass(this.domNode,"selected");
+}
+}
+this._updateIcon();
+},_updateIcon:function(){
+if(this._icon){
+if(this.disabled){
+this._icon.disable();
+}else{
+if(this._cssHover){
+this._icon.hover();
+}else{
+if(this._selected){
+this._icon.select();
+}else{
+this._icon.enable();
+}
+}
+}
+}
+},_fireEvent:function(evt){
+if(typeof this[evt]=="function"){
+var _67=[this];
+for(var i=1;i<arguments.length;i++){
+_67.push(arguments[i]);
+}
+this[evt].apply(this,_67);
+}
+},_onmouseover:function(e){
+if(this.disabled){
+return;
+}
+dojo.html.addClass(this.domNode,"hover");
+this._fireEvent("onMouseOver");
+},_onmouseout:function(e){
+dojo.html.removeClass(this.domNode,"hover");
+dojo.html.removeClass(this.domNode,"down");
+if(!this._selected){
+dojo.html.removeClass(this.domNode,"selected");
+}
+this._fireEvent("onMouseOut");
+},_onclick:function(e){
+if(!this.disabled&&!this._toggleItem){
+this._fireEvent("onClick");
+}
+},_onmousedown:function(e){
+if(e.preventDefault){
+e.preventDefault();
+}
+if(this.disabled){
+return;
+}
+dojo.html.addClass(this.domNode,"down");
+if(this._toggleItem){
+if(this.parent.preventDeselect&&this._selected){
+return;
+}
+this.toggleSelected();
+}
+this._fireEvent("onMouseDown");
+},_onmouseup:function(e){
+dojo.html.removeClass(this.domNode,"down");
+this._fireEvent("onMouseUp");
+},onClick:function(){
+},onMouseOver:function(){
+},onMouseOut:function(){
+},onMouseDown:function(){
+},onMouseUp:function(){
+},fillInTemplate:function(_6e,_6f){
+if(_6e.name){
+this._name=_6e.name;
+}
+if(_6e.selected){
+this.select();
+}
+if(_6e.disabled){
+this.disable();
+}
+if(_6e.label){
+this.setLabel(_6e.label);
+}
+if(_6e.icon){
+this.setIcon(_6e.icon);
+}
+if(_6e.toggleitem||_6e.toggleItem){
+this.setToggleItem(true);
+}
+}});
+dojo.widget.ToolbarItem.make=function(wh,_71,_72){
+var _73=null;
+if(wh instanceof Array){
+_73=dojo.widget.createWidget("ToolbarButtonGroup",_72);
+_73.setName(wh[0]);
+for(var i=1;i<wh.length;i++){
+_73.addChild(wh[i]);
+}
+}else{
+if(wh instanceof dojo.widget.ToolbarItem){
+_73=wh;
+}else{
+if(wh instanceof dojo.uri.Uri){
+_73=dojo.widget.createWidget("ToolbarButton",dojo.lang.mixin(_72||{},{icon:new dojo.widget.Icon(wh.toString())}));
+}else{
+if(_71){
+_73=dojo.widget.createWidget(wh,_72);
+}else{
+if(typeof wh=="string"||wh instanceof String){
+switch(wh.charAt(0)){
+case "|":
+case "-":
+case "/":
+_73=dojo.widget.createWidget("ToolbarSeparator",_72);
+break;
+case " ":
+if(wh.length==1){
+_73=dojo.widget.createWidget("ToolbarSpace",_72);
+}else{
+_73=dojo.widget.createWidget("ToolbarFlexibleSpace",_72);
+}
+break;
+default:
+if(/\.(gif|jpg|jpeg|png)$/i.test(wh)){
+_73=dojo.widget.createWidget("ToolbarButton",dojo.lang.mixin(_72||{},{icon:new dojo.widget.Icon(wh.toString())}));
+}else{
+_73=dojo.widget.createWidget("ToolbarButton",dojo.lang.mixin(_72||{},{label:wh.toString()}));
+}
+}
+}else{
+if(wh&&wh.tagName&&/^img$/i.test(wh.tagName)){
+_73=dojo.widget.createWidget("ToolbarButton",dojo.lang.mixin(_72||{},{icon:wh}));
+}else{
+_73=dojo.widget.createWidget("ToolbarButton",dojo.lang.mixin(_72||{},{label:wh.toString()}));
+}
+}
+}
+}
+}
+}
+return _73;
+};
+dojo.widget.defineWidget("dojo.widget.ToolbarButtonGroup",dojo.widget.ToolbarItem,{isContainer:true,templateString:"<span unselectable=\"on\" class=\"toolbarButtonGroup\" dojoAttachPoint=\"containerNode\"></span>",defaultButton:"",postCreate:function(){
+for(var i=0;i<this.children.length;i++){
+this._injectChild(this.children[i]);
+}
+},addChild:function(_76,pos,_78){
+var _79=dojo.widget.ToolbarItem.make(_76,null,dojo.lang.mixin(_78||{},{toggleItem:true}));
+var ret=dojo.widget.ToolbarButtonGroup.superclass.addChild.call(this,_79,null,pos,null);
+this._injectChild(_79);
+return ret;
+},_injectChild:function(_7b){
+dojo.event.connect(_7b,"onSelect",this,"onChildSelected");
+dojo.event.connect(_7b,"onDeselect",this,"onChildDeSelected");
+if(_7b._name==this.defaultButton||(typeof this.defaultButton=="number"&&this.children.length-1==this.defaultButton)){
+_7b.select(false,true);
+}
+},getItem:function(_7c){
+if(_7c instanceof dojo.widget.ToolbarItem){
+return _7c;
+}
+for(var i=0;i<this.children.length;i++){
+var _7e=this.children[i];
+if(_7e instanceof dojo.widget.ToolbarItem&&_7e._name==_7c){
+return _7e;
+}
+}
+return null;
+},getItems:function(){
+var _7f=[];
+for(var i=0;i<this.children.length;i++){
+var _81=this.children[i];
+if(_81 instanceof dojo.widget.ToolbarItem){
+_7f.push(_81);
+}
+}
+return _7f;
+},onChildSelected:function(e){
+this.select(e._name);
+},onChildDeSelected:function(e){
+this._fireEvent("onChangeSelect",this._value);
+},enable:function(_84,_85){
+for(var i=0;i<this.children.length;i++){
+var _87=this.children[i];
+if(_87 instanceof dojo.widget.ToolbarItem){
+_87.enable(_84,_85);
+if(_87._name==this._value){
+_87.select(_84,_85);
+}
+}
+}
+},disable:function(_88,_89){
+for(var i=0;i<this.children.length;i++){
+var _8b=this.children[i];
+if(_8b instanceof dojo.widget.ToolbarItem){
+_8b.disable(_88,_89);
+}
+}
+},_value:"",getValue:function(){
+return this._value;
+},select:function(_8c,_8d,_8e){
+for(var i=0;i<this.children.length;i++){
+var _90=this.children[i];
+if(_90 instanceof dojo.widget.ToolbarItem){
+if(_90._name==_8c){
+_90.select(_8d,_8e);
+this._value=_8c;
+}else{
+_90.deselect(true,true);
+}
+}
+}
+if(!_8e){
+this._fireEvent("onSelect",this._value);
+this._fireEvent("onChangeSelect",this._value);
+}
+},setValue:this.select,preventDeselect:false});
+dojo.widget.defineWidget("dojo.widget.ToolbarButton",dojo.widget.ToolbarItem,{fillInTemplate:function(_91,_92){
+dojo.widget.ToolbarButton.superclass.fillInTemplate.call(this,_91,_92);
+dojo.html.addClass(this.domNode,"toolbarButton");
+if(this._icon){
+this.setIcon(this._icon);
+}
+if(this._label){
+this.setLabel(this._label);
+}
+if(!this._name){
+if(this._label){
+this.setName(this._label);
+}else{
+if(this._icon){
+var src=this._icon.getSrc("enabled").match(/[\/^]([^\.\/]+)\.(gif|jpg|jpeg|png)$/i);
+if(src){
+this.setName(src[1]);
+}
+}else{
+this._name=this._widgetId;
+}
+}
+}
+}});
+dojo.widget.defineWidget("dojo.widget.ToolbarDialog",dojo.widget.ToolbarButton,{fillInTemplate:function(_94,_95){
+dojo.widget.ToolbarDialog.superclass.fillInTemplate.call(this,_94,_95);
+dojo.event.connect(this,"onSelect",this,"showDialog");
+dojo.event.connect(this,"onDeselect",this,"hideDialog");
+},showDialog:function(e){
+dojo.lang.setTimeout(dojo.event.connect,1,document,"onmousedown",this,"deselect");
+},hideDialog:function(e){
+dojo.event.disconnect(document,"onmousedown",this,"deselect");
+}});
+dojo.widget.defineWidget("dojo.widget.ToolbarMenu",dojo.widget.ToolbarDialog,{});
+dojo.widget.ToolbarMenuItem=function(){
+};
+dojo.widget.defineWidget("dojo.widget.ToolbarSeparator",dojo.widget.ToolbarItem,{templateString:"<span unselectable=\"on\" class=\"toolbarItem toolbarSeparator\"></span>",defaultIconPath:new dojo.uri.moduleUri("dojo.widget","templates/buttons/sep.gif"),fillInTemplate:function(_98,_99,_9a){
+dojo.widget.ToolbarSeparator.superclass.fillInTemplate.call(this,_98,_99);
+this._name=this.widgetId;
+if(!_9a){
+if(!this._icon){
+this.setIcon(this.defaultIconPath);
+}
+this.domNode.appendChild(this._icon.getNode());
+}
+},_onmouseover:null,_onmouseout:null,_onclick:null,_onmousedown:null,_onmouseup:null});
+dojo.widget.defineWidget("dojo.widget.ToolbarSpace",dojo.widget.ToolbarSeparator,{fillInTemplate:function(_9b,_9c,_9d){
+dojo.widget.ToolbarSpace.superclass.fillInTemplate.call(this,_9b,_9c,true);
+if(!_9d){
+dojo.html.addClass(this.domNode,"toolbarSpace");
+}
+}});
+dojo.widget.defineWidget("dojo.widget.ToolbarSelect",dojo.widget.ToolbarItem,{templateString:"<span class=\"toolbarItem toolbarSelect\" unselectable=\"on\"><select dojoAttachPoint=\"selectBox\" dojoOnChange=\"changed\"></select></span>",fillInTemplate:function(_9e,_9f){
+dojo.widget.ToolbarSelect.superclass.fillInTemplate.call(this,_9e,_9f,true);
+var _a0=_9e.values;
+var i=0;
+for(var val in _a0){
+var opt=document.createElement("option");
+opt.setAttribute("value",_a0[val]);
+opt.innerHTML=val;
+this.selectBox.appendChild(opt);
+}
+},changed:function(e){
+this._fireEvent("onSetValue",this.selectBox.value);
+},setEnabled:function(is,_a6,_a7){
+var ret=dojo.widget.ToolbarSelect.superclass.setEnabled.call(this,is,_a6,_a7);
+this.selectBox.disabled=this.disabled;
+return ret;
+},_onmouseover:null,_onmouseout:null,_onclick:null,_onmousedown:null,_onmouseup:null});
+dojo.widget.Icon=function(_a9,_aa,_ab,_ac){
+if(!arguments.length){
+throw new Error("Icon must have at least an enabled state");
+}
+var _ad=["enabled","disabled","hovered","selected"];
+var _ae="enabled";
+var _af=document.createElement("img");
+this.getState=function(){
+return _ae;
+};
+this.setState=function(_b0){
+if(dojo.lang.inArray(_ad,_b0)){
+if(this[_b0]){
+_ae=_b0;
+var img=this[_ae];
+if((dojo.render.html.ie55||dojo.render.html.ie60)&&img.src&&img.src.match(/[.]png$/i)){
+_af.width=img.width||img.offsetWidth;
+_af.height=img.height||img.offsetHeight;
+_af.setAttribute("src",dojo.uri.moduleUri("dojo.widget","templates/images/blank.gif").uri);
+_af.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.src+"',sizingMethod='image')";
+}else{
+_af.setAttribute("src",img.src);
+}
+}
+}else{
+throw new Error("Invalid state set on Icon (state: "+_b0+")");
+}
+};
+this.setSrc=function(_b2,_b3){
+if(/^img$/i.test(_b3.tagName)){
+this[_b2]=_b3;
+}else{
+if(typeof _b3=="string"||_b3 instanceof String||_b3 instanceof dojo.uri.Uri){
+this[_b2]=new Image();
+this[_b2].src=_b3.toString();
+}
+}
+return this[_b2];
+};
+this.setIcon=function(_b4){
+for(var i=0;i<_ad.length;i++){
+if(_b4[_ad[i]]){
+this.setSrc(_ad[i],_b4[_ad[i]]);
+}
+}
+this.update();
+};
+this.enable=function(){
+this.setState("enabled");
+};
+this.disable=function(){
+this.setState("disabled");
+};
+this.hover=function(){
+this.setState("hovered");
+};
+this.select=function(){
+this.setState("selected");
+};
+this.getSize=function(){
+return {width:_af.width||_af.offsetWidth,height:_af.height||_af.offsetHeight};
+};
+this.setSize=function(w,h){
+_af.width=w;
+_af.height=h;
+return {width:w,height:h};
+};
+this.getNode=function(){
+return _af;
+};
+this.getSrc=function(_b8){
+if(_b8){
+return this[_b8].src;
+}
+return _af.src||"";
+};
+this.update=function(){
+this.setState(_ae);
+};
+for(var i=0;i<_ad.length;i++){
+var arg=arguments[i];
+var _bb=_ad[i];
+this[_bb]=null;
+if(!arg){
+continue;
+}
+this.setSrc(_bb,arg);
+}
+this.enable();
+};
+dojo.widget.Icon.make=function(a,b,c,d){
+for(var i=0;i<arguments.length;i++){
+if(arguments[i] instanceof dojo.widget.Icon){
+return arguments[i];
+}
+}
+return new dojo.widget.Icon(a,b,c,d);
+};
+dojo.widget.defineWidget("dojo.widget.ToolbarColorDialog",dojo.widget.ToolbarDialog,{palette:"7x10",fillInTemplate:function(_c1,_c2){
+dojo.widget.ToolbarColorDialog.superclass.fillInTemplate.call(this,_c1,_c2);
+this.dialog=dojo.widget.createWidget("ColorPalette",{palette:this.palette});
+this.dialog.domNode.style.position="absolute";
+dojo.event.connect(this.dialog,"onColorSelect",this,"_setValue");
+},_setValue:function(_c3){
+this._value=_c3;
+this._fireEvent("onSetValue",_c3);
+},showDialog:function(e){
+dojo.widget.ToolbarColorDialog.superclass.showDialog.call(this,e);
+var abs=dojo.html.getAbsolutePosition(this.domNode,true);
+var y=abs.y+dojo.html.getBorderBox(this.domNode).height;
+this.dialog.showAt(abs.x,y);
+},hideDialog:function(e){
+dojo.widget.ToolbarColorDialog.superclass.hideDialog.call(this,e);
+this.dialog.hide();
+}});

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

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

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

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Tooltip.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Tooltip.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Tooltip.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/widget/Tooltip.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,94 @@
+dojo.provide("dojo.widget.Tooltip");
+dojo.require("dojo.widget.ContentPane");
+dojo.require("dojo.widget.PopupContainer");
+dojo.require("dojo.uri.Uri");
+dojo.require("dojo.widget.*");
+dojo.require("dojo.event.*");
+dojo.require("dojo.html.style");
+dojo.require("dojo.html.util");
+dojo.widget.defineWidget("dojo.widget.Tooltip",[dojo.widget.ContentPane,dojo.widget.PopupContainerBase],{caption:"",showDelay:500,hideDelay:100,connectId:"",templateCssString:".dojoTooltip {\n\tborder: solid black 1px;\n\tbackground: beige;\n\tcolor: black;\n\tposition: absolute;\n\tfont-size: small;\n\tpadding: 2px 2px 2px 2px;\n\tz-index: 10;\n\tdisplay: block;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/TooltipTemplate.css"),fillInTemplate:function(_1,_2){
+if(this.caption!=""){
+this.domNode.appendChild(document.createTextNode(this.caption));
+}
+this._connectNode=dojo.byId(this.connectId);
+dojo.widget.Tooltip.superclass.fillInTemplate.call(this,_1,_2);
+this.addOnLoad(this,"_loadedContent");
+dojo.html.addClass(this.domNode,"dojoTooltip");
+var _3=this.getFragNodeRef(_2);
+dojo.html.copyStyle(this.domNode,_3);
+this.applyPopupBasicStyle();
+},postCreate:function(_4,_5){
+dojo.event.connect(this._connectNode,"onmouseover",this,"_onMouseOver");
+dojo.widget.Tooltip.superclass.postCreate.call(this,_4,_5);
+},_onMouseOver:function(e){
+this._mouse={x:e.pageX,y:e.pageY};
+if(!this._tracking){
+dojo.event.connect(document.documentElement,"onmousemove",this,"_onMouseMove");
+this._tracking=true;
+}
+this._onHover(e);
+},_onMouseMove:function(e){
+this._mouse={x:e.pageX,y:e.pageY};
+if(dojo.html.overElement(this._connectNode,e)||dojo.html.overElement(this.domNode,e)){
+this._onHover(e);
+}else{
+this._onUnHover(e);
+}
+},_onHover:function(e){
+if(this._hover){
+return;
+}
+this._hover=true;
+if(this._hideTimer){
+clearTimeout(this._hideTimer);
+delete this._hideTimer;
+}
+if(!this.isShowingNow&&!this._showTimer){
+this._showTimer=setTimeout(dojo.lang.hitch(this,"open"),this.showDelay);
+}
+},_onUnHover:function(e){
+if(!this._hover){
+return;
+}
+this._hover=false;
+if(this._showTimer){
+clearTimeout(this._showTimer);
+delete this._showTimer;
+}
+if(this.isShowingNow&&!this._hideTimer){
+this._hideTimer=setTimeout(dojo.lang.hitch(this,"close"),this.hideDelay);
+}
+if(!this.isShowingNow){
+dojo.event.disconnect(document.documentElement,"onmousemove",this,"_onMouseMove");
+this._tracking=false;
+}
+},open:function(){
+if(this.isShowingNow){
+return;
+}
+dojo.widget.PopupContainerBase.prototype.open.call(this,this._mouse.x,this._mouse.y,null,[this._mouse.x,this._mouse.y],"TL,TR,BL,BR",[10,15]);
+},close:function(){
+if(this.isShowingNow){
+if(this._showTimer){
+clearTimeout(this._showTimer);
+delete this._showTimer;
+}
+if(this._hideTimer){
+clearTimeout(this._hideTimer);
+delete this._hideTimer;
+}
+dojo.event.disconnect(document.documentElement,"onmousemove",this,"_onMouseMove");
+this._tracking=false;
+dojo.widget.PopupContainerBase.prototype.close.call(this);
+}
+},_position:function(){
+this.move(this._mouse.x,this._mouse.y,[10,15],"TL,TR,BL,BR");
+},_loadedContent:function(){
+if(this.isShowingNow){
+this._position();
+}
+},checkSize:function(){
+},uninitialize:function(){
+this.close();
+dojo.event.disconnect(this._connectNode,"onmouseover",this,"_onMouseOver");
+}});