http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/_View.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/_View.js b/components/camel-web/src/main/webapp/js/dojox/grid/_View.js deleted file mode 100644 index d937ee2..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/_View.js +++ /dev/null @@ -1,496 +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._View"]){ -dojo._hasResource["dojox.grid._View"]=true; -dojo.provide("dojox.grid._View"); -dojo.require("dijit._Widget"); -dojo.require("dijit._Templated"); -dojo.require("dojox.grid._Builder"); -dojo.require("dojox.html.metrics"); -dojo.require("dojox.grid.util"); -dojo.require("dojo.dnd.Source"); -dojo.require("dojo.dnd.Manager"); -(function(){ -var _1=function(_2,_3){ -return _2.style.cssText==undefined?_2.getAttribute("style"):_2.style.cssText; -}; -dojo.declare("dojox.grid._View",[dijit._Widget,dijit._Templated],{defaultWidth:"18em",viewWidth:"",templateString:"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"presentation\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n",themeable:false,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,postMixInProperties:function(){ -this.rowNodes=[]; -},postCreate:function(){ -this.connect(this.scrollboxNode,"onscroll","doscroll"); -dojox.grid.util.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]); -dojox.grid.util.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]); -this.content=new dojox.grid._ContentBuilder(this); -this.header=new dojox.grid._HeaderBuilder(this); -if(!dojo._isBodyLtr()){ -this.headerNodeContainer.style.width=""; -} -},destroy:function(){ -dojo.destroy(this.headerNode); -delete this.headerNode; -dojo.forEach(this.rowNodes,dojo.destroy); -this.rowNodes=[]; -if(this.source){ -this.source.destroy(); -} -this.inherited(arguments); -},focus:function(){ -if(dojo.isWebKit||dojo.isOpera){ -this.hiddenFocusNode.focus(); -}else{ -this.scrollboxNode.focus(); -} -},setStructure:function(_4){ -var vs=(this.structure=_4); -if(vs.width&&!isNaN(vs.width)){ -this.viewWidth=vs.width+"em"; -}else{ -this.viewWidth=vs.width||(vs.noscroll?"auto":this.viewWidth); -} -this.onBeforeRow=vs.onBeforeRow; -this.onAfterRow=vs.onAfterRow; -this.noscroll=vs.noscroll; -if(this.noscroll){ -this.scrollboxNode.style.overflow="hidden"; -} -this.simpleStructure=Boolean(vs.cells.length==1); -this.testFlexCells(); -this.updateStructure(); -},testFlexCells:function(){ -this.flexCells=false; -for(var j=0,_7;(_7=this.structure.cells[j]);j++){ -for(var i=0,_9;(_9=_7[i]);i++){ -_9.view=this; -this.flexCells=this.flexCells||_9.isFlex(); -} -} -return this.flexCells; -},updateStructure:function(){ -this.header.update(); -this.content.update(); -},getScrollbarWidth:function(){ -var _a=this.hasVScrollbar(); -var _b=dojo.style(this.scrollboxNode,"overflow"); -if(this.noscroll||!_b||_b=="hidden"){ -_a=false; -}else{ -if(_b=="scroll"){ -_a=true; -} -} -return (_a?dojox.html.metrics.getScrollbar().w:0); -},getColumnsWidth:function(){ -return this.headerContentNode.firstChild.offsetWidth; -},setColumnsWidth:function(_c){ -this.headerContentNode.firstChild.style.width=_c+"px"; -if(this.viewWidth){ -this.viewWidth=_c+"px"; -} -},getWidth:function(){ -return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px"; -},getContentWidth:function(){ -return Math.max(0,dojo._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px"; -},render:function(){ -this.scrollboxNode.style.height=""; -this.renderHeader(); -if(this._togglingColumn>=0){ -this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn); -this._togglingColumn=-1; -} -var _d=this.grid.layout.cells; -var _e=dojo.hitch(this,function(_f,_10){ -var inc=_10?-1:1; -var idx=this.header.getCellNodeIndex(_f)+inc; -var _13=_d[idx]; -while(_13&&_13.getHeaderNode()&&_13.getHeaderNode().style.display=="none"){ -idx+=inc; -_13=_d[idx]; -} -if(_13){ -return _13.getHeaderNode(); -} -return null; -}); -if(this.grid.columnReordering&&this.simpleStructure){ -if(this.source){ -this.source.destroy(); -} -this.source=new dojo.dnd.Source(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,onMouseDown:dojo.hitch(this,function(e){ -this.header.decorateEvent(e); -if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){ -this.header.beginColumnResize(e); -}else{ -if(this.grid.headerMenu){ -this.grid.headerMenu.onCancel(true); -} -if(e.button===(dojo.isIE?1:0)){ -dojo.dnd.Source.prototype.onMouseDown.call(this.source,e); -} -} -}),_markTargetAnchor:dojo.hitch(this,function(_15){ -var src=this.source; -if(src.current==src.targetAnchor&&src.before==_15){ -return; -} -if(src.targetAnchor&&_e(src.targetAnchor,src.before)){ -src._removeItemClass(_e(src.targetAnchor,src.before),src.before?"After":"Before"); -} -dojo.dnd.Source.prototype._markTargetAnchor.call(src,_15); -if(src.targetAnchor&&_e(src.targetAnchor,src.before)){ -src._addItemClass(_e(src.targetAnchor,src.before),src.before?"After":"Before"); -} -}),_unmarkTargetAnchor:dojo.hitch(this,function(){ -var src=this.source; -if(!src.targetAnchor){ -return; -} -if(src.targetAnchor&&_e(src.targetAnchor,src.before)){ -src._removeItemClass(_e(src.targetAnchor,src.before),src.before?"After":"Before"); -} -dojo.dnd.Source.prototype._unmarkTargetAnchor.call(src); -}),destroy:dojo.hitch(this,function(){ -dojo.disconnect(this._source_conn); -dojo.unsubscribe(this._source_sub); -dojo.dnd.Source.prototype.destroy.call(this.source); -})}); -this._source_conn=dojo.connect(this.source,"onDndDrop",this,"_onDndDrop"); -this._source_sub=dojo.subscribe("/dnd/drop/before",this,"_onDndDropBefore"); -this.source.startup(); -} -},_onDndDropBefore:function(_18,_19,_1a){ -if(dojo.dnd.manager().target!==this.source){ -return; -} -this.source._targetNode=this.source.targetAnchor; -this.source._beforeTarget=this.source.before; -var _1b=this.grid.views.views; -var _1c=_1b[_18.viewIndex]; -var _1d=_1b[this.index]; -if(_1d!=_1c){ -var s=_1c.convertColPctToFixed(); -var t=_1d.convertColPctToFixed(); -if(s||t){ -setTimeout(function(){ -_1c.update(); -_1d.update(); -},50); -} -} -},_onDndDrop:function(_20,_21,_22){ -if(dojo.dnd.manager().target!==this.source){ -if(dojo.dnd.manager().source===this.source){ -this._removingColumn=true; -} -return; -} -var _23=function(n){ -return n?dojo.attr(n,"idx"):null; -}; -var w=dojo.marginBox(_21[0]).w; -if(_20.viewIndex!==this.index){ -var _26=this.grid.views.views; -var _27=_26[_20.viewIndex]; -var _28=_26[this.index]; -if(_27.viewWidth&&_27.viewWidth!="auto"){ -_27.setColumnsWidth(_27.getColumnsWidth()-w); -} -if(_28.viewWidth&&_28.viewWidth!="auto"){ -_28.setColumnsWidth(_28.getColumnsWidth()); -} -} -var stn=this.source._targetNode; -var stb=this.source._beforeTarget; -var _2b=this.grid.layout; -var idx=this.index; -delete this.source._targetNode; -delete this.source._beforeTarget; -window.setTimeout(function(){ -_2b.moveColumn(_20.viewIndex,idx,_23(_21[0]),_23(stn),stb); -},1); -},renderHeader:function(){ -this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent); -if(this.flexCells){ -this.contentWidth=this.getContentWidth(); -this.headerContentNode.firstChild.style.width=this.contentWidth; -} -dojox.grid.util.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]); -},_getHeaderContent:function(_2d){ -var n=_2d.name||_2d.grid.getCellName(_2d); -var ret=["<div class=\"dojoxGridSortNode"]; -if(_2d.index!=_2d.grid.getSortIndex()){ -ret.push("\">"); -}else{ -ret=ret.concat([" ",_2d.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_2d.grid.sortInfo>0?"▲":"▼","</div><div class=\"dojoxGridArrowButtonNode\"></div>"]); -} -ret=ret.concat([n,"</div>"]); -return ret.join(""); -},resize:function(){ -this.adaptHeight(); -this.adaptWidth(); -},hasHScrollbar:function(_30){ -if(this._hasHScroll==undefined||_30){ -if(this.noscroll){ -this._hasHScroll=false; -}else{ -var _31=dojo.style(this.scrollboxNode,"overflow"); -if(_31=="hidden"){ -this._hasHScroll=false; -}else{ -if(_31=="scroll"){ -this._hasHScroll=true; -}else{ -this._hasHScroll=(this.scrollboxNode.offsetWidth<this.contentNode.offsetWidth); -} -} -} -} -return this._hasHScroll; -},hasVScrollbar:function(_32){ -if(this._hasVScroll==undefined||_32){ -if(this.noscroll){ -this._hasVScroll=false; -}else{ -var _33=dojo.style(this.scrollboxNode,"overflow"); -if(_33=="hidden"){ -this._hasVScroll=false; -}else{ -if(_33=="scroll"){ -this._hasVScroll=true; -}else{ -this._hasVScroll=(this.scrollboxNode.offsetHeight<this.contentNode.offsetHeight); -} -} -} -} -return this._hasVScroll; -},convertColPctToFixed:function(){ -var _34=false; -var _35=dojo.query("th",this.headerContentNode); -var _36=dojo.map(_35,function(c){ -var w=c.style.width; -if(w&&w.slice(-1)=="%"){ -_34=true; -return dojo.contentBox(c).w; -}else{ -if(w&&w.slice(-2)=="px"){ -return window.parseInt(w,10); -} -} -return -1; -}); -if(_34){ -dojo.forEach(this.grid.layout.cells,function(_39,idx){ -if(_39.view==this){ -var _3b=_39.layoutIndex; -this.setColWidth(idx,_36[_3b]); -_35[_3b].style.width=_39.unitWidth; -} -},this); -return true; -} -return false; -},adaptHeight:function(_3c){ -if(!this.grid._autoHeight){ -var h=this.domNode.clientHeight; -if(_3c){ -h-=dojox.html.metrics.getScrollbar().h; -} -dojox.grid.util.setStyleHeightPx(this.scrollboxNode,h); -} -this.hasVScrollbar(true); -},adaptWidth:function(){ -if(this.flexCells){ -this.contentWidth=this.getContentWidth(); -this.headerContentNode.firstChild.style.width=this.contentWidth; -} -var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth(); -if(!this._removingColumn){ -w=Math.max(w,this.getColumnsWidth())+"px"; -}else{ -w=Math.min(w,this.getColumnsWidth())+"px"; -this._removingColumn=false; -} -var cn=this.contentNode; -cn.style.width=w; -this.hasHScrollbar(true); -},setSize:function(w,h){ -var ds=this.domNode.style; -var hs=this.headerNode.style; -if(w){ -ds.width=w; -hs.width=w; -} -ds.height=(h>=0?h+"px":""); -},renderRow:function(_44){ -var _45=this.createRowNode(_44); -this.buildRow(_44,_45); -this.grid.edit.restore(this,_44); -if(this._pendingUpdate){ -window.clearTimeout(this._pendingUpdate); -} -this._pendingUpdate=window.setTimeout(dojo.hitch(this,function(){ -window.clearTimeout(this._pendingUpdate); -delete this._pendingUpdate; -this.grid._resize(); -}),50); -return _45; -},createRowNode:function(_46){ -var _47=document.createElement("div"); -_47.className=this.classTag+"Row"; -_47[dojox.grid.util.gridViewTag]=this.id; -_47[dojox.grid.util.rowIndexTag]=_46; -this.rowNodes[_46]=_47; -return _47; -},buildRow:function(_48,_49){ -this.buildRowContent(_48,_49); -this.styleRow(_48,_49); -},buildRowContent:function(_4a,_4b){ -_4b.innerHTML=this.content.generateHtml(_4a,_4a); -if(this.flexCells&&this.contentWidth){ -_4b.firstChild.style.width=this.contentWidth; -} -dojox.grid.util.fire(this,"onAfterRow",[_4a,this.structure.cells,_4b]); -},rowRemoved:function(_4c){ -this.grid.edit.save(this,_4c); -delete this.rowNodes[_4c]; -},getRowNode:function(_4d){ -return this.rowNodes[_4d]; -},getCellNode:function(_4e,_4f){ -var row=this.getRowNode(_4e); -if(row){ -return this.content.getCellNode(row,_4f); -} -},getHeaderCellNode:function(_51){ -if(this.headerContentNode){ -return this.header.getCellNode(this.headerContentNode,_51); -} -},styleRow:function(_52,_53){ -_53._style=_1(_53); -this.styleRowNode(_52,_53); -},styleRowNode:function(_54,_55){ -if(_55){ -this.doStyleRowNode(_54,_55); -} -},doStyleRowNode:function(_56,_57){ -this.grid.styleRowNode(_56,_57); -},updateRow:function(_58){ -var _59=this.getRowNode(_58); -if(_59){ -_59.style.height=""; -this.buildRow(_58,_59); -} -return _59; -},updateRowStyles:function(_5a){ -this.styleRowNode(_5a,this.getRowNode(_5a)); -},lastTop:0,firstScroll:0,doscroll:function(_5b){ -var _5c=dojo._isBodyLtr(); -if(this.firstScroll<2){ -if((!_5c&&this.firstScroll==1)||(_5c&&this.firstScroll==0)){ -var s=dojo.marginBox(this.headerNodeContainer); -if(dojo.isIE){ -this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px"; -}else{ -if(dojo.isMoz){ -this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px"; -this.scrollboxNode.scrollLeft=_5c?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth; -} -} -} -this.firstScroll++; -} -this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft; -var top=this.scrollboxNode.scrollTop; -if(top!=this.lastTop){ -this.grid.scrollTo(top); -} -},setScrollTop:function(_5f){ -this.lastTop=_5f; -this.scrollboxNode.scrollTop=_5f; -return this.scrollboxNode.scrollTop; -},doContentEvent:function(e){ -if(this.content.decorateEvent(e)){ -this.grid.onContentEvent(e); -} -},doHeaderEvent:function(e){ -if(this.header.decorateEvent(e)){ -this.grid.onHeaderEvent(e); -} -},dispatchContentEvent:function(e){ -return this.content.dispatchEvent(e); -},dispatchHeaderEvent:function(e){ -return this.header.dispatchEvent(e); -},setColWidth:function(_64,_65){ -this.grid.setCellWidth(_64,_65+"px"); -},update:function(){ -this.content.update(); -this.grid.update(); -var _66=this.scrollboxNode.scrollLeft; -this.scrollboxNode.scrollLeft=_66; -this.headerNode.scrollLeft=_66; -}}); -dojo.declare("dojox.grid._GridAvatar",dojo.dnd.Avatar,{construct:function(){ -var dd=dojo.doc; -var a=dd.createElement("table"); -a.cellPadding=a.cellSpacing="0"; -a.className="dojoxGridDndAvatar"; -a.style.position="absolute"; -a.style.zIndex=1999; -a.style.margin="0px"; -var b=dd.createElement("tbody"); -var tr=dd.createElement("tr"); -var td=dd.createElement("td"); -var img=dd.createElement("td"); -tr.className="dojoxGridDndAvatarItem"; -img.className="dojoxGridDndAvatarItemImage"; -img.style.width="16px"; -var _6d=this.manager.source,_6e; -if(_6d.creator){ -_6e=_6d._normailzedCreator(_6d.getItem(this.manager.nodes[0].id).data,"avatar").node; -}else{ -_6e=this.manager.nodes[0].cloneNode(true); -if(_6e.tagName.toLowerCase()=="tr"){ -var _6f=dd.createElement("table"),_70=dd.createElement("tbody"); -_70.appendChild(_6e); -_6f.appendChild(_70); -_6e=_6f; -}else{ -if(_6e.tagName.toLowerCase()=="th"){ -var _6f=dd.createElement("table"),_70=dd.createElement("tbody"),r=dd.createElement("tr"); -_6f.cellPadding=_6f.cellSpacing="0"; -r.appendChild(_6e); -_70.appendChild(r); -_6f.appendChild(_70); -_6e=_6f; -} -} -} -_6e.id=""; -td.appendChild(_6e); -tr.appendChild(img); -tr.appendChild(td); -dojo.style(tr,"opacity",0.9); -b.appendChild(tr); -a.appendChild(b); -this.node=a; -var m=dojo.dnd.manager(); -this.oldOffsetY=m.OFFSET_Y; -m.OFFSET_Y=1; -},destroy:function(){ -dojo.dnd.manager().OFFSET_Y=this.oldOffsetY; -this.inherited(arguments); -}}); -var _73=dojo.dnd.manager().makeAvatar; -dojo.dnd.manager().makeAvatar=function(){ -var src=this.source; -if(src.viewIndex!==undefined){ -return new dojox.grid._GridAvatar(this); -} -return _73.call(dojo.dnd.manager()); -}; -})(); -}
http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/_ViewManager.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/_ViewManager.js b/components/camel-web/src/main/webapp/js/dojox/grid/_ViewManager.js deleted file mode 100644 index ad50a43..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/_ViewManager.js +++ /dev/null @@ -1,189 +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._ViewManager"]){ -dojo._hasResource["dojox.grid._ViewManager"]=true; -dojo.provide("dojox.grid._ViewManager"); -dojo.declare("dojox.grid._ViewManager",null,{constructor:function(_1){ -this.grid=_1; -},defaultWidth:200,views:[],resize:function(){ -this.onEach("resize"); -},render:function(){ -this.onEach("render"); -},addView:function(_2){ -_2.idx=this.views.length; -this.views.push(_2); -},destroyViews:function(){ -for(var i=0,v;v=this.views[i];i++){ -v.destroy(); -} -this.views=[]; -},getContentNodes:function(){ -var _5=[]; -for(var i=0,v;v=this.views[i];i++){ -_5.push(v.contentNode); -} -return _5; -},forEach:function(_8){ -for(var i=0,v;v=this.views[i];i++){ -_8(v,i); -} -},onEach:function(_b,_c){ -_c=_c||[]; -for(var i=0,v;v=this.views[i];i++){ -if(_b in v){ -v[_b].apply(v,_c); -} -} -},normalizeHeaderNodeHeight:function(){ -var _f=[]; -for(var i=0,v;(v=this.views[i]);i++){ -if(v.headerContentNode.firstChild){ -_f.push(v.headerContentNode); -} -} -this.normalizeRowNodeHeights(_f); -},normalizeRowNodeHeights:function(_12){ -var h=0; -for(var i=0,n,o;(n=_12[i]);i++){ -h=Math.max(h,dojo.marginBox(n.firstChild).h); -} -h=(h>=0?h:0); -for(var i=0,n;(n=_12[i]);i++){ -dojo.marginBox(n.firstChild,{h:h}); -} -if(_12&&_12[0]&&_12[0].parentNode){ -_12[0].parentNode.offsetHeight; -} -},resetHeaderNodeHeight:function(){ -for(var i=0,v,n;(v=this.views[i]);i++){ -n=v.headerContentNode.firstChild; -if(n){ -n.style.height=""; -} -} -},renormalizeRow:function(_1a){ -var _1b=[]; -for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_1a));i++){ -n.firstChild.style.height=""; -_1b.push(n); -} -this.normalizeRowNodeHeights(_1b); -},getViewWidth:function(_1f){ -return this.views[_1f].getWidth()||this.defaultWidth; -},measureHeader:function(){ -this.resetHeaderNodeHeight(); -this.forEach(function(_20){ -_20.headerContentNode.style.height=""; -}); -var h=0; -this.forEach(function(_22){ -h=Math.max(_22.headerNode.offsetHeight,h); -}); -return h; -},measureContent:function(){ -var h=0; -this.forEach(function(_24){ -h=Math.max(_24.domNode.offsetHeight,h); -}); -return h; -},findClient:function(_25){ -var c=this.grid.elasticView||-1; -if(c<0){ -for(var i=1,v;(v=this.views[i]);i++){ -if(v.viewWidth){ -for(i=1;(v=this.views[i]);i++){ -if(!v.viewWidth){ -c=i; -break; -} -} -break; -} -} -} -if(c<0){ -c=Math.floor(this.views.length/2); -} -return c; -},arrange:function(l,w){ -var i,v,vw,len=this.views.length; -var c=(w<=0?len:this.findClient()); -var _30=function(v,l){ -var ds=v.domNode.style; -var hs=v.headerNode.style; -if(!dojo._isBodyLtr()){ -ds.right=l+"px"; -hs.right=l+"px"; -}else{ -ds.left=l+"px"; -hs.left=l+"px"; -} -ds.top=0+"px"; -hs.top=0; -}; -for(i=0;(v=this.views[i])&&(i<c);i++){ -vw=this.getViewWidth(i); -v.setSize(vw,0); -_30(v,l); -if(v.headerContentNode&&v.headerContentNode.firstChild){ -vw=v.getColumnsWidth()+v.getScrollbarWidth(); -}else{ -vw=v.domNode.offsetWidth; -} -l+=vw; -} -i++; -var r=w; -for(var j=len-1;(v=this.views[j])&&(i<=j);j--){ -vw=this.getViewWidth(j); -v.setSize(vw,0); -vw=v.domNode.offsetWidth; -r-=vw; -_30(v,r); -} -if(c<len){ -v=this.views[c]; -vw=Math.max(1,r-l); -v.setSize(vw+"px",0); -_30(v,l); -} -return l; -},renderRow:function(_37,_38){ -var _39=[]; -for(var i=0,v,n,_3d;(v=this.views[i])&&(n=_38[i]);i++){ -_3d=v.renderRow(_37); -n.appendChild(_3d); -_39.push(_3d); -} -this.normalizeRowNodeHeights(_39); -},rowRemoved:function(_3e){ -this.onEach("rowRemoved",[_3e]); -},updateRow:function(_3f){ -for(var i=0,v;v=this.views[i];i++){ -v.updateRow(_3f); -} -this.renormalizeRow(_3f); -},updateRowStyles:function(_42){ -this.onEach("updateRowStyles",[_42]); -},setScrollTop:function(_43){ -var top=_43; -for(var i=0,v;v=this.views[i];i++){ -top=v.setScrollTop(_43); -if(dojo.isIE&&v.headerNode&&v.scrollboxNode){ -v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft; -} -} -return top; -},getFirstScrollingView:function(){ -for(var i=0,v;(v=this.views[i]);i++){ -if(v.hasHScrollbar()||v.hasVScrollbar()){ -return v; -} -} -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/_grid/Grid.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/_grid/Grid.css b/components/camel-web/src/main/webapp/js/dojox/grid/_grid/Grid.css deleted file mode 100644 index 123de2b..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/_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(../compat/_grid/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(../compat/_grid/images/grid_sort_down.gif) left no-repeat; - padding-left:16px; - margin-left:4px; -} -.dojoxGrid-sort-up { - background: url(../compat/_grid/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(../compat/_grid/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/_grid/Grid_rtl.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/_grid/Grid_rtl.css b/components/camel-web/src/main/webapp/js/dojox/grid/_grid/Grid_rtl.css deleted file mode 100644 index 88ab215..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/_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/_grid/nihiloGrid.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/_grid/nihiloGrid.css b/components/camel-web/src/main/webapp/js/dojox/grid/_grid/nihiloGrid.css deleted file mode 100644 index 6d57d61..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/_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(../compat/../../../dijit/themes/nihilo/images/titleBar.png) #e9e9e9 repeat-x top; - padding-bottom: 2px; - color: #000 !important; -} -.nihilo .dojoxGrid-header .dojoxGrid-cell-over { - background: url(../compat/../../../dijit/themes/nihilo/images/titleBarActive.png) #e9e9e9 repeat-x top; -} -.nihilo .dojoxGrid-sort-down { - background: url(../compat/_grid/images/grid_sort_down.gif) right no-repeat; - padding-left: 0px; - margin-left: 0px; -} -.nihilo .dojoxGrid-sort-up { - background: url(../compat/_grid/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(../compat/_grid/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(../compat/_grid/images/titleBarActive.png) #e9e9e9 repeat-y right; -} -.nihilo .dojoxGrid-rowbar-selected { - background-color: #D9E8F9; - background-image: none; - background: url(../compat/../../../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/_grid/soriaGrid.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/_grid/soriaGrid.css b/components/camel-web/src/main/webapp/js/dojox/grid/_grid/soriaGrid.css deleted file mode 100644 index 89dc956..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/_grid/soriaGrid.css +++ /dev/null @@ -1,212 +0,0 @@ -.soria .dojoxGrid { - position: relative; - background-color: #e9e9e9; - font-size: 0.85em; - -moz-outline-style: none; - outline: none; - overflow: hidden; - height: 0; -} -.soria .dojoxGrid table { - padding: 0; -} -.soria .dojoxGrid td { - -moz-outline: none; -} -.soria .dojoxGrid-master-header { - position: relative; -} -.soria .dojoxGrid-master-view { - position: relative; -} -.soria .dojoxGrid-view { - position: absolute; - overflow: hidden; -} -.soria .dojoxGrid-header { - position: absolute; - overflow: hidden; -} -.soria .dojoxGrid-header { - background-color: #e9e9e9; -} -.soria .dojoxGrid-header table { - text-align: center; -} -.soria .dojoxGrid-header .dojoxGrid-cell-content { - text-align: center; -} -.soria .dojoxGrid-header .dojoxGrid-cell { - border: 1px solid transparent; - - border-color: white #ACA899 #919191 white; - background: url(../compat/../../../dijit/themes/soria/images/titleBar.png) #e9e9e9 repeat-x top; - padding-bottom: 2px; - color: #000 !important; -} -.soria .dojoxGrid-header .dojoxGrid-cell-over { - background: url(../compat/../../../dijit/themes/soria/images/titleBarActive.png) #e9e9e9 repeat-x top; -} -.soria .dojoxGrid-sort-down { - background: url(../compat/_grid/images/grid_sort_down.gif) right no-repeat; - padding-left: 0px; - margin-left: 0px; -} -.soria .dojoxGrid-sort-up { - background: url(../compat/_grid/images/grid_sort_up.gif) right no-repeat; - padding-left: 0px; - margin-left: 0px; -} -.soria .gridArrowButtonChar { - display:none !important; -} -.dijit_a11y .gridArrowButtonChar { - display:inline !important; -} -.soria .dojoxGrid-scrollbox { - position: relative; - overflow: scroll; - background-color: #fefefe; - width: 100%; -} -.soria .dojoxGrid-content { - position: relative; - overflow: hidden; - -moz-outline-style: none; - outline: none; -} -.soria .dojoxGrid-rowbar { - border: none; - - background: url(../compat/_grid/images/titleBar.png) #e9e9e9 repeat-y right; - border-right: 1px solid #cccccc; - padding: 0px; -} -.soria .dojoxGrid-rowbar-inner { - border: none; - border-bottom: 1px solid #cccccc; -} -.soria .dojoxGrid-rowbar-over { - background: url(../compat/_grid/images/titleBarActive.png) #e9e9e9 repeat-y right; -} -.soria .dojoxGrid-rowbar-selected { - background-color: #D9E8F9; - background-image: none; - background: url(../compat/../../../dijit/themes/soria/images/titleBar.png) #dddddd repeat-x top; - border-right: 1px solid #cccccc; - background-position: center; - background-repeat: no-repeat; -} -.soria .dojoxGrid-row { - position: relative; - width: 9000em; -} -.soria .dojoxGrid-row { - border: none; - border-left: none; - border-right: none; - background-color: white; - border-top: none; -} -.soria .dojoxGrid-row-over { - border-top-color: #cccccc; - border-bottom-color: #cccccc; -} -.soria .dojoxGrid-row-over .dojoxGrid-cell { - background-color: #60a1ea; - color:#fff; -} -.soria .dojoxGrid-row-odd { - background-color: #f2f5f9; - -} -.soria .dojoxGrid-row-selected { - background-color: #aec7e3; -} -.soria .dojoxGrid-row-table { - table-layout: fixed; - width: 0; - border-collapse: collapse; -} -.soria .dojoxGrid-invisible { - visibility: hidden; -} -.soria .Xdojo-ie .dojoxGrid-invisible { - display: none; -} -.soria .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; -} -.soria .dojoxGrid-cell { - border: 1px dotted #D5CDB5; - padding: 3px 3px 3px 3px; - text-align: left; - overflow: hidden; -} -.dj_ie6 .soria .dojoxGrid-cell { - border: 1px solid white; - border-right: 1px solid #D5CDB5; -} -.soria .dojoxGrid-cell-focus { - border: 1px dotted #a6a6a6; -} -.soria .dojoxGrid-cell-over { - border: 1px dotted #a6a6a6; -} -.soria .dojoxGrid-cell-focus.dojoxGrid-cell-over { - border: 1px dotted #595959; -} -.soria .dojoxGrid-cell-clip { - width: 100%; - overflow: hidden; - white-space:nowrap; - text-overflow: ellipsis; -} -.soria .dojoxGrid-row-editing td { - - background-color: #60a1ea; - -} -.soria .dojoxGrid-row-inserting td { - background-color: #F4FFF4; -} -.soria .dojoxGrid-row-inflight td { - background-color: #F2F7B7; -} -.soria .dojoxGrid-row-error td { - background-color: #F8B8B6; -} -.soria .dojoxGrid-input, -.soria .dojoxGrid-select, -.soria .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/_grid/tundraGrid.css ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/_grid/tundraGrid.css b/components/camel-web/src/main/webapp/js/dojox/grid/_grid/tundraGrid.css deleted file mode 100644 index 3bed74b..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/_grid/tundraGrid.css +++ /dev/null @@ -1,215 +0,0 @@ -.tundra .dojoxGrid { - position: relative; - background-color: #e9e9e9; - font-size: 0.85em; - -moz-outline-style: none; - outline: none; - overflow: hidden; - height: 0; -} -.tundra .dojoxGrid table { - padding: 0; -} -.tundra .dojoxGrid td { - -moz-outline: none; -} -.tundra .dojoxGrid-master-header { - position: relative; -} -.tundra .dojoxGrid-master-view { - position: relative; -} -.tundra .dojoxGrid-view { - position: absolute; - overflow: hidden; -} -.tundra .dojoxGrid-header { - position: absolute; - overflow: hidden; -} -.tundra .dojoxGrid-header { - background-color: #e9e9e9; -} -.tundra .dojoxGrid-header table { - text-align: center; -} -.tundra .dojoxGrid-header .dojoxGrid-cell-content { - text-align: center; -} -.tundra .dojoxGrid-header .dojoxGrid-cell { - border: 1px solid transparent; - - border-color: white #ACA899 #919191 white; - background: url(../compat/../../../dijit/themes/tundra/images/tabEnabled.png) #e9e9e9 repeat-x top; - padding-bottom: 2px; - color: #000 !important; -} -.tundra .dojoxGrid-header .dojoxGrid-cell-over { - background: url(../compat/../../../dijit/themes/tundra/images/tabHover.png) #e9e9e9 repeat-x top; - color: #000 !important; -} -.tundra .dojoxGrid-sort-down { - background: url(../compat/../../../dijit/themes/tundra/images/smallArrowDown.png) right no-repeat; - padding-left: 0px; - margin-left: 0px; -} -.tundra .dojoxGrid-sort-up { - background: url(../compat/../../../dijit/themes/tundra/images/smallArrowUp.png) right no-repeat; - padding-left: 0px; - margin-left: 0px; -} -.tundra .gridArrowButtonChar { - display:none !important; -} -.dijit_a11y .gridArrowButtonChar { - display:inline !important; -} -.tundra .dojoxGrid-scrollbox { - position: relative; - overflow: scroll; - background-color: #fefefe; - width: 100%; -} -.tundra .dojoxGrid-content { - position: relative; - overflow: hidden; - -moz-outline-style: none; - outline: none; -} -.tundra .dojoxGrid-rowbar { - border: none; - - background: url(../compat/_grid/images/tabEnabled_rotated.png) #e9e9e9 repeat-y right; - border-right: 1px solid #cccccc; - padding: 0px; -} -.tundra .dojoxGrid-rowbar-inner { - border: none; - border-bottom: 1px solid #cccccc; -} -.tundra .dojoxGrid-rowbar-over { - background: url(../compat/_grid/images/tabHover_rotated.png) #e9e9e9 repeat-y right; -} -.tundra .dojoxGrid-rowbar-selected { - background-color: #D9E8F9; - background-image: none; - background: url(../compat/../../../dijit/themes/tundra/images/tabDisabled.png) #dddddd repeat-x top; - border-right: 1px solid #cccccc; - background-position: center; - background-repeat: no-repeat; -} -.tundra .dojoxGrid-row { - position: relative; - width: 9000em; -} -.tundra .dojoxGrid-row { - border: none; - border-left: none; - border-right: none; - background-color: white; - border-top: none; -} -.tundra .dojoxGrid-row-over { - border-top-color: #cccccc; - border-bottom-color: #cccccc; -} -.tundra .dojoxGrid-row-over .dojoxGrid-cell { - background-color: #60a1ea; - color:#fff; - -} -.tundra .dojoxGrid-row-odd { - background-color: #f2f5f9; - -} -.tundra .dojoxGrid-row-selected { - background-color: #aec7e3; - -} -.tundra .dojoxGrid-row-table { - table-layout: fixed; - width: 0; - border-collapse: collapse; -} -.tundra .dojoxGrid-invisible { - visibility: hidden; -} -.tundra .Xdojo-ie .dojoxGrid-invisible { - display: none; -} -.tundra .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; -} -.tundra .dojoxGrid-cell { - border: 1px dotted #D5CDB5; - padding: 3px 3px 3px 3px; - text-align: left; - overflow: hidden; -} -.dj_ie6 .tundra .dojoxGrid-cell { - border: 1px solid white; - border-right: 1px solid #D5CDB5; -} -.tundra .dojoxGrid-cell-focus { - border: 1px dotted #a6a6a6; -} -.tundra .dojoxGrid-cell-over { - border: 1px dotted #a6a6a6; -} -.tundra .dojoxGrid-cell-focus.dojoxGrid-cell-over { - border: 1px dotted #595959; -} -.tundra .dojoxGrid-cell-clip { - width: 100%; - overflow: hidden; - white-space:nowrap; - text-overflow: ellipsis; -} -.tundra .dojoxGrid-row-editing td { - - background-color: #60a1ea; - -} -.tundra .dojoxGrid-row-inserting td { - background-color: #F4FFF4; -} -.tundra .dojoxGrid-row-inflight td { - background-color: #F2F7B7; -} -.tundra .dojoxGrid-row-error td { - background-color: #F8B8B6; -} -.tundra .dojoxGrid-input, -.tundra .dojoxGrid-select, -.tundra .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/cells.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/cells.js b/components/camel-web/src/main/webapp/js/dojox/grid/cells.js deleted file mode 100644 index 42a7cee..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/cells.js +++ /dev/null @@ -1,12 +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.cells"]){ -dojo._hasResource["dojox.grid.cells"]=true; -dojo.provide("dojox.grid.cells"); -dojo.require("dojox.grid.cells._base"); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/cells/_base.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/cells/_base.js b/components/camel-web/src/main/webapp/js/dojox/grid/cells/_base.js deleted file mode 100644 index e8f73f0..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/cells/_base.js +++ /dev/null @@ -1,235 +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.cells._base"]){ -dojo._hasResource["dojox.grid.cells._base"]=true; -dojo.provide("dojox.grid.cells._base"); -dojo.require("dojox.grid.util"); -(function(){ -var _1=function(_2){ -try{ -dojox.grid.util.fire(_2,"focus"); -dojox.grid.util.fire(_2,"select"); -} -catch(e){ -} -}; -var _3=function(){ -setTimeout(dojo.hitch.apply(dojo,arguments),0); -}; -var _4=dojox.grid.cells; -dojo.declare("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:false,alwaysEditing:false,formatter:null,defaultValue:"...",value:null,hidden:false,noresize:false,_valueProp:"value",_formatPending:false,constructor:function(_5){ -this._props=_5||{}; -dojo.mixin(this,_5); -},format:function(_6,_7){ -var f,i=this.grid.edit.info,d=this.get?this.get(_6,_7):(this.value||this.defaultValue); -if(this.editable&&(this.alwaysEditing||(i.rowIndex==_6&&i.cell==this))){ -return this.formatEditing(d,_6); -}else{ -var v=(d!=this.defaultValue&&(f=this.formatter))?f.call(this,d,_6):d; -return (typeof v=="undefined"?this.defaultValue:v); -} -},formatEditing:function(_c,_d){ -},getNode:function(_e){ -return this.view.getCellNode(_e,this.index); -},getHeaderNode:function(){ -return this.view.getHeaderCellNode(this.index); -},getEditNode:function(_f){ -return (this.getNode(_f)||0).firstChild||0; -},canResize:function(){ -var uw=this.unitWidth; -return uw&&(uw=="auto"); -},isFlex:function(){ -var uw=this.unitWidth; -return uw&&dojo.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%"); -},applyEdit:function(_12,_13){ -this.grid.edit.applyCellEdit(_12,this,_13); -},cancelEdit:function(_14){ -this.grid.doCancelEdit(_14); -},_onEditBlur:function(_15){ -if(this.grid.edit.isEditCell(_15,this.index)){ -this.grid.edit.apply(); -} -},registerOnBlur:function(_16,_17){ -if(this.commitOnBlur){ -dojo.connect(_16,"onblur",function(e){ -setTimeout(dojo.hitch(this,"_onEditBlur",_17),250); -}); -} -},needFormatNode:function(_19,_1a){ -this._formatPending=true; -_3(this,"_formatNode",_19,_1a); -},cancelFormatNode:function(){ -this._formatPending=false; -},_formatNode:function(_1b,_1c){ -if(this._formatPending){ -this._formatPending=false; -dojo.setSelectable(this.grid.domNode,true); -this.formatNode(this.getEditNode(_1c),_1b,_1c); -} -},formatNode:function(_1d,_1e,_1f){ -if(dojo.isIE){ -_3(this,"focus",_1f,_1d); -}else{ -this.focus(_1f,_1d); -} -},dispatchEvent:function(m,e){ -if(m in this){ -return this[m](e); -} -},getValue:function(_22){ -return this.getEditNode(_22)[this._valueProp]; -},setValue:function(_23,_24){ -var n=this.getEditNode(_23); -if(n){ -n[this._valueProp]=_24; -} -},focus:function(_26,_27){ -_1(_27||this.getEditNode(_26)); -},save:function(_28){ -this.value=this.value||this.getValue(_28); -},restore:function(_29){ -this.setValue(_29,this.value); -},_finish:function(_2a){ -dojo.setSelectable(this.grid.domNode,false); -this.cancelFormatNode(); -},apply:function(_2b){ -this.applyEdit(this.getValue(_2b),_2b); -this._finish(_2b); -},cancel:function(_2c){ -this.cancelEdit(_2c); -this._finish(_2c); -}}); -_4._Base.markupFactory=function(_2d,_2e){ -var d=dojo; -var _30=d.trim(d.attr(_2d,"formatter")||""); -if(_30){ -_2e.formatter=dojo.getObject(_30); -} -var get=d.trim(d.attr(_2d,"get")||""); -if(get){ -_2e.get=dojo.getObject(get); -} -var _32=function(_33){ -var _34=d.trim(d.attr(_2d,_33)||""); -return _34?!(_34.toLowerCase()=="false"):undefined; -}; -_2e.sortDesc=_32("sortDesc"); -_2e.editable=_32("editable"); -_2e.alwaysEditing=_32("alwaysEditing"); -_2e.noresize=_32("noresize"); -var _35=d.trim(d.attr(_2d,"loadingText")||d.attr(_2d,"defaultValue")||""); -if(_35){ -_2e.defaultValue=_35; -} -var _36=function(_37){ -return d.trim(d.attr(_2d,_37)||"")||undefined; -}; -_2e.styles=_36("styles"); -_2e.headerStyles=_36("headerStyles"); -_2e.cellStyles=_36("cellStyles"); -_2e.classes=_36("classes"); -_2e.headerClasses=_36("headerClasses"); -_2e.cellClasses=_36("cellClasses"); -}; -dojo.declare("dojox.grid.cells.Cell",_4._Base,{constructor:function(){ -this.keyFilter=this.keyFilter; -},keyFilter:null,formatEditing:function(_38,_39){ -this.needFormatNode(_38,_39); -return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_38+"\">"; -},formatNode:function(_3a,_3b,_3c){ -this.inherited(arguments); -this.registerOnBlur(_3a,_3c); -},doKey:function(e){ -if(this.keyFilter){ -var key=String.fromCharCode(e.charCode); -if(key.search(this.keyFilter)==-1){ -dojo.stopEvent(e); -} -} -},_finish:function(_3f){ -this.inherited(arguments); -var n=this.getEditNode(_3f); -try{ -dojox.grid.util.fire(n,"blur"); -} -catch(e){ -} -}}); -_4.Cell.markupFactory=function(_41,_42){ -_4._Base.markupFactory(_41,_42); -var d=dojo; -var _44=d.trim(d.attr(_41,"keyFilter")||""); -if(_44){ -_42.keyFilter=new RegExp(_44); -} -}; -dojo.declare("dojox.grid.cells.RowIndex",_4.Cell,{name:"Row",postscript:function(){ -this.editable=false; -},get:function(_45){ -return _45+1; -}}); -_4.RowIndex.markupFactory=function(_46,_47){ -_4.Cell.markupFactory(_46,_47); -}; -dojo.declare("dojox.grid.cells.Select",_4.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_48){ -this.values=this.values||this.options; -},formatEditing:function(_49,_4a){ -this.needFormatNode(_49,_4a); -var h=["<select class=\"dojoxGridSelect\">"]; -for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){ -h.push("<option",(_49==v?" selected":"")," value=\""+v+"\"",">",o,"</option>"); -} -h.push("</select>"); -return h.join(""); -},getValue:function(_4f){ -var n=this.getEditNode(_4f); -if(n){ -var i=n.selectedIndex,o=n.options[i]; -return this.returnIndex>-1?i:o.value||o.innerHTML; -} -}}); -_4.Select.markupFactory=function(_53,_54){ -_4.Cell.markupFactory(_53,_54); -var d=dojo; -var _56=d.trim(d.attr(_53,"options")||""); -if(_56){ -var o=_56.split(","); -if(o[0]!=_56){ -_54.options=o; -} -} -var _58=d.trim(d.attr(_53,"values")||""); -if(_58){ -var v=_58.split(","); -if(v[0]!=_58){ -_54.values=v; -} -} -}; -dojo.declare("dojox.grid.cells.AlwaysEdit",_4.Cell,{alwaysEditing:true,_formatNode:function(_5a,_5b){ -this.formatNode(this.getEditNode(_5b),_5a,_5b); -},applyStaticValue:function(_5c){ -var e=this.grid.edit; -e.applyCellEdit(this.getValue(_5c),this,_5c); -e.start(this,_5c,true); -}}); -_4.AlwaysEdit.markupFactory=function(_5e,_5f){ -_4.Cell.markupFactory(_5e,_5f); -}; -dojo.declare("dojox.grid.cells.Bool",_4.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_60,_61){ -return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_60?" checked=\"checked\"":"")+" style=\"width: auto\" />"; -},doclick:function(e){ -if(e.target.tagName=="INPUT"){ -this.applyStaticValue(e.rowIndex); -} -}}); -_4.Bool.markupFactory=function(_63,_64){ -_4.AlwaysEdit.markupFactory(_63,_64); -}; -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/cells/dijit.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/cells/dijit.js b/components/camel-web/src/main/webapp/js/dojox/grid/cells/dijit.js deleted file mode 100644 index 442b294..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/cells/dijit.js +++ /dev/null @@ -1,178 +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.cells.dijit"]){ -dojo._hasResource["dojox.grid.cells.dijit"]=true; -dojo.provide("dojox.grid.cells.dijit"); -dojo.require("dojox.grid.cells"); -dojo.require("dijit.form.DateTextBox"); -dojo.require("dijit.form.TimeTextBox"); -dojo.require("dijit.form.ComboBox"); -dojo.require("dojo.data.ItemFileReadStore"); -dojo.require("dijit.form.CheckBox"); -dojo.require("dijit.form.TextBox"); -dojo.require("dijit.form.NumberSpinner"); -dojo.require("dijit.form.NumberTextBox"); -dojo.require("dijit.form.CurrencyTextBox"); -dojo.require("dijit.form.HorizontalSlider"); -dojo.require("dijit.Editor"); -(function(){ -var _1=dojox.grid.cells; -dojo.declare("dojox.grid.cells._Widget",_1._Base,{widgetClass:dijit.form.TextBox,constructor:function(_2){ -this.widget=null; -if(typeof this.widgetClass=="string"){ -dojo.deprecated("Passing a string to widgetClass is deprecated","pass the widget class object instead","2.0"); -this.widgetClass=dojo.getObject(this.widgetClass); -} -},formatEditing:function(_3,_4){ -this.needFormatNode(_3,_4); -return "<div></div>"; -},getValue:function(_5){ -return this.widget.attr("value"); -},setValue:function(_6,_7){ -if(this.widget&&this.widget.attr){ -if(this.widget.onLoadDeferred){ -var _8=this; -this.widget.onLoadDeferred.addCallback(function(){ -_8.widget.attr("value",_7==null?"":_7); -}); -}else{ -this.widget.attr("value",_7); -} -}else{ -this.inherited(arguments); -} -},getWidgetProps:function(_9){ -return dojo.mixin({},this.widgetProps||{},{constraints:dojo.mixin({},this.constraint)||{},value:_9}); -},createWidget:function(_a,_b,_c){ -return new this.widgetClass(this.getWidgetProps(_b),_a); -},attachWidget:function(_d,_e,_f){ -_d.appendChild(this.widget.domNode); -this.setValue(_f,_e); -},formatNode:function(_10,_11,_12){ -if(!this.widgetClass){ -return _11; -} -if(!this.widget){ -this.widget=this.createWidget.apply(this,arguments); -}else{ -this.attachWidget.apply(this,arguments); -} -this.sizeWidget.apply(this,arguments); -this.grid.rowHeightChanged(_12); -this.focus(); -},sizeWidget:function(_13,_14,_15){ -var p=this.getNode(_15),box=dojo.contentBox(p); -dojo.marginBox(this.widget.domNode,{w:box.w}); -},focus:function(_18,_19){ -if(this.widget){ -setTimeout(dojo.hitch(this.widget,function(){ -dojox.grid.util.fire(this,"focus"); -}),0); -} -},_finish:function(_1a){ -this.inherited(arguments); -dojox.grid.util.removeNode(this.widget.domNode); -}}); -_1._Widget.markupFactory=function(_1b,_1c){ -_1._Base.markupFactory(_1b,_1c); -var d=dojo; -var _1e=d.trim(d.attr(_1b,"widgetProps")||""); -var _1f=d.trim(d.attr(_1b,"constraint")||""); -var _20=d.trim(d.attr(_1b,"widgetClass")||""); -if(_1e){ -_1c.widgetProps=d.fromJson(_1e); -} -if(_1f){ -_1c.constraint=d.fromJson(_1f); -} -if(_20){ -_1c.widgetClass=d.getObject(_20); -} -}; -dojo.declare("dojox.grid.cells.ComboBox",_1._Widget,{widgetClass:dijit.form.ComboBox,getWidgetProps:function(_21){ -var _22=[]; -dojo.forEach(this.options,function(o){ -_22.push({name:o,value:o}); -}); -var _24=new dojo.data.ItemFileReadStore({data:{identifier:"name",items:_22}}); -return dojo.mixin({},this.widgetProps||{},{value:_21,store:_24}); -},getValue:function(){ -var e=this.widget; -e.attr("displayedValue",e.attr("displayedValue")); -return e.attr("value"); -}}); -_1.ComboBox.markupFactory=function(_26,_27){ -_1._Widget.markupFactory(_26,_27); -var d=dojo; -var _29=d.trim(d.attr(_26,"options")||""); -if(_29){ -var o=_29.split(","); -if(o[0]!=_29){ -_27.options=o; -} -} -}; -dojo.declare("dojox.grid.cells.DateTextBox",_1._Widget,{widgetClass:dijit.form.DateTextBox,setValue:function(_2b,_2c){ -if(this.widget){ -this.widget.attr("value",new Date(_2c)); -}else{ -this.inherited(arguments); -} -},getWidgetProps:function(_2d){ -return dojo.mixin(this.inherited(arguments),{value:new Date(_2d)}); -}}); -_1.DateTextBox.markupFactory=function(_2e,_2f){ -_1._Widget.markupFactory(_2e,_2f); -}; -dojo.declare("dojox.grid.cells.CheckBox",_1._Widget,{widgetClass:dijit.form.CheckBox,getValue:function(){ -return this.widget.checked; -},setValue:function(_30,_31){ -if(this.widget&&this.widget.attributeMap.checked){ -this.widget.attr("checked",_31); -}else{ -this.inherited(arguments); -} -},sizeWidget:function(_32,_33,_34){ -return; -}}); -_1.CheckBox.markupFactory=function(_35,_36){ -_1._Widget.markupFactory(_35,_36); -}; -dojo.declare("dojox.grid.cells.Editor",_1._Widget,{widgetClass:dijit.Editor,getWidgetProps:function(_37){ -return dojo.mixin({},this.widgetProps||{},{height:this.widgetHeight||"100px"}); -},createWidget:function(_38,_39,_3a){ -var _3b=new this.widgetClass(this.getWidgetProps(_39),_38); -dojo.connect(_3b,"onLoad",dojo.hitch(this,"populateEditor")); -return _3b; -},formatNode:function(_3c,_3d,_3e){ -this.content=_3d; -this.inherited(arguments); -if(dojo.isMoz){ -var e=this.widget; -e.open(); -if(this.widgetToolbar){ -dojo.place(e.toolbar.domNode,e.editingArea,"before"); -} -} -},populateEditor:function(){ -this.widget.attr("value",this.content); -this.widget.placeCursorAtEnd(); -}}); -_1.Editor.markupFactory=function(_40,_41){ -_1._Widget.markupFactory(_40,_41); -var d=dojo; -var h=dojo.trim(dojo.attr(_40,"widgetHeight")||""); -if(h){ -if((h!="auto")&&(h.substr(-2)!="em")){ -h=parseInt(h)+"px"; -} -_41.widgetHeight=h; -} -}; -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/Grid.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/Grid.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/Grid.js deleted file mode 100644 index 575fcd6..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/Grid.js +++ /dev/null @@ -1,197 +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"]){ -dojo._hasResource["dojox.grid.compat.Grid"]=true; -dojo.provide("dojox.grid.compat.Grid"); -dojo.require("dojox.grid.compat.VirtualGrid"); -dojo.require("dojox.grid.compat._data.model"); -dojo.require("dojox.grid.compat._data.editors"); -dojo.require("dojox.grid.compat._data.dijitEditors"); -dojo.declare("dojox.Grid",dojox.VirtualGrid,{model:"dojox.grid.data.Table",postCreate:function(){ -if(this.model){ -var m=this.model; -if(dojo.isString(m)){ -m=dojo.getObject(m); -} -this.model=(dojo.isFunction(m))?new m():m; -this._setModel(this.model); -} -this.inherited(arguments); -},destroy:function(){ -this.setModel(null); -this.inherited(arguments); -},_structureChanged:function(){ -this.indexCellFields(); -this.inherited(arguments); -},_setModel:function(_2){ -this.model=_2; -if(this.model){ -this.model.observer(this); -this.model.measure(); -this.indexCellFields(); -} -},setModel:function(_3){ -if(this.model){ -this.model.notObserver(this); -} -this._setModel(_3); -},get:function(_4){ -return this.grid.model.getDatum(_4,this.fieldIndex); -},modelAllChange:function(){ -this.rowCount=(this.model?this.model.getRowCount():0); -this.updateRowCount(this.rowCount); -},modelBeginUpdate:function(){ -this.beginUpdate(); -},modelEndUpdate:function(){ -this.endUpdate(); -},modelRowChange:function(_5,_6){ -this.updateRow(_6); -},modelDatumChange:function(_7,_8,_9){ -this.updateRow(_8); -},modelFieldsChange:function(){ -this.indexCellFields(); -this.render(); -},modelInsertion:function(_a){ -this.updateRowCount(this.model.getRowCount()); -},modelRemoval:function(_b){ -this.updateRowCount(this.model.getRowCount()); -},getCellName:function(_c){ -var v=this.model.fields.values,i=_c.fieldIndex; -return i>=0&&i<v.length&&v[i].name||this.inherited(arguments); -},indexCellFields:function(){ -var _f=this.layout.cells; -for(var i=0,c;_f&&(c=_f[i]);i++){ -if(dojo.isString(c.field)){ -c.fieldIndex=this.model.fields.indexOf(c.field); -} -} -},refresh:function(){ -this.edit.cancel(); -this.model.measure(); -},canSort:function(_12){ -var f=this.getSortField(_12); -return f&&this.model.canSort(f); -},getSortField:function(_14){ -var c=this.getCell(this.getSortIndex(_14)); -return (c.fieldIndex+1)*(this.sortInfo>0?1:-1); -},sort:function(){ -this.edit.apply(); -this.model.sort(this.getSortField()); -},addRow:function(_16,_17){ -this.edit.apply(); -var i=_17||-1; -if(i<0){ -i=this.selection.getFirstSelected()||0; -} -if(i<0){ -i=0; -} -this.model.insert(_16,i); -this.model.beginModifyRow(i); -for(var j=0,c;((c=this.getCell(j))&&!c.editor);j++){ -} -if(c&&c.editor){ -this.edit.setEditCell(c,i); -this.focus.setFocusCell(c,i); -}else{ -this.focus.setFocusCell(this.getCell(0),i); -} -},removeSelectedRows:function(){ -this.edit.apply(); -var s=this.selection.getSelected(); -if(s.length){ -this.model.remove(s); -this.selection.clear(); -} -},canEdit:function(_1c,_1d){ -return (this.model.canModify?this.model.canModify(_1d):true); -},doStartEdit:function(_1e,_1f){ -this.model.beginModifyRow(_1f); -this.onStartEdit(_1e,_1f); -},doApplyCellEdit:function(_20,_21,_22){ -this.model.setDatum(_20,_21,_22); -this.onApplyCellEdit(_20,_21,_22); -},doCancelEdit:function(_23){ -this.model.cancelModifyRow(_23); -this.onCancelEdit.apply(this,arguments); -},doApplyEdit:function(_24){ -this.model.endModifyRow(_24); -this.onApplyEdit(_24); -},styleRowState:function(_25){ -if(this.model.getState){ -var _26=this.model.getState(_25.index),c=""; -for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){ -if(_26[s]){ -c=" dojoxGrid-row-"+s; -break; -} -} -_25.customClasses+=c; -} -},onStyleRow:function(_2b){ -this.styleRowState(_2b); -this.inherited(arguments); -}}); -dojox.Grid.markupFactory=function(_2c,_2d,_2e){ -var d=dojo; -var _30=function(n){ -var w=d.attr(n,"width")||"auto"; -if((w!="auto")&&(w.substr(-2)!="em")){ -w=parseInt(w)+"px"; -} -return w; -}; -if(!_2c.model&&d.hasAttr(_2d,"store")){ -var _33=_2d.cloneNode(false); -d.attr(_33,{"jsId":null,"dojoType":d.attr(_2d,"dataModelClass")||"dojox.grid.data.DojoData"}); -_2c.model=d.parser.instantiate([_33])[0]; -} -if(!_2c.structure&&_2d.nodeName.toLowerCase()=="table"){ -_2c.structure=d.query("> colgroup",_2d).map(function(cg){ -var sv=d.attr(cg,"span"); -var v={noscroll:(d.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv):1),cells:[]}; -if(d.hasAttr(cg,"width")){ -v.width=_30(cg); -} -return v; -}); -if(!_2c.structure.length){ -_2c.structure.push({__span:Infinity,cells:[]}); -} -d.query("thead > tr",_2d).forEach(function(tr,_38){ -var _39=0; -var _3a=0; -var _3b; -var _3c=null; -d.query("> th",tr).map(function(th){ -if(!_3c){ -_3b=0; -_3c=_2c.structure[0]; -}else{ -if(_39>=(_3b+_3c.__span)){ -_3a++; -_3b+=_3c.__span; -var _3e=_3c; -_3c=_2c.structure[_3a]; -} -} -var _3f={name:d.trim(d.attr(th,"name")||th.innerHTML),field:d.trim(d.attr(th,"field")||""),colSpan:parseInt(d.attr(th,"colspan")||1)}; -_39+=_3f.colSpan; -_3f.field=_3f.field||_3f.name; -_3f.width=_30(th); -if(!_3c.cells[_38]){ -_3c.cells[_38]=[]; -} -_3c.cells[_38].push(_3f); -}); -}); -} -return new dojox.Grid(_2c,_2d); -}; -dojox.grid.Grid=dojox.Grid; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/README ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/README b/components/camel-web/src/main/webapp/js/dojox/grid/compat/README deleted file mode 100644 index f9dade3..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/README +++ /dev/null @@ -1,39 +0,0 @@ -------------------------------------------------------------------------------- -dojox.grid -------------------------------------------------------------------------------- -Version 1.00 -Release date: 10/04/2007 -------------------------------------------------------------------------------- -Project state: -beta -------------------------------------------------------------------------------- -Credits - Scott J. Miles (sjmi...@activegrid.com) - Steve Orvell (sorv...@activegrid.com) -------------------------------------------------------------------------------- -Project description - -TurboGrid has been made available in Dojo and is now the dojox.grid! - -------------------------------------------------------------------------------- -Dependencies: - -Dojo Core -Dijit Templated Widget -------------------------------------------------------------------------------- -Documentation - -None available for this version yet. - -See http://www.turboajax.com/products/turbogrid/ for legacy documentation. -------------------------------------------------------------------------------- -Installation instructions - -Grab the following from the Dojo SVN Repository: -http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/grid/* - -Install into the following directory structure: -/dojox/grid/ - -...which should be at the same level as your Dojo checkout. -------------------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/VirtualGrid.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/VirtualGrid.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/VirtualGrid.js deleted file mode 100644 index 47daf47..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/VirtualGrid.js +++ /dev/null @@ -1,408 +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.VirtualGrid"]){ -dojo._hasResource["dojox.grid.compat.VirtualGrid"]=true; -dojo.provide("dojox.grid.compat.VirtualGrid"); -dojo.require("dojox.grid.compat._grid.lib"); -dojo.require("dojox.grid.compat._grid.scroller"); -dojo.require("dojox.grid.compat._grid.view"); -dojo.require("dojox.grid.compat._grid.views"); -dojo.require("dojox.grid.compat._grid.layout"); -dojo.require("dojox.grid.compat._grid.rows"); -dojo.require("dojox.grid.compat._grid.focus"); -dojo.require("dojox.grid.compat._grid.selection"); -dojo.require("dojox.grid.compat._grid.edit"); -dojo.require("dojox.grid.compat._grid.rowbar"); -dojo.require("dojox.grid.compat._grid.publicEvents"); -dojo.declare("dojox.VirtualGrid",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dojoxGrid\" hidefocus=\"hidefocus\" role=\"wairole:grid\">\n\t<div class=\"dojoxGrid-master-header\" dojoAttachPoint=\"viewsHeaderNode\"></div>\n\t<div class=\"dojoxGrid-master-view\" dojoAttachPoint=\"viewsNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n",classTag:"dojoxGrid",get:function(_1){ -},rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,autoHeight:false,autoRender:true,defaultHeight:"15em",structure:"",elasticView:-1,singleClickEdit:false,_click:null,sortInfo:0,themeable:true,buildRendering:function(){ -this.inherited(arguments); -if(this.get==dojox.VirtualGrid.prototype.get){ -this.get=null; -} -if(!this.domNode.getAttribute("tabIndex")){ -this.domNode.tabIndex="0"; -} -this.createScroller(); -this.createLayout(); -this.createViews(); -this.createManagers(); -dojox.grid.initTextSizePoll(); -this.connect(dojox.grid,"textSizeChanged","textSizeChanged"); -dojox.grid.funnelEvents(this.domNode,this,"doKeyEvent",dojox.grid.keyEvents); -this.connect(this,"onShow","renderOnIdle"); -},postCreate:function(){ -this.styleChanged=this._styleChanged; -this.setStructure(this.structure); -this._click=[]; -},destroy:function(){ -this.domNode.onReveal=null; -this.domNode.onSizeChange=null; -this.edit.destroy(); -this.views.destroyViews(); -this.inherited(arguments); -},styleChanged:function(){ -this.setStyledClass(this.domNode,""); -},_styleChanged:function(){ -this.styleChanged(); -this.update(); -},textSizeChanged:function(){ -setTimeout(dojo.hitch(this,"_textSizeChanged"),1); -},_textSizeChanged:function(){ -if(this.domNode){ -this.views.forEach(function(v){ -v.content.update(); -}); -this.render(); -} -},sizeChange:function(){ -dojox.grid.jobs.job(this.id+"SizeChange",50,dojo.hitch(this,"update")); -},renderOnIdle:function(){ -setTimeout(dojo.hitch(this,"render"),1); -},createManagers:function(){ -this.rows=new dojox.grid.rows(this); -this.focus=new dojox.grid.focus(this); -this.selection=new dojox.grid.selection(this); -this.edit=new dojox.grid.edit(this); -},createScroller:function(){ -this.scroller=new dojox.grid.scroller.columns(); -this.scroller._pageIdPrefix=this.id+"-"; -this.scroller.renderRow=dojo.hitch(this,"renderRow"); -this.scroller.removeRow=dojo.hitch(this,"rowRemoved"); -},createLayout:function(){ -this.layout=new dojox.grid.layout(this); -},createViews:function(){ -this.views=new dojox.grid.views(this); -this.views.createView=dojo.hitch(this,"createView"); -},createView:function(_3){ -if(dojo.isAIR){ -var _4=window; -var _5=_3.split("."); -for(var i=0;i<_5.length;i++){ -if(typeof _4[_5[i]]=="undefined"){ -var _7=_5[0]; -for(var j=1;j<=i;j++){ -_7+="."+_5[j]; -} -throw new Error(_7+" is undefined"); -} -_4=_4[_5[i]]; -} -var c=_4; -}else{ -var c=eval(_3); -} -var _a=new c({grid:this}); -this.viewsNode.appendChild(_a.domNode); -this.viewsHeaderNode.appendChild(_a.headerNode); -this.views.addView(_a); -return _a; -},buildViews:function(){ -for(var i=0,vs;(vs=this.layout.structure[i]);i++){ -this.createView(vs.type||dojox._scopeName+".GridView").setStructure(vs); -} -this.scroller.setContentNodes(this.views.getContentNodes()); -},setStructure:function(_d){ -this.views.destroyViews(); -this.structure=_d; -if((this.structure)&&(dojo.isString(this.structure))){ -this.structure=dojox.grid.getProp(this.structure); -} -if(!this.structure){ -this.structure=window["layout"]; -} -if(!this.structure){ -return; -} -this.layout.setStructure(this.structure); -this._structureChanged(); -},_structureChanged:function(){ -this.buildViews(); -if(this.autoRender){ -this.render(); -} -},hasLayout:function(){ -return this.layout.cells.length; -},resize:function(_e){ -this._sizeBox=_e; -this._resize(); -this.sizeChange(); -},_getPadBorder:function(){ -this._padBorder=this._padBorder||dojo._getPadBorderExtents(this.domNode); -return this._padBorder; -},_resize:function(){ -if(!this.domNode.parentNode||this.domNode.parentNode.nodeType!=1||!this.hasLayout()){ -return; -} -var _f=this._getPadBorder(); -if(this.autoHeight){ -this.domNode.style.height="auto"; -this.viewsNode.style.height=""; -}else{ -if(this.flex>0){ -}else{ -if(this.domNode.clientHeight<=_f.h){ -if(this.domNode.parentNode==document.body){ -this.domNode.style.height=this.defaultHeight; -}else{ -this.fitTo="parent"; -} -} -} -} -if(this._sizeBox){ -dojo.contentBox(this.domNode,this._sizeBox); -}else{ -if(this.fitTo=="parent"){ -var h=dojo._getContentBox(this.domNode.parentNode).h; -dojo.marginBox(this.domNode,{h:Math.max(0,h)}); -} -} -var h=dojo._getContentBox(this.domNode).h; -if(h==0&&!this.autoHeight){ -this.viewsHeaderNode.style.display="none"; -}else{ -this.viewsHeaderNode.style.display="block"; -} -this.adaptWidth(); -this.adaptHeight(); -this.scroller.defaultRowHeight=this.rows.getDefaultHeightPx()+1; -this.postresize(); -},adaptWidth:function(){ -var w=this.autoWidth?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w); -var vw=this.views.arrange(1,w); -this.views.onEach("adaptWidth"); -if(this.autoWidth){ -this.domNode.style.width=vw+"px"; -} -},adaptHeight:function(){ -var vns=this.viewsHeaderNode.style,t=vns.display=="none"?0:this.views.measureHeader(); -vns.height=t+"px"; -this.views.normalizeHeaderNodeHeight(); -var h=(this.autoHeight?-1:Math.max(this.domNode.clientHeight-t,0)||0); -this.views.onEach("setSize",[0,h]); -this.views.onEach("adaptHeight"); -this.scroller.windowHeight=h; -},render:function(){ -if(!this.domNode){ -return; -} -if(!this.hasLayout()){ -this.scroller.init(0,this.keepRows,this.rowsPerPage); -return; -} -this.update=this.defaultUpdate; -this.scroller.init(this.rowCount,this.keepRows,this.rowsPerPage); -this.prerender(); -this.setScrollTop(0); -this.postrender(); -},prerender:function(){ -this.keepRows=this.autoHeight?0:this.constructor.prototype.keepRows; -this.scroller.setKeepInfo(this.keepRows); -this.views.render(); -this._resize(); -},postrender:function(){ -this.postresize(); -this.focus.initFocusView(); -dojo.setSelectable(this.domNode,false); -},postresize:function(){ -if(this.autoHeight){ -this.viewsNode.style.height=this.views.measureContent()+"px"; -} -},renderRow:function(_16,_17){ -this.views.renderRow(_16,_17); -},rowRemoved:function(_18){ -this.views.rowRemoved(_18); -},invalidated:null,updating:false,beginUpdate:function(){ -if(this.invalidated==null){ -this.invalidated={rows:[],count:1,all:false,rowCount:undefined}; -}else{ -this.invalidated.count++; -} -this.updating=true; -},endUpdate:function(){ -var i=this.invalidated; -if(--i.count===0){ -this.updating=false; -if(i.rows.length>0){ -for(var r in i.rows){ -this.updateRow(Number(r)); -} -this.invalidated.rows=[]; -} -if(i.rowCount!=undefined){ -this.updateRowCount(i.rowCount); -i.rowCount=undefined; -} -if(i.all){ -this.update(); -i.all=false; -} -} -},defaultUpdate:function(){ -if(!this.domNode){ -return; -} -if(this.updating){ -this.invalidated.all=true; -return; -} -this.prerender(); -this.scroller.invalidateNodes(); -this.setScrollTop(this.scrollTop); -this.postrender(); -},update:function(){ -this.render(); -},updateRow:function(_1b){ -_1b=Number(_1b); -if(this.updating){ -this.invalidated.rows[_1b]=true; -}else{ -this.views.updateRow(_1b,this.rows.getHeight(_1b)); -this.scroller.rowHeightChanged(_1b); -} -},updateRowCount:function(_1c){ -if(this.updating){ -this.invalidated.rowCount=_1c; -}else{ -this.rowCount=_1c; -if(this.layout.cells.length){ -this.scroller.updateRowCount(_1c); -this.setScrollTop(this.scrollTop); -} -this._resize(); -} -},updateRowStyles:function(_1d){ -this.views.updateRowStyles(_1d); -},rowHeightChanged:function(_1e){ -this.views.renormalizeRow(_1e); -this.scroller.rowHeightChanged(_1e); -},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_1f){ -if(!this.fastScroll){ -this.setScrollTop(_1f); -return; -} -var _20=Math.abs(this.lastScrollTop-_1f); -this.lastScrollTop=_1f; -if(_20>this.scrollRedrawThreshold||this.delayScroll){ -this.delayScroll=true; -this.scrollTop=_1f; -this.views.setScrollTop(_1f); -dojox.grid.jobs.job("dojoxGrid-scroll",200,dojo.hitch(this,"finishScrollJob")); -}else{ -this.setScrollTop(_1f); -} -},finishScrollJob:function(){ -this.delayScroll=false; -this.setScrollTop(this.scrollTop); -},setScrollTop:function(_21){ -this.scrollTop=this.views.setScrollTop(_21); -this.scroller.scroll(this.scrollTop); -},scrollToRow:function(_22){ -this.setScrollTop(this.scroller.findScrollTop(_22)+1); -},styleRowNode:function(_23,_24){ -if(_24){ -this.rows.styleRowNode(_23,_24); -} -},getCell:function(_25){ -return this.layout.cells[_25]; -},setCellWidth:function(_26,_27){ -this.getCell(_26).unitWidth=_27; -},getCellName:function(_28){ -return "Cell "+_28.index; -},canSort:function(_29){ -},sort:function(){ -},getSortAsc:function(_2a){ -_2a=_2a==undefined?this.sortInfo:_2a; -return Boolean(_2a>0); -},getSortIndex:function(_2b){ -_2b=_2b==undefined?this.sortInfo:_2b; -return Math.abs(_2b)-1; -},setSortIndex:function(_2c,_2d){ -var si=_2c+1; -if(_2d!=undefined){ -si*=(_2d?1:-1); -}else{ -if(this.getSortIndex()==_2c){ -si=-this.sortInfo; -} -} -this.setSortInfo(si); -},setSortInfo:function(_2f){ -if(this.canSort(_2f)){ -this.sortInfo=_2f; -this.sort(); -this.update(); -} -},doKeyEvent:function(e){ -e.dispatch="do"+e.type; -this.onKeyEvent(e); -},_dispatch:function(m,e){ -if(m in this){ -return this[m](e); -} -},dispatchKeyEvent:function(e){ -this._dispatch(e.dispatch,e); -},dispatchContentEvent:function(e){ -this.edit.dispatchEvent(e)||e.sourceView.dispatchContentEvent(e)||this._dispatch(e.dispatch,e); -},dispatchHeaderEvent:function(e){ -e.sourceView.dispatchHeaderEvent(e)||this._dispatch("doheader"+e.type,e); -},dokeydown:function(e){ -this.onKeyDown(e); -},doclick:function(e){ -if(e.cellNode){ -this.onCellClick(e); -}else{ -this.onRowClick(e); -} -},dodblclick:function(e){ -if(e.cellNode){ -this.onCellDblClick(e); -}else{ -this.onRowDblClick(e); -} -},docontextmenu:function(e){ -if(e.cellNode){ -this.onCellContextMenu(e); -}else{ -this.onRowContextMenu(e); -} -},doheaderclick:function(e){ -if(e.cellNode){ -this.onHeaderCellClick(e); -}else{ -this.onHeaderClick(e); -} -},doheaderdblclick:function(e){ -if(e.cellNode){ -this.onHeaderCellDblClick(e); -}else{ -this.onHeaderDblClick(e); -} -},doheadercontextmenu:function(e){ -if(e.cellNode){ -this.onHeaderCellContextMenu(e); -}else{ -this.onHeaderContextMenu(e); -} -},doStartEdit:function(_3d,_3e){ -this.onStartEdit(_3d,_3e); -},doApplyCellEdit:function(_3f,_40,_41){ -this.onApplyCellEdit(_3f,_40,_41); -},doCancelEdit:function(_42){ -this.onCancelEdit(_42); -},doApplyEdit:function(_43){ -this.onApplyEdit(_43); -},addRow:function(){ -this.updateRowCount(this.rowCount+1); -},removeSelectedRows:function(){ -this.updateRowCount(Math.max(0,this.rowCount-this.selection.getSelected().length)); -this.selection.clear(); -}}); -dojo.mixin(dojox.VirtualGrid.prototype,dojox.grid.publicEvents); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/dijitEditors.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/dijitEditors.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/dijitEditors.js deleted file mode 100644 index e209114..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/dijitEditors.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._data.dijitEditors"]){ -dojo._hasResource["dojox.grid.compat._data.dijitEditors"]=true; -dojo.provide("dojox.grid.compat._data.dijitEditors"); -dojo.require("dojox.grid.compat._data.editors"); -dojo.require("dijit.form.DateTextBox"); -dojo.require("dijit.form.TimeTextBox"); -dojo.require("dijit.form.ComboBox"); -dojo.require("dojo.data.ItemFileReadStore"); -dojo.require("dijit.form.CheckBox"); -dojo.require("dijit.form.TextBox"); -dojo.require("dijit.form.NumberSpinner"); -dojo.require("dijit.form.NumberTextBox"); -dojo.require("dijit.form.CurrencyTextBox"); -dojo.require("dijit.form.Slider"); -dojo.require("dijit.Editor"); -dojo.declare("dojox.grid.editors.Dijit",dojox.grid.editors.base,{editorClass:"dijit.form.TextBox",constructor:function(_1){ -this.editor=null; -this.editorClass=dojo.getObject(this.cell.editorClass||this.editorClass); -},format:function(_2,_3){ -this.needFormatNode(_2,_3); -return "<div></div>"; -},getValue:function(_4){ -return this.editor.getValue(); -},setValue:function(_5,_6){ -if(this.editor&&this.editor.setValue){ -if(this.editor.onLoadDeferred){ -var _7=this; -this.editor.onLoadDeferred.addCallback(function(){ -_7.editor.setValue(_6==null?"":_6); -}); -}else{ -this.editor.setValue(_6); -} -}else{ -this.inherited(arguments); -} -},getEditorProps:function(_8){ -return dojo.mixin({},this.cell.editorProps||{},{constraints:dojo.mixin({},this.cell.constraint)||{},value:_8}); -},createEditor:function(_9,_a,_b){ -return new this.editorClass(this.getEditorProps(_a),_9); -},attachEditor:function(_c,_d,_e){ -_c.appendChild(this.editor.domNode); -this.setValue(_e,_d); -},formatNode:function(_f,_10,_11){ -if(!this.editorClass){ -return _10; -} -if(!this.editor){ -this.editor=this.createEditor.apply(this,arguments); -}else{ -this.attachEditor.apply(this,arguments); -} -this.sizeEditor.apply(this,arguments); -this.cell.grid.rowHeightChanged(_11); -this.focus(); -},sizeEditor:function(_12,_13,_14){ -var p=this.cell.getNode(_14),box=dojo.contentBox(p); -dojo.marginBox(this.editor.domNode,{w:box.w}); -},focus:function(_17,_18){ -if(this.editor){ -setTimeout(dojo.hitch(this.editor,function(){ -dojox.grid.fire(this,"focus"); -}),0); -} -},_finish:function(_19){ -this.inherited(arguments); -dojox.grid.removeNode(this.editor.domNode); -}}); -dojo.declare("dojox.grid.editors.ComboBox",dojox.grid.editors.Dijit,{editorClass:"dijit.form.ComboBox",getEditorProps:function(_1a){ -var _1b=[]; -dojo.forEach(this.cell.options,function(o){ -_1b.push({name:o,value:o}); -}); -var _1d=new dojo.data.ItemFileReadStore({data:{identifier:"name",items:_1b}}); -return dojo.mixin({},this.cell.editorProps||{},{value:_1a,store:_1d}); -},getValue:function(){ -var e=this.editor; -e.setDisplayedValue(e.getDisplayedValue()); -return e.getValue(); -}}); -dojo.declare("dojox.grid.editors.DateTextBox",dojox.grid.editors.Dijit,{editorClass:"dijit.form.DateTextBox",setValue:function(_1f,_20){ -if(this.editor){ -this.editor.setValue(new Date(_20)); -}else{ -this.inherited(arguments); -} -},getEditorProps:function(_21){ -return dojo.mixin(this.inherited(arguments),{value:new Date(_21)}); -}}); -dojo.declare("dojox.grid.editors.CheckBox",dojox.grid.editors.Dijit,{editorClass:"dijit.form.CheckBox",getValue:function(){ -return this.editor.checked; -},setValue:function(_22,_23){ -if(this.editor&&this.editor.setAttribute){ -this.editor.setAttribute("checked",_23); -}else{ -this.inherited(arguments); -} -},sizeEditor:function(_24,_25,_26){ -return; -}}); -dojo.declare("dojox.grid.editors.Editor",dojox.grid.editors.Dijit,{editorClass:"dijit.Editor",getEditorProps:function(_27){ -return dojo.mixin({},this.cell.editorProps||{},{height:this.cell.editorHeight||"100px"}); -},createEditor:function(_28,_29,_2a){ -var _2b=new this.editorClass(this.getEditorProps(_29),_28); -dojo.connect(_2b,"onLoad",dojo.hitch(this,"populateEditor")); -return _2b; -},formatNode:function(_2c,_2d,_2e){ -this.content=_2d; -this.inherited(arguments); -if(dojo.isMoz){ -var e=this.editor; -e.open(); -if(this.cell.editorToolbar){ -dojo.place(e.toolbar.domNode,e.editingArea,"before"); -} -} -},populateEditor:function(){ -this.editor.setValue(this.content); -this.editor.placeCursorAtEnd(); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/editors.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/editors.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/editors.js deleted file mode 100644 index 8ebe268..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/editors.js +++ /dev/null @@ -1,122 +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.editors"]){ -dojo._hasResource["dojox.grid.compat._data.editors"]=true; -dojo.provide("dojox.grid.compat._data.editors"); -dojo.provide("dojox.grid.compat.editors"); -dojo.declare("dojox.grid.editors.Base",null,{constructor:function(_1){ -this.cell=_1; -},_valueProp:"value",_formatPending:false,format:function(_2,_3){ -},needFormatNode:function(_4,_5){ -this._formatPending=true; -dojox.grid.whenIdle(this,"_formatNode",_4,_5); -},cancelFormatNode:function(){ -this._formatPending=false; -},_formatNode:function(_6,_7){ -if(this._formatPending){ -this._formatPending=false; -dojo.setSelectable(this.cell.grid.domNode,true); -this.formatNode(this.getNode(_7),_6,_7); -} -},getNode:function(_8){ -return (this.cell.getNode(_8)||0).firstChild||0; -},formatNode:function(_9,_a,_b){ -if(dojo.isIE){ -dojox.grid.whenIdle(this,"focus",_b,_9); -}else{ -this.focus(_b,_9); -} -},dispatchEvent:function(m,e){ -if(m in this){ -return this[m](e); -} -},getValue:function(_e){ -return this.getNode(_e)[this._valueProp]; -},setValue:function(_f,_10){ -var n=this.getNode(_f); -if(n){ -n[this._valueProp]=_10; -} -},focus:function(_12,_13){ -dojox.grid.focusSelectNode(_13||this.getNode(_12)); -},save:function(_14){ -this.value=this.value||this.getValue(_14); -},restore:function(_15){ -this.setValue(_15,this.value); -},_finish:function(_16){ -dojo.setSelectable(this.cell.grid.domNode,false); -this.cancelFormatNode(this.cell); -},apply:function(_17){ -this.cell.applyEdit(this.getValue(_17),_17); -this._finish(_17); -},cancel:function(_18){ -this.cell.cancelEdit(_18); -this._finish(_18); -}}); -dojox.grid.editors.base=dojox.grid.editors.Base; -dojo.declare("dojox.grid.editors.Input",dojox.grid.editors.Base,{constructor:function(_19){ -this.keyFilter=this.keyFilter||this.cell.keyFilter; -},keyFilter:null,format:function(_1a,_1b){ -this.needFormatNode(_1a,_1b); -return "<input class=\"dojoxGrid-input\" type=\"text\" value=\""+_1a+"\">"; -},formatNode:function(_1c,_1d,_1e){ -this.inherited(arguments); -this.cell.registerOnBlur(_1c,_1e); -},doKey:function(e){ -if(this.keyFilter){ -var key=String.fromCharCode(e.charCode); -if(key.search(this.keyFilter)==-1){ -dojo.stopEvent(e); -} -} -},_finish:function(_21){ -this.inherited(arguments); -var n=this.getNode(_21); -try{ -dojox.grid.fire(n,"blur"); -} -catch(e){ -} -}}); -dojox.grid.editors.input=dojox.grid.editors.Input; -dojo.declare("dojox.grid.editors.Select",dojox.grid.editors.Input,{constructor:function(_23){ -this.options=this.options||this.cell.options; -this.values=this.values||this.cell.values||this.options; -},format:function(_24,_25){ -this.needFormatNode(_24,_25); -var h=["<select class=\"dojoxGrid-select\">"]; -for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){ -h.push("<option",(_24==v?" selected":"")," value=\""+v+"\"",">",o,"</option>"); -} -h.push("</select>"); -return h.join(""); -},getValue:function(_2a){ -var n=this.getNode(_2a); -if(n){ -var i=n.selectedIndex,o=n.options[i]; -return this.cell.returnIndex?i:o.value||o.innerHTML; -} -}}); -dojox.grid.editors.select=dojox.grid.editors.Select; -dojo.declare("dojox.grid.editors.AlwaysOn",dojox.grid.editors.Input,{alwaysOn:true,_formatNode:function(_2e,_2f){ -this.formatNode(this.getNode(_2f),_2e,_2f); -},applyStaticValue:function(_30){ -var e=this.cell.grid.edit; -e.applyCellEdit(this.getValue(_30),this.cell,_30); -e.start(this.cell,_30,true); -}}); -dojox.grid.editors.alwaysOn=dojox.grid.editors.AlwaysOn; -dojo.declare("dojox.grid.editors.Bool",dojox.grid.editors.AlwaysOn,{_valueProp:"checked",format:function(_32,_33){ -return "<input class=\"dojoxGrid-input\" type=\"checkbox\""+(_32?" checked=\"checked\"":"")+" style=\"width: auto\" />"; -},doclick:function(e){ -if(e.target.tagName=="INPUT"){ -this.applyStaticValue(e.rowIndex); -} -}}); -dojox.grid.editors.bool=dojox.grid.editors.Bool; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/fields.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/fields.js b/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/fields.js deleted file mode 100644 index cc17b26..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/grid/compat/_data/fields.js +++ /dev/null @@ -1,84 +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.fields"]){ -dojo._hasResource["dojox.grid.compat._data.fields"]=true; -dojo.provide("dojox.grid.compat._data.fields"); -dojo.declare("dojox.grid.data.Mixer",null,{constructor:function(){ -this.defaultValue={}; -this.values=[]; -},count:function(){ -return this.values.length; -},clear:function(){ -this.values=[]; -},build:function(_1){ -var _2=dojo.mixin({owner:this},this.defaultValue); -_2.key=_1; -this.values[_1]=_2; -return _2; -},getDefault:function(){ -return this.defaultValue; -},setDefault:function(_3){ -for(var i=0,a;(a=arguments[i]);i++){ -dojo.mixin(this.defaultValue,a); -} -},get:function(_6){ -return this.values[_6]||this.build(_6); -},_set:function(_7,_8){ -var v=this.get(_7); -for(var i=1;i<arguments.length;i++){ -dojo.mixin(v,arguments[i]); -} -this.values[_7]=v; -},set:function(){ -if(arguments.length<1){ -return; -} -var a=arguments[0]; -if(!dojo.isArray(a)){ -this._set.apply(this,arguments); -}else{ -if(a.length&&a[0]["default"]){ -this.setDefault(a.shift()); -} -for(var i=0,l=a.length;i<l;i++){ -this._set(i,a[i]); -} -} -},insert:function(_e,_f){ -if(_e>=this.values.length){ -this.values[_e]=_f; -}else{ -this.values.splice(_e,0,_f); -} -},remove:function(_10){ -this.values.splice(_10,1); -},swap:function(_11,_12){ -dojox.grid.arraySwap(this.values,_11,_12); -},move:function(_13,_14){ -dojox.grid.arrayMove(this.values,_13,_14); -}}); -dojox.grid.data.compare=function(a,b){ -return (a>b?1:(a==b?0:-1)); -}; -dojo.declare("dojox.grid.data.Field",null,{constructor:function(_17){ -this.name=_17; -this.compare=dojox.grid.data.compare; -},na:dojox.grid.na}); -dojo.declare("dojox.grid.data.Fields",dojox.grid.data.Mixer,{constructor:function(_18){ -var _19=_18?_18:dojox.grid.data.Field; -this.defaultValue=new _19(); -},indexOf:function(_1a){ -for(var i=0;i<this.values.length;i++){ -var v=this.values[i]; -if(v&&v.key==_1a){ -return i; -} -} -return -1; -}}); -}