You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2009/03/19 11:37:20 UTC

svn commit: r755904 [20/40] - in /camel/trunk/components/camel-web/src/main/webapp/js/dojox: ./ analytics/ analytics/logger/ analytics/plugins/ analytics/profiles/ atom/ atom/io/ atom/widget/ atom/widget/nls/ atom/widget/nls/cs/ atom/widget/nls/de/ ato...

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FilePickerTextBox.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FilePickerTextBox.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FilePickerTextBox.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FilePickerTextBox.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,264 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.FilePickerTextBox"]){
+dojo._hasResource["dojox.form.FilePickerTextBox"]=true;
+dojo.provide("dojox.form.FilePickerTextBox");
+dojo.require("dojox.widget.FilePicker");
+dojo.require("dijit.form.ValidationTextBox");
+dojo.require("dojox.form._HasDropDown");
+dojo.declare("dojox.form.FilePickerTextBox",[dijit.form.ValidationTextBox,dojox.form._HasDropDown],{baseClass:"dojoxFilePickerTextBox",templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"downArrowNode,dropDownNode,popupStateNode\" waiRole=\"presentation\"\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input type=\"text\" autocomplete=\"off\" ${nameAttrSetting} class='dijitReset'\n\t\t\t\tdojo
 AttachEvent='onkeypress:_onKey' \n\t\t\t\tdojoAttachPoint='textbox,focusNode' waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\n\t\t/></div\n\t></div\n></div>\n",searchDelay:500,_stopClickEvents:false,valueItem:null,numPanes:2.25,postMixInProperties:function(){
+this.inherited(arguments);
+this.dropDown=new dojox.widget.FilePicker(this.constraints);
+},postCreate:function(){
+this.inherited(arguments);
+this.connect(this.dropDown,"onChange",this._onWidgetChange);
+this.connect(this.focusNode,"onblur","_focusBlur");
+this.connect(this.focusNode,"onfocus","_focusFocus");
+this.connect(this.focusNode,"ondblclick",function(){
+dijit.selectInputText(this.focusNode);
+});
+},_setValueAttr:function(_1,_2,_3){
+if(!this._searchInProgress){
+this.inherited(arguments);
+_1=_1||"";
+var _4=this.dropDown.attr("pathValue")||"";
+if(_1!==_4){
+this._skip=true;
+var fx=dojo.hitch(this,"_setBlurValue");
+this.dropDown._setPathValueAttr(_1,!_3,this._settingBlurValue?fx:null);
+}
+}
+},_onWidgetChange:function(_6){
+if(!_6&&this.focusNode.value){
+this._hasValidPath=false;
+this.focusNode.value="";
+}else{
+this.valueItem=_6;
+var _7=this.dropDown._getPathValueAttr(_6);
+if(_7){
+this._hasValidPath=true;
+}
+if(!this._skip){
+this._setValueAttr(_7,undefined,true);
+}
+delete this._skip;
+}
+this.validate();
+},startup:function(){
+if(!this.dropDown._started){
+this.dropDown.startup();
+}
+this.inherited(arguments);
+},openDropDown:function(){
+this.dropDown.domNode.style.width="0px";
+if(!("minPaneWidth" in (this.constraints||{}))){
+this.dropDown.attr("minPaneWidth",(this.domNode.offsetWidth/this.numPanes));
+}
+this.inherited(arguments);
+},toggleDropDown:function(){
+this.inherited(arguments);
+if(this._opened){
+this.dropDown.attr("pathValue",this.attr("value"));
+}
+},_focusBlur:function(e){
+if(e.explicitOriginalTarget==this.focusNode&&!this._allowBlur){
+window.setTimeout(dojo.hitch(this,function(){
+if(!this._allowBlur){
+this.focus();
+}
+}),1);
+}else{
+if(this._menuFocus){
+this.dropDown._updateClass(this._menuFocus,"Item",{"Hover":false});
+delete this._menuFocus;
+}
+}
+},_focusFocus:function(e){
+if(this._menuFocus){
+this.dropDown._updateClass(this._menuFocus,"Item",{"Hover":false});
+}
+delete this._menuFocus;
+var _a=dijit.getFocus(this);
+if(_a&&_a.node){
+_a=dijit.byNode(_a.node);
+if(_a){
+this._menuFocus=_a.domNode;
+}
+}
+if(this._menuFocus){
+this.dropDown._updateClass(this._menuFocus,"Item",{"Hover":true});
+}
+delete this._allowBlur;
+},_onBlur:function(){
+this._allowBlur=true;
+delete this.dropDown._savedFocus;
+this.inherited(arguments);
+},_setBlurValue:function(){
+if(this.dropDown&&!this._settingBlurValue){
+this._settingBlurValue=true;
+this.attr("value",this.focusNode.value);
+}else{
+delete this._settingBlurValue;
+this.inherited(arguments);
+}
+},parse:function(_b,_c){
+if(this._hasValidPath||this._hasSelection){
+return _b;
+}
+var dd=this.dropDown,_e=dd.topDir,_f=dd.pathSeparator;
+var _10=dd.attr("pathValue");
+var _11=function(v){
+if(_e.length&&v.indexOf(_e)===0){
+v=v.substring(_e.length);
+}
+if(_f&&v[v.length-1]==_f){
+v=v.substring(0,v.length-1);
+}
+return v;
+};
+_10=_11(_10);
+var val=_11(_b);
+if(val==_10){
+return _b;
+}
+return undefined;
+},_startSearchFromInput:function(){
+var dd=this.dropDown,fn=this.focusNode;
+var val=fn.value,_17=val,_18=dd.topDir;
+if(this._hasSelection){
+dijit.selectInputText(fn,_17.length);
+}
+this._hasSelection=false;
+if(_18.length&&val.indexOf(_18)===0){
+val=val.substring(_18.length);
+}
+var _19=val.split(dd.pathSeparator);
+var _1a=dojo.hitch(this,function(idx){
+var dir=_19[idx];
+var _1d=dd.getChildren()[idx];
+var _1e;
+this._searchInProgress=true;
+var _1f=dojo.hitch(this,function(){
+delete this._searchInProgress;
+});
+if((dir||_1d)&&!this._opened){
+this.toggleDropDown();
+}
+if(dir&&_1d){
+var fx=dojo.hitch(this,function(){
+if(_1e){
+this.disconnect(_1e);
+}
+delete _1e;
+var _21=_1d._menu.getChildren();
+var _22=dojo.filter(_21,function(i){
+return i.label==dir;
+})[0];
+var _24=dojo.filter(_21,function(i){
+return (i.label.indexOf(dir)===0);
+})[0];
+if(_22&&((_19.length>idx+1&&_22.children)||(!_22.children))){
+idx++;
+_1d._menu.onItemClick(_22,{type:"internal",stopPropagation:function(){
+},preventDefault:function(){
+}});
+if(_19[idx]){
+_1a(idx);
+}else{
+_1f();
+}
+}else{
+_1d._setSelected(null);
+if(_24&&_19.length===idx+1){
+dd._setInProgress=true;
+dd._removeAfter(_1d);
+delete dd._setInProgress;
+var _26=_24.label;
+if(_24.children){
+_26+=dd.pathSeparator;
+}
+_26=_26.substring(dir.length);
+window.setTimeout(function(){
+dijit.scrollIntoView(_24.domNode);
+},1);
+fn.value=_17+_26;
+dijit.selectInputText(fn,_17.length);
+this._hasSelection=true;
+try{
+_24.focusNode.focus();
+}
+catch(e){
+}
+}else{
+if(this._menuFocus){
+this.dropDown._updateClass(this._menuFocus,"Item",{"Hover":false,"Focus":false});
+}
+delete this._menuFocus;
+}
+_1f();
+}
+});
+if(!_1d.isLoaded){
+_1e=this.connect(_1d,"onLoad",fx);
+}else{
+fx();
+}
+}else{
+if(_1d){
+_1d._setSelected(null);
+dd._setInProgress=true;
+dd._removeAfter(_1d);
+delete dd._setInProgress;
+}
+_1f();
+}
+});
+_1a(0);
+},_onKey:function(e){
+if(this.disabled||this.readOnly){
+return;
+}
+var dk=dojo.keys;
+var c=e.charOrCode;
+if(c==dk.DOWN_ARROW){
+this._allowBlur=true;
+}
+if(c==dk.ENTER&&this._opened){
+this.dropDown.onExecute();
+dijit.selectInputText(this.focusNode,this.focusNode.value.length);
+this._hasSelection=false;
+dojo.stopEvent(e);
+return;
+}
+if((c==dk.RIGHT_ARROW||c==dk.LEFT_ARROW||c==dk.TAB)&&this._hasSelection){
+this._startSearchFromInput();
+dojo.stopEvent(e);
+return;
+}
+this.inherited(arguments);
+var _2a=false;
+if((c==dk.BACKSPACE||c==dk.DELETE)&&this._hasSelection){
+this._hasSelection=false;
+}else{
+if(c==dk.BACKSPACE||c==dk.DELETE||c==" "){
+_2a=true;
+}else{
+_2a=e.keyChar!=="";
+}
+}
+if(this._searchTimer){
+window.clearTimeout(this._searchTimer);
+}
+delete this._searchTimer;
+if(_2a){
+this._hasValidPath=false;
+this._hasSelection=false;
+this._searchTimer=window.setTimeout(dojo.hitch(this,"_startSearchFromInput"),this.searchDelay+1);
+}
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FilePickerTextBox.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileUploader.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileUploader.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileUploader.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileUploader.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,415 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.FileUploader"]){
+dojo._hasResource["dojox.form.FileUploader"]=true;
+dojo.provide("dojox.form.FileUploader");
+dojo.experimental("dojox.form.FileUploader");
+var swfPath=dojo.config.uploaderPath||dojo.moduleUrl("dojox.form","resources/uploader.swf");
+dojo.require("dojox.embed.Flash");
+dojo.require("dojo.io.iframe");
+dojo.require("dojox.html.styles");
+dojo.declare("dojox.form.FileUploader",null,{isDebug:false,devMode:false,id:"",uploadUrl:"",button:null,uploadOnChange:false,selectMultipleFiles:true,htmlFieldName:"uploadedfile",flashFieldName:"flashUploadFiles",fileMask:[],force:"",postData:null,swfPath:swfPath,minFlashVersion:9,uploaderType:"",flashObject:null,flashMovie:null,flashDiv:null,domNode:null,constructor:function(_1){
+this.init(_1);
+},log:function(){
+if(this.isDebug){
+console.log.apply(console,arguments);
+}
+},init:function(_2){
+dojo.mixin(this,_2);
+
+this.id=this.id||dijit.getUniqueId("uploader");
+dijit.registry.add(this);
+this.log("init Flash:",(dojox.embed.Flash.available>=this.minFlashVersion||this.force=="flash"),dojox.embed.Flash.available>=this.minFlashVersion,this.force=="flash");
+this.fileList=[];
+this._subs=[];
+this._cons=[];
+if((dojox.embed.Flash.available>=this.minFlashVersion||this.force=="flash")&&this.force!="html"){
+this.uploaderType="flash";
+this.createFlashUploader();
+}else{
+this.uploaderType="html";
+this.fileInputs=[];
+this.fileCount=0;
+if(dojo.isIE&&dojo.isIE<7){
+setTimeout(dojo.hitch(this,"createHtmlUploader"),1);
+}else{
+this.createHtmlUploader();
+}
+}
+},onMouseDown:function(_3){
+},onMouseUp:function(_4){
+},onMouseOver:function(_5){
+if(this.button.domNode){
+dojo.addClass(this.button.domNode,"dijitButtonHover dijitHover");
+}
+},onMouseOut:function(_6){
+if(this.button.domNode){
+dojo.removeClass(this.button.domNode,"dijitButtonHover dijitHover");
+}
+},onChange:function(_7){
+},onProgress:function(_8){
+},onComplete:function(_9){
+},onCancel:function(){
+this.log("Upload Canceled");
+},onError:function(_a){
+var _b=_a.type?_a.type.toUpperCase():"ERROR";
+var _c=_a.msg?_a.msg:_a;
+console.warn("FLASH/ERROR/"+_b,_c);
+},upload:function(_d){
+if(_d){
+this.postData=_d;
+}
+this.log("upload type:",this.uploaderType," - postData:",this.postData);
+if(this.uploaderType=="flash"){
+try{
+this.flashMovie.doUpload(this.postData);
+}
+catch(err){
+throw new Error("Sorry, the SWF failed to initialize properly. The page will have to be refreshed. ERROR:"+err);
+}
+}else{
+dojo.io.iframe.send({url:this.uploadUrl,form:this._formNode,handleAs:"json",handle:dojo.hitch(this,function(_e,_f,_10){
+this._complete([_e]);
+})});
+}
+},setPosition:function(){
+if(this.uploaderType=="flash"){
+this.setFlashPosition();
+}else{
+this.setHtmlPosition();
+}
+},hide:function(){
+dojo.style(this.domNode,"display","none");
+},show:function(){
+dojo.style(this.domNode,"display","");
+},disable:function(_11){
+if(_11){
+this.hide();
+}else{
+this.show();
+}
+},destroyAll:function(){
+if(this.button.destroy){
+this.button.destroy();
+}else{
+dojo.destroy(this.button);
+}
+this.destroy();
+},destroy:function(){
+if(this.uploaderType=="flash"&&!this.flashMovie){
+this._cons.push(dojo.connect(this,"onLoad",this,"destroy"));
+return;
+}
+dojo.forEach(this._subs,function(s){
+dojo.unsubscribe(s);
+});
+dojo.forEach(this._cons,function(c){
+dojo.disconnect(c);
+});
+if(this.uploaderType=="flash"){
+this.flashObject.destroy();
+dojo.destroy(this.flashDiv);
+}
+},createFlashUploader:function(){
+this.log("FLASH");
+var _14=this.uploadUrl.toLowerCase();
+if(_14.indexOf("http")<0&&_14.indexOf("/")!=0){
+var loc=window.location.href.split("/");
+loc.pop();
+loc=loc.join("/")+"/";
+this.uploadUrl=loc+this.uploadUrl;
+}else{
+}
+var dim=this.getFakeButtonSize();
+var w="100%";
+var h="100%";
+var _19={expressInstall:true,path:this.swfPath.uri||this.swfPath,width:w,height:h,allowScriptAccess:"always",allowNetworking:"all",vars:{uploadDataFieldName:this.flashFieldName,uploadUrl:this.uploadUrl,uploadOnSelect:this.uploadOnChange,selectMultipleFiles:this.selectMultipleFiles,id:this.id,isDebug:this.isDebug,devMode:this.devMode},params:{wmode:"transparent"}};
+if(_19.vars.isDebug&&window.console&&window.console.dir){
+window.passthrough=function(){
+console.log.apply(console,arguments);
+};
+window.passthrough("Flash trace enabled.");
+}else{
+window.passthrough=function(){
+};
+}
+this.flashDiv=dojo.doc.createElement("div");
+this.domNode=this.flashDiv;
+dojo.body().appendChild(this.flashDiv);
+this._connectFlash();
+this.setPosition();
+this.flashObject=new dojox.embed.Flash(_19,this.flashDiv);
+this.flashObject.onError=function(msg){
+console.warn("Flash Error:",msg);
+};
+this.flashObject.onLoad=dojo.hitch(this,function(mov){
+this.log("ONLOAD",mov);
+this.flashMovie=mov;
+this.setFlashVars();
+});
+},setFlashVars:function(){
+this.flashMovie.setFileMask(this.fileMask);
+this.flashMovie.setPostData(this.postData);
+
+return;
+try{
+this.flashMovie.setFileMask(this.fileMask);
+if(this.postData){
+this.flashMovie.setPostData(this.postData);
+}
+}
+catch(e){
+if(this.setvarTries===undefined){
+this.setvarTries=0;
+}
+this.setvarTries++;
+if(this.setvarTries<10){
+setTimeout(dojo.hitch(this,"setFlashVars"),500);
+}else{
+console.warn("Tried to set Flash Vars and Post data but failed.");
+}
+}
+},createHtmlUploader:function(){
+if(!this.button.id){
+this.button.id=dijit.getUniqueId("btn");
+}
+var _1c;
+if(this.button.domNode){
+_1c=dojo.byId(this.button.id).parentNode.parentNode;
+_1c.parentNode.onmousedown=function(){
+};
+}else{
+_1c=this.button.parentNode;
+}
+this._buildForm(_1c);
+this._buildFileInput(_1c);
+this.setPosition();
+this._connectInput();
+},setFlashPosition:function(){
+var dim=this.getFakeButtonSize();
+setTimeout(dojo.hitch(this,function(){
+dojo.style(this.flashDiv,{position:"absolute",top:dim.y+"px",left:dim.x+"px",width:dim.w+"px",height:dim.h+"px",zIndex:2001});
+this.log("this.flashDiv:",this.flashDiv);
+}),100);
+},setHtmlPosition:function(){
+var _1e=this.getFakeButtonSize();
+var _1f=dojo.marginBox(this._fileInput);
+var _20="rect(0px "+_1f.w+"px "+_1e.h+"px "+(_1f.w-_1e.w)+"px)";
+this._fileInput.style.clip=_20;
+this._fileInput.style.left=(_1e.x+_1e.w-_1f.w)+"px";
+this._fileInput.style.top=_1e.y+"px";
+this._fileInput.style.zIndex=2001;
+},_connectFlash:function(){
+this._doSub("/filesSelected","_change");
+this._doSub("/filesUploaded","_complete");
+this._doSub("/filesProgress","_progress");
+this._doSub("/filesError","_error");
+this._doSub("/filesCanceled","onCancel");
+this._doSub("/up","onMouseUp");
+this._doSub("/down","onMouseDown");
+this._doSub("/over","onMouseOver");
+this._doSub("/out","onMouseOut");
+this._connectCommon();
+},_doSub:function(_21,_22){
+this._subs.push(dojo.subscribe(this.id+_21,this,_22));
+},_connectInput:function(){
+this._disconnect();
+this._cons.push(dojo.connect(this._fileInput,"mouseover",this,function(evt){
+this.onMouseOver(evt);
+}));
+this._cons.push(dojo.connect(this._fileInput,"mouseout",this,function(evt){
+this.onMouseOut(evt);
+this._checkHtmlCancel("off");
+}));
+this._cons.push(dojo.connect(this._fileInput,"mousedown",this,function(evt){
+this.onMouseDown(evt);
+}));
+this._cons.push(dojo.connect(this._fileInput,"mouseup",this,function(evt){
+this.onMouseUp(evt);
+this._checkHtmlCancel("up");
+}));
+this._cons.push(dojo.connect(this._fileInput,"change",this,function(){
+
+this._checkHtmlCancel("change");
+this._change([{name:this._fileInput.value,type:"",size:0}]);
+}));
+this._connectCommon();
+},_connectCommon:function(){
+this._cons.push(dojo.connect(window,"resize",this,"setPosition"));
+if(this.button.domNode){
+this._cons.push(dojo.connect(this.button,"onClick",this,"setPosition"));
+}else{
+this._cons.push(dojo.connect(this.button,"click",this,"setPosition"));
+}
+var _27=this._dialogParent();
+if(_27){
+this._cons.push(dojo.connect(_27,"show",this,function(){
+this.show();
+this.setPosition();
+}));
+this._cons.push(dojo.connect(_27,"hide",this,"hide"),dojo.connect(_27,"destroy",this,"destroy"));
+this._subs.push(dojo.subscribe("/dnd/move/stop",this,"setPosition"));
+}
+if(this.button.domNode){
+this._cons.push(dojo.connect(this.button,"_setDisabledAttr",this,"disable"));
+}
+setTimeout(dojo.hitch(this,"setPosition"),500);
+},_checkHtmlCancel:function(_28){
+if(_28=="change"){
+this.dialogIsOpen=false;
+}
+if(_28=="up"){
+this.dialogIsOpen=true;
+}
+if(_28=="off"){
+this.dialogIsOpen=false;
+this.onCancel();
+}
+},_error:function(evt){
+this.onError(evt);
+},_change:function(_2a){
+this.fileList=this.fileList.concat(_2a);
+this.onChange(_2a);
+if(this.uploadOnChange){
+this.upload();
+}
+},_complete:function(_2b){
+this.log("_complete",_2b);
+for(var i=0;i<this.fileList.length;i++){
+this.fileList[i].percent=100;
+}
+this._progress(this.fileList);
+this.fileList=[];
+this.onComplete(_2b);
+},_progress:function(_2d){
+this.log("_progress",_2d);
+for(var i=0;i<this.fileList.length;i++){
+var f=this.fileList[i];
+if(f.name==_2d.name){
+f.bytesLoaded=_2d.bytesLoaded;
+f.bytesTotal=_2d.bytesTotal;
+f.percent=Math.ceil(f.bytesLoaded/f.bytesTotal*100);
+}else{
+if(!f.percent){
+f.bytesLoaded=0;
+f.bytesTotal=0;
+f.percent=0;
+}
+}
+}
+this.onProgress(this.fileList);
+},_dialogParent:function(){
+var _30;
+var _31=this.button.domNode||this.button;
+for(var i=0;i<50;i++){
+if(_31.tagName.toLowerCase()=="body"){
+_31=null;
+break;
+}
+if(_31.tagName&&_31.tagName.toLowerCase()=="div"&&(dojo.attr(_31,"widgetId")||dojo.attr(_31,"widgetid"))){
+_30=dijit.byNode(_31);
+if(_30.titleBar&&_30.titleNode){
+break;
+}else{
+_30=null;
+}
+}
+_31=_31.parentNode;
+}
+return _30;
+},_disconnect:function(){
+dojo.forEach(this._cons,function(c){
+dojo.disconnect(c);
+});
+},_buildFileInput:function(_34){
+if(this._fileInput){
+this._disconnect();
+dojo.style(this._fileInput,"display","none");
+}
+this._fileInput=document.createElement("input");
+this.domNode=this._fileInput;
+this._fileInput.setAttribute("type","file");
+this.fileInputs.push(this._fileInput);
+var nm=this.htmlFieldName;
+var _id=this.id;
+if(this.selectMultipleFiles){
+nm+=this.fileCount;
+_id+=this.fileCount;
+this.fileCount++;
+}
+this.log("NAME:",nm,this.htmlFieldName,this.fileCount);
+this._fileInput.setAttribute("id",this.id);
+this._fileInput.setAttribute("name",nm);
+dojo.addClass(this._fileInput,"dijitFileInputReal");
+if(this.devMode){
+dojo.style(this._fileInput,"opacity",1);
+}
+this._formNode.appendChild(this._fileInput);
+},_removeFileInput:function(){
+dojo.forEach(this.fileInputs,function(inp){
+inp.parentNode.removeChild(inp);
+});
+this.fileInputs=[];
+this.fileCount=0;
+},_buildForm:function(_38){
+if(this._formNode){
+return;
+}
+if(dojo.isIE){
+this._formNode=document.createElement("<form enctype=\"multipart/form-data\" method=\"post\">");
+this._formNode.encoding="multipart/form-data";
+}else{
+this._formNode=document.createElement("form");
+this._formNode.setAttribute("enctype","multipart/form-data");
+}
+this._formNode.id=dijit.getUniqueId("form");
+if(_38&&dojo.style(_38,"display").indexOf("inline")>-1){
+document.body.appendChild(this._formNode);
+}else{
+_38.appendChild(this._formNode);
+}
+this._setHtmlPostData();
+this._setFormStyle();
+},_setHtmlPostData:function(){
+if(this.postData){
+for(var nm in this.postData){
+var f=document.createElement("input");
+dojo.attr(f,"type","hidden");
+dojo.attr(f,"name",nm);
+dojo.attr(f,"value",this.postData[nm]);
+this._formNode.appendChild(f);
+}
+}
+},_setFormStyle:function(){
+var _3b=this.getFakeButtonSize();
+var _3c=Math.max(2,Math.max(Math.ceil(_3b.w/60),Math.ceil(_3b.h/15)));
+dojox.html.insertCssRule("#"+this._formNode.id+" input","font-size:"+_3c+"em");
+},getFakeButtonSize:function(){
+var _3d=(this.button.domNode)?dojo.byId(this.button.id).parentNode:dojo.byId(this.button.id)||this.button;
+if(_3d.tagName.toLowerCase()=="span"){
+_3d=dojo.byId(this.button.id);
+}
+var _3e=dojo.coords(_3d,true);
+_3e.w=(dojo.style(_3d,"display")=="block")?dojo.style(_3d,"width"):_3e.w;
+var p=_3d.parentNode.parentNode;
+if(p&&dojo.style(p,"position")=="relative"){
+_3e.x=dojo.style(p,"left");
+_3e.y=dojo.style(p,"top");
+}
+if(p&&dojo.style(p,"position")=="absolute"){
+_3e.x=0;
+_3e.y=0;
+}
+var s=3;
+_3e.x-=s;
+_3e.y-=s;
+_3e.w+=s*2;
+_3e.h+=s*2;
+return _3e;
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileUploader.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/Manager.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/Manager.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/Manager.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/Manager.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,35 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.Manager"]){
+dojo._hasResource["dojox.form.Manager"]=true;
+dojo.provide("dojox.form.Manager");
+dojo.require("dijit._Widget");
+dojo.require("dijit._Templated");
+dojo.require("dojox.form.manager._Mixin");
+dojo.require("dojox.form.manager._NodeMixin");
+dojo.require("dojox.form.manager._FormMixin");
+dojo.require("dojox.form.manager._ValueMixin");
+dojo.require("dojox.form.manager._EnableMixin");
+dojo.require("dojox.form.manager._DisplayMixin");
+dojo.require("dojox.form.manager._ClassMixin");
+dojo.declare("dojox.form.Manager",[dijit._Widget,dijit._Templated,dojox.form.manager._Mixin,dojox.form.manager._NodeMixin,dojox.form.manager._FormMixin,dojox.form.manager._ValueMixin,dojox.form.manager._EnableMixin,dojox.form.manager._DisplayMixin,dojox.form.manager._ClassMixin],{widgetsInTemplate:true,buildRendering:function(){
+var _1=this.domNode=this.srcNodeRef;
+if(!this.containerNode){
+this.containerNode=_1;
+}
+this._attachTemplateNodes(_1);
+},startup:function(){
+if(this._started){
+return;
+}
+this._attachTemplateNodes(this.getDescendants(),function(n,p){
+return n[p];
+});
+this.inherited(arguments);
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/Manager.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/MultiComboBox.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/MultiComboBox.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/MultiComboBox.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/MultiComboBox.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,46 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.MultiComboBox"]){
+dojo._hasResource["dojox.form.MultiComboBox"]=true;
+dojo.provide("dojox.form.MultiComboBox");
+dojo.experimental("dojox.form.MultiComboBox");
+dojo.require("dijit.form.ComboBox");
+dojo.require("dijit.form.ValidationTextBox");
+dojo.declare("dojox.form.MultiComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{delimiter:",",_previousMatches:false,_setValueAttr:function(_1){
+if(this.delimiter&&_1.length!=0){
+_1=_1+this.delimiter+" ";
+arguments[0]=this._addPreviousMatches(_1);
+}
+this.inherited(arguments);
+},_addPreviousMatches:function(_2){
+if(this._previousMatches){
+if(!_2.match(new RegExp("^"+this._previousMatches))){
+_2=this._previousMatches+_2;
+}
+_2=this._cleanupDelimiters(_2);
+}
+return _2;
+},_cleanupDelimiters:function(_3){
+if(this.delimiter){
+_3=_3.replace(new RegExp("  +")," ");
+_3=_3.replace(new RegExp("^ *"+this.delimiter+"* *"),"");
+_3=_3.replace(new RegExp(this.delimiter+" *"+this.delimiter),this.delimiter);
+}
+return _3;
+},_autoCompleteText:function(_4){
+arguments[0]=this._addPreviousMatches(_4);
+this.inherited(arguments);
+},_startSearch:function(_5){
+_5=this._cleanupDelimiters(_5);
+var re=new RegExp("^.*"+this.delimiter+" *");
+if((this._previousMatches=_5.match(re))){
+arguments[0]=_5.replace(re,"");
+}
+this.inherited(arguments);
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/MultiComboBox.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/PasswordValidator.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/PasswordValidator.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/PasswordValidator.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/PasswordValidator.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,153 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.PasswordValidator"]){
+dojo._hasResource["dojox.form.PasswordValidator"]=true;
+dojo.provide("dojox.form.PasswordValidator");
+dojo.require("dijit.form._FormWidget");
+dojo.require("dijit.form.ValidationTextBox");
+dojo.requireLocalization("dojox.form","PasswordValidator",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
+dojo.declare("dojox.form._ChildTextBox",dijit.form.ValidationTextBox,{containerWidget:null,type:"password",reset:function(){
+dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,"",true);
+this._hasBeenBlurred=false;
+},postCreate:function(){
+this.inherited(arguments);
+if(!this.name){
+dojo.removeAttr(this.focusNode,"name");
+}
+}});
+dojo.declare("dojox.form._OldPWBox",dojox.form._ChildTextBox,{_isPWValid:false,_setValueAttr:function(_1,_2){
+if(_1===""){
+_1=dojox.form._OldPWBox.superclass.attr.call(this,"value");
+}
+if(_2!==null){
+this._isPWValid=this.containerWidget.pwCheck(_1);
+}
+this.inherited(arguments);
+this.containerWidget._childValueAttr(this.containerWidget._inputWidgets[1].attr("value"));
+},isValid:function(_3){
+return this.inherited("isValid",arguments)&&this._isPWValid;
+},_update:function(e){
+if(this._hasBeenBlurred){
+this.validate(true);
+}
+this._onMouse(e);
+},_getValueAttr:function(){
+if(this.containerWidget._started&&this.containerWidget.isValid()){
+return this.inherited(arguments);
+}
+return "";
+},_setBlurValue:function(){
+var _5=dijit.form.ValidationTextBox.prototype._getValueAttr.call(this);
+this._setValueAttr(_5,(this.isValid?this.isValid():true));
+}});
+dojo.declare("dojox.form._NewPWBox",dojox.form._ChildTextBox,{required:true,onChange:function(){
+this.containerWidget._inputWidgets[2].validate(false);
+this.inherited(arguments);
+}});
+dojo.declare("dojox.form._VerifyPWBox",dojox.form._ChildTextBox,{isValid:function(_6){
+return this.inherited("isValid",arguments)&&(this.attr("value")==this.containerWidget._inputWidgets[1].attr("value"));
+}});
+dojo.declare("dojox.form.PasswordValidator",dijit.form._FormValueWidget,{required:true,_inputWidgets:null,oldName:"",templateString:"<div dojoAttachPoint=\"containerNode\">\n\t<input type=\"hidden\" name=\"${name}\" value=\"\" dojoAttachPoint=\"focusNode\" />\n</div>\n",_hasBeenBlurred:false,isValid:function(_7){
+return dojo.every(this._inputWidgets,function(i){
+if(i&&i._setStateClass){
+i._setStateClass();
+}
+return (!i||i.isValid());
+});
+},validate:function(_9){
+return dojo.every(dojo.map(this._inputWidgets,function(i){
+if(i&&i.validate){
+i._hasBeenBlurred=(i._hasBeenBlurred||this._hasBeenBlurred);
+return i.validate();
+}
+return true;
+},this),"return item;");
+},reset:function(){
+this._hasBeenBlurred=false;
+dojo.forEach(this._inputWidgets,function(i){
+if(i&&i.reset){
+i.reset();
+}
+},this);
+},_createSubWidgets:function(){
+var _c=this._inputWidgets,_d=dojo.i18n.getLocalization("dojox.form","PasswordValidator",this.lang);
+dojo.forEach(_c,function(i,_f){
+if(i){
+var p={containerWidget:this},c;
+if(_f===0){
+p.name=this.oldName;
+p.invalidMessage=_d.badPasswordMessage;
+c=dojox.form._OldPWBox;
+}else{
+if(_f===1){
+p.required=this.required;
+c=dojox.form._NewPWBox;
+}else{
+if(_f===2){
+p.invalidMessage=_d.nomatchMessage;
+c=dojox.form._VerifyPWBox;
+}
+}
+}
+_c[_f]=new c(p,i);
+}
+},this);
+},pwCheck:function(_12){
+return false;
+},postCreate:function(){
+this.inherited(arguments);
+var _13=this._inputWidgets=[];
+dojo.forEach(["old","new","verify"],function(i){
+_13.push(dojo.query("input[pwType="+i+"]",this.containerNode)[0]);
+},this);
+if(!_13[1]||!_13[2]){
+throw new Error("Need at least pwType=\"new\" and pwType=\"verify\"");
+}
+if(this.oldName&&!_13[0]){
+throw new Error("Need to specify pwType=\"old\" if using oldName");
+}
+this._createSubWidgets();
+this.connect(this._inputWidgets[1],"_setValueAttr","_childValueAttr");
+this.connect(this._inputWidgets[2],"_setValueAttr","_childValueAttr");
+},_childValueAttr:function(v){
+this.attr("value",this.isValid()?v:"");
+},_setDisabledAttr:function(_16){
+this.inherited(arguments);
+dojo.forEach(this._inputWidgets,function(i){
+if(i&&i.attr){
+i.attr("disabled",_16);
+}
+});
+},_setRequiredAttribute:function(_18){
+this.required=_18;
+dojo.attr(this.focusNode,"required",_18);
+dijit.setWaiState(this.focusNode,"required",_18);
+this._refreshState();
+dojo.forEach(this._inputWidgets,function(i){
+if(i&&i.attr){
+i.attr("required",_18);
+}
+});
+},_setValueAttr:function(v){
+this.inherited(arguments);
+dojo.attr(this.focusNode,"value",v);
+},_getValueAttr:function(){
+return this.inherited(arguments)||"";
+},focus:function(){
+var f=false;
+dojo.forEach(this._inputWidgets,function(i){
+if(i&&!i.isValid()&&!f){
+i.focus();
+f=true;
+}
+});
+if(!f){
+this._inputWidgets[1].focus();
+}
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/PasswordValidator.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/README
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/README?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/README (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/README Thu Mar 19 10:37:00 2009
@@ -0,0 +1,70 @@
+-------------------------------------------------------------------------------
+dojox.form Collection
+-------------------------------------------------------------------------------
+Version 1.0
+Release date: 02/26/2008
+-------------------------------------------------------------------------------
+Project state:
+experimental
+-------------------------------------------------------------------------------
+Credits
+	Nathan Toone (nathan)
+	Peter Higgins	(dante)
+    Wolfram Kriesing (http://wolfram.kriesing.de/blog/): Rating
+    Mike Wilcox
+-------------------------------------------------------------------------------
+Project description
+
+	This is a collection of additional widgets that can be used in forms.
+-------------------------------------------------------------------------------
+Dependencies:
+
+	Depends on dojo core and dijit
+	
+	dojo.form.FileUploader depends on dojox.embed, and uses Flash movies created
+	in the deft project using Flex OSS 3.  You do not need any of the deft code; 
+	compiled movies are included with dojox.form in the resources folder.  
+	If you want to modify the actual movies, you can look in the deft project 
+	(under the package deft.av).
+-------------------------------------------------------------------------------
+Documentation
+
+-------------------------------------------------------------------------------
+Installation instructions
+
+	Install into /dojox/form
+-------------------------------------------------------------------------------
+Additional Notes (Brief widget list):
+
+	* CheckedMultiSelect - an extension to dijit.form.MultiSelect which
+						uses check boxes instead of ctrl-click
+
+ 	* DropDownSelect - an extension to dijit.form.DropDownButton which is
+ 						meant to mirror the html <select> drop down
+
+	* DropDownStack/RadioStack - a widget that can toggle parts of a form as
+						"on" or "off" - to allow for different options based on 
+						the value selected.
+
+	* FileInput - experimental dijit-like input type="file"
+
+	* FileInputAuto/Blind - extension to FileInput for 
+						added flair/automation
+						
+	* FilePickerTextBox - a validating text box that can browser server-side
+						files using a dojox.data.FileStore
+	* FileUploader - Convert (almost) any button into a file input. Multi-file
+						uploads supported. Uses a SWF file created with Deft.
+						Compatible with Flash Player versions 8-10.
+	
+    * MultiComboBox - an experimental ComboBox that allows
+						multiple entries bases on a separator character.
+
+	* PasswordValidator - a widget which simplifies the common "old/new/verify" 
+						mechanism of specifying passwords
+
+	* Rating - a star-based rating widget
+ 	
+    * TimeSpinner - a number spinner that revolves through
+						time constrainsts
+

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/README
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/RadioStack.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/RadioStack.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/RadioStack.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/RadioStack.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,14 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.RadioStack"]){
+dojo._hasResource["dojox.form.RadioStack"]=true;
+dojo.provide("dojox.form.RadioStack");
+dojo.require("dojox.form.CheckedMultiSelect");
+dojo.require("dojox.form._SelectStackMixin");
+dojo.declare("dojox.form.RadioStack",[dojox.form.CheckedMultiSelect,dojox.form._SelectStackMixin],{});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/RadioStack.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/RangeSlider.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/RangeSlider.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/RangeSlider.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/RangeSlider.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,330 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.RangeSlider"]){
+dojo._hasResource["dojox.form.RangeSlider"]=true;
+dojo.provide("dojox.form.RangeSlider");
+dojo.require("dijit.form.HorizontalSlider");
+dojo.require("dijit.form.VerticalSlider");
+dojo.require("dojox.fx");
+dojo.declare("dojox.form._RangeSliderMixin",null,{value:[0,100],postCreate:function(){
+this.inherited(arguments);
+if(this._isReversed()){
+this.value.sort(function(a,b){
+return b-a;
+});
+}else{
+this.value.sort(function(a,b){
+return a-b;
+});
+}
+var _5=this;
+var _6=function(){
+dijit.form._SliderMoverMax.apply(this,arguments);
+this.widget=_5;
+};
+dojo.extend(_6,dijit.form._SliderMoverMax.prototype);
+this._movableMax=new dojo.dnd.Moveable(this.sliderHandleMax,{mover:_6});
+dijit.setWaiState(this.focusNodeMax,"valuemin",this.minimum);
+dijit.setWaiState(this.focusNodeMax,"valuemax",this.maximum);
+var _7=function(){
+dijit.form._SliderBarMover.apply(this,arguments);
+this.widget=_5;
+};
+dojo.extend(_7,dijit.form._SliderBarMover.prototype);
+this._movableBar=new dojo.dnd.Moveable(this.progressBar,{mover:_7});
+},destroy:function(){
+this.inherited(arguments);
+this._movableMax.destroy();
+this._movableBar.destroy();
+},_onKeyPress:function(e){
+if(this.disabled||this.readOnly||e.altKey||e.ctrlKey){
+return;
+}
+var _9=e.currentTarget;
+var _a=false;
+var _b=false;
+var _c;
+if(_9==this.sliderHandle){
+_a=true;
+}else{
+if(_9==this.progressBar){
+_b=true;
+_a=true;
+}else{
+if(_9==this.sliderHandleMax){
+_b=true;
+}
+}
+}
+switch(e.keyCode){
+case dojo.keys.HOME:
+this._setValueAttr(this.minimum,true,_b);
+break;
+case dojo.keys.END:
+this._setValueAttr(this.maximum,true,_b);
+break;
+case ((this._descending||this.isLeftToRight())?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):
+case (this._descending===false?dojo.keys.DOWN_ARROW:dojo.keys.UP_ARROW):
+case (this._descending===false?dojo.keys.PAGE_DOWN:dojo.keys.PAGE_UP):
+if(_a&&_b){
+_c=Array();
+_c[0]={"change":e.keyCode==dojo.keys.PAGE_UP?this.pageIncrement:1,"useMaxValue":true};
+_c[1]={"change":e.keyCode==dojo.keys.PAGE_UP?this.pageIncrement:1,"useMaxValue":false};
+this._bumpValue(_c);
+}else{
+if(_a){
+this._bumpValue(e.keyCode==dojo.keys.PAGE_UP?this.pageIncrement:1,true);
+}else{
+if(_b){
+this._bumpValue(e.keyCode==dojo.keys.PAGE_UP?this.pageIncrement:1);
+}
+}
+}
+break;
+case ((this._descending||this.isLeftToRight())?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):
+case (this._descending===false?dojo.keys.UP_ARROW:dojo.keys.DOWN_ARROW):
+case (this._descending===false?dojo.keys.PAGE_UP:dojo.keys.PAGE_DOWN):
+if(_a&&_b){
+_c=Array();
+_c[0]={"change":e.keyCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1,"useMaxValue":false};
+_c[1]={"change":e.keyCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1,"useMaxValue":true};
+this._bumpValue(_c);
+}else{
+if(_a){
+this._bumpValue(e.keyCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);
+}else{
+if(_b){
+this._bumpValue(e.keyCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1,true);
+}
+}
+}
+break;
+default:
+dijit.form._FormValueWidget.prototype._onKeyPress.apply(this,arguments);
+this.inherited(arguments);
+return;
+}
+dojo.stopEvent(e);
+},_onHandleClickMax:function(e){
+if(this.disabled||this.readOnly){
+return;
+}
+if(!dojo.isIE){
+dijit.focus(this.sliderHandleMax);
+}
+dojo.stopEvent(e);
+},_onClkIncBumper:function(){
+this._setValueAttr(this._descending===false?this.minimum:this.maximum,true,true);
+},_bumpValue:function(_e,_f){
+var _10;
+if(!dojo.isArray(_e)){
+_10=this._getBumpValue(_e,_f);
+}else{
+_10=Array();
+_10[0]=this._getBumpValue(_e[0]["change"],_e[0]["useMaxValue"]);
+_10[1]=this._getBumpValue(_e[1]["change"],_e[1]["useMaxValue"]);
+}
+this._setValueAttr(_10,true,!dojo.isArray(_e)&&((_e>0&&!_f)||(_f&&_e<0)));
+},_getBumpValue:function(_11,_12){
+var s=dojo.getComputedStyle(this.sliderBarContainer);
+var c=dojo._getContentBox(this.sliderBarContainer,s);
+var _15=this.discreteValues;
+if(_15<=1||_15==Infinity){
+_15=c[this._pixelCount];
+}
+_15--;
+var _16=!_12?this.value[0]:this.value[1];
+if((this._isReversed()&&_11<0)||(_11>0&&!this._isReversed())){
+_16=!_12?this.value[1]:this.value[0];
+}
+var _17=(_16-this.minimum)*_15/(this.maximum-this.minimum)+_11;
+if(_17<0){
+_17=0;
+}
+if(_17>_15){
+_17=_15;
+}
+return _17*(this.maximum-this.minimum)/_15+this.minimum;
+},_onBarClick:function(e){
+if(this.disabled||this.readOnly){
+return;
+}
+if(!dojo.isIE){
+dijit.focus(this.progressBar);
+}
+dojo.stopEvent(e);
+},_onRemainingBarClick:function(e){
+if(this.disabled||this.readOnly){
+return;
+}
+if(!dojo.isIE){
+dijit.focus(this.progressBar);
+}
+var _1a=dojo.coords(this.sliderBarContainer,true);
+var bar=dojo.coords(this.progressBar,true);
+var _1c=e[this._mousePixelCoord]-_1a[this._startingPixelCoord];
+var _1d=bar[this._startingPixelCount];
+var _1e=bar[this._startingPixelCount]+bar[this._pixelCount];
+var _1f=this._isReversed()?_1c<=_1d:_1c>=_1e;
+this._setPixelValue(this._isReversed()?(_1a[this._pixelCount]-_1c):_1c,_1a[this._pixelCount],true,_1f);
+dojo.stopEvent(e);
+},_setPixelValue:function(_20,_21,_22,_23){
+if(this.disabled||this.readOnly){
+return;
+}
+var _24=this._getValueByPixelValue(_20,_21);
+this._setValueAttr(_24,_22,_23);
+},_getValueByPixelValue:function(_25,_26){
+_25=_25<0?0:_26<_25?_26:_25;
+var _27=this.discreteValues;
+if(_27<=1||_27==Infinity){
+_27=_26;
+}
+_27--;
+var _28=_26/_27;
+var _29=Math.round(_25/_28);
+return (this.maximum-this.minimum)*_29/_27+this.minimum;
+},_setValueAttr:function(_2a,_2b,_2c){
+var _2d=this.value;
+if(!dojo.isArray(_2a)){
+if(_2c){
+if(this._isReversed()){
+_2d[0]=_2a;
+}else{
+_2d[1]=_2a;
+}
+}else{
+if(this._isReversed()){
+_2d[1]=_2a;
+}else{
+_2d[0]=_2a;
+}
+}
+}else{
+_2d=_2a;
+}
+this._lastValueReported="";
+this.valueNode.value=this.value=_2a=_2d;
+dijit.setWaiState(this.focusNode,"valuenow",_2d[0]);
+dijit.setWaiState(this.focusNodeMax,"valuenow",_2d[1]);
+if(this._isReversed()){
+this.value.sort(function(a,b){
+return b-a;
+});
+}else{
+this.value.sort(function(a,b){
+return a-b;
+});
+}
+dijit.form._FormValueWidget.prototype._setValueAttr.apply(this,arguments);
+this._printSliderBar(_2b,_2c);
+},_printSliderBar:function(_32,_33){
+var _34=(this.value[0]-this.minimum)/(this.maximum-this.minimum);
+var _35=(this.value[1]-this.minimum)/(this.maximum-this.minimum);
+var _36=_34;
+if(_34>_35){
+_34=_35;
+_35=_36;
+}
+var _37=this._isReversed()?((1-_34)*100):(_34*100);
+var _38=this._isReversed()?((1-_35)*100):(_35*100);
+var _39=this._isReversed()?((1-_35)*100):(_34*100);
+if(_32&&this.slideDuration>0&&this.progressBar.style[this._progressPixelSize]){
+var _3a=_33?_35:_34;
+var _3b=this;
+var _3c={};
+var _3d=parseFloat(this.progressBar.style[this._handleOffsetCoord]);
+var _3e=this.slideDuration/10;
+if(_3e===0){
+return;
+}
+if(_3e<0){
+_3e=0-_3e;
+}
+var _3f={};
+var _40={};
+var _41={};
+_3f[this._handleOffsetCoord]={start:this.sliderHandle.style[this._handleOffsetCoord],end:_37,units:"%"};
+_40[this._handleOffsetCoord]={start:this.sliderHandleMax.style[this._handleOffsetCoord],end:_38,units:"%"};
+_41[this._handleOffsetCoord]={start:this.progressBar.style[this._handleOffsetCoord],end:_39,units:"%"};
+_41[this._progressPixelSize]={start:this.progressBar.style[this._progressPixelSize],end:(_35-_34)*100,units:"%"};
+var _42=dojo.animateProperty({node:this.sliderHandle,duration:_3e,properties:_3f});
+var _43=dojo.animateProperty({node:this.sliderHandleMax,duration:_3e,properties:_40});
+var _44=dojo.animateProperty({node:this.progressBar,duration:_3e,properties:_41});
+var _45=dojo.fx.combine([_42,_43,_44]);
+_45.play();
+}else{
+this.sliderHandle.style[this._handleOffsetCoord]=_37+"%";
+this.sliderHandleMax.style[this._handleOffsetCoord]=_38+"%";
+this.progressBar.style[this._handleOffsetCoord]=_39+"%";
+this.progressBar.style[this._progressPixelSize]=((_35-_34)*100)+"%";
+}
+}});
+dojo.declare("dijit.form._SliderMoverMax",dijit.form._SliderMover,{onMouseMove:function(e){
+var _47=this.widget;
+var _48=_47._abspos;
+if(!_48){
+_48=_47._abspos=dojo.coords(_47.sliderBarContainer,true);
+_47._setPixelValue_=dojo.hitch(_47,"_setPixelValue");
+_47._isReversed_=_47._isReversed();
+}
+var _49=e[_47._mousePixelCoord]-_48[_47._startingPixelCoord];
+_47._setPixelValue_(_47._isReversed_?(_48[_47._pixelCount]-_49):_49,_48[_47._pixelCount],false,true);
+},destroy:function(e){
+dojo.dnd.Mover.prototype.destroy.apply(this,arguments);
+var _4b=this.widget;
+_4b._abspos=null;
+_4b._setValueAttr(_4b.value,true);
+}});
+dojo.declare("dijit.form._SliderBarMover",dojo.dnd.Mover,{onMouseMove:function(e){
+var _4d=this.widget;
+if(_4d.disabled||_4d.readOnly){
+return;
+}
+var _4e=_4d._abspos;
+var bar=_4d._bar;
+var _50=_4d._mouseOffset;
+if(!_4e){
+_4e=_4d._abspos=dojo.coords(_4d.sliderBarContainer,true);
+_4d._setPixelValue_=dojo.hitch(_4d,"_setPixelValue");
+_4d._getValueByPixelValue_=dojo.hitch(_4d,"_getValueByPixelValue");
+_4d._isReversed_=_4d._isReversed();
+}
+if(!bar){
+bar=_4d._bar=dojo.coords(_4d.progressBar,true);
+}
+if(!_50){
+_50=_4d._mouseOffset=e[_4d._mousePixelCoord]-_4e[_4d._startingPixelCoord]-bar[_4d._startingPixelCount];
+}
+var _51=e[_4d._mousePixelCoord]-_4e[_4d._startingPixelCoord]-_50;
+var _52=e[_4d._mousePixelCoord]-_4e[_4d._startingPixelCoord]-_50+bar[_4d._pixelCount];
+var _53=[_51,_52];
+_53.sort(function(a,b){
+return a-b;
+});
+if(_53[0]<=0){
+_53[0]=0;
+_53[1]=bar[_4d._pixelCount];
+}
+if(_53[1]>=_4e[_4d._pixelCount]){
+_53[1]=_4e[_4d._pixelCount];
+_53[0]=_4e[_4d._pixelCount]-bar[_4d._pixelCount];
+}
+var _56=[_4d._getValueByPixelValue(_4d._isReversed_?(_4e[_4d._pixelCount]-_53[0]):_53[0],_4e[_4d._pixelCount]),_4d._getValueByPixelValue(_4d._isReversed_?(_4e[_4d._pixelCount]-_53[1]):_53[1],_4e[_4d._pixelCount])];
+_4d._setValueAttr(_56,false,false);
+},destroy:function(e){
+dojo.dnd.Mover.prototype.destroy.apply(this,arguments);
+var _58=this.widget;
+_58._abspos=null;
+_58._bar=null;
+_58._mouseOffset=null;
+_58._setValueAttr(_58.value,true);
+}});
+dojo.declare("dojox.form.HorizontalRangeSlider",[dijit.form.HorizontalSlider,dojox.form._RangeSliderMixin],{templateString:"<table class=\"dijit dijitReset dijitSlider dojoxRangeSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\"\n    ><tr class=\"dijitReset\"\n        ><td class=\"dijitReset\" colspan=\"2\"></td\n        ><td dojoAttachPoint=\"containerNode,topDecoration\" class=\"dijitReset\" style=\"text-align:center;width:100%;\"></td\n        ><td class=\"dijitReset\" colspan=\"2\"></td\n    ></tr\n    ><tr class=\"dijitReset\"\n        ><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\n            ><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\" dojoAttachEvent=\"onclick: decrement\"><span class=\"dijitSliderButtonInner\">-</span></div\n        ></td\n        ><td class=\"dijitReset\"\n            ><div class=\"dijitSliderBar dijitSliderBumper dijitSl
 iderBumperH dijitSliderLeftBumper dijitSliderLeftBumperH\" dojoAttachEvent=\"onclick:_onClkDecBumper\"></div\n        ></td\n        ><td class=\"dijitReset\"\n            ><input dojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\n            /><div waiRole=\"presentation\" class=\"dojoxRangeSliderBarContainer\" dojoAttachPoint=\"sliderBarContainer\"\n                ><div dojoAttachPoint=\"sliderHandle\" tabIndex=\"${tabIndex}\" class=\"dijitSliderMoveable\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"\n                    ><div class=\"dijitSliderImageHandle dijitSliderImageHandleH\"></div\n                ></div\n                ><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar,focusNode\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_onBarClick\"></div\n         
        ><div dojoAttachPoint=\"sliderHandleMax,focusNodeMax\" tabIndex=\"${tabIndex}\" class=\"dijitSliderMoveable\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_onHandleClickMax\" waiRole=\"sliderMax\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"\n                    ><div class=\"dijitSliderImageHandle dijitSliderImageHandleH\"></div\n                ></div\n                ><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onmousedown:_onRemainingBarClick\"></div\n            ></div\n        ></td\n        ><td class=\"dijitReset\"\n            ><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper dijitSliderRightBumperH\" dojoAttachEvent=\"onclick:_onClkIncBumper\"></div\n        ></td\n        ><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\n            ><div class=\"dijit
 SliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\" dojoAttachEvent=\"onclick: increment\"><span class=\"dijitSliderButtonInner\">+</span></div\n        ></td\n    ></tr\n    ><tr class=\"dijitReset\"\n        ><td class=\"dijitReset\" colspan=\"2\"></td\n        ><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset\" style=\"text-align:center;\"></td\n        ><td class=\"dijitReset\" colspan=\"2\"></td\n    ></tr\n></table>\n"});
+dojo.declare("dojox.form.VerticalRangeSlider",[dijit.form.VerticalSlider,dojox.form._RangeSliderMixin],{templateString:"<table class=\"dijitReset dijitSlider dojoxRangeSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\"\n><tbody class=\"dijitReset\"\n    ><tr class=\"dijitReset\"\n        ><td class=\"dijitReset\"></td\n        ><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\n            ><div class=\"dijitSliderIncrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\" dojoAttachEvent=\"onclick: increment\"><span class=\"dijitSliderButtonInner\">+</span></div\n        ></td\n        ><td class=\"dijitReset\"></td\n    ></tr\n    ><tr class=\"dijitReset\"\n        ><td class=\"dijitReset\"></td\n        ><td class=\"dijitReset\"\n            ><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper dijitSliderTopBumperV\" dojoAttachEvent=\"onclick:_onCl
 kIncBumper\"></div></center\n        ></td\n        ><td class=\"dijitReset\"></td\n    ></tr\n    ><tr class=\"dijitReset\"\n        ><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n        ><td class=\"dijitReset\" style=\"height:100%;\"\n            ><input dojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\n            /><center waiRole=\"presentation\" style=\"position:relative;height:100%;\" dojoAttachPoint=\"sliderBarContainer\"\n                ><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" dojoAttachEvent=\"onmousedown:_onRemainingBarClick\"\n                    ><div dojoAttachPoint=\"sliderHandle\" tabIndex=\"${tabIndex}\" class=\"dijitSliderMoveable\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_onHandleClick\" style=\"vertical-align:top;\" waiRole=\"slider\" valuemin=\"${minimum
 }\" valuemax=\"${maximum}\"\n                        ><div class=\"dijitSliderImageHandle dijitSliderImageHandleV\"></div\n                    ></div\n                    ><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar,focusNode\" tabIndex=\"${tabIndex}\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_onBarClick\"\n                    ></div\n                    ><div dojoAttachPoint=\"sliderHandleMax,focusNodeMax\" tabIndex=\"${tabIndex}\" class=\"dijitSliderMoveable\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_onHandleClickMax\" style=\"vertical-align:top;\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"\n                        ><div class=\"dijitSliderImageHandle dijitSliderImageHandleV\"></div\n                    ></div\n                ></div\n            ></center\n        ></td\n        ><td dojoAttachPoint=\"containerNode,rightD
 ecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n    ></tr\n    ><tr class=\"dijitReset\"\n        ><td class=\"dijitReset\"></td\n        ><td class=\"dijitReset\"\n            ><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper dijitSliderBottomBumperV\" dojoAttachEvent=\"onclick:_onClkDecBumper\"></div></center\n        ></td\n        ><td class=\"dijitReset\"></td\n    ></tr\n    ><tr class=\"dijitReset\"\n        ><td class=\"dijitReset\"></td\n        ><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\n            ><div class=\"dijitSliderDecrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\" dojoAttachEvent=\"onclick: decrement\"><span class=\"dijitSliderButtonInner\">-</span></div\n        ></td\n        ><td class=\"dijitReset\"></td\n    ></tr\n></tbody></table>\n"});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/RangeSlider.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/Rating.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/Rating.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/Rating.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/Rating.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,56 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.Rating"]){
+dojo._hasResource["dojox.form.Rating"]=true;
+dojo.provide("dojox.form.Rating");
+dojo.require("dijit.form._FormWidget");
+dojo.declare("dojox.form.Rating",dijit.form._FormWidget,{templateString:null,numStars:3,value:0,constructor:function(_1){
+dojo.mixin(this,_1);
+var _2="<div dojoAttachPoint=\"domNode\" class=\"dojoxRating dijitInline\">"+"<input type=\"hidden\" value=\"0\" dojoAttachPoint=\"focusNode\" /><ul>${stars}</ul>"+"</div>";
+var _3="<li class=\"dojoxRatingStar dijitInline\" dojoAttachEvent=\"onclick:onStarClick,onmouseover:_onMouse,onmouseout:_onMouse\" value=\"${value}\"></li>";
+var _4="";
+for(var i=0;i<this.numStars;i++){
+_4+=dojo.string.substitute(_3,{value:i+1});
+}
+this.templateString=dojo.string.substitute(_2,{stars:_4});
+},postCreate:function(){
+this.inherited(arguments);
+this._renderStars(this.value);
+},_onMouse:function(_6){
+this.inherited(arguments);
+if(this._hovering){
+var _7=+dojo.attr(_6.target,"value");
+this.onMouseOver(_6,_7);
+this._renderStars(_7,true);
+}else{
+this._renderStars(this.value);
+}
+},_renderStars:function(_8,_9){
+dojo.query(".dojoxRatingStar",this.domNode).forEach(function(_a,i){
+if(i+1>_8){
+dojo.removeClass(_a,"dojoxRatingStarHover");
+dojo.removeClass(_a,"dojoxRatingStarChecked");
+}else{
+dojo.removeClass(_a,"dojoxRatingStar"+(_9?"Checked":"Hover"));
+dojo.addClass(_a,"dojoxRatingStar"+(_9?"Hover":"Checked"));
+}
+});
+},onStarClick:function(_c){
+var _d=+dojo.attr(_c.target,"value");
+this.setAttribute("value",_d==this.value?0:_d);
+this._renderStars(this.value);
+this.onChange(this.value);
+},onMouseOver:function(){
+},setAttribute:function(_e,_f){
+this.inherited("setAttribute",arguments);
+if(_e=="value"){
+this._renderStars(this.value);
+this.onChange(this.value);
+}
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/Rating.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/TimeSpinner.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/TimeSpinner.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/TimeSpinner.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/TimeSpinner.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,28 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.TimeSpinner"]){
+dojo._hasResource["dojox.form.TimeSpinner"]=true;
+dojo.provide("dojox.form.TimeSpinner");
+dojo.require("dijit.form._Spinner");
+dojo.require("dijit.form.NumberTextBox");
+dojo.require("dojo.date");
+dojo.require("dojo.date.locale");
+dojo.require("dojo.date.stamp");
+dojo.declare("dojox.form.TimeSpinner",[dijit.form._Spinner],{required:false,adjust:function(_1,_2){
+return dojo.date.add(_1,"minute",_2);
+},isValid:function(){
+return true;
+},smallDelta:5,largeDelta:30,timeoutChangeRate:0.5,parse:function(_3,_4){
+return dojo.date.locale.parse(_3,{selector:"time",formatLength:"short"});
+},format:function(_5,_6){
+if(dojo.isString(_5)){
+return _5;
+}
+return dojo.date.locale.format(_5,{selector:"time",formatLength:"short"});
+},serialize:dojo.date.stamp.toISOString,value:"12:00 AM"});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/TimeSpinner.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_FormSelectWidget.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_FormSelectWidget.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_FormSelectWidget.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_FormSelectWidget.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,211 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form._FormSelectWidget"]){
+dojo._hasResource["dojox.form._FormSelectWidget"]=true;
+dojo.provide("dojox.form._FormSelectWidget");
+dojo.require("dijit.form._FormWidget");
+dojo.declare("dojox.form._FormSelectWidget",dijit.form._FormValueWidget,{multiple:"",_multiValue:false,options:null,getOptions:function(_1){
+var _2=_1,_3=this.options||[],l=_3.length;
+if(_2===undefined){
+return _3;
+}
+if(dojo.isArray(_2)){
+return dojo.map(_2,"return this.getOptions(item);",this);
+}
+if(dojo.isObject(_1)){
+if(!dojo.some(this.options,function(o,_6){
+if(o===_2||(o.value&&o.value===_2.value)){
+_2=_6;
+return true;
+}
+return false;
+})){
+_2=-1;
+}
+}
+if(typeof _2=="string"){
+for(var i=0;i<l;i++){
+if(_3[i].value===_2){
+_2=i;
+break;
+}
+}
+}
+if(typeof _2=="number"&&_2>=0&&_2<l){
+return this.options[_2];
+}
+return null;
+},addOption:function(_8){
+if(!dojo.isArray(_8)){
+_8=[_8];
+}
+dojo.forEach(_8,function(i){
+if(i&&dojo.isObject(i)){
+this.options.push(i);
+}
+},this);
+this._loadChildren();
+},removeOption:function(_a){
+if(!dojo.isArray(_a)){
+_a=[_a];
+}
+var _b=this.getOptions(_a);
+dojo.forEach(_b,function(i){
+this.options=dojo.filter(this.options,function(_d,_e){
+return (_d.value!==i.value);
+});
+this._removeOptionItem(i);
+},this);
+this._loadChildren();
+},updateOption:function(_f){
+if(!dojo.isArray(_f)){
+_f=[_f];
+}
+dojo.forEach(_f,function(i){
+var _11=this.getOptions(i),k;
+if(_11){
+for(k in i){
+_11[k]=i[k];
+}
+}
+},this);
+this._loadChildren();
+},_setValueAttr:function(_13,_14){
+var _15=this.getOptions()||[];
+if(!dojo.isArray(_13)){
+_13=[_13];
+}
+dojo.forEach(_13,function(i,idx){
+if(!dojo.isObject(i)){
+i=i+"";
+}
+if(typeof i==="string"){
+_13[idx]=dojo.filter(_15,function(_18){
+return _18.value===i;
+})[0]||{value:"",label:""};
+}
+},this);
+_13=dojo.filter(_13,function(i){
+return i&&i.value;
+});
+if(!this._multiValue&&(!_13[0]||!_13[0].value)&&_15.length){
+_13[0]=_15[0];
+}
+dojo.forEach(_15,function(i){
+i.selected=dojo.some(_13,function(v){
+return v.value===i.value;
+});
+});
+var val=dojo.map(_13,function(i){
+return i.value;
+}),_1e=dojo.map(_13,function(i){
+return i.label;
+});
+this.value=this._multiValue?val:val[0];
+this._setDisplay(this._multiValue?_1e:_1e[0]);
+this._updateSelection();
+this._handleOnChange(this.value,_14);
+},_getDisplayedValueAttr:function(){
+var val=this.attr("value");
+if(!dojo.isArray(val)){
+val=[val];
+}
+var ret=dojo.map(this.getOptions(val),function(v){
+if(v&&"label" in v){
+return v.label;
+}else{
+if(v){
+return v.value;
+}
+}
+return null;
+},this);
+return this._multiValue?ret:ret[0];
+},_getValueDeprecated:false,getValue:function(){
+return this._lastValue;
+},undo:function(){
+this._setValueAttr(this._lastValueReported,false);
+},_loadChildren:function(){
+dojo.forEach(this._getChildren(),function(_23){
+_23.destroyRecursive();
+});
+dojo.forEach(this.options,this._addOptionItem,this);
+this._updateSelection();
+},_updateSelection:function(){
+this.value=this._getValueFromOpts();
+var val=this.value;
+if(!dojo.isArray(val)){
+val=[val];
+}
+if(val&&val[0]){
+dojo.forEach(this._getChildren(),function(_25){
+var _26=dojo.some(val,function(v){
+return _25.option&&(v===_25.option.value);
+});
+dojo.toggleClass(_25.domNode,this.baseClass+"SelectedOption",_26);
+dijit.setWaiState(_25.domNode,"selected",_26);
+},this);
+}
+this._handleOnChange(this.value);
+},_getValueFromOpts:function(){
+var _28=this.getOptions()||[];
+if(!this._multiValue&&_28.length){
+var opt=dojo.filter(_28,function(i){
+return i.selected;
+})[0];
+if(opt&&opt.value){
+return opt.value;
+}else{
+_28[0].selected=true;
+return _28[0].value;
+}
+}else{
+if(this._multiValue){
+return dojo.map(dojo.filter(_28,function(i){
+return i.selected;
+}),function(i){
+return i.value;
+})||[];
+}
+}
+return "";
+},postMixInProperties:function(){
+this._multiValue=(this.multiple.toLowerCase()==="true");
+this.inherited(arguments);
+},_fillContent:function(){
+var _2d=this.options;
+if(!_2d){
+_2d=this.options=this.srcNodeRef?dojo.query(">",this.srcNodeRef).map(function(_2e){
+if(_2e.getAttribute("type")==="separator"){
+return {value:"",label:"",selected:false,disabled:false};
+}
+return {value:_2e.getAttribute("value"),label:String(_2e.innerHTML),selected:_2e.getAttribute("selected")||false,disabled:_2e.getAttribute("disabled")||false};
+},this):[];
+}
+if(!this.value){
+this.value=this._getValueFromOpts();
+}else{
+if(this._multiValue&&typeof this.value=="string"){
+this.value=this.value.split(",");
+}
+}
+},postCreate:function(){
+dojo.setSelectable(this.focusNode,false);
+this.inherited(arguments);
+this.connect(this,"onChange","_updateSelection");
+this.connect(this,"startup","_loadChildren");
+this._setValueAttr(this.value,null);
+},_addOptionItem:function(_2f){
+},_removeOptionItem:function(_30){
+},_setDisplay:function(_31){
+},_getChildren:function(){
+return [];
+},_getSelectedOptionsAttr:function(){
+return this.getOptions(this.attr("value"));
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_FormSelectWidget.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_HasDropDown.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_HasDropDown.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_HasDropDown.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_HasDropDown.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,179 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form._HasDropDown"]){
+dojo._hasResource["dojox.form._HasDropDown"]=true;
+dojo.provide("dojox.form._HasDropDown");
+dojo.require("dijit._Widget");
+dojo.declare("dojox.form._HasDropDown",null,{dropDownNode:null,popupStateNode:null,aroundNode:null,dropDown:null,autoWidth:true,_stopClickEvents:true,_onMenuMouseup:function(e){
+},_onDropDownMouse:function(e){
+if(e.type=="click"&&!this._seenKeydown){
+return;
+}
+this._seenKeydown=false;
+if(e.type=="mousedown"){
+this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseup");
+}
+if(this.disabled||this.readOnly){
+return;
+}
+if(this._stopClickEvents){
+dojo.stopEvent(e);
+}
+this.toggleDropDown();
+if(e.type=="click"||e.type=="keypress"){
+this._onDropDownMouseup();
+}
+},_onDropDownMouseup:function(e){
+if(e&&this._docHandler){
+this.disconnect(this._docHandler);
+}
+var _4=this.dropDown,_5=false;
+if(e&&this._opened){
+var t=e.target;
+while(t&&!_5){
+if(dojo.hasClass(t,"dijitPopup")){
+_5=true;
+}else{
+t=t.parentNode;
+}
+}
+if(_5){
+this._onMenuMouseup(e);
+return;
+}
+}
+if(this._opened&&_4.focus){
+window.setTimeout(dojo.hitch(_4,"focus"),1);
+}else{
+dijit.focus(this.focusNode);
+}
+},_setupDropdown:function(){
+this.dropDownNode=this.dropDownNode||this.focusNode||this.domNode;
+this.popupStateNode=this.popupStateNode||this.focusNode||this.dropDownNode;
+this.aroundNode=this.aroundNode||this.domNode;
+this.connect(this.dropDownNode,"onmousedown","_onDropDownMouse");
+this.connect(this.dropDownNode,"onclick","_onDropDownMouse");
+this.connect(this.dropDownNode,"onkeydown","_onDropDownKeydown");
+this.connect(this.dropDownNode,"onblur","_onDropDownBlur");
+this.connect(this.dropDownNode,"onkeypress","_onKey");
+if(this._setStateClass){
+this.connect(this,"openDropDown","_setStateClass");
+this.connect(this,"closeDropDown","_setStateClass");
+}
+},postCreate:function(){
+this._setupDropdown();
+this.inherited("postCreate",arguments);
+},startup:function(){
+dijit.popup.prepare(this.dropDown.domNode);
+this.inherited("startup",arguments);
+},destroyDescendants:function(){
+if(this.dropDown){
+this.dropDown.destroyRecursive();
+delete this.dropDown;
+}
+this.inherited("destroyDescendants",arguments);
+},_onDropDownKeydown:function(e){
+this._seenKeydown=true;
+},_onKeyPress:function(e){
+if(this._opened&&e.charOrCode==dojo.keys.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){
+this.toggleDropDown();
+dojo.stopEvent(e);
+return;
+}
+this.inherited(arguments);
+},_onDropDownBlur:function(e){
+this._seenKeydown=false;
+},_onKey:function(e){
+if(this.disabled||this.readOnly){
+return;
+}
+var d=this.dropDown;
+if(d&&this._opened&&d.handleKey){
+if(d.handleKey(e)===false){
+return;
+}
+}
+if(d&&this._opened&&e.keyCode==dojo.keys.ESCAPE){
+this.toggleDropDown();
+return;
+}
+if(e.keyCode==dojo.keys.DOWN_ARROW){
+this._onDropDownMouse(e);
+}
+},_onBlur:function(){
+this.closeDropDown();
+this.inherited("_onBlur",arguments);
+},isLoaded:function(){
+return true;
+},loadDropDown:function(_c){
+_c();
+},toggleDropDown:function(){
+if(this.disabled||this.readOnly){
+return;
+}
+this.focus();
+var _d=this.dropDown;
+if(!_d){
+return;
+}
+if(!this._opened){
+if(!this.isLoaded()){
+this.loadDropDown(dojo.hitch(this,"openDropDown"));
+return;
+}else{
+this.openDropDown();
+}
+}else{
+this.closeDropDown();
+}
+},openDropDown:function(){
+var _e=this.dropDown;
+var _f=_e.domNode.style.width;
+var _10=this;
+var _11=dijit.popup.open({parent:this,popup:_e,around:this.aroundNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){
+_10.closeDropDown(true);
+},onCancel:function(){
+_10.closeDropDown(true);
+},onClose:function(){
+_e.domNode.style.width=_f;
+dojo.attr(_10.popupStateNode,"popupActive",false);
+dojo.removeClass(_10.popupStateNode,"dojoxHasDropDownOpen");
+_10._opened=false;
+_10.state="";
+}});
+if(this.autoWidth&&this.domNode.offsetWidth>_e.domNode.offsetWidth){
+var _12=null;
+if(!this.isLeftToRight()){
+_12=_e.domNode.parentNode;
+var _13=_12.offsetLeft+_12.offsetWidth;
+}
+if(_e.resize){
+_e.resize({w:this.domNode.offsetWidth});
+}else{
+dojo.marginBox(_e.domNode,{w:this.domNode.offsetWidth});
+}
+if(_12){
+_12.style.left=_13-this.domNode.offsetWidth+"px";
+}
+}
+dojo.attr(this.popupStateNode,"popupActive","true");
+dojo.addClass(_10.popupStateNode,"dojoxHasDropDownOpen");
+this._opened=true;
+this.state="Opened";
+return _11;
+},closeDropDown:function(_14){
+if(this._opened){
+dijit.popup.close(this.dropDown);
+if(_14){
+this.focus();
+}
+this._opened=false;
+this.state="";
+}
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_HasDropDown.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_SelectStackMixin.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_SelectStackMixin.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_SelectStackMixin.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_SelectStackMixin.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,94 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form._SelectStackMixin"]){
+dojo._hasResource["dojox.form._SelectStackMixin"]=true;
+dojo.provide("dojox.form._SelectStackMixin");
+dojo.declare("dojox.form._SelectStackMixin",null,{stackId:"",stackPrefix:"",_paneIdFromOption:function(_1){
+return (this.stackPrefix||"")+_1;
+},_optionValFromPane:function(id){
+var sp=this.stackPrefix;
+if(sp&&id.indexOf(sp)===0){
+return id.substring(sp.length);
+}
+return id;
+},_togglePane:function(_4,_5){
+if(_4._shown!=undefined&&_4._shown==_5){
+return;
+}
+var _6=dojo.filter(_4.getDescendants(),"return item.name;");
+if(!_5){
+_7={};
+dojo.forEach(_6,function(w){
+_7[w.id]=w.disabled;
+w.attr("disabled",true);
+});
+_4._savedStates=_7;
+}else{
+var _7=_4._savedStates||{};
+dojo.forEach(_6,function(w){
+var _a=_7[w.id];
+if(_a==undefined){
+_a=false;
+}
+w.attr("disabled",_a);
+});
+delete _4._savedStates;
+}
+_4._shown=_5;
+},onAddChild:function(_b,_c){
+if(!this._panes[_b.id]){
+this._panes[_b.id]=_b;
+this.addOption({value:this._optionValFromPane(_b.id),label:_b.title});
+}
+if(!_b.onShow||!_b.onHide||_b._shown==undefined){
+_b.onShow=dojo.hitch(this,"_togglePane",_b,true);
+_b.onHide=dojo.hitch(this,"_togglePane",_b,false);
+_b.onHide();
+}
+},onRemoveChild:function(_d){
+if(this._panes[_d.id]){
+delete this._panes[_d.id];
+this.removeOption(this._optionValFromPane(_d.id));
+}
+},onSelectChild:function(_e){
+this._setValueAttr(this._optionValFromPane(_e.id));
+},onStartup:function(_f){
+var _10=_f.selected;
+dojo.forEach(_f.children,function(c){
+this.onAddChild(c);
+if(this._savedValue&&this._optionValFromPane(c.id)){
+_10=c;
+}
+},this);
+delete this._savedValue;
+this.onSelectChild(_10);
+if(!_10._shown){
+this._togglePane(_10,true);
+}
+},postMixInProperties:function(){
+this._savedValue=this.value;
+this.inherited(arguments);
+},postCreate:function(){
+this.inherited(arguments);
+this._panes={};
+this._subscriptions=[dojo.subscribe(this.stackId+"-startup",this,"onStartup"),dojo.subscribe(this.stackId+"-addChild",this,"onAddChild"),dojo.subscribe(this.stackId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.stackId+"-selectChild",this,"onSelectChild")];
+var _12=dijit.byId(this.stackId);
+if(_12&&_12._started){
+this.onStartup({children:_12.getChildren(),selected:_12.selectedChildWidget});
+}
+},destroy:function(){
+dojo.forEach(this._subscriptions,dojo.unsubscribe);
+delete this._panes;
+this.inherited("destroy",arguments);
+},onChange:function(val){
+var _14=this._panes[this._paneIdFromOption(val)];
+if(_14){
+dijit.byId(this.stackId).selectChild(_14);
+}
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/_SelectStackMixin.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_ClassMixin.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_ClassMixin.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_ClassMixin.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_ClassMixin.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,31 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.manager._ClassMixin"]){
+dojo._hasResource["dojox.form.manager._ClassMixin"]=true;
+dojo.provide("dojox.form.manager._ClassMixin");
+dojo.require("dojox.form.manager._Mixin");
+(function(){
+var fm=dojox.form.manager,aa=fm.actionAdapter,ia=fm.inspectorAdapter;
+dojo.declare("dojox.form.manager._ClassMixin",null,{gatherClassState:function(_4,_5){
+var _6=this.inspect(ia(function(_7,_8){
+return dojo.hasClass(_8,_4);
+}),_5);
+return _6;
+},addClass:function(_9,_a){
+this.inspect(aa(function(_b,_c){
+dojo.addClass(_c,_9);
+}),_a);
+return this;
+},removeClass:function(_d,_e){
+this.inspect(aa(function(_f,_10){
+dojo.removeClass(_10,_d);
+}),_e);
+return this;
+}});
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_ClassMixin.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_DisplayMixin.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_DisplayMixin.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_DisplayMixin.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_DisplayMixin.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,27 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.manager._DisplayMixin"]){
+dojo._hasResource["dojox.form.manager._DisplayMixin"]=true;
+dojo.provide("dojox.form.manager._DisplayMixin");
+dojo.declare("dojox.form.manager._DisplayMixin",null,{gatherDisplayState:function(_1){
+var _2=this.inspectAttachedPoints(function(_3,_4){
+return dojo.style(_4,"display")!="none";
+},_1);
+return _2;
+},show:function(_5,_6){
+if(arguments.length<2){
+_6=true;
+}
+this.inspectAttachedPoints(function(_7,_8,_9){
+dojo.style(_8,"display",_9?"":"none");
+},_5,_6);
+return this;
+},hide:function(_a){
+return this.show(_a,false);
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_DisplayMixin.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_EnableMixin.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_EnableMixin.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_EnableMixin.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_EnableMixin.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,43 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.manager._EnableMixin"]){
+dojo._hasResource["dojox.form.manager._EnableMixin"]=true;
+dojo.provide("dojox.form.manager._EnableMixin");
+dojo.require("dojox.form.manager._Mixin");
+(function(){
+var fm=dojox.form.manager,aa=fm.actionAdapter,ia=fm.inspectorAdapter;
+dojo.declare("dojox.form.manager._EnableMixin",null,{gatherEnableState:function(_4){
+var _5=this.inspectFormWidgets(ia(function(_6,_7){
+return !_7.attr("disabled");
+}),_4);
+if(this.inspectFormNodes){
+dojo.mixin(_5,this.inspectFormNodes(ia(function(_8,_9){
+return !dojo.attr(_9,"disabled");
+}),_4));
+}
+return _5;
+},enable:function(_a,_b){
+if(arguments.length<2||_b===undefined){
+_b=true;
+}
+this.inspectFormWidgets(aa(function(_c,_d,_e){
+_d.attr("disabled",!_e);
+}),_a,_b);
+if(this.inspectFormNodes){
+this.inspectFormNodes(aa(function(_f,_10,_11){
+dojo.attr(_10,"disabled",!_11);
+}),_a,_b);
+}
+return this;
+},disable:function(_12){
+var _13=this.gatherEnableState();
+this.enable(_12,false);
+return _13;
+}});
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_EnableMixin.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_FormMixin.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_FormMixin.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_FormMixin.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_FormMixin.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,70 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.manager._FormMixin"]){
+dojo._hasResource["dojox.form.manager._FormMixin"]=true;
+dojo.provide("dojox.form.manager._FormMixin");
+dojo.require("dojox.form.manager._Mixin");
+(function(){
+var fm=dojox.form.manager,aa=fm.actionAdapter;
+dojo.declare("dojox.form.manager._FormMixin",null,{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",startup:function(){
+this.isForm=this.domNode.tagName.toLowerCase()=="form";
+if(this.isForm){
+this.connect(this.domNode,"onreset","_onReset");
+this.connect(this.domNode,"onsubmit","_onSubmit");
+}
+this.inherited(arguments);
+},_onReset:function(_3){
+var _4={returnValue:true,preventDefault:function(){
+this.returnValue=false;
+},stopPropagation:function(){
+},currentTarget:_3.currentTarget,target:_3.target};
+if(!(this.onReset(_4)===false)&&_4.returnValue){
+this.reset();
+}
+dojo.stopEvent(_3);
+return false;
+},onReset:function(){
+return true;
+},reset:function(){
+this.inspectFormWidgets(aa(function(_,_6){
+if(_6.reset){
+_6.reset();
+}
+}));
+if(this.isForm){
+this.domNode.reset();
+}
+return this;
+},_onSubmit:function(_7){
+if(this.onSubmit(_7)===false){
+dojo.stopEvent(_7);
+}
+},onSubmit:function(){
+return this.isValid();
+},submit:function(){
+if(this.isForm){
+if(!(this.onSubmit()===false)){
+this.domNode.submit();
+}
+}
+},isValid:function(){
+for(var _8 in this.formWidgets){
+var _9=false;
+aa(function(_,_b){
+if(!_b.attr("disabled")&&_b.isValid&&!_b.isValid()){
+_9=true;
+}
+}).call(this,null,this.formWidgets[_8].widget);
+if(_9){
+return false;
+}
+}
+return true;
+}});
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_FormMixin.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_Mixin.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_Mixin.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_Mixin.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_Mixin.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,274 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.manager._Mixin"]){
+dojo._hasResource["dojox.form.manager._Mixin"]=true;
+dojo.provide("dojox.form.manager._Mixin");
+dojo.require("dijit._Widget");
+(function(){
+var fm=dojox.form.manager,aa=fm.actionAdapter=function(_3){
+return function(_4,_5,_6){
+if(dojo.isArray(_5)){
+dojo.forEach(_5,function(_7){
+_3.call(this,_4,_7,_6);
+},this);
+}else{
+_3.apply(this,arguments);
+}
+};
+},ia=fm.inspectorAdapter=function(_9){
+return function(_a,_b,_c){
+return _9.call(this,_a,dojo.isArray(_b)?_b[0]:_b,_c);
+};
+},_d={domNode:1,containerNode:1,srcNodeRef:1,bgIframe:1},_e=fm._keys=function(o){
+var _10=[],key;
+for(key in o){
+if(o.hasOwnProperty(key)){
+_10.push(key);
+}
+}
+return _10;
+},_12=function(_13){
+var _14=_13.attr("name");
+if(_14&&_13 instanceof dijit.form._FormWidget){
+if(_14 in this.formWidgets){
+var a=this.formWidgets[_14].widget;
+if(dojo.isArray(a)){
+a.push(_13);
+}else{
+this.formWidgets[_14].widget=[a,_13];
+}
+}else{
+this.formWidgets[_14]={widget:_13,connections:[]};
+}
+}else{
+_14=null;
+}
+return _14;
+},_16=function(_17){
+var _18={};
+aa(function(_,w){
+var o=w.attr("observer");
+if(o&&typeof o=="string"){
+dojo.forEach(o.split(","),function(o){
+o=dojo.trim(o);
+if(o&&dojo.isFunction(this[o])){
+_18[o]=1;
+}
+},this);
+}
+}).call(this,null,this.formWidgets[_17].widget);
+return _e(_18);
+},_1d=function(_1e,_1f){
+var t=this.formWidgets[_1e],w=t.widget,c=t.connections;
+if(c.length){
+dojo.forEach(c,dojo.disconnect);
+c=t.connections=[];
+}
+if(dojo.isArray(w)){
+dojo.forEach(w,function(w){
+dojo.forEach(_1f,function(o){
+c.push(dojo.connect(w,"onChange",this,function(evt){
+if(this.watch&&dojo.attr(w.focusNode,"checked")){
+this[o](w.attr("value"),_1e,w,evt);
+}
+}));
+},this);
+},this);
+}else{
+var _26=w.declaredClass=="dijit.form.Button"?"onClick":"onChange";
+dojo.forEach(_1f,function(o){
+c.push(dojo.connect(w,_26,this,function(evt){
+if(this.watch){
+this[o](w.attr("value"),_1e,w,evt);
+}
+}));
+},this);
+}
+};
+dojo.declare("dojox.form.manager._Mixin",null,{watch:true,startup:function(){
+if(this._started){
+return;
+}
+this.formWidgets={};
+this.formNodes={};
+this.registerWidgetDescendants(this);
+this.inherited(arguments);
+},destroy:function(){
+for(var _29 in this.formWidgets){
+dojo.forEach(this.formWidgets[_29].connections,dojo.disconnect);
+}
+this.formWidgets={};
+this.inherited(arguments);
+},registerWidget:function(_2a){
+if(typeof _2a=="string"){
+_2a=dijit.byId(_2a);
+}else{
+if(_2a.tagName&&_2a.cloneNode){
+_2a=dijit.byNode(_2a);
+}
+}
+var _2b=_12.call(this,_2a);
+if(_2b){
+_1d.call(this,_2b,_16.call(this,_2b));
+}
+return this;
+},unregisterWidget:function(_2c){
+if(_2c in this.formWidgets){
+dojo.forEach(this.formWidgets[_2c].connections,this.disconnect,this);
+delete this.formWidgets[_2c];
+}
+return this;
+},registerWidgetDescendants:function(_2d){
+if(typeof _2d=="string"){
+_2d=dijit.byId(_2d);
+}else{
+if(_2d.tagName&&_2d.cloneNode){
+_2d=dijit.byNode(_2d);
+}
+}
+var _2e=dojo.map(_2d.getDescendants(),_12,this);
+dojo.forEach(_2e,function(_2f){
+if(_2f){
+_1d.call(this,_2f,_16.call(this,_2f));
+}
+},this);
+return this.registerNodeDescendants?this.registerNodeDescendants(_2d.domNode):this;
+},unregisterWidgetDescendants:function(_30){
+if(typeof _30=="string"){
+_30=dijit.byId(_30);
+}else{
+if(_30.tagName&&_30.cloneNode){
+_30=dijit.byNode(_30);
+}
+}
+dojo.forEach(dojo.map(_30.getDescendants(),function(w){
+return w instanceof dijit.form._FormWidget&&w.attr("name")||null;
+}),function(_32){
+if(_32){
+this.unregisterNode(_32);
+}
+},this);
+return this.unregisterNodeDescendants?this.unregisterNodeDescendants(_30.domNode):this;
+},formWidgetValue:function(_33,_34){
+var _35=arguments.length==2&&_34!==undefined,_36;
+if(typeof _33=="string"){
+_33=this.formWidgets[_33];
+if(_33){
+_33=_33.widget;
+}
+}
+if(!_33){
+return null;
+}
+if(dojo.isArray(_33)){
+if(_35){
+dojo.forEach(_33,function(_37){
+_37.attr("checked",false);
+});
+dojo.forEach(_33,function(_38){
+_38.attr("checked",_38.attr("value")===_34);
+});
+return this;
+}
+dojo.some(_33,function(_39){
+if(dojo.attr(_39.focusNode,"checked")){
+_36=_39;
+return true;
+}
+return false;
+});
+return _36?_36.attr("value"):"";
+}
+if(_35){
+_33.attr("value",_34);
+return this;
+}
+return _33.attr("value");
+},formPointValue:function(_3a,_3b){
+if(_3a&&typeof _3a=="string"){
+_3a=this[_3a];
+}
+if(!_3a||!_3a.tagName||!_3a.cloneNode){
+return null;
+}
+if(!dojo.hasClass(_3a,"dojoFormValue")){
+return null;
+}
+if(arguments.length==2&&_3b!==undefined){
+_3a.innerHTML=_3b;
+return this;
+}
+return _3a.innerHTML;
+},inspectFormWidgets:function(_3c,_3d,_3e){
+var _3f,_40={};
+if(_3d){
+if(dojo.isArray(_3d)){
+dojo.forEach(_3d,function(_41){
+if(_41 in this.formWidgets){
+_40[_41]=_3c.call(this,_41,this.formWidgets[_41].widget,_3e);
+}
+},this);
+}else{
+for(_3f in _3d){
+if(_3f in this.formWidgets){
+_40[_3f]=_3c.call(this,_3f,this.formWidgets[_3f].widget,_3d[_3f]);
+}
+}
+}
+}else{
+for(_3f in this.formWidgets){
+_40[_3f]=_3c.call(this,_3f,this.formWidgets[_3f].widget,_3e);
+}
+}
+return _40;
+},inspectAttachedPoints:function(_42,_43,_44){
+var _45,_46={};
+if(_43){
+if(dojo.isArray(_43)){
+dojo.forEach(_43,function(_47){
+var _48=this[_47];
+if(_48&&_48.tagName&&_48.cloneNode){
+_46[_47]=_42.call(this,_47,_48,_44);
+}
+},this);
+}else{
+for(_45 in _43){
+var _49=this[_45];
+if(_49&&_49.tagName&&_49.cloneNode){
+_46[_45]=_42.call(this,_45,_49,_43[_45]);
+}
+}
+}
+}else{
+for(_45 in this){
+if(!(_45 in _d)){
+var _49=this[_45];
+if(_49&&_49.tagName&&_49.cloneNode){
+_46[_45]=_42.call(this,_45,_49,_44);
+}
+}
+}
+}
+return _46;
+},inspect:function(_4a,_4b,_4c){
+var _4d=this.inspectFormWidgets(function(_4e,_4f,_50){
+if(dojo.isArray(_4f)){
+return _4a.call(this,_4e,dojo.map(_4f,function(w){
+return w.domNode;
+}),_50);
+}
+return _4a.call(this,_4e,_4f.domNode,_50);
+},_4b,_4c);
+if(this.inspectFormNodes){
+dojo.mixin(_4d,this.inspectFormNodes(_4a,_4b,_4c));
+}
+return dojo.mixin(_4d,this.inspectAttachedPoints(_4a,_4b,_4c));
+}});
+})();
+dojo.extend(dijit._Widget,{observer:""});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/manager/_Mixin.js
------------------------------------------------------------------------------
    svn:eol-style = native