⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.js

📁 国内开发的javascript框架应用。龙博javascript。
💻 JS
📖 第 1 页 / 共 5 页
字号:
Class("linb.Profile","linb.absProfile",{Constructor:function(H,F,E,G,D,C,B){arguments.callee.upper.apply(this,arguments);var A=this;_.merge(A,B);A.key=F||A.key||"";A.alias=E||A.alias||"",A.properties=D||A.properties||{};A.events=C||A.events||{};A.host=H||A.host||A;A.box=G||A.box||A.constructor;if(A.events){A.setEvents(A.events);delete A.events}A._links={}},Instance:{setEvents:function(B){var A=this.box.$EventHandlers;return _.merge(this,B,"all",function(D,C){return A[C]})},getEvents:function(){var A=this,B,C={};_.each(A.box.$EventHandlers,function(E,D){if(A[D]){C[D]=A[D]}});return C},_applySetAction:function(A,B){return A.call(this,B)},__gc:function(){this.unLinkAll();_.tryF(this.clearCache,[],this);var A=_.get(this,["box","_namePool"]);if(A){delete A[self.alias]}_.breakO(this)},boxing:function(){var A=this,B;if(!((B=A.object)&&B._nodes[0]==A&&B._nodes.length==1)){B=A.object=A.box.pack([A],false)}return B},serialize:function(G,J){var H,I=this,D=(H=I.box._beforeSerialized)?H(I):I,A={alias:D.alias,key:D.key,host:D.host};if(A.host===I){delete A.host}else{if(D.host&&!J){if(G!==false){A.host="@this"}else{delete A.host}}}var F={},C=D.box.$DataStruct,B=linb.absObj.$specialChars;_.merge(F,D.properties,function(L,K){return(K in C)&&C[K]!==L&&!B[K.charAt(0)]});if(!_.isEmpty(F)){A.properties=F}if(!_.isEmpty(H=this.getEvents())){A.events=H}var E=D.box.$EventHandlers;_.filter(A.events,function(L,K){return L!=E[K]});if(_.isEmpty(A.events)){delete A.events}return G===false?A:_.serialize(A)}}});Class("linb.absObj","linb.absBox",{Constructor:function(){arguments.callee.upper.apply(this,arguments);if(arguments[0]!==false&&typeof this._ini=="function"){return this._ini.apply(this,arguments)}},Before:function(B,A,C){linb.absBox.$type[B]=B;return true},After:function(){var M=this,G=arguments.callee,K,L,D,J,B,F,E,C,I,A,H;M._nameId=0;M._namePool={};M._nameTag=(L=M.KEY.split("."))[L.length-1].toLowerCase();M._cache=[];if(M===linb.absObj||M===linb.absObj){return }B=G.a1||(G.a1=_.toArr("$Keys,$DataStruct,$EventHandlers,$DataModel"));for(E=0;I=B[E++];){D={};if((L=M.$parent)&&(F=L.length)){while(F--){_.merge(D,L[F][I])}}M[I]=D}M.setDataModel(M.DataModel);delete M.DataModel;M.setEventHandlers(M.EventHandlers);delete M.EventHandlers;B=G.a5||(G.a5=_.toArr("RenderTrigger,LayoutTrigger"));for(E=0;I=B[E++];){K=[];if((L=M.$parent)&&(C=L.length)){for(F=0;F<C;F++){J=L[F];if(J=J["$"+I]){K.push.apply(K,J)}}}if(M[I]){K.push(M[I])}M["$"+I]=K;delete M[I]}},Static:{$abstract:true,$specialChars:{_:1,$:1},getAll:function(){return this.pack(this._cache)},pickAlias:function(){var B,C=this._namePool,A=this._nameTag;while(C[B=(A+(++this._nameId))]){}return B},setDataModel:function(H){var M=this,K=linb.absObj.$specialChars,E=M.$DataStruct,J=M.$DataModel,B=M.prototype,I,G,L,C,D,F,A;for(I in H){if(!J[I]){J[I]={}}C=H[I];if(null===C||undefined===C){A=_.str.initial(I);delete E[I];delete J[I];delete B["get"+A];delete B["set"+A]}else{L=typeof C;if(L!="object"||C.constructor!=Object){C={ini:C}}E[I]=("ini" in C)?C.ini:(I in E)?E[I]:"";L=J[I];for(G in L){if(!(G in C)){C[G]=L[G]}}J[I]=C}}_.each(H,function(O,N){if(null===O||undefined===O||K[N.charAt(0)]){return }A=_.str.initial(N);D="set"+A;if(!(O&&(O.readonly||O.inner))){L=O.set;F=B[D];B[D]=typeof L=="function"?Class._fun(L,D,M.KEY):typeof F=="function"?F:Class._fun(function(Q,P){return this.each(function(S){if(!S.properties){return }if(S.properties[N]===Q&&!P){return }var T=S.properties[N],R=_.get(S.box.$DataModel,[N,"action"]);S.properties[N]=Q;if(typeof R=="function"&&S._applySetAction(R,Q,T)===false){S.properties[N]=T}})},D,M.KEY);delete O.set;if(B[D]!==F){B[D].$auto$=1}}else{delete B[D]}D="get"+A;if(!(O&&O.inner)){L=O.get;F=B[D];B[D]=typeof L=="function"?Class._fun(L,D,M.KEY):typeof F=="function"?F:Class._fun(function(){return this.get(0).properties[N]},D,M.KEY);delete O.get;if(B[D]!==F){B[D].$auto$=1}}else{delete B[D]}});return M},setEventHandlers:function(B){var A=this;_.each(B,function(E,C){if(null===E){delete A.$EventHandlers[C];delete A.prototype[C]}else{A.$EventHandlers[C]=E;var D=function(G){var F=arguments.length;if(F==1&&(typeof G=="function"||typeof G=="string")){return this.each(function(M){if(M.domNode){M.clearCache()}M[C]=G})}else{if(F==1&&null===G){return this.each(function(M){M.clearCache();delete M[C]})}else{var K=[],I=this.get(0),L=I[C],H=I.host||I,J;if(I.$ignore){return }if(arguments[0]!=I){K[0]=I}for(J=0;J<F;J++){K[K.length]=arguments[J]}I.$lastEvent=C;if(typeof L=="string"){L=H[L]}if(typeof L=="function"){return _.tryF(L,K,H)}}}};D.$event$=1;D.$original$=E.$original$||A.KEY;A.plugIn(C,D)}});return A}},Instance:{alias:function(E){var B=this,D=this.get(0),A;if(E){if(A=D.alias){if(D.host){try{delete D.host[A]}catch(C){D.host[A]=undefined}}delete B.constructor._namePool[A]}B.constructor._namePool[D.alias=E]=1;if(D.host){D.host[E]=B}return B}else{return D.alias}},host:function(C,B){var A=this;if(C){A.get(0).host=C;if(B){A.alias(B);C[B]=A}return A}else{return A.get(0).host}}}});Class("linb.DataBinder","linb.absObj",{Instance:{_ini:function(C,G,F){var H=this,D=H.constructor,A,I,E=D._namePool,B;if(C&&C["linb.Profile"]){A=C;B=A.alias||D.pickAlias()}else{if(C&&C.key&&linb.absBox.$type[C.key]){I=C;C=null;B=I.alias;B=(B&&!E[B])?B:D.pickAlias()}else{B=D.pickAlias()}A=new linb.Profile(F,H.$key,B,D,C,G,I)}E[B]=1;A._n=A._n||[];A.link(D._cache,"self").link(linb._pool,"linb");H._nodes.push(A);return H},destroy:function(){this.each(function(B){var C=B.box,A=B.properties.name;_.arr.each(B._n,function(D){C._unBind(A,D)});delete C._pool[A];B.__gc()})},resetValue:function(A){return this.each(function(C,B){_.arr.each(C._n,function(D){var E=D.properties;D.boxing().resetValue((A&&E.dataField in A)?A[E.dataField]:"")})})},getUI:function(){return linb.UI.pack(this.get(0)._n,false)},checkValid:function(){return linb.absValue.pack(this.get(0)._n,false).checkValid()},getValue:function(){var B=this.get(0);if(this.checkValid()){var A={};_.arr.each(B._n,function(E){var F=E.properties,C=E.boxing(),D;if(E.domNode){C.updateValue()}D=C.getValue();A[F.dataField]=D});return A}else{return null}},host:function(C,B){var A=this;if(C&&B){A.setName(B)}return arguments.callee.upper.apply(A,arguments)}},Static:{_pool:{},destroyAll:function(){this.pack(this._pool,false).destroy();this._pool={}},getFromName:function(A){var B=this._pool[A];return B&&B.boxing()},_bind:function(A,C){var B=this._pool[A];if(!B){B=new linb.DataBinder();B.setName(A);B=B.get(0)}if(C&&_.arr.indexOf(B._n,C)==-1){C.link(B._n,"databinder."+A)}},_unBind:function(A,B){if(this._pool[A]){B.unLink("databinder."+A)}},DataModel:{name:{set:function(D){var E=this.get(0),C=E.properties.name;if(C!==D){var G=linb.DataBinder,A=G._pool,F=A[C],B=A[D];if(F&&B){throw new Error(D+" exists!")}A[E.properties.name=D]=E;if(F&&!B){linb.absValue.pack(E._n).setDataBinder(D);_.arr.each(E._n,function(H){G._unBind(C,H)})}if(B&&!F){E._n=B._n}if(F){delete A[C]}}return this}}}}});Class("linb.UIProfile","linb.Profile",{Instance:{rendered:false,_render:function(){var C=this,E,F=linb.Dom.byId(C.domId);if(!F){return }C.root=linb([C.domNode=F]);linb.cache.dom[C.domId]=linb.cache.dom[C.$domId]=C;if(E=C.RenderTrigger){for(var D=0,A=E.length;D<A;D++){E[D].call(C)}delete C.RenderTrigger}if(arguments[0]===true&&(E=C.LayoutTrigger)){for(var D=0,A=E.length;D<A;D++){E[D].call(C)}}if(C.children){for(var D=0,B;B=C.children[D++];){B[0]._render(true)}}if(C.$attached){for(var D=0,B;B=C.$attached[D++];){if(B["linb.UIProfile"]){B._render(true)}}delete C.$attached}},__gc:function(){var A=this,C;if(A.onDestroy){A.boxing().onDestroy()}if(A.destroyTrigger){A.destroyTrigger()}if(!A.serialId){return }A.clearCache();if(C=A.$dockParent){if(C=A.constructor.getFromDomId(C)){_.tryF(C.clearCache,[],C)}}if(A.nodeVars&&(C=A.domNode)){for(var B in A.nodeVars){C[B]=null}}if(!A.$exID){C=linb.cache.domId;(C[A.key]||(C[A.key]=[])).push(A.serialId)}else{delete A.$exID}delete linb.cache.dom[A.domId];delete linb.cache.dom[A.$domId];delete A.box._namePool[A.alias];A.unLinkAll();_.tryF(A.$ondestory);_.breakO(A)},unlinkParent:function(){var A=this;delete A.parent;delete A.childrenId;A.unLink("$parent");return A},getRootNode:function(){return this.domNode||(this.domNode=document.getElementById(this.domId))},getRoot:function(){return this.root||null},linkParent:function(A,C){var B=this;B.unlinkParent();B.parent=A;B.childrenId=C;B.link(A.children,"$parent",[B,C]);return B},_reg:/^\w[\w_-]*$/,setDomId:function(D){var A=this,C=linb.cache.dom,B=A._reg;if(typeof D=="string"&&(B.test(D)||D==A.$domId)&&!linb.Dom.byId(D)){if(A.domId!=A.$domId){delete C[A.domId]}A.domId=D;if(A.domNode){A.domNode.id=D}if(C[A.$domId]){C[D]=A}}return A},getDomId:function(){return this.domId},clearCache:function(){var E=this,B="$_egetter",A="$_domid",D=E[B];for(var C in D){D[C].length=0}D=E[A];for(var C in D){D[C]=null}E[B]=E[A]=null},_getEV:function(H,C,B){var L=this,I=C+"+"+B,G=L.$_egetter||(L.$_egetter={}),A;if(G[I]){Array.prototype.push.apply(H,G[I]);return }else{A=G[I]=[]}var E=linb.cache.dom,K,J;if((K=E[C])&&(K=K.events)&&(K=K[B])){for(var F=0,D=K.length;F<D;F++){if(typeof K[K[F]]=="function"){A.push(H[H.length]=K[K[F]])}}}J=C.split(":")[0].split("-")[1];if(typeof (((K=L._CB)&&(J?(K=K[J]):1))&&(K=K[B]))=="function"){A.push(H[H.length]=K)}else{if(typeof (((K=L.CB)&&(J?(K=K[J]):1))&&(K=K[B]))=="function"){A.push(H[H.length]=K)}else{if(typeof (((K=L.behavior)&&(J?(K=K[J]):1))&&(K=K[B]))=="function"){A.push(H[H.length]=K)}}}},toHtml:function(){var O=this,L=arguments.callee,C=L._reg||(L._reg=/<!--([^>^\s]*)-->/g),J=O.box,G={},K,I="linb.UIProfile",H="linb.Profile",A,F,B,D,N,M,E;E=J._prepareData(O);if(J._dynamicTemplate){J._dynamicTemplate(O)}K=J._build(O,E);if(D=J._getChildren(O)){for(F=0;B=D[F++];){if(B[0][I]){A=B[1]||"";N=G[A]||(G[A]=[]);N[N.length]=B[0].toHtml()}else{if(!B[0][H]){M.ini.call(M,B[0]);B[0]=M.get(0)}}}}return K.replace(C,function(Q,P){return G[P]?G[P].join(""):""})},buildItems:function(C,B){var A=this,E=A.box,F,D=A.toHtml._reg;F=E._rpt(A,linb.UI.$doTemplate(A,_.get(linb.cache.template,[E.KEY,A._hash]),B,C));return F.replace(D,"")},serialize:function(H,K){var I,E,J=this,D=(I=J.box._beforeSerialized)?I(J):J,A={alias:D.alias,key:D.key,host:D.host};if(A.host===J){delete A.host}else{if(D.host&&!K){if(H!==false){A.host="@this"}else{delete A.host}}}if(D.$domId!=D.domId){A.domId=D.domId}var G={},C=D.box.$DataStruct,B=linb.absObj.$specialChars;_.merge(G,D.properties,function(M,L){return(L in C)&&C[L]!==M&&!B[L.charAt(0)]});if(!_.isEmpty(G)){A.properties=G}if(!_.isEmpty(I=this.getEvents())){A.events=I}var F=D.box.$EventHandlers;_.filter(A.events,function(M,L){return M!=F[L]});if(_.isEmpty(A.events)){delete A.events}if(!_.isEmpty(D.CS)){A.CS=_.copy(D.CS)}if(!_.isEmpty(D.CB)){A.CB=_.copy(D.CB)}if(!_.isEmpty(D.CC)){A.CC=_.copy(D.CC)}if(!_.isEmpty(D.CF)){A.CF=_.copy(D.CF)}if(D.children&&D.children.length){D.children.sort(function(L,M){L=parseInt(L[0].properties.tabindex);M=parseInt(M[0].properties.tabindex);return L>M?1:L==M?0:-1});I=A.children=[];_.arr.each(D.children,function(L){E=[L[0].serialize(false,K)];if(L[1]){E[1]=L[1]}I[I.length]=E})}return H===false?A:_.serialize(A)},_applySetAction:function(A,B,C){if(this.domNode){return A.call(this,B,C)}},getKey:function(B){var A;if(B.indexOf(":")==-1){B=(A=linb.cache.dom[B])&&(A.$domId)}return B?B.split(":")[0]:""},getSubId:function(B){var A;if(B.indexOf(":")==-1){B=(A=linb.cache.dom[B])&&(A.$domId)}return B?B.split(":")[2]:""},pickSubId:function(B){var A=this,C,D=A.cache_subid||(A.cache_subid={});if((D[B]||(D[B]=[]))[0]){return D[B].shift()}D=A.subId||(A.subId={});C=(D[B]||(D[B]=new _.id)).next();return C},reclaimSubId:function(C,A){var B=this.cache_subid||(this.cache_subid={});(B[A]||(B[A]=[])).push(C)},getClass:function(C,A){C=this.keys[C]||C;var B=this,E=arguments.callee,G=E._map||(E._map={}),D=E._reg||(E._reg=/\./g),F=C+":"+A;return G[F]||(G[F]=C.replace(D,"-").toLowerCase().replace("linb-ui","linb")+(A||""))},_getSubNodeId:function(C,B){var A=this.$domId.split(":");A[0]=C;A[2]=B||"";C=A.join(":");if(C==this.$domId){return linb.cache.dom[C].domId}else{return C}},getSubNode:function(D,B){var A=this;D=A.keys[D]||D;var G,C,F,E=A.$_domid||(A.$_domid={});if(B===true){G=linb([A.domNode]).query("*","id",D==A.keys.KEY?A.domId:new RegExp("^"+D+":"+A.serialId))}else{if(!B&&E[D]&&E[D]._nodes.length==1){return E[D]}G=(C=linb.Dom.byId(F=A._getSubNodeId(D,B)))?linb([C]):((C=A.domNode)&&linb([C]).query("*","id",F));if(!B){E[D]=G}}return G},getSubNodes:function(A,C){var D=0,B=[],E;for(;E=A[D++];){Array.prototype.push.apply(B,this.getSubNode(E,C).get())}return linb(B)},getSubNodeByItemId:function(A,B){return(B=this.getSubIdByItemId(B))?this.getSubNode(A,B):linb()},getItemByItemId:function(B){var A;if((A=this.ItemIdMapSubSerialId)&&(A=A[B])){return this.SubSerialIdMapItem[A]}},getItemByDom:function(A){return this.SubSerialIdMapItem&&this.SubSerialIdMapItem[this.getSubId(A.id||A)]},getItemIdByDom:function(B){var A;return(A=this.getItemByDom(B))&&A.id},getSubIdByItemId:function(B){var A;return(A=this.ItemIdMapSubSerialId)&&A[B]},queryItems:function(D,C,B,H,A){var F=[],E=arguments.callee,G=E.f||(E.f=function(K,J,I,M,L){_.arr.each(K,function(O,N){if(J===true||J.call(null,O,N,K)){L.push(A?[O,N,K]:O);if(M){return false}}if(I&&O.sub&&O.sub.length){G(O.sub,J,I,M,L)}})});G(D,C,B,H,F);return F}},Static:{getFromDomId:function(A){return linb.cache.dom[A.replace(linb.Event._reg,"$1$3")]}}});Class("linb.UI","linb.absObj",{Before:function(B,A,C){linb.absBox.$type[B.replace("linb.UI.","").replace("linb.","")]=linb.absBox.$type[B]=B;return true},After:function(){linb.absObj.After.apply(this,arguments);var N=this,G=arguments.callee,L,M,A,K,F,C,B,D,I,J,H,E;N._ctrlId=new _.id();N._idCache=[];N.$cssKeys={};M=N.$Keys;M.KEY=M.$key=N.KEY;N.addTemplateKeys(_.toArr(M,true));J="$Behaviors";A={};if((M=N.$parent)&&(D=M.length)){while(D--){H=M[D][J];for(C in H){if(typeof H[C]=="object"){if(_.isArr(H[C])){K=A[C]||(A[C]=[]);K.push.apply(K,H[C])}else{K=A[C]||(A[C]={});_.merge(K,H[C])}}else{A[C]=H[C]}}}}N[J]=A;J="$Templates";A={};if((M=N.$parent)&&(D=M[0])){for(C in D[J]){if(C.charAt(0)!="$"){A[C]=D[J][C]}}}N[J]=_.clone(A);J="$Appearances";A={};if((M=N.$parent)&&(D=M.length)){while(D--){H=M[D];for(C in H[J]){M=H[J][C];K=A[C]||(A[C]={});_.merge(K,M)}}}N[J]=A;N.setTemplate(N.Templates);delete N.Templates;N.setBehavior(N.Behaviors);delete N.Behaviors;N.setAppearance(N.Appearances);delete N.Appearances;if(M=N.PublicAppearance){linb.UI.$cache_css+=N.buildCSSText(M);delete N.PublicAppearance}},Instance:{destroy:function(){this.each(function(A){if(A.beforeDestroy&&false===A.boxing().beforeDestroy()){return }if(A.root){A.root.remove()}else{A.__gc()}})},serialize:function(B,C){var A=[];this.each(function(D){A[A.length]=D.serialize(false,C)});return B===false?A:A.length==1?" new "+A[0].key+"("+_.serialize(A[0])+")":"linb.UI.unserialize("+_.serialize(A)+")"},_toDomElems:function(){this.render();var B,A=[];_.arr.each(this._nodes,function(C){if(B=C.domNode){A.push(B)}});return A},_ini:function(F,O,N,A,H,I,E){var P=this,G=P.constructor,B,M="default",Q,K=G._namePool,D,L;if(F&&F["linb.Profile"]){B=F;D=B.alias||G.pickAlias();linb.UIProfile.apply(B,[N,P.$key,D,G,null,O])}else{if(F&&F.key&&linb.absBox.$type[F.key]){Q=F;F=null;D=Q.alias;D=(D&&!K[D])?D:G.pickAlias()}else{D=G.pickAlias()}B=new linb.UIProfile(N,P.$key,D,G,F,O,Q)}K[D]=1;for(var C in (L=G.$DataStruct)){if(!(C in B.properties)){B.properties[C]=typeof L[C]=="object"?_.copy(L[C]):L[C]}}B.keys=G.$Keys;B.CS=A||B.CS||{};B.CB=I||B.CB||{};B.CC=H||B.CC||{};B.CF=E||B.CF||{};B.template=G.getTemplate();B.behavior=G.$Behaviors;if(!B.serialId){B.serialId=G._pickSerialId()}B.$domId=B.key+":"+B.serialId+":";B.domId=B.domId||B.$domId;B.RenderTrigger=_.copy(G.$RenderTrigger);B.LayoutTrigger=_.copy(G.$LayoutTrigger);B.nodeVars=B.behavior?B.behavior.$eventhandler:null;B.link(linb.UI._cache,"UI").link(G._cache,"self").link(linb._pool,"linb");L=B.children;B.children=[];if(L&&L.length){for(var C=0,J;J=L[C++];){if(!J[0]["linb.UIProfile"]){J[0]=new (linb.SC(J[0].key))(J[0]).get(0)}J[0].linkParent(B,J[1])}}P._nodes.push(B);return P},busy:function(C,B,A){C=typeof C=="string"?C:"Loading...";B=typeof B=="string"?B:'<span style="background:'+linb.UI.$bg("busy.gif"," no-repeat left center")("linb.UI.Public")+';padding-left:16px;">'+C+"</span>";return this.each(function(D){_.resetRun(D.$id+":busy",function(){var H=D.keys;A=H[A]||H.BORDER||H.PANEL||H.KEY;var E=D.getSubNode(A),F=E.cssSize(),G;if(!(G=D.$busy)){G=D.$busy=linb.create('<div style="left:0;top:0;z-index:10;position:absolute;background-color:#DDD;"></div><div style="left:0;top:0;z-index:20;text-align:center;position:absolute;"><div>'+B+"</div></div>");linb([G.get(0)]).css({opacity:0.5});linb(E).append(G)}G.css({display:"",width:F.width+"px",height:F.height+"px"});linb([G.get(1).firstChild]).html(B,false).css("paddingTop",F.height/2+"px")},50)})},free:function(){return this.each(function(A){_.resetRun(A.$id+":busy");if(A.$busy){A.$busy.css("display","none")}})},resize:function(){return this.each(function(A){_.tryF(A.$resizeFun)})},toHtml:function(){var A=[];_.arr.each(this._nodes,function(B){A[A.length]=B.toHtml()});return A.join("")},render:function(C){var L=this,H=[],G,F,B,K,E,A,I,D=L._nodes,J=[],M=linb.Dom.byId;linb.UI.$applyCSS();for(G=0;B=D[G++];){if(!M(B.domId)){H[H.length]=B}}if(F=H.length){for(G=0;G<F;G++){J[J.length]=H[G].toHtml()}E=_.str.toDom(J.join(""));E=E.get();F=E.length;I=linb.Dom.getEmptyDiv().get(0);K=document.createDocumentFragment?document.createDocumentFragment():I;for(G=0;G<F;G++){K.appendChild(E[G])}if(K!=I){I.appendChild(K)}}for(G=0;B=D[G++];){B._render(C)}return L},renderOnto:function(E,D){E=linb(E);if(E.isEmpty()){return this}var B=this,F=B.get(0),C=arguments.callee,A=C.para||(C.para=function(H){var G=H.cssRegion();G.tabindex=H.attr("tabIndex");G.zIndex=H.css("zIndex");G.position=H.css("position");return G});_.merge(F.properties,A(E),"all");E.outerHTML(F.toHtml());F.boxing().host(D||window,E.get(0).id||F.alias);F._render(true);return B},setDomId:function(A){this.get(0).setDomId(A);return this},hide:function(){return this.each(function(A){if(A.domNode){A.root.hide();A.properties.top=A.properties.left=-10000;A.properties.dockIgnore=true}})},show:function(B,A,D,C){return this.each(function(H){var F=H.properties,E;D=(D||D===0)?(parseInt(D)||0):null;C=(C||C===0)?(parseInt(C)||0):null;if(D!==null){F.left=D}if(C!==null){F.top=C}if(H.domNode&&H.domNode._linbhide){E=1;F.dockIgnore=false;H.root.show(D&&(D+"px"),C&&(C+"px"));if(F.dock&&F.dock!="none"){linb.UI.$dock(H,true)}}else{if(!B&&(!H.domNode||(H.domNode.id||"").indexOf(linb.Dom._matrixid)===0)){B=linb("body")}}var G=B,I;if(G){if(G["linb.UIProfile"]){I=G.domNode;G=G.boxing()}else{if(G["linb.UI"]){I=(I=G._nodes[0])&&I.domNode}else{I=(G=linb(G))&&G._nodes[0]}}if(I){G.append(H.boxing(),A);if(!E){H.root.show(D&&(D+"px"),C&&(C+"px"))}}}})},clone:function(){var A=[],B=function(D){delete D.alias;delete D.domId;if(D.children){for(var C=0,E;E=D.children[C];C++){B(E)}}};this.each(function(C){C=C.serialize(false,true);B(C);A.push(C)});return this.constructor.unserialize(A)},refreshDom:function(){(function(A){var B=arguments.callee;_.arr.each(A,function(C){if(_.isArr(C)){C=C[0]}C.clearCache();if(C.children&&C.children.length){B(C.children)}})})(this._nodes);return this.each(function(C){if(C.domNode){var A=C.getRoot(),B=A.cssSize();A.outerHTML(C.toHtml());linb.UI.$tryResize(C,B.width,B.height,C.properties.$UIvalue,true)}})},refresh:function(){var I,F,A,H,G,C,E,D,B;return this.each(function(K){if(!K.domNode){return }D=K.box;G=K.$id;C=K.serialId;if(F=!!K.parent){A=K.parent.boxing();I=K.childrenId}else{A=K.root.parent()}var J=linb.create("span");K.root.replace(J,true);B=_.copy(K.children);K.children.length=0;_.arr.each(B,function(L){delete L[0].$dockParent;J.append(L[0].root)});H=K.serialize(false,true);E=K.$addOns;K.$exID=1;K.boxing().destroy();linb.Dom.__gc();_.merge(K,H,"all");K.$id=G;K.serialId=C;K=new D(K).render();if(E){E.call(E.target,K.get(0))}J.empty(false);J.replace(K.get(0).root);if(F){A.append(K,I)}else{A.append(K)}_.arr.each(B,function(L){K.append.apply(K,L)});J.remove()})},append:function(C,B){if(C["linb.UIProfile"]){C=C.boxing()}var D=this.get(0),A;if(B!==false){C.each(function(E){E.linkParent(D,B)})}if(D.domNode){if(B=typeof B=="string"?B:null){B=D.getSubIdByItemId(B)}A=D.keys.PANEL?D.getSubNode(D.keys.PANEL,B):D.root;if(!A.isEmpty()){A.append(C)}}return this},getChildren:function(B){var A=[];_.arr.each(this.get(0).children,function(C){if(B?C[1]==B:1){A.push(C[0])}});return linb.UI.pack(A)},removeChildren:function(A){return this.each(function(B){_.arr.each(B.children,function(C){if(A?C[1]==A:1){C[0].unlinkParent()}if(C[0].root){C[0].root.remove()}else{C[0].__gc()}})})},dragable:function(A,C,B){return this.each(function(D){D.getSubNode(D.keys[B]||"KEY",true).beforeMousedown(A?function(G,E,F){if(G.properties.disabled){return }linb([F]).startDrag(E,{dragKey:A,dragData:typeof C=="function"?C():C,dragCursor:"pointer",dragType:"icon",dragDefer:1})}:null,"_d",-1).beforeDragbegin(A?function(E,F,G){linb([G]).onMouseout(true,{$force:true}).onMouseup(true)}:null,"_d",-1);if(!A){D.clearCache()}})},setCustomFunction:function(A,B){return this.each(function(C){if(typeof A=="string"){if(B){C.CF[A]=B}else{delete C.CF[A]}}else{C.CF=A||{}}})},setCustomClass:function(B,D){var C=arguments.callee,A=(C.fun||(C.fun=function(J,G,H,F){if(!H[G]){return }var I=J.getSubNode(G,true),E;if(!I.isEmpty()){_.arr.each(H[G].split(/\s+/),function(K){I[F?"removeClass":"addClass"](K)})}}));return this.each(function(G){var E=_.copy(G.CC);if(typeof B=="string"){if(G.domNode){if(B in E){A(G,B,E,true)}}if(!D){delete G.CC[B]}else{G.CC[B]=D;if(G.domNode){A(G,B,G.CC)}}}else{if(!!B&&typeof B=="object"){if(G.domNode){for(var F in B){A(G,F,E,true)}for(var F in B){A(G,F,B)}}G.CC=B}else{if(G.domNode){for(var F in E){A(G,F,E,true)}}G.CC={}}}})},setCustomStyle:function(B,D){var C=arguments.callee,A=(C.fun||(C.fun=function(J,G,H,F){if(!H[G]){return }var I=J.getSubNode(G,true),E;if(!I.isEmpty()){_.arr.each(H[G].split(";"),function(M,K){if((E=M.split(":")).length==2){E[0]=E[0].replace(/\-(\w)/g,function(O,N){return N.toUpperCase()});try{I.css(E[0],F?"":E[1])}catch(L){}}})}}));return this.each(function(G){var E=_.copy(G.CS);if(typeof B=="string"){if(G.domNode){if(B in E){A(G,B,E,true)}}if(!D){delete G.CS[B]}else{G.CS[B]=D;if(G.domNode){A(G,B,G.CS)}}}else{if(!!B&&typeof B=="object"){if(G.domNode){for(var F in B){A(G,F,E,true)}for(var F in B){A(G,F,B)}}G.CS=B}else{if(G.domNode){for(var F in E){A(G,F,E,true)}}G.CS={}}}})},setCustomBehavior:function(A,B){return this.each(function(C){if(typeof A=="string"){if(C.keys[A]){C.CB[A]=B||{}}}else{C.CB=A||{}}if(C.CB.KEY){_.merge(C.CB,C.CB.KEY,"all");delete C.CB.KEY}C.clearCache()})}},Initialize:function(){var B=this.prototype;_.arr.each("getSubNode,getDomId,getRootNode,getRoot".split(","),function(D){if(!B[D]){B[D]=function(){var E=this.get(0);return E[D].apply(E,arguments)}}B[D].$original$="linb.UI"});var A=this,C={};_.each(linb.UI.$ps,function(D,E){C[E]={ini:"auto",action:function(I){var G=this,J=G.properties,F=false,H={$type:J.dock};if(G.domNode){switch(J.dock){case"top":if(E!="height"&&E!="top"){return }H.width=H.height=1;break;case"bottom":if(E!="height"&&E!="bottom"){return }H.width=H.height=1;break;case"left":if(E!="width"&&E!="left"){return }H.width=H.height=1;break;case"right":if(E!="width"&&E!="right"){return }H.width=H.height=1;break;case"width":if("width"==E){return }H.width=1;break;case"height":if("height"==E){return }H.height=1;break;case"fill":case"cover":if(E=="width"&&E=="height"){return }H.width=H.height=1;break}G.root[E]?G.root[E](I):linb.Dom._setPxStyle(G.domNode,E,I);if(J.dock!="none"){_.tryF(G.$dock,[G,H],G)}}}}});_.merge(C,{renderer:{ini:null},zIndex:{ini:1,action:function(D){if(this.domNode){this.root.css("zIndex",D)}}},tabindex:{ini:1},position:{ini:"absolute",listbox:["","static","relative","absolute"],action:function(D){if(this.domNode){this.root.css("position",D)}}},visibility:{listbox:["","visible","hidden"],action:function(D){if(this.domNode){this.root.css("visibility",D)}}},display:{listbox:["","none","block","inline","inline-block"],action:function(D){if(this.domNode){if(D=="inline-block"){this.root.setInlineBlock()}else{this.root.css("display",D)}}}}});A.setDataModel(C);linb.UI.$cache_css+=linb.UI.buildCSSText({".ui-ctr":{},".ui-btn":{"white-space":"nowrap","vertical-align":"top",overflow:"hidden",background:linb.UI.$bg("button.gif"," no-repeat right top",true),"padding-right":"4px","font-size":"12px"},".ui-btn *":{cursor:"pointer"},".ui-btn button, .ui-btn a":{display:linb.$inlineBlock,zoom:linb.browser.ie?1:null,border:0,background:"transparent",margin:0,padding:"3px 0 0 0"},".ui-btni":{background:linb.UI.$bg("button.gif"," no-repeat left -22px",true),height:"22px","padding-left":"4px","vertical-align":"top"},".ui-btn-mouseover, .ui-btn-focus":{$order:2,"background-position":"right -44px"},".ui-btn-mouseover .ui-btni, .ui-btn-focus .ui-btni":{$order:2,"background-position":"left -66px"},".ui-btn-mousedown, .ui-btn-checked":{$order:3,"background-position":"right -88px"},".ui-btn-mousedown .ui-btni, .ui-btn-checked .ui-btni":{$order:3,"background-position":"left -110px"},".ui-icon":{"vertical-align":"middle",width:"16px",height:"16px",margin:"0 4px 0 2px"},".uicmd-close, .uicmd-opt, .uicmd-land, .uicmd-toggle, .uicmd-toggle2, .uicmd-min, .uicmd-max,.uicmd-restore,.uicmd-pin":{width:"16px",height:"16px","margin-right":"2px",cursor:"default","vertical-align":"middle"},".uicmd-close":{background:linb.UI.$bg("icons.gif"," no-repeat -64px 0",true)},".uicmd-close-mouseover":{$order:1,"background-position":"-64px -16px"},".uicmd-close-mousedown":{$order:2,"background-position":"-64px -32px"},".uicmd-opt":{background:linb.UI.$bg("icons.gif"," no-repeat -240px 0",true)},".uicmd-opt-mouseover":{$order:1,"background-position":"-240px -16px"},".uicmd-opt-mousedown":{$order:2,"background-position":"-240px -32px"},".uicmd-land":{background:linb.UI.$bg("icons.gif"," no-repeat -220px 0",true)},".uicmd-land-mouseover":{$order:1,"background-position":"-220px -16px"},".uicmd-land-mousedown":{$order:2,"background-position":"-220px -32px"},".uicmd-toggle":{background:linb.UI.$bg("icons.gif"," no-repeat -161px 0",true)},".uicmd-toggle-mouseover":{$order:2,"background-position":"-161px -16px"},".uicmd-toggle-mousedown":{$order:3,"background-position":"-161px -32px"},".uicmd-toggle-checked":{$order:4,"background-position":"-176px top"},".uicmd-toggle-checked-mouseover":{$order:5,"background-position":"-176px -16px"},".uicmd-toggle-checked-mousedown":{$order:6,"background-position":"-176px -32px"},".uicmd-toggle-busy":{$order:7,background:linb.UI.$bg("busy.gif"," no-repeat center center",true)},".uicmd-toggle2":{background:linb.UI.$bg("icons.gif"," no-repeat -161px -66px",true)},".uicmd-toggle2-mouseover":{$order:2,"background-position":"-161px -82px"},".uicmd-toggle2-mousedown":{$order:3,"background-position":"-161px -98px"},".uicmd-toggle2-checked":{$order:4,"background-position":"-176px -66px"},".uicmd-toggle2-checked-mouseover":{$order:5,"background-position":"-176px -82px"},".uicmd-toggle2-checked-mousedown":{$order:6,"background-position":"-176px -98px"},".uibar-top, .uibar-bottom, .uibar-top-s, .uibar-bottom-s":{position:"relative","vertical-align":"top","font-size":0,"line-height":0},".uibar-top .uibar-t":{height:"29px"},".uibar-top .uibar-tdl":{"padding-left":"4px",height:"100%",background:linb.UI.$bg("bar_vertical.gif"," no-repeat left top",true)},".uibar-top .uibar-tdm":{background:linb.UI.$bg("bar_vertical.gif"," repeat-x left -30px",true)},".uibar-top .uibar-tdr":{"padding-left":"4px",background:linb.UI.$bg("bar_vertical.gif"," no-repeat right -60px",true)},".uibar-top-focus .uibar-tdl":{$order:2,"padding-left":"4px",height:"100%",background:linb.UI.$bg("bar_vertical.gif"," no-repeat left -90px",true)},".uibar-top-focus .uibar-tdm":{$order:2,background:linb.UI.$bg("bar_vertical.gif"," repeat-x left -120px",true)},".uibar-top-focus .uibar-tdr":{$order:2,"padding-left":"4px",background:linb.UI.$bg("bar_vertical.gif"," no-repeat right -150px",true)},".uibar-top .uibar-cmdl":{"-moz-user-select":"none",overflow:"hidden",position:"absolute",left:0,top:"4px",width:"92%",height:"22px","padding-left":"8px","white-space":"nowrap"},".uibar-top .uibar-cmdr":{"-moz-user-select":"none",position:"absolute",top:"6px",right:"4px","text-align":"right"},".uicon-main":{position:"relative","padding-left":"5px","font-size":0,"line-height":0,"z-index":1,overflow:"visible",background:linb.UI.$bg("bar_horizontal.gif"," repeat-y -595px top",true)},".uicon-maini":{"padding-right":"5px","font-size":0,"line-height":0,background:linb.UI.$bg("container_right.gif","#AAD2FA repeat-y right top",true)},".uibar-bottom .uibar-t":{height:"12px"},".uibar-bottom .uibar-tdl":{"padding-left":"5px",height:"100%",background:linb.UI.$bg("bar_vertical.gif"," no-repeat left -189px",true)},".uibar-bottom .uibar-tdm":{background:linb.UI.$bg("bar_vertical.gif"," repeat-x left -211px",true)},".uibar-bottom .uibar-tdr":{"padding-left":"5px",background:linb.UI.$bg("bar_vertical.gif"," no-repeat right -233px",true)},".uibar-top-s .uibar-t":{$order:3,height:"7px"},".uibar-top-s .uibar-tdl":{$order:3,height:"100%","padding-left":"5px",background:linb.UI.$bg("bar_vertical.gif"," no-repeat left -261px",true)},".uibar-top-s .uibar-tdm":{$order:3,background:linb.UI.$bg("bar_vertical.gif"," repeat-x left -283px",true)},".uibar-top-s .uibar-tdr":{$order:3,"padding-left":"5px",background:linb.UI.$bg("bar_vertical.gif"," no-repeat right -305px",true)},".uibar-top-s .uibar-cmdl":{$order:3,display:"none"},".uibar-top-s .uibar-cmdr":{$order:3,display:"none"},".uibar-bottom-s .uibar-t":{$order:3,height:"6px"},".uibar-bottom-s .uibar-tdl":{$order:3,height:"100%","padding-left":"5px",background:linb.UI.$bg("bar_vertical.gif"," no-repeat left -327px",true)},".uibar-bottom-s .uibar-tdm":{$order:3,background:linb.UI.$bg("bar_vertical.gif"," repeat-x left -349px",true)},".uibar-bottom-s .uibar-tdr":{$order:3,"padding-left":"5px",background:linb.UI.$bg("bar_vertical.gif"," no-repeat right -371px",true)}})+linb.UI.buildCSSText({".uiw-shell":{background:"transparent",display:linb.$inlineBlock,zoom:linb.browser.ie6?1:null,border:0,padding:0,margin:0},".uiw-frame":{$order:1,display:"block",position:"relative",border:0,padding:0,margin:0,width:"100%",height:"100%","-moz-box-flex":"1"},".uiw-border":{$order:2,display:"block",position:"absolute",border:0,padding:0,margin:0,left:0,top:0,width:"100%",height:"100%"},".ui-dirty":{background:linb.UI.$bg("icons.gif"," no-repeat -290px -290px",true)},".ui-disabled, .ui-disabled *":{color:"#808080"},".ui-invalid, .ui-invalid *":{"background-color":"#FFEBCD"},"#linblangkey":{"vertical-align":"baseline"}})+linb.UI.buildCSSText({".uibg-base":{"background-color":"#fff"},".uibg-bar":{"background-color":"#aad2fa"},".uiborder-inset":{border:"solid 1px","border-color":"#648cb4 #c8e1fa #c8e1fa #648cb4"},".uiborder-outset":{border:"solid 1px","border-color":"#c8e1fa #648cb4 #648cb4 #c8e1fa"}})},$End:function(){linb.UI.$cache_css+=this.buildCSSText(this.$Appearances)},Static:{$cache_css:"",$css_tag_dirty:"ui-dirty",$css_tag_invalid:"ui-invalid",$tag_left:"{",$tag_right:"}",$tag_special:"#",$ID:"#id#",$DOMID:"#domid#",$CLS:"#cls#",$tag_subId:"_serialId",$childTag:"<!--{id}-->",$theme:"default",$ps:{left:1,top:1,width:1,height:1,right:1,bottom:1},_getChildren:function(A){return A.children},unserialize:function(C,D){if(typeof C=="string"){C=_.unserialize(str)}var B=function(E){if(_.isArr(E)){E=E[0]}delete E.serialId;if(E.children){_.arr.each(E.children,B)}},A=[];_.arr.each(C,function(E){if(!D){B(E)}A.push((new (linb.SC(E.key))(E)).get(0))});return this.pack(A,false)},_ensureValues:function(A){var B=[],F=0,D=0,G,E=this.KEY,C=linb.cache.dom;if(A["linb.absBox"]){A=A._nodes}for(;G=A[F++];){if((G.box&&G.box[E])||((G=C[G.domNode?G.domNode.id:G.id])&&G.box&&G.box[E])){B[D++]=G}}return B.length<=1?B:this._unique(B)},__gc:function(){var C=this,B=C.$key,A=linb.cache;_.breakO([A.template[B],A.domId[B],C._cache,C._idCache,C.$DataModel,C.$Templates,C.$Behaviors,C],2);delete linb.absBox.$type[B.replace("linb.UI.","")];Class.__gc(B)},_pickSerialId:function(){var A=linb.cache.domId[this.$key];if(A&&A[0]){return A.pop()}return this._ctrlId.next()},$bg:function(C,A,B){return function(D){var E=linb.ini.path+"appearance/default/"+(typeof B=="string"?B:B?"Public":(E=D.split("."))[E.length-1])+"/"+C;return"url("+E+") "+(A||"")}},$ieBg:function(B,A){return function(C){var D=linb.ini.path+"appearance/default/"+(typeof A=="string"?A:A?"Public":(D=C.split("."))[D.length-1])+"/"+B;return'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+D+'",sizingMethod="crop")'}},$doTemplate:function(E,I,H,O,P){var L=arguments.callee,N,K,D,M=H.constructor==Array,J=I[O||""],A=!P,P=P||[];if(M){if(typeof J!="function"){J=L}for(var G=0;K=H[G++];){J(E,I,K,O,P)}}else{if(K=H.object){P[P.length]=K.toHtml()}else{if(typeof J=="function"){J(E,I,H,O,P)}else{O=O?O+".":"";var C=J[0],B=J[1];for(var G=0,F=C.length;G<F;G++){if(D=B[G]){if(D in H){K=H[D];if(I[N=O+D]&&K){L(E,I,K,N,P)}else{P[P.length]=K}}}else{P[P.length]=C[G]}}}}}if(A){return P.join("")}},$buildTemplate:function(E,V,c,H,B){if(V&&String(V.tagName).toLowerCase()=="text"){B[B.length]=V.text;return }var L=arguments.callee,K=E.behavior?c?E.behavior[c]:E.behavior:null,Y=L.map1||(L.map1={tagName:1,text:1}),W=L.map2||(L.map2={image:1,input:1,br:1,meta:1,hr:1,abbr:1,embed:1}),Q=L.r2||(L.r2=/[a-z]/),P=L.r3||(L.r3=/^(on|before|after)/),M=L.r7||(L.r7=/([^{}]*)\{([\w]+)\}([^{}]*)/g),F=false,G=linb.UI,J,N,U,C;if(!V){V=E.template}C=c?E.keys[c]:E.key;if(!V.tagName){V.tagName="span"}if(V.id!==null){V.id=c?C+":"+G.$ID+":"+G.$tag_left+G.$tag_subId+G.$tag_right:G.$DOMID}else{delete V.id}if(V.className!==null){J=G.$CLS+(c?"-"+c.toLowerCase():"");U=V.className||"";V["class"]=J+" "+U+" "+(C==E.key?" ui-ctrl ":"")+G.$tag_special+(c||"KEY")+"_CC"+G.$tag_special}delete V.className;V.style=(V.style||"")+";"+G.$tag_special+(c||"KEY")+"_CS"+G.$tag_special;var T=[],S={},D=V.tagName,I=V.text,A=linb.absObj.$specialChars;for(var R in V){if(!V[R]){continue}if(!A[R.charAt(0)]&&!Y[R]){N=V[R];if(!Q.test(R)){if(typeof N=="object"){if(!N.$order){N.$order=0}N.$key=R;T[T.length]=N}}else{S[R]=N}}}T.sort(function(a,b){a=a.$order;b=b.$order;return a>b?1:a==b?0:-1});if(!B){F=true;B=[]}B[B.length]="<"+D+" ";for(var R in S){B[B.length]=R+'="'+S[R]+'" '}if(V.className!==null){V.className=U}delete V["class"];if(K&&(J=K.$eventhandler)){for(var R in J){if(J[R]){B[B.length]=R+'="'+J[R]+'" '}}}B[B.length]="{attributes}>";if(!W[D]&&I){B[B.length]=I}for(var R=0,O=T.length;R<O;){N=T[R++];L(E,N,N.$key,H,B)}if(!W[D]){B[B.length]="</"+D+">"}if(F){var Z=H[0],X=H[1];B.join("").replace(M,function(f,e,h,g){if(e){Z[Z.length]=e}X[Z.length]=Z[Z.length]=h;if(g){Z[Z.length]=g}return""})}},_rpt:function(E,B){var G=arguments.callee,A=linb.UI.$tag_special,F=G._r||(G._r=new RegExp(A+"([A-Z0-9]+)_C([SC])"+A+"|"+A+"([\\w_\\-\\.]*)"+A,"img")),D={id:E.serialId,cls:E.getClass("KEY"),domid:E.domId},C={S:E.CS,C:E.CC};return B.replace(F,function(I,H,K,J){return D[J]||C[K][H]||""})},_build:function(B,G){var I,L,C,J=linb.UI,K=[[],[]],M=this,H=M.KEY,A=linb.cache.template,F=B._hash="b:"+(B.template._subid||"")+";!"+(B._exhash||"");if(!(I=_.get(A,[H,F]))){J.$buildTemplate(B,null,null,K);_.set(A,[H,F,""],K);if(L=B.template.$dynamic){for(var E in L){if(typeof (C=L[E])!="function"){var K=[[],[]];for(var D in C){if(typeof C[D]=="object"){J.$buildTemplate(B,C[D],D,K)}}C=K}_.set(A,[H,F,E],C)}}I=_.get(A,[H,F])}if(!I){return""}return M._rpt(B,J.$doTemplate(B,I,G))},_setDefaultBehavior:function(G){var A=this,D=arguments.callee,F=D._m||(D._m={"":1,KEY:1,$key:1}),E=D._f1||(D._f1=function(I,K,L){var J=function(R,W,M){var Z,P=M.id,Y,X=R.getSubId(P),O=R.properties,N,V,U;if(O.disabled){return }Y=R.SubSerialIdMapItem&&R.SubSerialIdMapItem[X];if(Y&&Y.disabled){return }switch(typeof I){case"string":N=R.getSubNode(I,X).get();break;case"function":V=[I];break;case"object":N=[];V=[];for(var Q,T=0,S=I.length;T<S;T++){Q=I[T];if(typeof Q=="string"){N.push.apply(N,R.getSubNode(Q,X).get())}else{V.push(Q)}}}if(N&&N.length){N=linb(N);U=R.boxing();if(L==1){if(K=="mouseover"&&R.beforeHoverEffect){if(false==U.beforeHoverEffect(R,Y,W,M,"mouseover")){return }}if(K=="mousedown"&&R.beforeClickEffect){if(false==U.beforeClickEffect(R,Y,W,M,"mousedown")){return }}N.tagClass("-"+K)}else{if(K=="mouseup"){if(R.beforeClickEffect&&false==U.beforeClickEffect(R,Y,W,M,"mouseup")){return }N.tagClass("-mousedown",false)}else{if(R.beforeHoverEffect&&false==U.beforeHoverEffect(R,Y,W,M,"mouseout")){return }N.tagClass("(-mouseover|-mousedown)",false)}}N.length=0}if(V&&V.length){_.arr.each(V,function(a){_.tryF(a,[R],R)});V.length=0}};return J}),B={},C;if(!linb.SC.get("linb.absComposed")){Class("linb.absComposed","linb.absObj",{Instance:{addPanel:function(J,L,M){var N=_.copy(linb.UI.Panel.$DataStruct);_.merge(N,J,"with");_.merge(N,{dock:"fill",tag:J.tag||J.id},"all");var K=new linb.UI.Panel(N),I=[];this.append(K,M&&M.id);_.arr.each(L,function(O){I.push(O[0])});K.append(linb.UI.pack(I,false))},removePanel:function(){this.destroy()},getPanelPara:function(){return _.copy(this.get(0).properties)},getPanelChildren:function(){return this.get(0).children},e1:function(J,K,L,M,I){},e2:function(K,J,N,I,M,L,O){},e3:function(J,K,I,L){},e4:function(J,M,N,I,L,K){},e5:function(I,J,K){}},Static:{DataModel:{dragKey:"",dropKeys:""},$abstract:true}})}var H=linb.absComposed.prototype;if(G.HoverEffected){_.each(G.HoverEffected,function(J,I){C=F[I]?G:(G[I]||(G[I]={}));if(!J){C.afterMouseover=C.afterMouseout=null}else{C.afterMouseover=E(J,"mouseover",1);C.afterMouseout=E(J,"mouseout",2)}});B.beforeHoverEffect=H.e1}if(G.ClickEffected){_.each(G.ClickEffected,function(J,I){C=F[I]?G:(G[I]||(G[I]={}));if(!J){C.afterMousedown=C.afterMouseup=null}else{C.afterMousedown=E(J,"mousedown",1);C.afterMouseup=E(J,"mouseup",2)}});B.beforeClickEffect=H.e1}if(G.KeyHook){_.merge(G,{afterKeydown:function(J,K,L){if(J.onHotKeydown){var I=linb.Event.getKey(K);return false!==J.boxing().onHotKeydown(J,I[0],!!I[1],!!I[2],!!I[3],K,L)}},afterKeypress:function(J,K,L){if(J.onHotKeypress){var I=linb.Event.getKey(K);return false!==J.boxing().onHotKeypress(J,I[0],!!I[1],!!I[2],!!I[3],K,L)}},afterKeyup:function(J,K,L){if(J.onHotKeyup){var I=linb.Event.getKey(K);return false!==J.boxing().onHotKeyup(J,I[0],!!I[1],!!I[2],!!I[3],K,L)}}},"all");B.onHotKeydown=B.onHotKeypress=B.onHotKeyup=H.e2}if(G.NavKeys){_.each(G.NavKeys,function(J,L){var I=arguments.callee,K,Q=I.m1||(I.m1={KEY:1,$key:1});if(Q[L]){return }var O=I.m2||(I.m2={input:1,textarea:1}),N=I.m3||(I.m3={tab:1,enter:1,up:1,down:1,left:1,right:1}),M=I.m4||(I.m4={tab:1,up:1,down:1,left:1,right:1}),P=G[L]||(G[L]={});if(null===J){P.afterKeydown=null}else{P.afterKeydown=function(U,Y,R){var V=linb.Event.getKey(Y),a=V[0],T=V[2],X=V[3],Z=false;if(O[V=R.tagName.toLowerCase()]){if(N[a]){var S=linb([R]).caret(),W=R.value;switch(a){case"up":if(!/[\n\r]/.test(W.substr(0,S[0]))){Z=true}break;case"left":if(S[0]===0&&(S[1]!==W.length||S[1]===0)){Z=true}break;case"down":if(!/[\n\r]/.test(W.substr(S[1],W.length))){Z=true}break;case"right":if(S[1]===W.length&&(S[0]!==0||S[1]===0)){Z=true}break;default:if(V=="input"||X){Z=true}break;case"tab":Z=true;break}}}else{if(M[a]){Z=true}}if(Z){if(U.beforeNextFocus&&false===U.boxing().beforeNextFocus(U,a,!!T,Y)){return false}if(a!="tab"){linb(R).nextFocus(("up"==a||"left"==a)?false:true)}}}}});B.beforeNextFocus=H.e3}if((C=G.DropableKeys)&&C.length){_.arr.each(C,function(I){A._dropable(I)});C=A.prototype;_.arr.each("addPanel,removePanel,getPanelPara,getPanelChildren,getDropKeys,setDropKeys".split(","),function(I){if(!C[I]){C[I]=H[I]}});A.$DataModel.dropKeys=A.$DataStruct.dropKeys="";B.onDragEnter=B.onDragLeave=B.onDrop=B.onDropTest=B.onDropMarkShow=B.onDropMarkClear=H.e4}if((C=G.DragableKeys)&&C.length){_.arr.each(C,function(I){A._dragable(I)});C=A.prototype;_.arr.each("getDragKey,setDragKey".split(","),function(I){if(!C[I]){C[I]=H[I]}});A.$DataModel.dragKey=A.$DataStruct.dragKey="";B.onStartDrag=B.onDragStop=H.e5}A.setEventHandlers(B)},addTemplateKeys:function(A){var B=this,C=B.KEY,E=arguments.callee,D=E._reg||(E._reg=/\./g);_.arr.each(A,function(F){B.$cssKeys[F]=(B.$Keys[F]=F=="KEY"?C:C+"-"+F).replace(D,"-").toLowerCase().replace("linb-ui","linb")});return B},getTheme:function(){return this.$theme},setTheme:function(A){A=A||"default";if(A!=this.$theme){if(A!="default"){linb.CSS.includeLink(linb.getPath("linb.appearance."+A,"/theme.css"),"theme:"+A)}var B=linb.CSS.get("id","theme:"+this.$theme);if(B){B.disabled=true;linb(B).remove(false)}this.$theme=A}return this},setAppearance:function(A){_.merge(this.$Appearances,A,"all");return this},getAppearance:function(){return this.$Appearances},setTemplate:function(D,K){if(D){var J=this,G=arguments.callee,A=G.r2||(G.r2=/[a-z]/),F=linb.absObj.$specialChars,E=["KEY"],H=G._fun||(G._fun=function(N,L){var O,M;for(M in N){if(!F[M.charAt(0)]){if(!A.test(M)){L[L.length]=M;O=N[M];if(typeof O=="object"){arguments.callee(O,L)}}}}}),I;H(D,E);J.addTemplateKeys(E);I=J.$Templates;if(typeof K=="string"){D._subid=K;I[K]=D}else{I._=D}if(I=D.$dynamic){for(var C in I){for(var B in I[C]){G.call(J,I[C],B)}}}}return this},getTemplate:function(A){return this.$Templates[A||"_"]},setBehavior:function(I){if(I){var P=this,B=linb.absObj.$specialChars,O=linb.Event.$EVENTHANDLER,L="$eventhandler",A=linb.Event._getEventType,K=arguments.callee,E=K.r1||(K.r1=/[a-z]/),D=K.r2||(K.r2=/^(on|before|after)/),N=P.$Behaviors,F,H,G,C,M,J;P._setDefaultBehavior(I);if(I.KEY){_.merge(I,I.KEY,"all");delete I.KEY}for(H in I){C=I[H];if(!B[H.charAt(0)]){if(!E.test(H)){F=N[H]||(N[H]={});for(G in C){M=C[G];if(!B[G.charAt(0)]){J=A(G);if(M){F[G]=M;(F[L]||(F[L]={}))["on"+J]=O}else{delete F[G];if(N[L]){delete N[L]["on"+J]}}}}}else{if(D.test(H)){J=A(H);if(C){N[H]=C;(N[L]||(N[L]={}))["on"+J]=O}else{delete N[H];if(N[L]){delete N[L]["on"+J]}}}else{N[H]=C}}}}}return P},getBehavior:function(){return this.$Behaviors},$applyCSS:function(){var B=linb.UI,A=B.$cache_css;if(A){if(!B.$cssNo){B.$cssNo=1}linb.CSS.addStyleSheet(A,"linb.UI-CSS"+(B.$cssNo++));B.$cache_css=""}},buildCSSText:function(I){var Q=this,M=arguments.callee,D=M._r1||(M._r1=/(^|\s|,)([0-9A-Z_]+)/g),J=[],A=[],K=linb.browser,F=K.ie6,B=K.ie,L=K.gek,N=Q.$cssKeys,P,O,C;for(var H in I){C=I[H];P=H.replace(D,function(S,R,T){return R+"."+(N[T]||T)}).toLowerCase();C.$order=parseInt(C.$order)||0;C.$=P;J[J.length]=C}J.sort(function(R,S){R=R.$order;S=S.$order;return R>S?1:R==S?0:-1});for(var H=0,E=J.length;H<E;){C=J[H++];A[A.length]=C.$+"{";if(P=C.$before){A[A.length]=P}if(P=C.$text){A[A.length]=P}for(var G in C){switch(G.charAt(0)){case"$":continue;break;case"_":if(!F){continue}break;case"*":if(!B){continue}break;case"-":if(!L){continue}break}if((O=C[G])||C[G]===0){switch(typeof O){case"string":case"number":A[A.length]=G+":"+O+";";break;case"function":A[A.length]=G+":"+O(Q.KEY)+";";break;default:_.arr.each(O,function(R){if(R){A[A.length]=G+":"+R+";"}})}}}if(O=C.$after){A[A.length]=O}A[A.length]="}"}return A.join("")},_dropable:function(D){var B=this,C=linb.Event.$EVENTHANDLER2,E=B.$Behaviors,A=D=="KEY"?E:(E[D]||(E[D]={}));_.merge(A,{beforeMouseover:function(H,K,F){if(H.properties.disabled||H.properties.readonly){return }var Q=this,N=linb.DragDrop,G=N.getProfile(),M=G.dragKey,I=G.dragData,P,J,O,L;if(!M||!I||!(new RegExp("\\b"+M+"\\b")).test(H.box.getDropKeys(H,Q))){return }J=H.boxing();if(J.getItemByDom){P=J.getItemByDom(F)}L=[H,K,Q,M,I,P];if((O=H.onDropTest)&&(false===J.onDropTest.apply(J,L))){return }if((O=H.box._onDropTest)&&(false===O.apply(H.host||H,L))){return }N.setDropElement(F);if(H.onDropMarkShow&&(false===J.onDropMarkShow.apply(J,L))){}else{if((O=H.box._onDropMarkShow)&&(false===O.apply(H.host||H,L))){}else{_.resetRun("setDropFace",N.setDropFace,0,[Q],N)}}if(O=H.box._onDragEnter){O.apply(H.host||H,L)}if(H.onDragEnter){J.onDragEnter.apply(J,L)}},beforeMouseout:function(H,K,F){if(H.properties.disabled||H.properties.readonly){return }var P=this,N=linb.DragDrop,G=N.getProfile(),M=G.dragKey,I=G.dragData,O,J,L;if(G.dropElement==F.id){J=H.boxing();if(J.getItemByDom){O=J.getItemByDom(F)}L=[H,K,P,M,I,O];if(H.onDropMarkClear&&(false===J.onDropMarkClear.apply(J,L))){}else{if((t=H.box._onDropMarkClear)&&(false===t.apply(H.host||H,L))){}else{_.resetRun("setDropFace",N.setDropFace,0,[null],linb.DragDrop)}}if(t=H.box._onDragLeave){t.apply(H.host||H,L)}if(H.onDragLeave){J.onDragLeave.apply(J,L)}N.setDropElement(null)}},beforeDrop:function(H,K,F){var Q=this,N=linb.DragDrop,G=N.getProfile(),M=G.dragKey,I=G.dragData,P,O,L,J=H.boxing();if(J.getItemByDom){P=J.getItemByDom(F)}L=[H,K,Q,M,I,P];if(H.onDropMarkClear&&(false===J.onDropMarkClear.apply(J,L))){}else{if((O=H.box._onDropMarkClear)&&(false===O.apply(H.host||H,L))){}}if(H.onDrop&&(false===J.onDrop.apply(J,L))){}else{if((O=H.box._onDrop)&&(false===O.apply(H.host||H,L))){}}}},"all");_.merge(A.$eventhandler||(A.$eventhandler={}),{onmouseover:C,onmouseout:C,ondrop:C});return B},_dragable:function(D){var B=this,C=linb.Event.$EVENTHANDLER2,E=B.$Behaviors,A=D=="KEY"?E:(E[D]||(E[D]={}));_.merge(A,{beforeMousedown:function(H,J,K){if(H.properties.disabled){return }if(!H.properties.dragKey){return }var L=linb.Event.getPos(J),I=H.boxing(),F=[H,J,K],G;if(H.onStartDrag&&(false===I.onStartDrag.apply(I,F))){}else{if((G=H.box._onStartDrag)&&(false===G.apply(H.host||H,F))){}else{linb([K]).startDrag(J,{dragType:"icon",targetLeft:L.left+12,targetTop:L.top+12,dragCursor:"pointer",dragDefer:1,dragKey:H.box.getDragKey(H,this),dragData:H.box.getDragData(H,this)})}}},beforeDragbegin:function(F,G,H){linb(H).onMouseout(true,{$force:true}).onMouseup(true)},beforeDragstop:function(G,H,I){var F;if(G.onDragStop){G.boxing().onDragStop(G.e,I)}if(F=G.box._onDragStop){F.apply(G.host||G,arguments)}}},"all");_.merge(A.$eventhandler||(A.$eventhandler={}),{onmousedown:C,ondragbegin:C});return B},adjustData:function(D,G,C){if(!C){C={}}var B,H,A=linb.wrapRes,F=arguments.callee,E=F._r||(F._r=/\B\$([\w]+[\.][\w\.]+[\w])/g);for(B in G){if(B.charAt(0)=="$"){continue}if(!(B in C)){C[B]=typeof (H=G[B])=="string"?(((H.indexOf("$")!=-1)?(H=H.replace(E,function(J,I){return A(I)})):H)&&((H.charAt(0)=="@")?(linb.SC.get(H.substr(1,H.length))||H):H)):H}}if((typeof (H=C.renderer)=="function")||(typeof (H=G.renderer)=="function")){C.caption=H(G,C,D)}if("disabled" in G){C.disabled=G.disabled?"ui-disabled":""}C.iconDisplay=G.image?"":"display:none";return C},cacheData:function(A,B){_.set(linb.cache,["UIDATA",A],B);return this},getCachedData:function(A){var B=_.get(linb.cache,["UIDATA",A]);if(typeof B=="function"){B=B()}return _.clone(B)},Behaviors:{onContextmenu:function(A,B,C){return A.boxing().onContextmenu(A,B,C)!==false}},DataModel:{tag:"",tagVar:{ini:{}},disabled:{ini:false,action:function(A){this.root.css("opacity",A?0.5:1)}},dock:{ini:"none",listbox:["none","top","bottom","left","right","center","middle","origin","width","height","fill","cover"],action:function(B){var A=this;if(A.domNode){linb.UI.$dock(A,true)}}},dockIgnore:{ini:false,action:function(B){var A=this;if(!B&&A.domNode&&A.properties.dock!="none"){linb.UI.$dock(A,true,true)}}},dockOrder:{ini:1,action:function(B){var A=this;if(A.domNode&&A.properties.dock!="none"){linb.UI.$dock(A,true,true)}}},dockMargin:{ini:{left:0,top:0,right:0,bottom:0},action:function(B){var A=this;if(A.domNode&&A.properties.dock!="none"){linb.UI.$dock(A,true,true)}}},dockFloat:{ini:false,action:function(B){var A=this;if(A.domNode&&A.properties.dock!="none"){linb.UI.$dock(A,true,true)}}},dockMinW:0,dockMinH:0,tips:""},EventHandlers:{onRender:function(A){},onLayout:function(A){},onDestroy:function(A){},beforeDestroy:function(A){},onShowTips:function(A,B,C){},onContextmenu:function(A,C,B){}},RenderTrigger:function(){var B=this,A=B.boxing(),E=B.properties;if(B.box._onresize){var D=B.domNode.style,C;if((C=D.visibility)!="hidden"){B._$v=C;D.visibility="hidden"}linb.UI.$tryResize(B,E.width,E.height)}if(E.disabled){A.setDisabled(true,true)}B.inValid=1;B.rendered=true;if(B.onRender){A.onRender(B)}},$tryResize:function(G,A,F,D,H){var E=G.box,C=E._onresize,B=G.$rs_args;if(C&&(A||F)){if(!B){B=G.$rs_args=[G,null,null];_.asyRun(G.$resizeFun=function(){delete G.$rs_args;delete G.$resizeFun;if(!linb.Dom.byId(G.domId)){return }C.apply(E,B);var I=G.domNode.style;if("_$v" in G){if(I.visibility!="visible"){I.visibility=G._$v}delete G._$v}})}if(A){B[1]=A}if(F){B[2]=F}B[3]=D}if(H){_.tryF(G.$resizeFun)}},LayoutTrigger:function(){var B=this,A=B.boxing(),D=B.properties;if(D.dock&&D.dock!="none"){if(!B.$laidout){B.$laidout=1;var C=B.domNode.style;switch(D.dock){case"top":case"bottom":case"width":C.width=0;break;case"left":case"right":case"height":C.height=0;break;default:C.width=C.height=0}}linb.UI.$dock(this,true)}if(B.onLayout){A.onLayout(B)}},$dock:function(G,M,D){var B=G.properties,I=B.dockMargin,F=G.root,O=B.dock||"none",C=F.parent(),Q="auto",J=C.id(),E=function(R,S){R=parseInt(R.properties.dockOrder)||0;S=parseInt(S.properties.dockOrder)||0;return R>S?1:R==S?0:-1},L=false,N,A="$inMatix",K,P,H=function(R){return linb.browser.ie6?R-R%2:R};if(J&&_.str.startWith(J,linb.Dom._matixid)){return }if(G.$dockParent!=J||G.$dockType!=O||D){G.$dockParent=J;G.$dockType=O;G.unLink("$dock");G.unLink("$dock1");G.unLink("$dock2");switch(O){case"middle":N={right:Q,bottom:Q,left:B.left||"",width:B.width||"",height:B.height||""};break;case"center":N={right:Q,bottom:Q,top:B.top||"",width:B.width||"",height:B.height||""};break;case"origin":N={right:Q,bottom:Q,width:B.width||"",height:B.height||""};break;case"top":N={left:I.left,right:I.right,bottom:Q,height:B.height||""};break;case"bottom":N={left:I.left,right:I.right,top:Q,height:B.height||""};break;case"left":N={right:Q,width:B.width||""};break;case"right":N={left:Q,width:B.width||""};break;case"width":N={bottom:Q,height:B.height||"",top:B.top||""};break;case"height":N={right:Q,width:B.width||"",left:B.left||""};break;case"fill":case"cover":N={right:Q,bottom:Q};break;case"none":N={left:B.left,top:B.top,width:B.width||"",height:B.height||""};break}F.cssRegion(N,true);if(C.get(0)===document.body){C=linb.win;L=true;if(L&&!linb.cache._resizeTime){linb.cache._resizeTime=1}}if(O!="none"){K=C.$getEvent("onSize","dock");if(!K){K=function(T,f){var d=arguments.callee,R=d.map||(d.map={middle:1,center:1}),Z=d.arr,a=d.rePos,V=d.node,S=V.get(0).style,b=d.win,Y,X,W,U,e,c;if(f.$dockid||!b||(_()-linb.cache._resizeTime>100)){Y={left:0,top:0,right:0,bottom:0,width:parseInt(S&&S.width)||V.width(),height:parseInt(S&&S.height)||V.height()};for(W=0;e=Z[W++];){c=d[e];if(c.length){if(!R[e]){f.width=f.height=1}for(X=0;U=c[X++];){if(!U.properties.dockIgnore){a(U,Y,e,f.$dockid,b||f.width,b||f.height)}}}}if(Y.later){_.each(Y.later,function(h){try{h.node.cssRegion(h,true)}catch(g){_.asyRun(function(){h.width+=1;h.height+=1;h.node.cssRegion(h,true)})}})}if(b){linb.cache._resizeTime=_()}}};K.node=C;K.arr=["top","bottom","left","right","center","middle","width","height"];_.arr.each(K.arr,function(R){K[R]=[]});K.win=L;K.rePos=function(S,a,e,d,Z,j){var i=false;if(d&&S.$id!=d){i=true}var R=S.properties,g=R.dockFloat,c=R.dockMargin,f=S.root,k=S.domNode.style,U,b,m,W,l,V,Y=parseInt(R._dockBorderWidth)||0,X=parseInt(R._dockBorderHeight)||0,T={};switch(e){case"middle":f.top((a.height-f.height())/2);break;case"center":f.left((a.width-f.width())/2);break;case"top":if(!i){U=c.left;m=c.right;b=(g?0:a.top)+c.top;if(parseFloat(k.top)!=b){T.top=b}l=a.width-U-m-Y;if(parseFloat(k.width)!=l){T.width=H(l)}if(!_.isEmpty(T)){f.cssRegion(T,true)}}if(!g){a.top+=(f.offsetHeight()+c.top+c.bottom)}break;case"bottom":if(!i){U=c.left;m=c.right;W=(g?0:a.bottom)+c.bottom;if(parseFloat(k.bottom)!=W){T.bottom=W}l=a.width-U-m-Y;if(parseFloat(k.width)!=l){T.width=H(l)}if(!_.isEmpty(T)){f.cssRegion(T,true)}}if(!g){a.bottom+=(f.offsetHeight()+c.top+c.bottom)}break;case"left":if(!i){U=(g?0:a.left)+c.left;b=(g?0:a.top)+c.top;W=(g?0:a.bottom)+c.bottom;if(parseFloat(k.left)!=U){T.left=U}if(parseFloat(k.top)!=b){T.top=b}l=a.height-b-W-X;if(parseFloat(k.height)!=l){T.height=H(l)}if(!_.isEmpty(T)){f.cssRegion(T,true)}}if(!g){a.left+=(f.offsetWidth()+c.left+c.right)}break;case"right":if(!i){m=(g?0:a.right)+c.right;b=(g?0:a.top)+c.top;W=(g?0:a.bottom)+c.bottom;if(parseFloat(k.right)!=m){T.right=m}if(parseFloat(k.top)!=b){T.top=b}l=a.height-b-W-X;if(parseFloat(k.height)!=l){T.height=H(l)}if(!_.isEmpty(T)){f.cssRegion(T,true)}}if(!g){a.right+=(f.offsetWidth()+c.left+c.right)}break;case"width":if(!Z){return }U=(R.dock=="cover"?0:(g?0:a.left))+c.left;m=(R.dock=="cover"?0:(g?0:a.right))+c.right;b=R.dock=="width"?(parseInt(R.top)||0):((R.dock=="cover"?0:(g?0:a.top))+c.top);l=a.width-U-m-Y;a.later=a.later||{};a.later[S.$id]=a.later[S.$id]||{};_.merge(a.later[S.$id],{node:f,width:H(R.dockMinW?Math.max(R.dockMinW,l):l),left:U,top:b},"all");break;case"height":if(!j){return }b=(R.dock=="cover"?0:(g?0:a.top))+c.top;W=(R.dock=="cover"?0:(g?0:a.bottom))+c.bottom;U=R.dock=="height"?(parseInt(R.left)||0):((R.dock=="cover"?0:(g?0:a.left))+c.left);l=a.height-b-W-X;a.later=a.later||{};a.later[S.$id]=a.later[S.$id]||{};_.merge(a.later[S.$id],{node:f,height:H(R.dockMinH?Math.max(R.dockMinH,l):l),left:U,top:b},"all");break}};C.onSize(K,"dock")}if(O=="fill"||O=="cover"){G.link(K.height,"$dock1");G.link(K.width,"$dock2");K.height.sort(E);K.width.sort(E)}else{if(O=="origin"){G.link(K.center,"$dock1");G.link(K.middle,"$dock2")}else{G.link(K[O],"$dock");K[O].sort(E)}}linb.cache._resizeTime=1;G.$dock=K}}if(O!="none"&&M){G.$dock(G,{width:1,height:1,$dockid:_.arr.indexOf(["width","height","fill","cover"],O)!=-1?G.$id:null,$type:O})}},_beforeSerialized:function(D){var E=D.boxing(),A,C,G={};_.merge(G,D,"all");var F=G.properties=_.copy(D.properties);switch(F.dock){case"top":case"bottom":delete F.width;delete F.left;delete F.top;delete F.right;delete F.bottom;break;case"left":case"right":delete F.height;delete F.left;delete F.top;delete F.right;delete F.bottom;break;case"width":delete F.width;delete F.left;delete F.right;break;case"height":delete F.height;delete F.top;delete F.bottom;break;case"fill":case"cover":delete F.width;delete F.height;delete F.left;delete F.top;delete F.right;delete F.bottom;break}for(var B in linb.UI.$ps){if((B in F)&&typeof F[B]!="number"&&F[B]!=""&&F[B]!="auto"){F[B]=isNaN(F[B]=parseFloat(F[B]))?"auto":F[B]}}if(F.items&&F.items.length){C=linb.absObj.$specialChars;F.items=_.clone(F.items,function(I,H){return !C[(H+"").charAt(0)]&&I!=undefined})}if(_.isEmpty(F.tagVar)){delete F.tagVar}if((C=F.dockMargin)&&!C.left&&!C.top&&!C.right&&!C.bottom){delete F.dockMargin}if(F.items&&(F.items.length==0||F.listKey)){delete F.items}return G},getDropKeys:function(A,B){return A.properties.dropKeys},getDragKey:function(A,B){return A.properties.dragKey},getDragData:function(A,B){return{profile:A,domId:B.id}},_prepareData:function(C,F){var A=C.properties,G=this.$DataModel,H=arguments.callee,B=H.map||(H.map=_.toArr("left,top,bottom,right,width,height")),I=[],J=linb.UI.adjustData,K;F=F||{};if(A.id){delete A.id}if("caption" in G&&A.caption!==null){A.caption=A.caption===undefined?C.alias:A.caption}if("$hborder" in G){F.bWidth=A.width-(A.$hborder||0)*2}if("$vborder" in G){F.bHeight=A.height-(A.$vborder||0)*2}for(var D=0,E;E=B[D];D++){if(A[E]||A[E]===0){if(String(parseFloat(A[E]))==String(A[E])){I[I.length]=E+":"+(parseInt(A[E])||0)+"px"}else{if(A[E]!="auto"&&A[E]){I[I.length]=E+":"+A[E]}}}}if(A.position){I[I.length]="position:"+A.position}if(A.visibility){I[I.length]="visibility:"+A.visibility}if(A.zIndex){I[I.length]="z-index:"+A.zIndex}if(A.display){I[I.length]="display:"+(A.display=="inline-block"?linb.browser.gek?"-moz-inline-block;display:-moz-inline-box;display:inline-block;":"inline-block":A.display)}F._style=";"+I.join(";")+";";if("href" in G){F.href=A.href||linb.$href}if("tabindex" in G){F.tabindex=A.tabindex||"-1"}if("items" in G){C.ItemIdMapSubSerialId={};C.SubSerialIdMapItem={};F.items=this._prepareItems(C,A.items)}F=J(C,A,F);C.prepared=true;return F},_prepareItems:function(D,K,J,F,H){var O=[],N,A,M,C=linb.UI.$tag_subId,B,G=D.properties.tabindex,L=linb.UI.adjustData;for(var I=0,E=K.length;I<E;I++){if(typeof K[I]!="object"){K[I]={id:K[I]}}N=K[I];if(!("caption" in N)){N.caption=N.id}A={id:N.id};if(J){A._pid=J}B=A[C]=typeof H=="string"?H:D.pickSubId("items");if(false!==F){D.ItemIdMapSubSerialId[N.id]=B;D.SubSerialIdMapItem[B]=N}if(M=N.object){M=A.object=M["linb.absBox"]?M.get(0):M;if(M["linb.UIProfile"]){M.properties.position="relative"}N.$id=M.$id;M.$item=N;M.$holder=D;if(!D.$attached){D.$attached=[]}D.$attached.push(M)}else{A._tabindex=G;L(D,N,A);if(this._prepareItem){this._prepareItem(D,A,N,J,F,H)}}O.push(A)}return O},_showTips:function(A,B,C){if(A.onShowTips){return A.boxing().onShowTips(A,B,C)}}}});Class("linb.absList","linb.absObj",{Instance:{activate:function(){var B=this.get(0),A=B.getSubNode("ITEM",true);if(!A.isEmpty()){A.focus()}return this},insertItems:function(F,B,J){if(!F||!F.length){return }var C,H,G,A,D,E,I=this._afterInsertItems;return this.each(function(L){E=L.box;H=L.properties.items;G=_.arr.subIndexOf(H,"id",B);if(L.domNode){D=E._prepareItems(L,F,B);var K=L.buildItems("items",D);if(G==-1){C=L.getSubNode(E.ITEMSKEY||L.keys.ITEMS||L.keys.KEY);if(typeof J=="boolean"){A=_.str.toDom(K);if(J){C.prepend(A)}else{C.append(A)}}else{C.html(K)}}else{A=_.str.toDom(K);C=L.getSubNodeByItemId(E.ITEMKEY||"ITEM",B);if(J===true){C.addPrev(A)}else{C.addNext(A)}}if(I){L.boxing()._afterInsertItems(L,D,B,J)}}if(G==-1){H.push.apply(H,F)}else{_.arr.insertAny(H,F,J?G:G+1)}})},removeItems:function(B,D){if(!(B instanceof Array)){B=[B]}var E,C,A=this._afterRemoveItems;remove=function(I,F,K,H,J){var G=arguments.callee;if(!H){H=linb()}_.filter(F,function(O){var N,L;if(J||(L=(_.arr.indexOf(K,O.id)!=-1))){if(I.domNode){if(N=I.ItemIdMapSubSerialId[O.id]){delete I.SubSerialIdMapItem[N];delete I.ItemIdMapSubSerialId[O.id];I.reclaimSubId(N,"items");if(!J){if(!(E=I.getSubNode(I.keys[D]?D:"ITEM",N)).isEmpty()){H.merge(E)}if(O.$id){H.get().push(linb.getObject(O.$id).getRootNode())}}}}}if(O.sub){G(I,O.sub,K,H,J||L)}if(L){for(var M in O){O[M]=null}return false}});H.remove()};return this.each(function(F){var G=F.properties;remove(F,G.items,B);if(C=G.$UIvalue){if((C=C.split(";")).length>1){_.filter(C,function(H){return _.arr.indexOf(B,H)==-1});G.$UIvalue=C.join(";")}else{if(_.arr.indexOf(B,G.$UIvalue)!=-1){G.$UIvalue=null}}}if(A&&F.domNode){F.boxing()._afterRemoveItems(F,B)}})},clearItems:function(A){return this.each(function(B){if(!B.SubSerialIdMapItem){return }B.getSubNode(B.keys[A]||B.keys.ITEMS||"KEY",true).empty();_.each(B.SubSerialIdMapItem,function(D,C){B.reclaimSubId(C,"items")});B.properties.items.length=0;B.SubSerialIdMapItem={};B.ItemIdMapSubSerialId={}})},updateItem:function(B,L){var K=this,D=K.get(0),F=D.box,G=D.properties.items,H=D.queryItems(G,function(M){return typeof M=="object"?M.id===B:M==B},true,true,true),J,E,C,A,I;if(typeof L=="string"){L={caption:L}}if(H.length){H=H[0];if(typeof H[0]!="object"){J=H[2][H[1]]={id:H[0]}}else{J=H[0]}_.merge(J,L,"all");J.id=B;E=_.get(D,["ItemIdMapSubSerialId",B]);arr=F._prepareItems(D,[J],J._pid,false,E);C=D.getSubNodeByItemId("ITEM",B);if(!C.isEmpty()){if(L.sub){delete J._created;delete J._checked}else{if(J.sub){A=D.getSubNodeByItemId("SUB",B)}}C.outerHTML(D.buildItems(arguments[2]||"items",arr));if(A&&!A.isEmpty()){if(!(I=D.getSubNodeByItemId("SUB",B)).isEmpty()){I.replace(A)}}}}return K},fireItemClickEvent:function(A){this.getSubNodeByItemId("ITEM",A).onClick();return this}},Initialize:function(){var A=this.prototype;_.arr.each(_.toArr("getItemByItemId,getItemByDom,getSubIdByItemId,getSubNodeByItemId"),function(B){A[B]=function(){var C=this.get(0);return C[B].apply(C,arguments)};Class._fun(A[B],B,A.KEY)})},Static:{$abstract:true,DataModel:{listKey:{set:function(B,A){return this.each(function(D){if(D.properties.listKey!=B||A){var C=D.box.getCachedData(B);if(C){D.boxing().setItems(C)}else{D.boxing().setItems(D.properties.items)}D.properties.listKey=B}})}},items:{ini:[],set:function(A){return this.each(function(B){if(B.domNode){B.boxing().clearItems().insertItems(A)}B.properties.items=A})}}},_showTips:function(C,E,H){if(C.onShowTips){return C.boxing().onShowTips(C,E,H)}if(!linb.Tips){return }var B=C.properties,G=E.id,A=C.getSubId(G),F=C.SubSerialIdMapItem,D=F&&F[A];if(B.disabled){return }if(D&&D.disabled){return }if(D&&D.tips){linb.Tips.show(H,D);return true}else{return false}}}});Class("linb.absValue","linb.absObj",{Instance:{_getCtrlValue:function(){return this.getUIValue()},_setCtrlValue:function(A){return this},_setDirtyMark:function(){return this},getValue:function(){return this.get(0).properties.value},getUIValue:function(){return this.get(0).properties.$UIvalue},resetValue:function(B){var A=this;A.each(function(C){var D;if(typeof (D=C.box._ensureValue)=="function"){B=D.call(C.box,C,B)}C.boxing()._setCtrlValue(C.properties.$UIvalue=C.properties.value=B);if(typeof (D=C.$onValueSet)=="function"){D.call(C,B)}C.inValid=1});A._setDirtyMark();return A},setUIValue:function(C,B){var A=this;this.each(function(D){var H=D.properties,F,G=H.$UIvalue,E=D.boxing();if(G!==C||B){if(false===D.box._checkValid(D,C)||(D.beforeUIValueSet&&false===(F=E.beforeUIValueSet(D,G,C)))){return }if(F!==undefined){C=F}if(typeof (F=D.box._ensureValue)=="function"){C=F.call(D.box,D,C)}if(typeof (F=D.$onValueUpdated)=="function"){F.call(D,C)}if(D.domNode){E._setCtrlValue(C)}H.$UIvalue=C;if(D.domNode){E._setDirtyMark()}if(D.afterUIValueSet){E.afterUIValueSet(D,G,C)}}});return this},updateValue:function(){this.each(function(A){var B=A.properties;if(A.boxing().checkValid()){B.value=B.$UIvalue}});return this._setDirtyMark()},isDirtied:function(){var A=this.get(0).properties;return A.value!==A.$UIvalue},checkValid:function(){var A=true;this.each(function(B){var C=B.properties;A=B.box._checkValid(B,C.$UIvalue)&&A;if(B.domNode){B.boxing()._setDirtyMark()}});return A}},Static:{$abstract:true,DataModel:{dataBinder:{combobox:function(){return _.toArr(linb.DataBinder._pool,true)},set:function(D,A){var C,B;return this.each(function(F){var G=F.properties,E=G.dataBinder;if(E==D&&!A){return }if(E){linb.DataBinder._unBind(E,F)}G.dataBinder=D;linb.DataBinder._bind(D,F)})}},dataField:"",value:{ini:null,set:function(B,A){this.each(function(D){var H=D.properties,F,G=H.value,E=D.boxing(),C=B;if(G!==C||A){if(D.box._checkValid(D,C)===false){return }if(D.beforeValueSet&&false===(F=E.beforeValueSet(D,G,C))){return }if(F!==undefined){C=F}if(typeof (F=D.box._ensureValue)=="function"){C=F.call(D.box,D,C)}if(typeof (F=D.$onValueSet)=="function"){F.call(D,C)}if(D.domNode){E._setCtrlValue(C)}H.value=H.$UIvalue=C;D.inValid=1;if(D.domNode){E._setDirtyMark()}if(D.afterValueSet){E.afterValueSet(D,G,C)}}});return this}},dirtyMark:true},EventHandlers:{beforeValueSet:function(B,A,C){},afterValueSet:function(B,A,C){},beforeUIValueSet:function(B,A,C){},afterUIValueSet:function(B,A,C){},beforeDirtyMark:function(B,A){}},RenderTrigger:function(){var B=this,A=B.boxing(),E=B.properties,C,D;E.$UIvalue=E.value;if(E.value!==undefined){D=E.value;if(typeof (C=B.box._ensureValue)=="function"){D=C.call(B.box,B,D)}A._setCtrlValue(D)}if(C=E.dataBinder){A.setDataBinder(C,true)}if(C=E.dataField){A.setDataField(C)}},_checkValid:function(A,B){return true}}});new function(){var A="linb.UI";Class(A+".Widget",A,{Static:{Appearances:{KEY:{"font-size":linb.browser.ie?0:null,"line-height":linb.browser.ie?0:null}},Templates:{className:"uiw-shell ",style:"{_style}",FRAME:{className:"uiw-frame ",BORDER:{style:"width:{bWidth}px;height:{bHeight}px;",className:"uiw-border"}}},Behaviors:{KeyHook:true,onSize:function(E,F){var D=E.domNode.style,B=null,C=null;if(F.width){B=parseInt(D.width)||B}if(F.height){C=parseInt(D.height)||C}linb.UI.$tryResize(E,B,C)}},DataModel:{width:100,height:100,$hborder:0,$vborder:0},RenderTrigger:function(){var B=this,C=B.properties,D=B.boxing();_.asyRun(function(){if(!linb.Dom.byId(B.domId)){return }if((!B.$noB)&&C.border&&D._border){D._border()}if((!B.$noR)&&C.resizer&&D.setResizer){D.setResizer(C.resizer,true)}if((!B.$noS)&&C.shadow&&D._shadow){D._shadow()}})},_onresize:function(G,F,B){var I=G.getSubNode("BORDER"),E=G.properties,D,H=null,C=null;if(null!==F){F-=(E.$hborder||0)*2;if(linb.browser.ie6){F=(parseInt(F/2))*2}H=F}if(null!==B){B-=(E.$vborder||0)*2;if(linb.browser.ie6){B=(parseInt(B/2))*2}C=B;if(linb.browser.ie6&&null===F){I.ieRemedy()}}D={width:H,height:C};I.cssSize(D);return D}}});Class(A+".Link",A,{Static:{Appearances:{KEY:{"font-size":linb.browser.ie?"12px":null,"line-height":linb.browser.ie?"14px":null}},Templates:{tagName:"a",style:"{_style}",href:"{href}",target:"{target}",tabindex:"{tabindex}",text:"{caption}"},Behaviors:{onClick:function(B,D,E){var C;if(!B.properties.disabled&&B.onClick){C=B.boxing().onClick(B,D,E)}return C!==undefined?C:false}},DataModel:{caption:{ini:undefined,action:function(B){this.root.get(0).innerHTML=B}},href:{ini:linb.$href,action:function(B){if(this.domNode){this.root.attr("href",B)}}},target:{action:function(B){if(this.domNode){this.root.attr("target",B)}}}},EventHandlers:{onClick:function(B,C){}}}});Class(A+".Div",A,{Static:{Appearances:{KEY:{outline:linb.browser.gek?"none":null,zoom:linb.browser.ie6?"1":null,background:linb.browser.ie?"url("+linb.ini.file_bg+") no-repeat left top":null}},Templates:{tagName:"div",style:"{_style}",tabindex:"-1",text:"{html}"+linb.UI.$childTag

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -