http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/model.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/model.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/model.js deleted file mode 100644 index 88217c1..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/model.js +++ /dev/null @@ -1,490 +0,0 @@ -/* - 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.grid.compat._data.model"]){ -dojo._hasResource["dojox.grid.compat._data.model"]=true; -dojo.provide("dojox.grid.compat._data.model"); -dojo.require("dojox.grid.compat._data.fields"); -dojo.declare("dojox.grid.data.Model",null,{constructor:function(_1,_2){ -this.observers=[]; -this.fields=new dojox.grid.data.Fields(); -if(_1){ -this.fields.set(_1); -} -this.setData(_2); -},count:0,updating:0,observer:function(_3,_4){ -this.observers.push({o:_3,p:_4||"model"}); -},notObserver:function(_5){ -for(var i=0,m,o;(o=this.observers[i]);i++){ -if(o.o==_5){ -this.observers.splice(i,1); -return; -} -} -},notify:function(_9,_a){ -var a=_a||[]; -for(var i=0,m,o;(o=this.observers[i]);i++){ -m=o.p+_9; -o=o.o; -(m in o)&&(o[m].apply(o,a)); -} -},clear:function(){ -this.fields.clear(); -this.clearData(); -},beginUpdate:function(){ -this.notify("BeginUpdate",arguments); -},endUpdate:function(){ -this.notify("EndUpdate",arguments); -},clearData:function(){ -this.setData(null); -},change:function(){ -this.notify("Change",arguments); -},insertion:function(){ -this.notify("Insertion",arguments); -this.notify("Change",arguments); -},removal:function(){ -this.notify("Removal",arguments); -this.notify("Change",arguments); -},insert:function(_f){ -if(!this._insert.apply(this,arguments)){ -return false; -} -this.insertion.apply(this,dojo._toArray(arguments,1)); -return true; -},remove:function(_10){ -if(!this._remove.apply(this,arguments)){ -return false; -} -this.removal.apply(this,arguments); -return true; -},canSort:function(){ -return this.sort!=null; -},generateComparator:function(_11,_12,_13,_14){ -return function(a,b){ -var _17=_11(a[_12],b[_12]); -return _17?(_13?_17:-_17):_14&&_14(a,b); -}; -},makeComparator:function(_18){ -var idx,col,_1b,_1c=null; -for(var i=_18.length-1;i>=0;i--){ -idx=_18[i]; -col=Math.abs(idx)-1; -if(col>=0){ -_1b=this.fields.get(col); -_1c=this.generateComparator(_1b.compare,_1b.key,idx>0,_1c); -} -} -return _1c; -},sort:null,dummy:0}); -dojo.declare("dojox.grid.data.Rows",dojox.grid.data.Model,{allChange:function(){ -this.notify("AllChange",arguments); -this.notify("Change",arguments); -},rowChange:function(){ -this.notify("RowChange",arguments); -},datumChange:function(){ -this.notify("DatumChange",arguments); -},beginModifyRow:function(_1e){ -if(!this.cache[_1e]){ -this.cache[_1e]=this.copyRow(_1e); -} -},endModifyRow:function(_1f){ -var _20=this.cache[_1f]; -if(_20){ -var _21=this.getRow(_1f); -if(!dojox.grid.arrayCompare(_20,_21)){ -this.update(_20,_21,_1f); -} -delete this.cache[_1f]; -} -},cancelModifyRow:function(_22){ -var _23=this.cache[_22]; -if(_23){ -this.setRow(_23,_22); -delete this.cache[_22]; -} -}}); -dojo.declare("dojox.grid.data.Table",dojox.grid.data.Rows,{constructor:function(){ -this.cache=[]; -},colCount:0,data:null,cache:null,measure:function(){ -this.count=this.getRowCount(); -this.colCount=this.getColCount(); -this.allChange(); -},getRowCount:function(){ -return (this.data?this.data.length:0); -},getColCount:function(){ -return (this.data&&this.data.length?this.data[0].length:this.fields.count()); -},badIndex:function(_24,_25){ -console.error("dojox.grid.data.Table: badIndex"); -},isGoodIndex:function(_26,_27){ -return (_26>=0&&_26<this.count&&(arguments.length<2||(_27>=0&&_27<this.colCount))); -},getRow:function(_28){ -return this.data[_28]; -},copyRow:function(_29){ -return this.getRow(_29).slice(0); -},getDatum:function(_2a,_2b){ -return this.data[_2a][_2b]; -},get:function(){ -throw ("Plain \"get\" no longer supported. Use \"getRow\" or \"getDatum\"."); -},setData:function(_2c){ -this.data=(_2c||[]); -this.allChange(); -},setRow:function(_2d,_2e){ -this.data[_2e]=_2d; -this.rowChange(_2d,_2e); -this.change(); -},setDatum:function(_2f,_30,_31){ -this.data[_30][_31]=_2f; -this.datumChange(_2f,_30,_31); -},set:function(){ -throw ("Plain \"set\" no longer supported. Use \"setData\", \"setRow\", or \"setDatum\"."); -},setRows:function(_32,_33){ -for(var i=0,l=_32.length,r=_33;i<l;i++,r++){ -this.setRow(_32[i],r); -} -},update:function(_37,_38,_39){ -return true; -},_insert:function(_3a,_3b){ -dojox.grid.arrayInsert(this.data,_3b,_3a); -this.count++; -return true; -},_remove:function(_3c){ -for(var i=_3c.length-1;i>=0;i--){ -dojox.grid.arrayRemove(this.data,_3c[i]); -} -this.count-=_3c.length; -return true; -},sort:function(){ -this.data.sort(this.makeComparator(arguments)); -},swap:function(_3e,_3f){ -dojox.grid.arraySwap(this.data,_3e,_3f); -this.rowChange(this.getRow(_3e),_3e); -this.rowChange(this.getRow(_3f),_3f); -this.change(); -},dummy:0}); -dojo.declare("dojox.grid.data.Objects",dojox.grid.data.Table,{constructor:function(_40,_41,_42){ -if(!_40){ -this.autoAssignFields(); -} -},allChange:function(){ -this.notify("FieldsChange"); -this.inherited(arguments); -},autoAssignFields:function(){ -var d=this.data[0],i=0,_45; -for(var f in d){ -_45=this.fields.get(i++); -if(!dojo.isString(_45.key)){ -_45.key=f; -} -} -},setData:function(_47){ -this.data=(_47||[]); -this.autoAssignFields(); -this.allChange(); -},getDatum:function(_48,_49){ -return this.data[_48][this.fields.get(_49).key]; -}}); -dojo.declare("dojox.grid.data.Dynamic",dojox.grid.data.Table,{constructor:function(){ -this.page=[]; -this.pages=[]; -},page:null,pages:null,rowsPerPage:100,requests:0,bop:-1,eop:-1,clearData:function(){ -this.pages=[]; -this.bop=this.eop=-1; -this.setData([]); -},getRowCount:function(){ -return this.count; -},getColCount:function(){ -return this.fields.count(); -},setRowCount:function(_4a){ -this.count=_4a; -this.change(); -},requestsPending:function(_4b){ -},rowToPage:function(_4c){ -return (this.rowsPerPage?Math.floor(_4c/this.rowsPerPage):_4c); -},pageToRow:function(_4d){ -return (this.rowsPerPage?this.rowsPerPage*_4d:_4d); -},requestRows:function(_4e,_4f){ -},rowsProvided:function(_50,_51){ -this.requests--; -if(this.requests==0){ -this.requestsPending(false); -} -},requestPage:function(_52){ -var row=this.pageToRow(_52); -var _54=Math.min(this.rowsPerPage,this.count-row); -if(_54>0){ -this.requests++; -this.requestsPending(true); -setTimeout(dojo.hitch(this,"requestRows",row,_54),1); -} -},needPage:function(_55){ -if(!this.pages[_55]){ -this.pages[_55]=true; -this.requestPage(_55); -} -},preparePage:function(_56,_57){ -if(_56<this.bop||_56>=this.eop){ -var _58=this.rowToPage(_56); -this.needPage(_58); -this.bop=_58*this.rowsPerPage; -this.eop=this.bop+(this.rowsPerPage||this.count); -} -},isRowLoaded:function(_59){ -return Boolean(this.data[_59]); -},removePages:function(_5a){ -for(var i=0,r;((r=_5a[i])!=undefined);i++){ -this.pages[this.rowToPage(r)]=false; -} -this.bop=this.eop=-1; -},remove:function(_5d){ -this.removePages(_5d); -dojox.grid.data.Table.prototype.remove.apply(this,arguments); -},getRow:function(_5e){ -var row=this.data[_5e]; -if(!row){ -this.preparePage(_5e); -} -return row; -},getDatum:function(_60,_61){ -var row=this.getRow(_60); -return (row?row[_61]:this.fields.get(_61).na); -},setDatum:function(_63,_64,_65){ -var row=this.getRow(_64); -if(row){ -row[_65]=_63; -this.datumChange(_63,_64,_65); -}else{ -console.error("["+this.declaredClass+"] dojox.grid.data.dynamic.set: cannot set data on a non-loaded row"); -} -},canSort:function(){ -return false; -}}); -dojox.grid.data.table=dojox.grid.data.Table; -dojox.grid.data.dynamic=dojox.grid.data.Dynamic; -dojo.declare("dojox.grid.data.DojoData",dojox.grid.data.Dynamic,{constructor:function(_67,_68,_69){ -this.count=1; -this._rowIdentities={}; -this._currentlyProcessing=[]; -if(_69){ -dojo.mixin(this,_69); -} -if(this.store){ -var f=this.store.getFeatures(); -this._canNotify=f["dojo.data.api.Notification"]; -this._canWrite=f["dojo.data.api.Write"]; -this._canIdentify=f["dojo.data.api.Identity"]; -if(this._canNotify){ -dojo.connect(this.store,"onSet",this,"_storeDatumChange"); -dojo.connect(this.store,"onDelete",this,"_storeDatumDelete"); -dojo.connect(this.store,"onNew",this,"_storeDatumNew"); -} -if(this._canWrite){ -dojo.connect(this.store,"revert",this,"refresh"); -} -} -},markupFactory:function(_6b,_6c){ -return new dojox.grid.data.DojoData(null,null,_6b); -},query:{name:"*"},store:null,_currentlyProcessing:null,_canNotify:false,_canWrite:false,_canIdentify:false,_rowIdentities:{},clientSort:false,sortFields:null,queryOptions:null,setData:function(_6d){ -this.store=_6d; -this.data=[]; -this.allChange(); -},setRowCount:function(_6e){ -this.count=_6e; -this.allChange(); -},beginReturn:function(_6f){ -if(this.count!=_6f){ -this.setRowCount(_6f); -} -},_setupFields:function(_70){ -if(this.fields._nameMaps){ -return; -} -var m={}; -var _72=dojo.map(this.store.getAttributes(_70),function(_73,idx){ -m[_73]=idx; -m[idx+".idx"]=_73; -return {name:_73,key:_73}; -},this); -this.fields._nameMaps=m; -this.fields.set(_72); -this.notify("FieldsChange"); -},_getRowFromItem:function(_75){ -},_createRow:function(_76){ -var row={}; -row.__dojo_data_item=_76; -dojo.forEach(this.fields.values,function(a){ -var _79=this.store.getValue(_76,a.name); -row[a.name]=(_79===undefined||_79===null)?"":_79; -},this); -return row; -},processRows:function(_7a,_7b){ -if(!_7a||_7a.length==0){ -return; -} -this._setupFields(_7a[0]); -dojo.forEach(_7a,function(_7c,idx){ -var row=this._createRow(_7c); -this._setRowId(_7c,_7b.start,idx); -this.setRow(row,_7b.start+idx); -},this); -this.endUpdate(); -},requestRows:function(_7f,_80){ -this.beginUpdate(); -var row=_7f||0; -var _82={start:row,count:this.rowsPerPage,query:this.query,sort:this.sortFields,queryOptions:this.queryOptions,onBegin:dojo.hitch(this,"beginReturn"),onComplete:dojo.hitch(this,"processRows"),onError:dojo.hitch(this,"processError")}; -this.store.fetch(_82); -},getDatum:function(_83,_84){ -var row=this.getRow(_83); -var _86=this.fields.values[_84]; -return row&&_86?row[_86.name]:_86?_86.na:"?"; -},setDatum:function(_87,_88,_89){ -var n=this.fields._nameMaps[_89+".idx"]; -if(n){ -this.data[_88][n]=_87; -this.datumChange(_87,_88,_89); -} -},copyRow:function(_8b){ -var row={}; -var _8d={}; -var src=this.getRow(_8b); -for(var x in src){ -if(src[x]!=_8d[x]){ -row[x]=src[x]; -} -} -return row; -},_attrCompare:function(_90,_91){ -dojo.forEach(this.fields.values,function(a){ -if(_90[a.name]!=_91[a.name]){ -return false; -} -},this); -return true; -},endModifyRow:function(_93){ -var _94=this.cache[_93]; -if(_94){ -var _95=this.getRow(_93); -if(!this._attrCompare(_94,_95)){ -this.update(_94,_95,_93); -} -delete this.cache[_93]; -} -},cancelModifyRow:function(_96){ -var _97=this.cache[_96]; -if(_97){ -this.setRow(_97,_96); -delete this.cache[_96]; -} -},_setRowId:function(_98,_99,idx){ -if(this._canIdentify){ -this._rowIdentities[this.store.getIdentity(_98)]={rowId:_99+idx,item:_98}; -}else{ -var _9b=dojo.toJson(this.query)+":start:"+_99+":idx:"+idx+":sort:"+dojo.toJson(this.sortFields); -this._rowIdentities[_9b]={rowId:_99+idx,item:_98}; -} -},_getRowId:function(_9c,_9d){ -var _9e=null; -if(this._canIdentify&&!_9d){ -var _9f=this._rowIdentities[this.store.getIdentity(_9c)]; -if(_9f){ -_9e=_9f.rowId; -} -}else{ -var id; -for(id in this._rowIdentities){ -if(this._rowIdentities[id].item===_9c){ -_9e=this._rowIdentities[id].rowId; -break; -} -} -} -return _9e; -},_storeDatumChange:function(_a1,_a2,_a3,_a4){ -var _a5=this._getRowId(_a1); -var row=this.getRow(_a5); -if(row){ -row[_a2]=_a4; -var _a7=this.fields._nameMaps[_a2]; -this.notify("DatumChange",[_a4,_a5,_a7]); -} -},_storeDatumDelete:function(_a8){ -if(dojo.indexOf(this._currentlyProcessing,_a8)!=-1){ -return; -} -var _a9=this._getRowId(_a8,true); -if(_a9!=null){ -this._removeItems([_a9]); -} -},_storeDatumNew:function(_aa){ -if(this._disableNew){ -return; -} -this._insertItem(_aa,this.data.length); -},insert:function(_ab,_ac){ -this._disableNew=true; -var i=this.store.newItem(_ab); -this._disableNew=false; -this._insertItem(i,_ac); -},_insertItem:function(_ae,_af){ -if(!this.fields._nameMaps){ -this._setupFields(_ae); -} -var row=this._createRow(_ae); -for(var i in this._rowIdentities){ -var _b2=this._rowIdentities[i]; -if(_b2.rowId>=_af){ -_b2.rowId++; -} -} -this._setRowId(_ae,0,_af); -dojox.grid.data.Dynamic.prototype.insert.apply(this,[row,_af]); -},datumChange:function(_b3,_b4,_b5){ -if(this._canWrite){ -var row=this.getRow(_b4); -var _b7=this.fields._nameMaps[_b5+".idx"]; -this.store.setValue(row.__dojo_data_item,_b7,_b3); -}else{ -this.notify("DatumChange",arguments); -} -},insertion:function(){ -this.notify("Insertion",arguments); -this.notify("Change",arguments); -},removal:function(){ -this.notify("Removal",arguments); -this.notify("Change",arguments); -},remove:function(_b8){ -for(var i=_b8.length-1;i>=0;i--){ -var _ba=this.data[_b8[i]].__dojo_data_item; -this._currentlyProcessing.push(_ba); -this.store.deleteItem(_ba); -} -this._removeItems(_b8); -this._currentlyProcessing=[]; -},_removeItems:function(_bb){ -dojox.grid.data.Dynamic.prototype.remove.apply(this,arguments); -this._rowIdentities={}; -for(var i=0;i<this.data.length;i++){ -this._setRowId(this.data[i].__dojo_data_item,0,i); -} -},canSort:function(){ -return true; -},sort:function(_bd){ -var col=Math.abs(_bd)-1; -this.sortFields=[{"attribute":this.fields.values[col].name,"descending":(_bd>0)}]; -this.refresh(); -},refresh:function(){ -this.clearData(true); -this.requestRows(); -},clearData:function(_bf){ -this._rowIdentities={}; -this.pages=[]; -this.bop=this.eop=-1; -this.count=0; -this.setData((_bf?this.store:[])); -},processError:function(_c0,_c1){ - -}}); -}
http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/Grid.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/Grid.css b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/Grid.css deleted file mode 100644 index 655be54..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/Grid.css +++ /dev/null @@ -1,201 +0,0 @@ -.dojoxGrid { - position: relative; - background-color: #EBEADB; - font-family: Geneva, Arial, Helvetica, sans-serif; - -moz-outline-style: none; - outline: none; - overflow: hidden; - height: 0; -} -.dojoxGrid table { - padding: 0; -} -.dojoxGrid td { - -moz-outline: none; -} -.dojoxGrid-master-header { - position: relative; -} -.dojoxGrid-master-view { - position: relative; -} -.dojoxGrid-view { - position: absolute; - overflow: hidden; -} -.dojoxGrid-header { - position: absolute; - overflow: hidden; -} -.dojoxGrid-header { - background-color: #E8E1CF; -} -.dojoxGrid-header table { - text-align: center; -} -.dojoxGrid-header .dojoxGrid-cell-content { - text-align: center; -} -.dojoxGrid-header .dojoxGrid-cell { - border: 1px solid; - border-color: #F6F4EB #ACA899 #ACA899 #F6F4EB; - background: url(images/grid_dx_gradient.gif) #E8E1CF top repeat-x; - padding-bottom: 2px; -} -.dojoxGrid-header .dojoxGrid-cell-over { - background-image: none; - background-color: white; - border-bottom-color: #FEBE47; - margin-bottom: 0; - padding-bottom: 0; - border-bottom-width: 3px; -} -.dojoxGrid-sort-down { - background: url(images/grid_sort_down.gif) left no-repeat; - padding-left:16px; - margin-left:4px; -} -.dojoxGrid-sort-up { - background: url(images/grid_sort_up.gif) left no-repeat; - padding-left:16px; - margin-left:4px; -} -.dojoxGrid-scrollbox { - position: relative; - overflow: scroll; - background-color: white; - width: 100%; -} -.dojoxGrid-content { - position: relative; - overflow: hidden; - -moz-outline-style: none; - outline: none; -} -.dojoxGrid-rowbar { - border: 1px solid; - border-color: #F6F4EB #ACA899 #ACA899 #F6F4EB; - border-top: none; - background: url(images/grid_dx_gradient.gif) #E8E1CF top repeat-x; -} -.dojoxGrid-rowbar-inner { - border-top: 1px solid #F6F4EB; -} -.dojoxGrid-rowbar-over { - background-image: none; - background-color: white; - border-top-color: #FEBE47; - border-bottom-color: #FEBE47; -} -.dojoxGrid-rowbar-selected { - background-color: #D9E8F9; - background-image: none; - - background-position: center; - background-repeat: no-repeat; -} -.dojoxGrid-row { - position: relative; - width: 9000em; -} -.dojoxGrid-row { - - border: 1px solid #E8E4D8; - border-color: #F8F7F1; - - border-left: none; - border-right: none; - background-color: white; - border-top: none; -} -.dojoxGrid-row-over { - border-top-color: #FEBE47; - border-bottom-color: #FEBE47; - - - -} -.dojoxGrid-row-odd { - background-color: #FFFDF3; - -} -.dojoxGrid-row-selected { - background-color: #D9E8F9; -} -.dojoxGrid-row-table { - table-layout: fixed; - width: 0; -} -.dojoxGrid-invisible { - visibility: hidden; -} -.Xdojo-ie .dojoxGrid-invisible { - display: none; -} -.dojoxGrid-invisible td, .dojoxGrid-header .dojoxGrid-invisible td { - border-top-width: 0; - border-bottom-width: 0; - padding-top: 0; - padding-bottom: 0; - height: 0; - overflow: hidden; -} -.dojoxGrid-cell { - border: 1px solid; - border-color: #EBEADB; - border-right-color: #D5CDB5; - padding: 3px 3px 3px 3px; - text-align: left; - overflow: hidden; -} -.dojoxGrid-cell-focus { - border: 1px dashed blue; -} -.dojoxGrid-cell-over { - border: 1px dotted #FEBE47; -} -.dojoxGrid-cell-focus.dojoxGrid-cell-over { - border: 1px dotted green; -} -.dojoxGrid-cell-clip { - width: 100%; - overflow: hidden; - white-space:nowrap; - text-overflow: ellipsis; -} -.dojoxGrid-row-editing td { - background-color: #F4FFF4; -} -.dojoxGrid-row-inserting td { - background-color: #F4FFF4; -} -.dojoxGrid-row-inflight td { - background-color: #F2F7B7; -} -.dojoxGrid-row-error td { - background-color: #F8B8B6; -} -.dojoxGrid-input, .dojoxGrid-select, .dojoxGrid-textarea { - margin: 0; - padding: 0; - border-style: none; - width: 100%; - font-size: 100%; - font-family: inherit; -} -.dojoxGrid-hidden-focus { - position: absolute; - left: -1000px; - top: -1000px; - height: 0px, width: 0px; -} -.gridArrowButtonChar { - display:none !important; -} -.dijit_a11y .gridArrowButtonChar { - display:inline !important; -} -.dijit_a11y .dojoxGrid-sort-down, .dijit_a11y .dojoxGrid-sort-up { - margin-left: 0; - padding-left: 0; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/Grid_rtl.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/Grid_rtl.css b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/Grid_rtl.css deleted file mode 100644 index 88ab215..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/Grid_rtl.css +++ /dev/null @@ -1,8 +0,0 @@ -.dijitRtl .dojoxGrid-header table { -} -.dj_ie .dijitRtl .dojoxGrid-header table { - float:none; -} -.dijitRtl .dojoxGrid-content { - float:left; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/builder.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/builder.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/builder.js deleted file mode 100644 index 411e575..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/builder.js +++ /dev/null @@ -1,353 +0,0 @@ -/* - 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.grid.compat._grid.builder"]){ -dojo._hasResource["dojox.grid.compat._grid.builder"]=true; -dojo.provide("dojox.grid.compat._grid.builder"); -dojo.require("dojox.grid.compat._grid.drag"); -dojo.declare("dojox.grid.Builder",null,{constructor:function(_1){ -this.view=_1; -this.grid=_1.grid; -},view:null,_table:"<table class=\"dojoxGrid-row-table\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"wairole:presentation\">",generateCellMarkup:function(_2,_3,_4,_5){ -var _6=[],_7; -if(_5){ -_7=["<th tabIndex=\"-1\" role=\"wairole:columnheader\""]; -}else{ -_7=["<td tabIndex=\"-1\" role=\"wairole:gridcell\""]; -} -_2.colSpan&&_7.push(" colspan=\"",_2.colSpan,"\""); -_2.rowSpan&&_7.push(" rowspan=\"",_2.rowSpan,"\""); -_7.push(" class=\"dojoxGrid-cell "); -_2.classes&&_7.push(_2.classes," "); -_4&&_7.push(_4," "); -_6.push(_7.join("")); -_6.push(""); -_7=["\" idx=\"",_2.index,"\" style=\""]; -_7.push(_2.styles,_3||""); -_2.unitWidth&&_7.push("width:",_2.unitWidth,";"); -_6.push(_7.join("")); -_6.push(""); -_7=["\""]; -_2.attrs&&_7.push(" ",_2.attrs); -_7.push(">"); -_6.push(_7.join("")); -_6.push(""); -_6.push("</td>"); -return _6; -},isCellNode:function(_8){ -return Boolean(_8&&_8.getAttribute&&_8.getAttribute("idx")); -},getCellNodeIndex:function(_9){ -return _9?Number(_9.getAttribute("idx")):-1; -},getCellNode:function(_a,_b){ -for(var i=0,_d;_d=dojox.grid.getTr(_a.firstChild,i);i++){ -for(var j=0,_f;_f=_d.cells[j];j++){ -if(this.getCellNodeIndex(_f)==_b){ -return _f; -} -} -} -},findCellTarget:function(_10,_11){ -var n=_10; -while(n&&(!this.isCellNode(n)||(dojox.grid.gridViewTag in n.offsetParent.parentNode&&n.offsetParent.parentNode[dojox.grid.gridViewTag]!=this.view.id))&&(n!=_11)){ -n=n.parentNode; -} -return n!=_11?n:null; -},baseDecorateEvent:function(e){ -e.dispatch="do"+e.type; -e.grid=this.grid; -e.sourceView=this.view; -e.cellNode=this.findCellTarget(e.target,e.rowNode); -e.cellIndex=this.getCellNodeIndex(e.cellNode); -e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null); -},findTarget:function(_14,_15){ -var n=_14; -while(n&&(n!=this.domNode)&&(!(_15 in n)||(dojox.grid.gridViewTag in n&&n[dojox.grid.gridViewTag]!=this.view.id))){ -n=n.parentNode; -} -return (n!=this.domNode)?n:null; -},findRowTarget:function(_17){ -return this.findTarget(_17,dojox.grid.rowIndexTag); -},isIntraNodeEvent:function(e){ -try{ -return (e.cellNode&&e.relatedTarget&&dojo.isDescendant(e.relatedTarget,e.cellNode)); -} -catch(x){ -return false; -} -},isIntraRowEvent:function(e){ -try{ -var row=e.relatedTarget&&this.findRowTarget(e.relatedTarget); -return !row&&(e.rowIndex==-1)||row&&(e.rowIndex==row.gridRowIndex); -} -catch(x){ -return false; -} -},dispatchEvent:function(e){ -if(e.dispatch in this){ -return this[e.dispatch](e); -} -},domouseover:function(e){ -if(e.cellNode&&(e.cellNode!=this.lastOverCellNode)){ -this.lastOverCellNode=e.cellNode; -this.grid.onMouseOver(e); -} -this.grid.onMouseOverRow(e); -},domouseout:function(e){ -if(e.cellNode&&(e.cellNode==this.lastOverCellNode)&&!this.isIntraNodeEvent(e,this.lastOverCellNode)){ -this.lastOverCellNode=null; -this.grid.onMouseOut(e); -if(!this.isIntraRowEvent(e)){ -this.grid.onMouseOutRow(e); -} -} -},domousedown:function(e){ -if(e.cellNode){ -this.grid.onMouseDown(e); -} -this.grid.onMouseDownRow(e); -}}); -dojo.declare("dojox.grid.contentBuilder",dojox.grid.Builder,{update:function(){ -this.prepareHtml(); -},prepareHtml:function(){ -var _1f=this.grid.get,_20=this.view.structure.rows; -for(var j=0,row;(row=_20[j]);j++){ -for(var i=0,_24;(_24=row[i]);i++){ -_24.get=_24.get||(_24.value==undefined)&&_1f; -_24.markup=this.generateCellMarkup(_24,_24.cellStyles,_24.cellClasses,false); -} -} -},generateHtml:function(_25,_26){ -var _27=[this._table],v=this.view,obr=v.onBeforeRow,_2a=v.structure.rows; -obr&&obr(_26,_2a); -for(var j=0,row;(row=_2a[j]);j++){ -if(row.hidden||row.header){ -continue; -} -_27.push(!row.invisible?"<tr>":"<tr class=\"dojoxGrid-invisible\">"); -for(var i=0,_2e,m,cc,cs;(_2e=row[i]);i++){ -m=_2e.markup,cc=_2e.customClasses=[],cs=_2e.customStyles=[]; -m[5]=_2e.format(_25); -m[1]=cc.join(" "); -m[3]=cs.join(";"); -_27.push.apply(_27,m); -} -_27.push("</tr>"); -} -_27.push("</table>"); -return _27.join(""); -},decorateEvent:function(e){ -e.rowNode=this.findRowTarget(e.target); -if(!e.rowNode){ -return false; -} -e.rowIndex=e.rowNode[dojox.grid.rowIndexTag]; -this.baseDecorateEvent(e); -e.cell=this.grid.getCell(e.cellIndex); -return true; -}}); -dojo.declare("dojox.grid.headerBuilder",dojox.grid.Builder,{bogusClickTime:0,overResizeWidth:4,minColWidth:1,_table:"<table class=\"dojoxGrid-row-table\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"wairole:presentation\"",update:function(){ -this.tableMap=new dojox.grid.tableMap(this.view.structure.rows); -},generateHtml:function(_33,_34){ -var _35=[this._table],_36=this.view.structure.rows; -if(this.view.viewWidth){ -_35.push([" style=\"width:",this.view.viewWidth,";\""].join("")); -} -_35.push(">"); -dojox.grid.fire(this.view,"onBeforeRow",[-1,_36]); -for(var j=0,row;(row=_36[j]);j++){ -if(row.hidden){ -continue; -} -_35.push(!row.invisible?"<tr>":"<tr class=\"dojoxGrid-invisible\">"); -for(var i=0,_3a,_3b;(_3a=row[i]);i++){ -_3a.customClasses=[]; -_3a.customStyles=[]; -_3b=this.generateCellMarkup(_3a,_3a.headerStyles,_3a.headerClasses,true); -_3b[5]=(_34!=undefined?_34:_33(_3a)); -_3b[3]=_3a.customStyles.join(";"); -_3b[1]=_3a.customClasses.join(" "); -_35.push(_3b.join("")); -} -_35.push("</tr>"); -} -_35.push("</table>"); -return _35.join(""); -},getCellX:function(e){ -var x=e.layerX; -if(dojo.isMoz){ -var n=dojox.grid.ascendDom(e.target,dojox.grid.makeNotTagName("th")); -x-=(n&&n.offsetLeft)||0; -var t=e.sourceView.getScrollbarWidth(); -if(!dojo._isBodyLtr()&&e.sourceView.headerNode.scrollLeft<t){ -x-=t; -} -} -var n=dojox.grid.ascendDom(e.target,function(){ -if(!n||n==e.cellNode){ -return false; -} -x+=(n.offsetLeft<0?0:n.offsetLeft); -return true; -}); -return x; -},decorateEvent:function(e){ -this.baseDecorateEvent(e); -e.rowIndex=-1; -e.cellX=this.getCellX(e); -return true; -},prepareResize:function(e,mod){ -var i=dojox.grid.getTdIndex(e.cellNode); -e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null); -e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1); -return Boolean(e.cellNode); -},canResize:function(e){ -if(!e.cellNode||e.cellNode.colSpan>1){ -return false; -} -var _45=this.grid.getCell(e.cellIndex); -return !_45.noresize&&!_45.isFlex(); -},overLeftResizeArea:function(e){ -if(dojo._isBodyLtr()){ -return (e.cellIndex>0)&&(e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1); -} -var t=e.cellNode&&(e.cellX<this.overResizeWidth); -return; -},overRightResizeArea:function(e){ -if(dojo._isBodyLtr()){ -return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth); -} -return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1); -},domousemove:function(e){ -var c=(this.overRightResizeArea(e)?"e-resize":(this.overLeftResizeArea(e)?"w-resize":"")); -if(c&&!this.canResize(e)){ -c="not-allowed"; -} -e.sourceView.headerNode.style.cursor=c||""; -if(c){ -dojo.stopEvent(e); -} -},domousedown:function(e){ -if(!dojox.grid.drag.dragging){ -if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){ -this.beginColumnResize(e); -}else{ -this.grid.onMouseDown(e); -this.grid.onMouseOverRow(e); -} -} -},doclick:function(e){ -if(new Date().getTime()<this.bogusClickTime){ -dojo.stopEvent(e); -return true; -} -},beginColumnResize:function(e){ -dojo.stopEvent(e); -var _4e=[],_4f=this.tableMap.findOverlappingNodes(e.cellNode); -for(var i=0,_51;(_51=_4f[i]);i++){ -_4e.push({node:_51,index:this.getCellNodeIndex(_51),width:_51.offsetWidth}); -} -var _52={scrollLeft:e.sourceView.headerNode.scrollLeft,view:e.sourceView,node:e.cellNode,index:e.cellIndex,w:e.cellNode.clientWidth,spanners:_4e}; -dojox.grid.drag.start(e.cellNode,dojo.hitch(this,"doResizeColumn",_52),dojo.hitch(this,"endResizeColumn",_52),e); -},doResizeColumn:function(_53,_54){ -var _55=dojo._isBodyLtr(); -if(_55){ -var w=_53.w+_54.deltaX; -}else{ -var w=_53.w-_54.deltaX; -} -if(w>=this.minColWidth){ -for(var i=0,s,sw;(s=_53.spanners[i]);i++){ -if(_55){ -sw=s.width+_54.deltaX; -}else{ -sw=s.width-_54.deltaX; -} -s.node.style.width=sw+"px"; -_53.view.setColWidth(s.index,sw); -} -_53.node.style.width=w+"px"; -_53.view.setColWidth(_53.index,w); -if(!_55){ -_53.view.headerNode.scrollLeft=(_53.scrollLeft-_54.deltaX); -} -} -if(_53.view.flexCells&&!_53.view.testFlexCells()){ -var t=dojox.grid.findTable(_53.node); -t&&(t.style.width=""); -} -},endResizeColumn:function(_5b){ -this.bogusClickTime=new Date().getTime()+30; -setTimeout(dojo.hitch(_5b.view,"update"),50); -}}); -dojo.declare("dojox.grid.tableMap",null,{constructor:function(_5c){ -this.mapRows(_5c); -},map:null,mapRows:function(_5d){ -var _5e=_5d.length; -if(!_5e){ -return; -} -this.map=[]; -for(var j=0,row;(row=_5d[j]);j++){ -this.map[j]=[]; -} -for(var j=0,row;(row=_5d[j]);j++){ -for(var i=0,x=0,_63,_64,_65;(_63=row[i]);i++){ -while(this.map[j][x]){ -x++; -} -this.map[j][x]={c:i,r:j}; -_65=_63.rowSpan||1; -_64=_63.colSpan||1; -for(var y=0;y<_65;y++){ -for(var s=0;s<_64;s++){ -this.map[j+y][x+s]=this.map[j][x]; -} -} -x+=_64; -} -} -},dumpMap:function(){ -for(var j=0,row,h="";(row=this.map[j]);j++,h=""){ -for(var i=0,_6c;(_6c=row[i]);i++){ -h+=_6c.r+","+_6c.c+" "; -} - -} -},getMapCoords:function(_6d,_6e){ -for(var j=0,row;(row=this.map[j]);j++){ -for(var i=0,_72;(_72=row[i]);i++){ -if(_72.c==_6e&&_72.r==_6d){ -return {j:j,i:i}; -} -} -} -return {j:-1,i:-1}; -},getNode:function(_73,_74,_75){ -var row=_73&&_73.rows[_74]; -return row&&row.cells[_75]; -},_findOverlappingNodes:function(_77,_78,_79){ -var _7a=[]; -var m=this.getMapCoords(_78,_79); -var row=this.map[m.j]; -for(var j=0,row;(row=this.map[j]);j++){ -if(j==m.j){ -continue; -} -with(row[m.i]){ -var n=this.getNode(_77,r,c); -if(n){ -_7a.push(n); -} -} -} -return _7a; -},findOverlappingNodes:function(_7f){ -return this._findOverlappingNodes(dojox.grid.findTable(_7f),dojox.grid.getTrIndex(_7f.parentNode),dojox.grid.getTdIndex(_7f)); -}}); -dojox.grid.rowIndexTag="gridRowIndex"; -dojox.grid.gridViewTag="gridView"; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/cell.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/cell.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/cell.js deleted file mode 100644 index 3354f9d..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/cell.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - 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.grid.compat._grid.cell"]){ -dojo._hasResource["dojox.grid.compat._grid.cell"]=true; -dojo.provide("dojox.grid.compat._grid.cell"); -dojo.declare("dojox.grid.cell",null,{styles:"",constructor:function(_1){ -dojo.mixin(this,_1); -if(this.editor){ -this.editor=new this.editor(this); -} -},format:function(_2){ -var f,i=this.grid.edit.info,d=this.get?this.get(_2):this.value; -if(this.editor&&(this.editor.alwaysOn||(i.rowIndex==_2&&i.cell==this))){ -return this.editor.format(d,_2); -}else{ -return (f=this.formatter)?f.call(this,d,_2):d; -} -},getNode:function(_6){ -return this.view.getCellNode(_6,this.index); -},isFlex:function(){ -var uw=this.unitWidth; -return uw&&(uw=="auto"||uw.slice(-1)=="%"); -},applyEdit:function(_8,_9){ -this.grid.edit.applyCellEdit(_8,this,_9); -},cancelEdit:function(_a){ -this.grid.doCancelEdit(_a); -},_onEditBlur:function(_b){ -if(this.grid.edit.isEditCell(_b,this.index)){ -this.grid.edit.apply(); -} -},registerOnBlur:function(_c,_d){ -if(this.commitOnBlur){ -dojo.connect(_c,"onblur",function(e){ -setTimeout(dojo.hitch(this,"_onEditBlur",_d),250); -}); -} -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/drag.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/drag.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/drag.js deleted file mode 100644 index ab33cd7..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/drag.js +++ /dev/null @@ -1,91 +0,0 @@ -/* - 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.grid.compat._grid.drag"]){ -dojo._hasResource["dojox.grid.compat._grid.drag"]=true; -dojo.provide("dojox.grid.compat._grid.drag"); -(function(){ -var _1=dojox.grid.drag={}; -_1.dragging=false; -_1.hysteresis=2; -_1.capture=function(_2){ -if(_2.setCapture){ -_2.setCapture(); -}else{ -document.addEventListener("mousemove",_2.onmousemove,true); -document.addEventListener("mouseup",_2.onmouseup,true); -document.addEventListener("click",_2.onclick,true); -} -}; -_1.release=function(_3){ -if(_3.releaseCapture){ -_3.releaseCapture(); -}else{ -document.removeEventListener("click",_3.onclick,true); -document.removeEventListener("mouseup",_3.onmouseup,true); -document.removeEventListener("mousemove",_3.onmousemove,true); -} -}; -_1.start=function(_4,_5,_6,_7,_8){ -if(!_4||_1.dragging){ - -return; -} -_1.dragging=true; -_1.elt=_4; -_1.events={drag:_5||dojox.grid.nop,end:_6||dojox.grid.nop,start:_8||dojox.grid.nop,oldmove:_4.onmousemove,oldup:_4.onmouseup,oldclick:_4.onclick}; -_1.positionX=(_7&&("screenX" in _7)?_7.screenX:false); -_1.positionY=(_7&&("screenY" in _7)?_7.screenY:false); -_1.started=(_1.position===false); -_4.onmousemove=_1.mousemove; -_4.onmouseup=_1.mouseup; -_4.onclick=_1.click; -_1.capture(_1.elt); -}; -_1.end=function(){ -_1.release(_1.elt); -_1.elt.onmousemove=_1.events.oldmove; -_1.elt.onmouseup=_1.events.oldup; -_1.elt.onclick=_1.events.oldclick; -_1.elt=null; -try{ -if(_1.started){ -_1.events.end(); -} -} -finally{ -_1.dragging=false; -} -}; -_1.calcDelta=function(_9){ -_9.deltaX=_9.screenX-_1.positionX; -_9.deltaY=_9.screenY-_1.positionY; -}; -_1.hasMoved=function(_a){ -return Math.abs(_a.deltaX)+Math.abs(_a.deltaY)>_1.hysteresis; -}; -_1.mousemove=function(_b){ -_b=dojo.fixEvent(_b); -dojo.stopEvent(_b); -_1.calcDelta(_b); -if((!_1.started)&&(_1.hasMoved(_b))){ -_1.events.start(_b); -_1.started=true; -} -if(_1.started){ -_1.events.drag(_b); -} -}; -_1.mouseup=function(_c){ -dojo.stopEvent(dojo.fixEvent(_c)); -_1.end(); -}; -_1.click=function(_d){ -dojo.stopEvent(dojo.fixEvent(_d)); -}; -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/edit.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/edit.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/edit.js deleted file mode 100644 index 8ad756d..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/edit.js +++ /dev/null @@ -1,128 +0,0 @@ -/* - 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.grid.compat._grid.edit"]){ -dojo._hasResource["dojox.grid.compat._grid.edit"]=true; -dojo.provide("dojox.grid.compat._grid.edit"); -dojo.declare("dojox.grid.edit",null,{constructor:function(_1){ -this.grid=_1; -this.connections=[]; -if(dojo.isIE){ -this.connections.push(dojo.connect(document.body,"onfocus",dojo.hitch(this,"_boomerangFocus"))); -} -},info:{},destroy:function(){ -dojo.forEach(this.connections,dojo.disconnect); -},cellFocus:function(_2,_3){ -if(this.grid.singleClickEdit||this.isEditRow(_3)){ -this.setEditCell(_2,_3); -}else{ -this.apply(); -} -if(this.isEditing()||(_2&&(_2.editor||0).alwaysOn)){ -this._focusEditor(_2,_3); -} -},rowClick:function(e){ -if(this.isEditing()&&!this.isEditRow(e.rowIndex)){ -this.apply(); -} -},styleRow:function(_5){ -if(_5.index==this.info.rowIndex){ -_5.customClasses+=" dojoxGrid-row-editing"; -} -},dispatchEvent:function(e){ -var c=e.cell,ed=c&&c.editor; -return ed&&ed.dispatchEvent(e.dispatch,e); -},isEditing:function(){ -return this.info.rowIndex!==undefined; -},isEditCell:function(_9,_a){ -return (this.info.rowIndex===_9)&&(this.info.cell.index==_a); -},isEditRow:function(_b){ -return this.info.rowIndex===_b; -},setEditCell:function(_c,_d){ -if(!this.isEditCell(_d,_c.index)&&this.grid.canEdit(_c,_d)){ -this.start(_c,_d,this.isEditRow(_d)||_c.editor); -} -},_focusEditor:function(_e,_f){ -dojox.grid.fire(_e.editor,"focus",[_f]); -},focusEditor:function(){ -if(this.isEditing()){ -this._focusEditor(this.info.cell,this.info.rowIndex); -} -},_boomerangWindow:500,_shouldCatchBoomerang:function(){ -return this._catchBoomerang>new Date().getTime(); -},_boomerangFocus:function(){ -if(this._shouldCatchBoomerang()){ -this.grid.focus.focusGrid(); -this.focusEditor(); -this._catchBoomerang=0; -} -},_doCatchBoomerang:function(){ -if(dojo.isIE){ -this._catchBoomerang=new Date().getTime()+this._boomerangWindow; -} -},start:function(_10,_11,_12){ -this.grid.beginUpdate(); -this.editorApply(); -if(this.isEditing()&&!this.isEditRow(_11)){ -this.applyRowEdit(); -this.grid.updateRow(_11); -} -if(_12){ -this.info={cell:_10,rowIndex:_11}; -this.grid.doStartEdit(_10,_11); -this.grid.updateRow(_11); -}else{ -this.info={}; -} -this.grid.endUpdate(); -this.grid.focus.focusGrid(); -this._focusEditor(_10,_11); -this._doCatchBoomerang(); -},_editorDo:function(_13){ -var c=this.info.cell; -c&&c.editor&&c.editor[_13](this.info.rowIndex); -},editorApply:function(){ -this._editorDo("apply"); -},editorCancel:function(){ -this._editorDo("cancel"); -},applyCellEdit:function(_15,_16,_17){ -if(this.grid.canEdit(_16,_17)){ -this.grid.doApplyCellEdit(_15,_17,_16.fieldIndex); -} -},applyRowEdit:function(){ -this.grid.doApplyEdit(this.info.rowIndex); -},apply:function(){ -if(this.isEditing()){ -this.grid.beginUpdate(); -this.editorApply(); -this.applyRowEdit(); -this.info={}; -this.grid.endUpdate(); -this.grid.focus.focusGrid(); -this._doCatchBoomerang(); -} -},cancel:function(){ -if(this.isEditing()){ -this.grid.beginUpdate(); -this.editorCancel(); -this.info={}; -this.grid.endUpdate(); -this.grid.focus.focusGrid(); -this._doCatchBoomerang(); -} -},save:function(_18,_19){ -var c=this.info.cell; -if(this.isEditRow(_18)&&(!_19||c.view==_19)&&c.editor){ -c.editor.save(c,this.info.rowIndex); -} -},restore:function(_1b,_1c){ -var c=this.info.cell; -if(this.isEditRow(_1c)&&c.view==_1b&&c.editor){ -c.editor.restore(c,this.info.rowIndex); -} -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/focus.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/focus.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/focus.js deleted file mode 100644 index ceac6ec..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/focus.js +++ /dev/null @@ -1,137 +0,0 @@ -/* - 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.grid.compat._grid.focus"]){ -dojo._hasResource["dojox.grid.compat._grid.focus"]=true; -dojo.provide("dojox.grid.compat._grid.focus"); -dojo.declare("dojox.grid.focus",null,{constructor:function(_1){ -this.grid=_1; -this.cell=null; -this.rowIndex=-1; -dojo.connect(this.grid.domNode,"onfocus",this,"doFocus"); -},tabbingOut:false,focusClass:"dojoxGrid-cell-focus",focusView:null,initFocusView:function(){ -this.focusView=this.grid.views.getFirstScrollingView(); -},isFocusCell:function(_2,_3){ -return (this.cell==_2)&&(this.rowIndex==_3); -},isLastFocusCell:function(){ -return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1); -},isFirstFocusCell:function(){ -return (this.rowIndex==0)&&(this.cell.index==0); -},isNoFocusCell:function(){ -return (this.rowIndex<0)||!this.cell; -},_focusifyCellNode:function(_4){ -var n=this.cell&&this.cell.getNode(this.rowIndex); -if(n){ -dojo.toggleClass(n,this.focusClass,_4); -if(_4){ -this.scrollIntoView(); -try{ -if(!this.grid.edit.isEditing()){ -dojox.grid.fire(n,"focus"); -} -} -catch(e){ -} -} -} -},scrollIntoView:function(){ -if(!this.cell){ -return; -} -var c=this.cell,s=c.view.scrollboxNode,sr={w:s.clientWidth,l:s.scrollLeft,t:s.scrollTop,h:s.clientHeight},n=c.getNode(this.rowIndex),r=c.view.getRowNode(this.rowIndex),rt=this.grid.scroller.findScrollTop(this.rowIndex); -if(n.offsetLeft+n.offsetWidth>sr.l+sr.w){ -s.scrollLeft=n.offsetLeft+n.offsetWidth-sr.w; -}else{ -if(n.offsetLeft<sr.l){ -s.scrollLeft=n.offsetLeft; -} -} -if(rt+r.offsetHeight>sr.t+sr.h){ -this.grid.setScrollTop(rt+r.offsetHeight-sr.h); -}else{ -if(rt<sr.t){ -this.grid.setScrollTop(rt); -} -} -},styleRow:function(_c){ -return; -},setFocusIndex:function(_d,_e){ -this.setFocusCell(this.grid.getCell(_e),_d); -},setFocusCell:function(_f,_10){ -if(_f&&!this.isFocusCell(_f,_10)){ -this.tabbingOut=false; -this.focusGridView(); -this._focusifyCellNode(false); -this.cell=_f; -this.rowIndex=_10; -this._focusifyCellNode(true); -} -if(dojo.isOpera){ -setTimeout(dojo.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1); -}else{ -this.grid.onCellFocus(this.cell,this.rowIndex); -} -},next:function(){ -var row=this.rowIndex,col=this.cell.index+1,cc=this.grid.layout.cellCount-1,rc=this.grid.rowCount-1; -if(col>cc){ -col=0; -row++; -} -if(row>rc){ -col=cc; -row=rc; -} -this.setFocusIndex(row,col); -},previous:function(){ -var row=(this.rowIndex||0),col=(this.cell.index||0)-1; -if(col<0){ -col=this.grid.layout.cellCount-1; -row--; -} -if(row<0){ -row=0; -col=0; -} -this.setFocusIndex(row,col); -},move:function(_17,_18){ -var rc=this.grid.rowCount-1,cc=this.grid.layout.cellCount-1,r=this.rowIndex,i=this.cell.index,row=Math.min(rc,Math.max(0,r+_17)),col=Math.min(cc,Math.max(0,i+_18)); -this.setFocusIndex(row,col); -if(_17){ -this.grid.updateRow(r); -} -},previousKey:function(e){ -if(this.isFirstFocusCell()){ -this.tabOut(this.grid.domNode); -}else{ -dojo.stopEvent(e); -this.previous(); -} -},nextKey:function(e){ -if(this.isLastFocusCell()){ -this.tabOut(this.grid.lastFocusNode); -}else{ -dojo.stopEvent(e); -this.next(); -} -},tabOut:function(_21){ -this.tabbingOut=true; -_21.focus(); -},focusGridView:function(){ -dojox.grid.fire(this.focusView,"focus"); -},focusGrid:function(_22){ -this.focusGridView(); -this._focusifyCellNode(true); -},doFocus:function(e){ -if(e&&e.target!=e.currentTarget){ -return; -} -if(!this.tabbingOut&&this.isNoFocusCell()){ -this.setFocusIndex(0,0); -} -this.tabbingOut=false; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_dx_gradient.gif ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_dx_gradient.gif b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_dx_gradient.gif deleted file mode 100644 index 57f67ba..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_dx_gradient.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_sort_down.gif ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_sort_down.gif b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_sort_down.gif deleted file mode 100644 index 7a73f82..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_sort_down.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_sort_up.gif ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_sort_up.gif b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_sort_up.gif deleted file mode 100644 index 9452da0..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/grid_sort_up.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/tabEnabled_rotated.png ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/tabEnabled_rotated.png b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/tabEnabled_rotated.png deleted file mode 100644 index e326abd..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/tabEnabled_rotated.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/tabHover_rotated.png ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/tabHover_rotated.png b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/tabHover_rotated.png deleted file mode 100644 index 1a30e10..0000000 Binary files a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/images/tabHover_rotated.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/layout.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/layout.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/layout.js deleted file mode 100644 index 61f99b9..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/layout.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - 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.grid.compat._grid.layout"]){ -dojo._hasResource["dojox.grid.compat._grid.layout"]=true; -dojo.provide("dojox.grid.compat._grid.layout"); -dojo.require("dojox.grid.compat._grid.cell"); -dojo.declare("dojox.grid.layout",null,{constructor:function(_1){ -this.grid=_1; -},cells:[],structure:null,defaultWidth:"6em",setStructure:function(_2){ -this.fieldIndex=0; -this.cells=[]; -var s=this.structure=[]; -for(var i=0,_5,_6;(_5=_2[i]);i++){ -s.push(this.addViewDef(_5)); -} -this.cellCount=this.cells.length; -},addViewDef:function(_7){ -this._defaultCellProps=_7.defaultCell||{}; -return dojo.mixin({},_7,{rows:this.addRowsDef(_7.rows||_7.cells)}); -},addRowsDef:function(_8){ -var _9=[]; -for(var i=0,_b;_8&&(_b=_8[i]);i++){ -_9.push(this.addRowDef(i,_b)); -} -return _9; -},addRowDef:function(_c,_d){ -var _e=[]; -for(var i=0,def,_11;(def=_d[i]);i++){ -_11=this.addCellDef(_c,i,def); -_e.push(_11); -this.cells.push(_11); -} -return _e; -},addCellDef:function(_12,_13,_14){ -var w=0; -if(_14.colSpan>1){ -w=0; -}else{ -if(!isNaN(_14.width)){ -w=_14.width+"em"; -}else{ -w=_14.width||this.defaultWidth; -} -} -var _16=_14.field!=undefined?_14.field:(_14.get?-1:this.fieldIndex); -if((_14.field!=undefined)||!_14.get){ -this.fieldIndex=(_14.field>-1?_14.field:this.fieldIndex)+1; -} -return new dojox.grid.cell(dojo.mixin({},this._defaultCellProps,_14,{grid:this.grid,subrow:_12,layoutIndex:_13,index:this.cells.length,fieldIndex:_16,unitWidth:w})); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/lib.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/lib.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/lib.js deleted file mode 100644 index 00cc3ec..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/lib.js +++ /dev/null @@ -1,184 +0,0 @@ -/* - 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.grid.compat._grid.lib"]){ -dojo._hasResource["dojox.grid.compat._grid.lib"]=true; -dojo.provide("dojox.grid.compat._grid.lib"); -dojo.mixin(dojox.grid,{na:"...",nop:function(){ -},getTdIndex:function(td){ -return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td); -},getTrIndex:function(tr){ -return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr); -},getTr:function(_3,_4){ -return _3&&((_3.rows||0)[_4]||_3.childNodes[_4]); -},getTd:function(_5,_6,_7){ -return (dojox.grid.getTr(inTable,_6)||0)[_7]; -},findTable:function(_8){ -for(var n=_8;n&&n.tagName!="TABLE";n=n.parentNode){ -} -return n; -},ascendDom:function(_a,_b){ -for(var n=_a;n&&_b(n);n=n.parentNode){ -} -return n; -},makeNotTagName:function(_d){ -var _e=_d.toUpperCase(); -return function(_f){ -return _f.tagName!=_e; -}; -},fire:function(ob,ev,_12){ -var fn=ob&&ev&&ob[ev]; -return fn&&(_12?fn.apply(ob,_12):ob[ev]()); -},setStyleText:function(_14,_15){ -if(_14.style.cssText==undefined){ -_14.setAttribute("style",_15); -}else{ -_14.style.cssText=_15; -} -},getStyleText:function(_16,_17){ -return (_16.style.cssText==undefined?_16.getAttribute("style"):_16.style.cssText); -},setStyle:function(_18,_19,_1a){ -if(_18&&_18.style[_19]!=_1a){ -_18.style[_19]=_1a; -} -},setStyleHeightPx:function(_1b,_1c){ -if(_1c>=0){ -dojox.grid.setStyle(_1b,"height",_1c+"px"); -} -},mouseEvents:["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"],keyEvents:["keyup","keydown","keypress"],funnelEvents:function(_1d,_1e,_1f,_20){ -var _21=(_20?_20:dojox.grid.mouseEvents.concat(dojox.grid.keyEvents)); -for(var i=0,l=_21.length;i<l;i++){ -dojo.connect(_1d,"on"+_21[i],_1e,_1f); -} -},removeNode:function(_24){ -_24=dojo.byId(_24); -_24&&_24.parentNode&&_24.parentNode.removeChild(_24); -return _24; -},getScrollbarWidth:function(){ -if(this._scrollBarWidth){ -return this._scrollBarWidth; -} -this._scrollBarWidth=18; -try{ -var e=document.createElement("div"); -e.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;"; -document.body.appendChild(e); -this._scrollBarWidth=e.offsetWidth-e.clientWidth; -document.body.removeChild(e); -delete e; -} -catch(ex){ -} -return this._scrollBarWidth; -},getRef:function(_26,_27,_28){ -var obj=_28||dojo.global,_2a=_26.split("."),_2b=_2a.pop(); -for(var i=0,p;obj&&(p=_2a[i]);i++){ -obj=(p in obj?obj[p]:(_27?obj[p]={}:undefined)); -} -return {obj:obj,prop:_2b}; -},getProp:function(_2e,_2f,_30){ -with(dojox.grid.getRef(_2e,_2f,_30)){ -return (obj)&&(prop)&&(prop in obj?obj[prop]:(_2f?obj[prop]={}:undefined)); -} -},indexInParent:function(_31){ -var i=0,n,p=_31.parentNode; -while((n=p.childNodes[i++])){ -if(n==_31){ -return i-1; -} -} -return -1; -},cleanNode:function(_35){ -if(!_35){ -return; -} -var _36=function(inW){ -return inW.domNode&&dojo.isDescendant(inW.domNode,_35,true); -}; -var ws=dijit.registry.filter(_36); -for(var i=0,w;(w=ws[i]);i++){ -w.destroy(); -} -delete ws; -},getTagName:function(_3b){ -var _3c=dojo.byId(_3b); -return (_3c&&_3c.tagName?_3c.tagName.toLowerCase():""); -},nodeKids:function(_3d,_3e){ -var _3f=[]; -var i=0,n; -while((n=_3d.childNodes[i++])){ -if(dojox.grid.getTagName(n)==_3e){ -_3f.push(n); -} -} -return _3f; -},divkids:function(_42){ -return dojox.grid.nodeKids(_42,"div"); -},focusSelectNode:function(_43){ -try{ -dojox.grid.fire(_43,"focus"); -dojox.grid.fire(_43,"select"); -} -catch(e){ -} -},whenIdle:function(){ -setTimeout(dojo.hitch.apply(dojo,arguments),0); -},arrayCompare:function(inA,inB){ -for(var i=0,l=inA.length;i<l;i++){ -if(inA[i]!=inB[i]){ -return false; -} -} -return (inA.length==inB.length); -},arrayInsert:function(_48,_49,_4a){ -if(_48.length<=_49){ -_48[_49]=_4a; -}else{ -_48.splice(_49,0,_4a); -} -},arrayRemove:function(_4b,_4c){ -_4b.splice(_4c,1); -},arraySwap:function(_4d,inI,inJ){ -var _50=_4d[inI]; -_4d[inI]=_4d[inJ]; -_4d[inJ]=_50; -},initTextSizePoll:function(_51){ -var f=document.createElement("div"); -with(f.style){ -top="0px"; -left="0px"; -position="absolute"; -visibility="hidden"; -} -f.innerHTML="TheQuickBrownFoxJumpedOverTheLazyDog"; -document.body.appendChild(f); -var fw=f.offsetWidth; -var job=function(){ -if(f.offsetWidth!=fw){ -fw=f.offsetWidth; -dojox.grid.textSizeChanged(); -} -}; -window.setInterval(job,_51||200); -dojox.grid.initTextSizePoll=dojox.grid.nop; -},textSizeChanged:function(){ -}}); -dojox.grid.jobs={cancel:function(_55){ -if(_55){ -window.clearTimeout(_55); -} -},jobs:[],job:function(_56,_57,_58){ -dojox.grid.jobs.cancelJob(_56); -var job=function(){ -delete dojox.grid.jobs.jobs[_56]; -_58(); -}; -dojox.grid.jobs.jobs[_56]=setTimeout(job,_57); -},cancelJob:function(_5a){ -dojox.grid.jobs.cancel(dojox.grid.jobs.jobs[_5a]); -}}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/nihiloGrid.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/nihiloGrid.css b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/nihiloGrid.css deleted file mode 100644 index b96f410..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/nihiloGrid.css +++ /dev/null @@ -1,211 +0,0 @@ -.nihilo .dojoxGrid { - position: relative; - background-color: #e9e9e9; - font-size: 0.85em; - -moz-outline-style: none; - outline: none; - overflow: hidden; - height: 0; -} -.nihilo .dojoxGrid table { - padding: 0; -} -.nihilo .dojoxGrid td { - -moz-outline: none; -} -.nihilo .dojoxGrid-master-header { - position: relative; -} -.nihilo .dojoxGrid-master-view { - position: relative; -} -.nihilo .dojoxGrid-view { - position: absolute; - overflow: hidden; -} -.nihilo .dojoxGrid-header { - position: absolute; - overflow: hidden; -} -.nihilo .dojoxGrid-header { - background-color: #e9e9e9; -} -.nihilo .dojoxGrid-header table { - text-align: center; -} -.nihilo .dojoxGrid-header .dojoxGrid-cell-content { - text-align: center; -} -.nihilo .dojoxGrid-header .dojoxGrid-cell { - border: 1px solid transparent; - - border-color: white #ACA899 #919191 white; - background: url(../../../../dijit/themes/nihilo/images/titleBar.png) #e9e9e9 repeat-x top; - padding-bottom: 2px; - color: #000 !important; -} -.nihilo .dojoxGrid-header .dojoxGrid-cell-over { - background: url(../../../../dijit/themes/nihilo/images/titleBarActive.png) #e9e9e9 repeat-x top; -} -.nihilo .dojoxGrid-sort-down { - background: url(images/grid_sort_down.gif) right no-repeat; - padding-left: 0px; - margin-left: 0px; -} -.nihilo .dojoxGrid-sort-up { - background: url(images/grid_sort_up.gif) right no-repeat; - padding-left: 0px; - margin-left: 0px; -} -.nihilo .gridArrowButtonChar { - display:none !important; -} -.dijit_a11y .gridArrowButtonChar { - display:inline !important; -} -.nihilo .dojoxGrid-scrollbox { - position: relative; - overflow: scroll; - background-color: #fefefe; - width: 100%; -} -.nihilo .dojoxGrid-content { - position: relative; - overflow: hidden; - -moz-outline-style: none; - outline: none; -} -.nihilo .dojoxGrid-rowbar { - border: none; - - background: url(images/titleBar.png) #e9e9e9 repeat-y right; - border-right: 1px solid #cccccc; - padding: 0px; -} -.nihilo .dojoxGrid-rowbar-inner { - border: none; - border-bottom: 1px solid #cccccc; -} -.nihilo .dojoxGrid-rowbar-over { - background: url(images/titleBarActive.png) #e9e9e9 repeat-y right; -} -.nihilo .dojoxGrid-rowbar-selected { - background-color: #D9E8F9; - background-image: none; - background: url(../../../../dijit/themes/nihilo/images/titleBar.png) #dddddd repeat-x top; - border-right: 1px solid #cccccc; - background-position: center; - background-repeat: no-repeat; -} -.nihilo .dojoxGrid-row { - position: relative; - width: 9000em; -} -.nihilo .dojoxGrid-row { - border: none; - border-left: none; - border-right: none; - background-color: white; - border-top: none; -} -.nihilo .dojoxGrid-row-over { - border-top-color: #cccccc; - border-bottom-color: #cccccc; -} -.nihilo .dojoxGrid-row-over .dojoxGrid-cell { - background-color: #ffe284; -} -.nihilo .dojoxGrid-row-odd { - background-color: #f2f5f9; - -} -.nihilo .dojoxGrid-row-selected { - background-color: #aec7e3; -} -.nihilo .dojoxGrid-row-table { - table-layout: fixed; - width: 0; - border-collapse: collapse; -} -.nihilo .dojoxGrid-invisible { - visibility: hidden; -} -.nihilo .Xdojo-ie .dojoxGrid-invisible { - display: none; -} -.nihilo .dojoxGrid-invisible td, .dojoxGrid-header .dojoxGrid-invisible td { - border-top-width: 0; - border-bottom-width: 0; - padding-top: 0; - padding-bottom: 0; - height: 0; - overflow: hidden; -} -.nihilo .dojoxGrid-cell { - border: 1px dotted #D5CDB5; - padding: 3px 3px 3px 3px; - text-align: left; - overflow: hidden; -} -.dj_ie6 .nihilo .dojoxGrid-cell { - border: 1px solid white; - border-right: 1px solid #D5CDB5; -} -.nihilo .dojoxGrid-cell-focus { - border: 1px dotted #a6a6a6; -} -.nihilo .dojoxGrid-cell-over { - border: 1px dotted #a6a6a6; -} -.nihilo .dojoxGrid-cell-focus.dojoxGrid-cell-over { - border: 1px dotted #595959; -} -.nihilo .dojoxGrid-cell-clip { - width: 100%; - overflow: hidden; - white-space:nowrap; - text-overflow: ellipsis; -} -.nihilo .dojoxGrid-row-editing td { - - background-color: #ffe284; - -} -.nihilo .dojoxGrid-row-inserting td { - background-color: #F4FFF4; -} -.nihilo .dojoxGrid-row-inflight td { - background-color: #F2F7B7; -} -.nihilo .dojoxGrid-row-error td { - background-color: #F8B8B6; -} -.nihilo .dojoxGrid-input, -.nihilo .dojoxGrid-select, -.nihilo .dojoxGrid-textarea { - margin: 0; - padding: 0px; - border-style: none; - width: 100%; - font-size: 100%; - font-family: inherit; -} -.dojoxGrid-hidden-focus { - position: absolute; - left: -1000px; - top: -1000px; - height: 0px, width: 0px; -} -.dijit_a11y .dojoxGrid-rowbar-selected { - border-top: 1px solid white; - border-bottom: 1px dashed black; - border-top: 0; - background: none; -} -.dijit_a11y .dojoxGrid-rowbar-selected .dojoxGrid-rowbar-inner { - border: 0; - border-top: 1px solid white; -} -.dijit_a11y .dojoxGrid-row-selected { - border-bottom: 1px dashed black; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/publicEvents.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/publicEvents.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/publicEvents.js deleted file mode 100644 index 945ba02..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/publicEvents.js +++ /dev/null @@ -1,182 +0,0 @@ -/* - 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.grid.compat._grid.publicEvents"]){ -dojo._hasResource["dojox.grid.compat._grid.publicEvents"]=true; -dojo.provide("dojox.grid.compat._grid.publicEvents"); -dojox.grid.publicEvents={cellOverClass:"dojoxGrid-cell-over",onKeyEvent:function(e){ -this.dispatchKeyEvent(e); -},onContentEvent:function(e){ -this.dispatchContentEvent(e); -},onHeaderEvent:function(e){ -this.dispatchHeaderEvent(e); -},onStyleRow:function(_4){ -with(_4){ -customClasses+=(odd?" dojoxGrid-row-odd":"")+(selected?" dojoxGrid-row-selected":"")+(over?" dojoxGrid-row-over":""); -} -this.focus.styleRow(_4); -this.edit.styleRow(_4); -},onKeyDown:function(e){ -if(e.altKey||e.ctrlKey||e.metaKey){ -return; -} -var dk=dojo.keys; -switch(e.keyCode){ -case dk.ESCAPE: -this.edit.cancel(); -break; -case dk.ENTER: -if(!e.shiftKey){ -var _7=this.edit.isEditing(); -this.edit.apply(); -if(!_7){ -this.edit.setEditCell(this.focus.cell,this.focus.rowIndex); -} -} -break; -case dk.TAB: -this.focus[e.shiftKey?"previousKey":"nextKey"](e); -break; -case dk.LEFT_ARROW: -case dk.RIGHT_ARROW: -if(!this.edit.isEditing()){ -dojo.stopEvent(e); -var _8=(e.keyCode==dk.LEFT_ARROW)?1:-1; -if(dojo._isBodyLtr()){ -_8*=-1; -} -this.focus.move(0,_8); -} -break; -case dk.UP_ARROW: -if(!this.edit.isEditing()&&this.focus.rowIndex!=0){ -dojo.stopEvent(e); -this.focus.move(-1,0); -} -break; -case dk.DOWN_ARROW: -if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.model.count){ -dojo.stopEvent(e); -this.focus.move(1,0); -} -break; -case dk.PAGE_UP: -if(!this.edit.isEditing()&&this.focus.rowIndex!=0){ -dojo.stopEvent(e); -if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){ -this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0); -}else{ -this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1)); -this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0); -} -} -break; -case dk.PAGE_DOWN: -if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.model.count){ -dojo.stopEvent(e); -if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){ -this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0); -}else{ -this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1)); -this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0); -} -} -break; -} -},onMouseOver:function(e){ -e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e); -},onMouseOut:function(e){ -e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e); -},onMouseDown:function(e){ -e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e); -},onMouseOverRow:function(e){ -if(!this.rows.isOver(e.rowIndex)){ -this.rows.setOverRow(e.rowIndex); -e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e); -} -},onMouseOutRow:function(e){ -if(this.rows.isOver(-1)){ -this.onHeaderMouseOut(e); -}else{ -if(!this.rows.isOver(-2)){ -this.rows.setOverRow(-2); -this.onRowMouseOut(e); -} -} -},onMouseDownRow:function(e){ -if(e.rowIndex!=-1){ -this.onRowMouseDown(e); -} -},onCellMouseOver:function(e){ -dojo.addClass(e.cellNode,this.cellOverClass); -},onCellMouseOut:function(e){ -dojo.removeClass(e.cellNode,this.cellOverClass); -},onCellMouseDown:function(e){ -},onCellClick:function(e){ -this._click[0]=this._click[1]; -this._click[1]=e; -if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){ -this.focus.setFocusCell(e.cell,e.rowIndex); -} -this.onRowClick(e); -},onCellDblClick:function(e){ -if(dojo.isIE){ -this.edit.setEditCell(this._click[1].cell,this._click[1].rowIndex); -}else{ -if(this._click[0].rowIndex!=this._click[1].rowIndex){ -this.edit.setEditCell(this._click[0].cell,this._click[0].rowIndex); -}else{ -this.edit.setEditCell(e.cell,e.rowIndex); -} -} -this.onRowDblClick(e); -},onCellContextMenu:function(e){ -this.onRowContextMenu(e); -},onCellFocus:function(_15,_16){ -this.edit.cellFocus(_15,_16); -},onRowClick:function(e){ -this.edit.rowClick(e); -this.selection.clickSelectEvent(e); -},onRowDblClick:function(e){ -},onRowMouseOver:function(e){ -},onRowMouseOut:function(e){ -},onRowMouseDown:function(e){ -},onRowContextMenu:function(e){ -dojo.stopEvent(e); -},onHeaderMouseOver:function(e){ -},onHeaderMouseOut:function(e){ -},onHeaderCellMouseOver:function(e){ -dojo.addClass(e.cellNode,this.cellOverClass); -},onHeaderCellMouseOut:function(e){ -dojo.removeClass(e.cellNode,this.cellOverClass); -},onHeaderCellMouseDown:function(e){ -},onHeaderClick:function(e){ -},onHeaderCellClick:function(e){ -this.setSortIndex(e.cell.index); -this.onHeaderClick(e); -},onHeaderDblClick:function(e){ -},onHeaderCellDblClick:function(e){ -this.onHeaderDblClick(e); -},onHeaderCellContextMenu:function(e){ -this.onHeaderContextMenu(e); -},onHeaderContextMenu:function(e){ -dojo.stopEvent(e); -},onStartEdit:function(_28,_29){ -},onApplyCellEdit:function(_2a,_2b,_2c){ -},onCancelEdit:function(_2d){ -},onApplyEdit:function(_2e){ -},onCanSelect:function(_2f){ -return true; -},onCanDeselect:function(_30){ -return true; -},onSelected:function(_31){ -this.updateRowStyles(_31); -},onDeselected:function(_32){ -this.updateRowStyles(_32); -},onSelectionChanged:function(){ -}}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/rowbar.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/rowbar.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/rowbar.js deleted file mode 100644 index d7e7c73..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/rowbar.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - 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.grid.compat._grid.rowbar"]){ -dojo._hasResource["dojox.grid.compat._grid.rowbar"]=true; -dojo.provide("dojox.grid.compat._grid.rowbar"); -dojo.require("dojox.grid.compat._grid.view"); -dojo.declare("dojox.GridRowView",dojox.GridView,{defaultWidth:"3em",noscroll:true,padBorderWidth:2,buildRendering:function(){ -this.inherited("buildRendering",arguments); -this.scrollboxNode.style.overflow="hidden"; -this.headerNode.style.visibility="hidden"; -},getWidth:function(){ -return this.viewWidth||this.defaultWidth; -},buildRowContent:function(_1,_2){ -var w=this.contentNode.offsetWidth-this.padBorderWidth; -_2.innerHTML="<table style=\"width:"+w+"px;\" role=\"wairole:presentation\"><tr><td class=\"dojoxGrid-rowbar-inner\"></td></tr></table>"; -},renderHeader:function(){ -},resize:function(){ -this.adaptHeight(); -},adaptWidth:function(){ -},doStyleRowNode:function(_4,_5){ -var n=["dojoxGrid-rowbar"]; -if(this.grid.rows.isOver(_4)){ -n.push("dojoxGrid-rowbar-over"); -} -if(this.grid.selection.isSelected(_4)){ -n.push("dojoxGrid-rowbar-selected"); -} -_5.className=n.join(" "); -},domouseover:function(e){ -this.grid.onMouseOverRow(e); -},domouseout:function(e){ -if(!this.isIntraRowEvent(e)){ -this.grid.onMouseOutRow(e); -} -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/rows.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/rows.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/rows.js deleted file mode 100644 index fc36372..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/rows.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - 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.grid.compat._grid.rows"]){ -dojo._hasResource["dojox.grid.compat._grid.rows"]=true; -dojo.provide("dojox.grid.compat._grid.rows"); -dojo.declare("dojox.grid.rows",null,{constructor:function(_1){ -this.grid=_1; -},linesToEms:2,defaultRowHeight:1,overRow:-2,getHeight:function(_2){ -return ""; -},getDefaultHeightPx:function(){ -return 32; -},prepareStylingRow:function(_3,_4){ -return {index:_3,node:_4,odd:Boolean(_3&1),selected:this.grid.selection.isSelected(_3),over:this.isOver(_3),customStyles:"",customClasses:"dojoxGrid-row"}; -},styleRowNode:function(_5,_6){ -var _7=this.prepareStylingRow(_5,_6); -this.grid.onStyleRow(_7); -this.applyStyles(_7); -},applyStyles:function(_8){ -with(_8){ -node.className=customClasses; -var h=node.style.height; -dojox.grid.setStyleText(node,customStyles+";"+(node._style||"")); -node.style.height=h; -} -},updateStyles:function(_a){ -this.grid.updateRowStyles(_a); -},setOverRow:function(_b){ -var _c=this.overRow; -this.overRow=_b; -if((_c!=this.overRow)&&(_c>=0)){ -this.updateStyles(_c); -} -this.updateStyles(this.overRow); -},isOver:function(_d){ -return (this.overRow==_d); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/scroller.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/scroller.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/scroller.js deleted file mode 100644 index 7ed90fe..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/scroller.js +++ /dev/null @@ -1,373 +0,0 @@ -/* - 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.grid.compat._grid.scroller"]){ -dojo._hasResource["dojox.grid.compat._grid.scroller"]=true; -dojo.provide("dojox.grid.compat._grid.scroller"); -dojo.declare("dojox.grid.scroller.base",null,{constructor:function(){ -this.pageHeights=[]; -this.stack=[]; -},rowCount:0,defaultRowHeight:10,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,page:0,pageTop:0,init:function(_1,_2,_3){ -switch(arguments.length){ -case 3: -this.rowsPerPage=_3; -case 2: -this.keepRows=_2; -case 1: -this.rowCount=_1; -} -this.defaultPageHeight=this.defaultRowHeight*this.rowsPerPage; -this.pageCount=Math.ceil(this.rowCount/this.rowsPerPage); -this.setKeepInfo(this.keepRows); -this.invalidate(); -if(this.scrollboxNode){ -this.scrollboxNode.scrollTop=0; -this.scroll(0); -this.scrollboxNode.onscroll=dojo.hitch(this,"onscroll"); -} -},setKeepInfo:function(_4){ -this.keepRows=_4; -this.keepPages=!this.keepRows?this.keepRows:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2); -},invalidate:function(){ -this.invalidateNodes(); -this.pageHeights=[]; -this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0); -this.resize(); -},updateRowCount:function(_5){ -this.invalidateNodes(); -this.rowCount=_5; -var _6=this.pageCount; -this.pageCount=Math.ceil(this.rowCount/this.rowsPerPage); -if(this.pageCount<_6){ -for(var i=_6-1;i>=this.pageCount;i--){ -this.height-=this.getPageHeight(i); -delete this.pageHeights[i]; -} -}else{ -if(this.pageCount>_6){ -this.height+=this.defaultPageHeight*(this.pageCount-_6-1)+this.calcLastPageHeight(); -} -} -this.resize(); -},pageExists:function(_8){ -},measurePage:function(_9){ -},positionPage:function(_a,_b){ -},repositionPages:function(_c){ -},installPage:function(_d){ -},preparePage:function(_e,_f,_10){ -},renderPage:function(_11){ -},removePage:function(_12){ -},pacify:function(_13){ -},pacifying:false,pacifyTicks:200,setPacifying:function(_14){ -if(this.pacifying!=_14){ -this.pacifying=_14; -this.pacify(this.pacifying); -} -},startPacify:function(){ -this.startPacifyTicks=new Date().getTime(); -},doPacify:function(){ -var _15=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks; -this.setPacifying(true); -this.startPacify(); -return _15; -},endPacify:function(){ -this.setPacifying(false); -},resize:function(){ -if(this.scrollboxNode){ -this.windowHeight=this.scrollboxNode.clientHeight; -} -dojox.grid.setStyleHeightPx(this.contentNode,this.height); -},calcLastPageHeight:function(){ -if(!this.pageCount){ -return 0; -} -var _16=this.pageCount-1; -var _17=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight; -this.pageHeights[_16]=_17; -return _17; -},updateContentHeight:function(_18){ -this.height+=_18; -this.resize(); -},updatePageHeight:function(_19){ -if(this.pageExists(_19)){ -var oh=this.getPageHeight(_19); -var h=(this.measurePage(_19))||(oh); -this.pageHeights[_19]=h; -if((h)&&(oh!=h)){ -this.updateContentHeight(h-oh); -this.repositionPages(_19); -} -} -},rowHeightChanged:function(_1c){ -this.updatePageHeight(Math.floor(_1c/this.rowsPerPage)); -},invalidateNodes:function(){ -while(this.stack.length){ -this.destroyPage(this.popPage()); -} -},createPageNode:function(){ -var p=document.createElement("div"); -p.style.position="absolute"; -p.style[dojo._isBodyLtr()?"left":"right"]="0"; -return p; -},getPageHeight:function(_1e){ -var ph=this.pageHeights[_1e]; -return (ph!==undefined?ph:this.defaultPageHeight); -},pushPage:function(_20){ -return this.stack.push(_20); -},popPage:function(){ -return this.stack.shift(); -},findPage:function(_21){ -var i=0,h=0; -for(var ph=0;i<this.pageCount;i++,h+=ph){ -ph=this.getPageHeight(i); -if(h+ph>=_21){ -break; -} -} -this.page=i; -this.pageTop=h; -},buildPage:function(_25,_26,_27){ -this.preparePage(_25,_26); -this.positionPage(_25,_27); -this.installPage(_25); -this.renderPage(_25); -this.pushPage(_25); -},needPage:function(_28,_29){ -var h=this.getPageHeight(_28),oh=h; -if(!this.pageExists(_28)){ -this.buildPage(_28,this.keepPages&&(this.stack.length>=this.keepPages),_29); -h=this.measurePage(_28)||h; -this.pageHeights[_28]=h; -if(h&&(oh!=h)){ -this.updateContentHeight(h-oh); -} -}else{ -this.positionPage(_28,_29); -} -return h; -},onscroll:function(){ -this.scroll(this.scrollboxNode.scrollTop); -},scroll:function(_2c){ -this.startPacify(); -this.findPage(_2c); -var h=this.height; -var b=this.getScrollBottom(_2c); -for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){ -y+=this.needPage(p,y); -} -this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_2c); -this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b); -if(h!=this.height){ -this.repositionPages(p-1); -} -this.endPacify(); -},getScrollBottom:function(_31){ -return (this.windowHeight>=0?_31+this.windowHeight:-1); -},processNodeEvent:function(e,_33){ -var t=e.target; -while(t&&(t!=_33)&&t.parentNode&&(t.parentNode.parentNode!=_33)){ -t=t.parentNode; -} -if(!t||!t.parentNode||(t.parentNode.parentNode!=_33)){ -return false; -} -var _35=t.parentNode; -e.topRowIndex=_35.pageIndex*this.rowsPerPage; -e.rowIndex=e.topRowIndex+dojox.grid.indexInParent(t); -e.rowTarget=t; -return true; -},processEvent:function(e){ -return this.processNodeEvent(e,this.contentNode); -},dummy:0}); -dojo.declare("dojox.grid.scroller",dojox.grid.scroller.base,{constructor:function(){ -this.pageNodes=[]; -},renderRow:function(_37,_38){ -},removeRow:function(_39){ -},getDefaultNodes:function(){ -return this.pageNodes; -},getDefaultPageNode:function(_3a){ -return this.getDefaultNodes()[_3a]; -},positionPageNode:function(_3b,_3c){ -_3b.style.top=_3c+"px"; -},getPageNodePosition:function(_3d){ -return _3d.offsetTop; -},repositionPageNodes:function(_3e,_3f){ -var _40=0; -for(var i=0;i<this.stack.length;i++){ -_40=Math.max(this.stack[i],_40); -} -var n=_3f[_3e]; -var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_3e):0); -for(var p=_3e+1;p<=_40;p++){ -n=_3f[p]; -if(n){ -if(this.getPageNodePosition(n)==y){ -return; -} -this.positionPage(p,y); -} -y+=this.getPageHeight(p); -} -},invalidatePageNode:function(_45,_46){ -var p=_46[_45]; -if(p){ -delete _46[_45]; -this.removePage(_45,p); -dojox.grid.cleanNode(p); -p.innerHTML=""; -} -return p; -},preparePageNode:function(_48,_49,_4a){ -var p=(_49===null?this.createPageNode():this.invalidatePageNode(_49,_4a)); -p.pageIndex=_48; -p.id=(this._pageIdPrefix||"")+"page-"+_48; -_4a[_48]=p; -},pageExists:function(_4c){ -return Boolean(this.getDefaultPageNode(_4c)); -},measurePage:function(_4d){ -var p=this.getDefaultPageNode(_4d); -var h=p.offsetHeight; -if(!this._defaultRowHeight){ -if(p){ -this._defaultRowHeight=8; -var fr=p.firstChild; -if(fr){ -var _51=dojo.doc.createTextNode("T"); -fr.appendChild(_51); -this._defaultRowHeight=fr.offsetHeight; -fr.removeChild(_51); -} -} -} -return (this.rowsPerPage==h)?(h*this._defaultRowHeight):h; -},positionPage:function(_52,_53){ -this.positionPageNode(this.getDefaultPageNode(_52),_53); -},repositionPages:function(_54){ -this.repositionPageNodes(_54,this.getDefaultNodes()); -},preparePage:function(_55,_56){ -this.preparePageNode(_55,(_56?this.popPage():null),this.getDefaultNodes()); -},installPage:function(_57){ -this.contentNode.appendChild(this.getDefaultPageNode(_57)); -},destroyPage:function(_58){ -var p=this.invalidatePageNode(_58,this.getDefaultNodes()); -dojox.grid.removeNode(p); -},renderPage:function(_5a){ -var _5b=this.pageNodes[_5a]; -for(var i=0,j=_5a*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){ -this.renderRow(j,_5b); -} -},removePage:function(_5e){ -for(var i=0,j=_5e*this.rowsPerPage;i<this.rowsPerPage;i++,j++){ -this.removeRow(j); -} -},getPageRow:function(_61){ -return _61*this.rowsPerPage; -},getLastPageRow:function(_62){ -return Math.min(this.rowCount,this.getPageRow(_62+1))-1; -},getFirstVisibleRowNodes:function(_63,_64,_65,_66){ -var row=this.getPageRow(_63); -var _68=dojox.grid.divkids(_66[_63]); -for(var i=0,l=_68.length;i<l&&_64<_65;i++,row++){ -_64+=_68[i].offsetHeight; -} -return (row?row-1:row); -},getFirstVisibleRow:function(_6b,_6c,_6d){ -if(!this.pageExists(_6b)){ -return 0; -} -return this.getFirstVisibleRowNodes(_6b,_6c,_6d,this.getDefaultNodes()); -},getLastVisibleRowNodes:function(_6e,_6f,_70,_71){ -var row=this.getLastPageRow(_6e); -var _73=dojox.grid.divkids(_71[_6e]); -for(var i=_73.length-1;i>=0&&_6f>_70;i--,row--){ -_6f-=_73[i].offsetHeight; -} -return row+1; -},getLastVisibleRow:function(_75,_76,_77){ -if(!this.pageExists(_75)){ -return 0; -} -return this.getLastVisibleRowNodes(_75,_76,_77,this.getDefaultNodes()); -},findTopRowForNodes:function(_78,_79){ -var _7a=dojox.grid.divkids(_79[this.page]); -for(var i=0,l=_7a.length,t=this.pageTop,h;i<l;i++){ -h=_7a[i].offsetHeight; -t+=h; -if(t>=_78){ -this.offset=h-(t-_78); -return i+this.page*this.rowsPerPage; -} -} -return -1; -},findScrollTopForNodes:function(_7f,_80){ -var _81=Math.floor(_7f/this.rowsPerPage); -var t=0; -for(var i=0;i<_81;i++){ -t+=this.getPageHeight(i); -} -this.pageTop=t; -this.needPage(_81,this.pageTop); -var _84=dojox.grid.divkids(_80[_81]); -var r=_7f-this.rowsPerPage*_81; -for(var i=0,l=_84.length;i<l&&i<r;i++){ -t+=_84[i].offsetHeight; -} -return t; -},findTopRow:function(_87){ -return this.findTopRowForNodes(_87,this.getDefaultNodes()); -},findScrollTop:function(_88){ -return this.findScrollTopForNodes(_88,this.getDefaultNodes()); -},dummy:0}); -dojo.declare("dojox.grid.scroller.columns",dojox.grid.scroller,{constructor:function(_89){ -this.setContentNodes(_89); -},setContentNodes:function(_8a){ -this.contentNodes=_8a; -this.colCount=(this.contentNodes?this.contentNodes.length:0); -this.pageNodes=[]; -for(var i=0;i<this.colCount;i++){ -this.pageNodes[i]=[]; -} -},getDefaultNodes:function(){ -return this.pageNodes[0]||[]; -},scroll:function(_8c){ -if(this.colCount){ -dojox.grid.scroller.prototype.scroll.call(this,_8c); -} -},resize:function(){ -if(this.scrollboxNode){ -this.windowHeight=this.scrollboxNode.clientHeight; -} -for(var i=0;i<this.colCount;i++){ -dojox.grid.setStyleHeightPx(this.contentNodes[i],this.height); -} -},positionPage:function(_8e,_8f){ -for(var i=0;i<this.colCount;i++){ -this.positionPageNode(this.pageNodes[i][_8e],_8f); -} -},preparePage:function(_91,_92){ -var p=(_92?this.popPage():null); -for(var i=0;i<this.colCount;i++){ -this.preparePageNode(_91,p,this.pageNodes[i]); -} -},installPage:function(_95){ -for(var i=0;i<this.colCount;i++){ -this.contentNodes[i].appendChild(this.pageNodes[i][_95]); -} -},destroyPage:function(_97){ -for(var i=0;i<this.colCount;i++){ -dojox.grid.removeNode(this.invalidatePageNode(_97,this.pageNodes[i])); -} -},renderPage:function(_99){ -var _9a=[]; -for(var i=0;i<this.colCount;i++){ -_9a[i]=this.pageNodes[i][_99]; -} -for(var i=0,j=_99*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){ -this.renderRow(j,_9a); -} -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/selection.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/selection.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/selection.js deleted file mode 100644 index fa636ca..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_grid/selection.js +++ /dev/null @@ -1,153 +0,0 @@ -/* - 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.grid.compat._grid.selection"]){ -dojo._hasResource["dojox.grid.compat._grid.selection"]=true; -dojo.provide("dojox.grid.compat._grid.selection"); -dojo.declare("dojox.grid.selection",null,{constructor:function(_1){ -this.grid=_1; -this.selected=[]; -},multiSelect:true,selected:null,updating:0,selectedIndex:-1,onCanSelect:function(_2){ -return this.grid.onCanSelect(_2); -},onCanDeselect:function(_3){ -return this.grid.onCanDeselect(_3); -},onSelected:function(_4){ -return this.grid.onSelected(_4); -},onDeselected:function(_5){ -return this.grid.onDeselected(_5); -},onChanging:function(){ -},onChanged:function(){ -return this.grid.onSelectionChanged(); -},isSelected:function(_6){ -return this.selected[_6]; -},getFirstSelected:function(){ -for(var i=0,l=this.selected.length;i<l;i++){ -if(this.selected[i]){ -return i; -} -} -return -1; -},getNextSelected:function(_9){ -for(var i=_9+1,l=this.selected.length;i<l;i++){ -if(this.selected[i]){ -return i; -} -} -return -1; -},getSelected:function(){ -var _c=[]; -for(var i=0,l=this.selected.length;i<l;i++){ -if(this.selected[i]){ -_c.push(i); -} -} -return _c; -},getSelectedCount:function(){ -var c=0; -for(var i=0;i<this.selected.length;i++){ -if(this.selected[i]){ -c++; -} -} -return c; -},beginUpdate:function(){ -if(this.updating==0){ -this.onChanging(); -} -this.updating++; -},endUpdate:function(){ -this.updating--; -if(this.updating==0){ -this.onChanged(); -} -},select:function(_11){ -this.unselectAll(_11); -this.addToSelection(_11); -},addToSelection:function(_12){ -_12=Number(_12); -if(this.selected[_12]){ -this.selectedIndex=_12; -}else{ -if(this.onCanSelect(_12)!==false){ -this.selectedIndex=_12; -this.beginUpdate(); -this.selected[_12]=true; -this.grid.onSelected(_12); -this.endUpdate(); -} -} -},deselect:function(_13){ -_13=Number(_13); -if(this.selectedIndex==_13){ -this.selectedIndex=-1; -} -if(this.selected[_13]){ -if(this.onCanDeselect(_13)===false){ -return; -} -this.beginUpdate(); -delete this.selected[_13]; -this.grid.onDeselected(_13); -this.endUpdate(); -} -},setSelected:function(_14,_15){ -this[(_15?"addToSelection":"deselect")](_14); -},toggleSelect:function(_16){ -this.setSelected(_16,!this.selected[_16]); -},insert:function(_17){ -this.selected.splice(_17,0,false); -if(this.selectedIndex>=_17){ -this.selectedIndex++; -} -},remove:function(_18){ -this.selected.splice(_18,1); -if(this.selectedIndex>=_18){ -this.selectedIndex--; -} -},unselectAll:function(_19){ -for(var i in this.selected){ -if((i!=_19)&&(this.selected[i]===true)){ -this.deselect(i); -} -} -},shiftSelect:function(_1b,_1c){ -var s=(_1b>=0?_1b:_1c),e=_1c; -if(s>e){ -e=s; -s=_1c; -} -for(var i=s;i<=e;i++){ -this.addToSelection(i); -} -},clickSelect:function(_20,_21,_22){ -this.beginUpdate(); -if(!this.multiSelect){ -this.select(_20); -}else{ -var _23=this.selectedIndex; -if(!_21){ -this.unselectAll(_20); -} -if(_22){ -this.shiftSelect(_23,_20); -}else{ -if(_21){ -this.toggleSelect(_20); -}else{ -this.addToSelection(_20); -} -} -} -this.endUpdate(); -},clickSelectEvent:function(e){ -this.clickSelect(e.rowIndex,dojo.dnd.getCopyKeyState(e),e.shiftKey); -},clear:function(){ -this.beginUpdate(); -this.unselectAll(); -this.endUpdate(); -}}); -}