ap.org.eclipse.rap.rwt.4.1.0.source-code.client.js Maven / Gradle / Ivy
(function(_){rwt={define:function(d,c){var g=d.split(".");var f=window;var b=g[0];for(var e=0,a=g.length-1;e4){throw new Error("Invalid number of arguments!")}var a=rwt.util.Arrays.copy(c);if(b===1){a[1]=a[2]=a[3]=a[0]}else{if(b===2){a[2]=a[0];a[3]=a[1]}else{if(b===3){a[3]=a[1]}}}return a},contains:function(a,b){return a.indexOf(b)!=-1},copy:function(a){return a.concat()},getFirst:function(a){return a[0]},getLast:function(a){return a[a.length-1]},insertAt:function(a,c,b){a.splice(b,0,c);return a},removeAt:function(a,b){return a.splice(b,1)[0]},remove:function(a,c){var b=a.indexOf(c);if(b!=-1){a.splice(b,1);return c}}};
namespace(_[141]);(function(){var a=!({toString:null}).propertyIsEnumerable(_[312]);var b=["isPrototypeOf","hasOwnProperty","toLocaleString",_[312],"valueOf","constructor"];rwt.util.Objects={copy:function(d){var e={};for(var c in d){e[c]=d[c]}return e},fromArray:function(f){var e={};for(var d=0,c=f.length;da&&bb){return b}if(typeof a===_[18]&&c=522||b==="gecko"&&a>=2||b===_[119]&&a>=9},isZoomed:function(){var a=false;if(this._engineName===_[119]){if(this._engineVersionMajor>=8){a=(screen.deviceXDPI/screen.logicalXDPI)!==1}else{try{var d=document.body.getBoundingClientRect();var c=(d.right-d.left)/document.body.offsetWidth;a=c!==1}catch(b){a=false}}}return a},getBasePath:function(){if(!this._basePath){this._basePath=this._computeBasePath(document.location.href)}return this._basePath},_computeBasePath:function(b){var a=b;if(a.indexOf("?")!==-1){a=a.slice(0,a.indexOf("?"))}if(a.indexOf("#")!==-1){a=a.slice(0,a.indexOf("#"))}return a.slice(0,a.lastIndexOf("/")+1)},_initKonqueror:function(){if(!this._isBrowserDetected()){var b=navigator.vendor;var a=typeof b===_[7]&&b==="KDE"&&/KHTML\/([0-9\-\.]*)/.test(navigator.userAgent);if(a){this._engineName=_[138];this._browserName="konqueror";this._parseVersion("420")}}},_initBlink:function(){if(!this._isBrowserDetected()){var b=navigator.userAgent;var a=window.chrome||(window.Intl&&window.Intl.v8BreakIterator);if(a){this._engineName="blink";if(b.indexOf("OPR")!==-1){this._browserName="opera";/OPR\/([^ ]+)/.test(b);this._parseVersion(RegExp.$1)}else{if(b.indexOf("Chrome")!==-1){this._browserName="chrome";/Chrome\/([^ ]+)/.test(b);this._parseVersion(RegExp.$1)}else{this._browserName="other blink"}}}}},_initWebkit:function(){if(!this._isBrowserDetected()){var d=navigator.userAgent;var a=d.indexOf("AppleWebKit")!=-1&&/AppleWebKit\/([^ ]+)/.test(d);if(a){this._engineName=_[138];var b=RegExp.$1;var c=/[^\.0-9]/.exec(b);if(c){b=b.slice(0,c.index)}this._parseVersion(b);if(d.indexOf("Safari")!=-1){if(d.indexOf("Android")!=-1){this._browserName=_[168]}else{this._browserName=_[194]}}else{if(d.indexOf("OmniWeb")!=-1){this._browserName="omniweb"}else{if(d.indexOf("Shiira")!=-1){this._browserName="shiira"}else{if(d.indexOf("NetNewsWire")!=-1){this._browserName="netnewswire"}else{if(d.indexOf("RealPlayer")!=-1){this._browserName="realplayer"}else{if(d.indexOf("Mobile")!=-1){this._browserName=_[194]}else{this._browserName="other webkit"}}}}}}}}},_initGecko:function(){if(!this._isBrowserDetected()){var b=navigator.userAgent;var a=b.indexOf("like Gecko")===-1&&b.indexOf("Gecko/")!==-1&&/rv\:([^\);]+)(\)|;)/.test(b);if(a){this._engineName="gecko";this._parseVersion(RegExp.$1);if(b.indexOf("Firefox")!=-1){this._browserName="firefox"}else{if(b.indexOf("Camino")!=-1){this._browserName="camino"}else{if(b.indexOf("Galeon")!=-1){this._browserName="galeon"}else{this._browserName="other gecko"}}}}}},_initTrident:function(){if(!this._isBrowserDetected()){var a=navigator.userAgent;if(/MSIE\s+([^\);]+)(\)|;)/.test(a)){this._parseVersion(RegExp.$1);this._engineName=_[119];this._browserName=_[315]}else{if(a.indexOf("Trident")!=-1&&/rv\:([^\);]+)(\)|;)/.test(a)){this._parseVersion(RegExp.$1);this._engineName=_[119];this._browserName=_[315]}else{if(/Edge\/([^ ]+)/.test(a)){this._parseVersion(RegExp.$1);this._engineName=_[119];this._browserName="edge"}}}}},_isBrowserDetected:function(){return this._engineName!==_[231]},_parseVersion:function(a){if(typeof a===_[7]){var b=a.split(".");this._engineVersion=parseFloat(a);this._engineVersionMajor=parseInt(b[0]||0,10);this._engineVersionMinor=parseFloat(b[1]||0);this._engineVersionRevision=parseFloat(b[2]||0);this._engineVersionBuild=parseInt(b[3]||0,10)}},_initBoxSizing:function(){var a=[];switch(this._engineName){case"gecko":a.push("-moz-box-sizing");break;case _[138]:case"blink":a.push("-khtml-box-sizing");a.push("-webkit-box-sizing");break;default:a.push("box-sizing")}this._engineBoxSizingAttributes=a},_initLocale:function(){var a=navigator.userLanguage||navigator.language;this._browserLocale=a.replace("_","-")},_initPlatform:function(){var a=navigator.platform;if(a.indexOf("Windows")!=-1||a.indexOf("Win32")!=-1||a.indexOf("Win64")!=-1){this._browserPlatform="win"}else{if(a.indexOf("Macintosh")!=-1||a.indexOf("MacPPC")!=-1||a.indexOf("MacIntel")!=-1){this._browserPlatform="mac"}else{if(a.indexOf("X11")!=-1||a.indexOf("Linux")!=-1||a.indexOf("BSD")!=-1){if(navigator.userAgent.indexOf("Android")!=-1){this._browserPlatform=_[168]}else{this._browserPlatform="unix"}}else{if(a.indexOf("iPhone")!=-1||a.indexOf("iPod")!=-1||a.indexOf("iPad")!=-1){this._browserPlatform="ios"}else{this._browserPlatform="other"}}}}}};rwt.client.Client.__init();rwt.util.Variant.define(_[5],rwt.client.Client.getEngine());
namespace("rwt.qx");rwt.qx.Class={_normalizeConfig:function(a){if(!a){a={}}if(a.include&&!(a.include instanceof Array)){a.include=[a.include]}return a},define:function(b,c){if(this._stopLoading){throw new Error("Stop loading "+b)}try{c=this._normalizeConfig(c);var j;if(!c.extend){j=c.statics||{}}else{if(!c.construct){c.construct=this.__createDefaultConstructor()}j=this.__wrapConstructor(c.construct,b);if(c.statics){var o;for(var e=0,n=rwt.util.Objects.getKeys(c.statics),d=n.length;e0){c=b.pop();c.$$initializer();delete c.$$initializer}}},__wrapConstructor:function(a){return function(){var c=arguments.callee;rwt.qx.Class.__initializeClass(c);if(!c.$$propertiesAttached){rwt.qx.Property.attach(c)}a.apply(this,arguments);if(c.$$includes){for(var d=0,b=c.$$includes.length;d0},Number:function(a){return typeof a===_[18]&&isFinite(a)},Integer:function(a){return typeof a===_[18]&&isFinite(a)&&a%1===0},Float:function(a){return typeof a===_[18]&&isFinite(a)},Double:function(a){return typeof a===_[18]&&isFinite(a)},Error:function(a){return a instanceof Error},RegExp:function(a){return a instanceof RegExp},Object:function(a){return a!==null&&typeof a===_[55]},Array:function(a){return a instanceof Array},Map:function(a){return a!==null&&typeof a===_[55]&&!(a instanceof Array)&&!(a instanceof rwt.qx.Object)},Function:function(a){return a instanceof Function},Date:function(a){return a instanceof Date},Node:function(a){return a!==null&&a.nodeType!==undefined},Element:function(a){return a!==null&&a.nodeType===1&&a.attributes},Document:function(a){return a!==null&&a.nodeType===9&&a.documentElement},Window:function(a){return a!==null&&window.document},Event:function(a){return a!==null&&a.type!==undefined},Class:function(a){return a!==null&&a.$$type==="Class"},Mixin:function(a){return a!==null&&a.$$type==="Mixin"},Interface:function(a){return a!==null&&a.$$type==="Interface"},Theme:function(a){return a!==null&&a.$$type==="Theme"},Color:function(a){return typeof a===_[7]&&rwt.util.Colors.isValid(a)},Border:function(a){return a!==null},Font:function(a){return a!==null},Label:function(a){return a!==null&&typeof a===_[7]}},__dispose:{Object:true,Array:true,Map:true,Function:true,Date:true,Node:true,Element:true,Document:true,Window:true,Event:true,Class:true,Mixin:true,Interface:true,Theme:true,Border:true,Font:true},$$inherit:_[96],$$idcounter:0,$$store:{user:{},theme:{},inherit:{},init:{},useinit:{}},$$method:{get:{},set:{},reset:{},init:{},refresh:{},style:{},unstyle:{}},$$allowedKeys:{name:_[7],dispose:_[117],inheritable:_[117],nullable:_[117],themeable:_[117],refine:_[117],init:null,apply:_[7],event:_[7],check:null,transform:_[7],deferredInit:_[117]},$$allowedGroupKeys:{name:_[7],group:_[55],mode:_[7],themeable:_[117]},$$inheritable:{},refresh:function(g){var f=g.getParent();if(f){var c=g.constructor;var b=this.$$store.inherit;var e=this.$$method.refresh;var d;while(c){d=c.$$properties;if(d){for(var a in this.$$inheritable){if(d[a]&&g[e[a]]){g[e[a]](f[b[a]])}}}c=c.superclass}}},attach:function(b){var c=b.$$properties;if(c){for(var a in c){this.attachMethods(b,a,c[a])}}b.$$propertiesAttached=true},attachMethods:function(c,b,a){if(a._fast||a._cached){return}var d,e;if(b.charAt(0)==="_"){if(b.charAt(1)==="_"){d="__";e=rwt.util.Strings.toFirstUp(b.substring(2))}else{d="_";e=rwt.util.Strings.toFirstUp(b.substring(1))}}else{d="";e=rwt.util.Strings.toFirstUp(b)}if(a.group){this.__attachGroupMethods(c,a,d,e)}else{this.__attachPropertyMethods(c,a,d,e)}},__attachGroupMethods:function(k,e,j,m){var g=k.prototype;var c=e.name;var d=e.themeable===true;var a=this.$$method;if(rwt.util.Variant.isSet(_[104],"on")){for(var h=0,b=e.group,f=b.length;h=0;b--){c=d[b];if(c&&c.__disposed===false){c.dispose()}}},inGlobalDispose:function(){return this.__disposed||false},isPageUnload:function(){return this.__unload||false}},members:{_autoDispose:true,setUserData:function(a,b){if(!this.__userData){this.__userData={}}this.__userData[a]=b},getUserData:function(a){if(!this.__userData){return null}var b=this.__userData[a];return b===undefined?null:b},toHashCode:function(){return this._hashCode},toString:function(){if(this.classname){return"[object "+this.classname+"]"}return"[object Object]"},base:function(a){if(arguments.length===1){return a.callee.base.call(this)}else{return a.callee.base.apply(this,Array.prototype.slice.call(arguments,1))}},self:function(a){return a.callee.self},getDbKey:function(){return this.__dbKey},set:function(b,a){var d=rwt.qx.Property.$$method.set;if(typeof b===_[7]){return this[d[b]](a)}else{for(var c in b){this[d[c]](b[c])}return this}},get:function(b){var a=rwt.qx.Property.$$method.get;return this[a[b]]()},reset:function(b){var a=rwt.qx.Property.$$method.reset;this[a[b]]()},__disposed:false,getDisposed:function(){return this.__disposed},isDisposed:function(){return this.__disposed},dispose:function(){if(this.__disposed){return}this.__disposed=true;var c=this.constructor;var b;while(c.superclass){if(c.$$destructor){c.$$destructor.call(this)}if(c.$$includes){b=c.$$includes;for(var d=0,a=b.length;d0){this.__disposeObjectsDeepRecurser(e,b-1)}f[d]=null}else{if(typeof e==_[41]){f[d]=null}}}}else{if(f instanceof Object){for(var c in f){if(f[c]==null||!f.hasOwnProperty(c)){continue}var e=f[c];if(typeof e==_[55]){if(b>0){this.__disposeObjectsDeepRecurser(e,b-1)}f[c]=null}else{if(typeof e==_[41]){f[c]=null}}}}}}}},destruct:function(){var d=this.constructor;var f;var h=rwt.qx.Property.$$store;var i=h.user;var e=h.theme;var b=h.inherit;var g=h.useinit;var c=h.init;while(d){f=d.$$properties;if(f){for(var a in f){if(f[a].dispose){this[i[a]]=undefined;this[e[a]]=undefined;this[b[a]]=undefined;this[g[a]]=undefined;this[c[a]]=undefined}}}d=d.superclass}this._disposeFields("__userData");if(this.__dbKey!=null){if(rwt.qx.Object.__disposeAll){rwt.qx.Object.__db[this.__dbKey]=null}else{delete rwt.qx.Object.__db[this.__dbKey]}rwt.qx.Object.__freeAvailableDbKeys.push(this.__dbKey)}}});
rwt.qx.Class.define("rwt.html.Viewport",{statics:{getWidth:rwt.util.Variant.select(_[5],{"webkit|blink":function(a){return(a||window).innerWidth},"default":function(b){var a=(b||window).document;return a.compatMode===_[303]?a.documentElement.clientWidth:a.body.clientWidth}}),getHeight:rwt.util.Variant.select(_[5],{"webkit|blink":function(a){return(a||window).innerHeight},"default":function(b){var a=(b||window).document;return a.compatMode===_[303]?a.documentElement.clientHeight:a.body.clientHeight}}),getScrollLeft:function(b){var a=(b||window).document;return(b||window).pageXOffset||a.body.scrollLeft},getScrollTop:function(b){var a=(b||window).document;return(b||window).pageYOffset||a.body.scrollTop}}});
rwt.qx.Class.define("rwt.qx.Target",{extend:rwt.qx.Object,construct:function(){arguments.callee.base.call(this)},members:{addEventListener:function(b,c,d){if(this.getDisposed()){return}if(this.__listeners===undefined){this.__listeners={}}if(this.__listeners[b]===undefined){this.__listeners[b]={}}var a="event"+rwt.qx.Object.toHashCode(c)+(d?"$"+rwt.qx.Object.toHashCode(d):"");this.__listeners[b][a]={handler:c,object:d}},removeEventListener:function(c,d,e){if(this.getDisposed()){return}var b=this.__listeners;if(!b||b[c]===undefined){return}if(typeof d!==_[41]){throw new Error("rwt.qx.Target: removeEventListener("+c+"): '"+d+"' is not a function!")}var a="event"+rwt.qx.Object.toHashCode(d)+(e?"$"+rwt.qx.Object.toHashCode(e):"");delete this.__listeners[c][a]},hasEventListeners:function(a){return this.__listeners&&this.__listeners[a]!==undefined&&!rwt.util.Objects.isEmpty(this.__listeners[a])},createDispatchEvent:function(a){if(this.hasEventListeners(a)){this.dispatchEvent(new rwt.event.Event(a),true)}},createDispatchDataEvent:function(a,b){if(this.hasEventListeners(a)){this.dispatchEvent(new rwt.event.DataEvent(a,b),true)}},createDispatchChangeEvent:function(b,c,a){if(this.hasEventListeners(b)){this.dispatchEvent(new rwt.event.ChangeEvent(b,c,a),true)}},dispatchEvent:function(a,c){if(this.getDisposed()){return}if(a.getTarget()==null){a.setTarget(this)}if(a.getCurrentTarget()==null){a.setCurrentTarget(this)}this._dispatchEvent(a,c);var b=a.getDefaultPrevented();if(c){a.dispose()}return !b},dispatchSimpleEvent:function(g,d,e){var h=this.__listeners;var f=e===true;var k=true;if(h){var b=h[g];if(b){var a;var c;for(var i in b){a=b[i].handler;c=b[i].object||this;k=a.call(c,d)&&k!==false;if(k===false){f=false}}}}if(f&&typeof(this.getParent)===_[41]){var j=this.getParent();if(j&&!j.getDisposed()&&j.getEnabled()){j.dispatchSimpleEvent(g,d,e)}}return k!==false},_dispatchEvent:function(b){var d=this.__listeners;if(d&&this._allowDispatch(b)){b.setCurrentTarget(this);var a=d[b.getType()];if(a){var e,f;for(var g in a){e=a[g].handler;f=a[g].object||this;e.call(f,b)}}}if(b.getBubbles()&&!b.getPropagationStopped()&&typeof(this.getParent)==_[41]){var c=this.getParent();if(c&&!c.getDisposed()){c._dispatchEvent(b)}}},_allowDispatch:function(b){var a=true;if(this.getEnabled&&b instanceof rwt.event.DomEvent){a=this.getEnabled()}return a}},destruct:function(){this._disposeObjectDeep("__listeners",2)}});
rwt.qx.Class.define(_[151],{extend:rwt.qx.Object,construct:function(a){arguments.callee.base.call(this);this.setType(a)},properties:{type:{_fast:true,setOnlyOnce:true},originalTarget:{_fast:true,setOnlyOnce:true},target:{_fast:true,setOnlyOnce:true},relatedTarget:{_fast:true,setOnlyOnce:true},currentTarget:{_fast:true},bubbles:{_fast:true,defaultValue:false,noCompute:true},propagationStopped:{_fast:true,defaultValue:true,noCompute:true},defaultPrevented:{_fast:true,defaultValue:false,noCompute:true}},members:{_autoDispose:false,preventDefault:function(){this.setDefaultPrevented(true)},stopPropagation:function(){this.setPropagationStopped(true)}},destruct:function(){this._disposeFields("_valueOriginalTarget","_valueTarget","_valueRelatedTarget","_valueCurrentTarget")}});
rwt.qx.Class.define(_[47],{extend:rwt.event.Event,construct:function(a,b){arguments.callee.base.call(this,a);this.setData(b)},properties:{propagationStopped:{_fast:true,defaultValue:false},data:{_fast:true}},destruct:function(){this._disposeFields("_valueData")}});
rwt.qx.Class.define(_[376],{extend:rwt.event.Event,construct:function(b,c,a){arguments.callee.base.call(this,b);this.setValue(c);this.setOldValue(a)},properties:{value:{_fast:true},oldValue:{_fast:true}},members:{getData:function(){return this.getValue()}},destruct:function(){this._disposeFields("_valueValue","_valueOldValue")}});
rwt.qx.Class.define("rwt.client.Timer",{extend:rwt.qx.Target,construct:function(a){arguments.callee.base.call(this);this.setEnabled(false);if(a!=null){this.setInterval(a)}this.__oninterval=rwt.util.Functions.bind(this._oninterval,this);this.__event=new rwt.event.Event(_[26])},statics:{once:function(a,c,b){var d=new rwt.client.Timer(b);d.addEventListener(_[26],function(f){d.dispose();a.call(c,f);c=null},c);d.start()}},properties:{enabled:{init:true,check:_[1],apply:_[486]},interval:{check:_[25],init:1000,apply:"_applyInterval"}},members:{__intervalHandler:null,_applyInterval:function(){if(this.getEnabled()){this.restart()}},_applyEnabled:function(b,a){if(a){window.clearInterval(this.__intervalHandler);this.__intervalHandler=null}else{if(b){this.__intervalHandler=window.setInterval(this.__oninterval,this.getInterval())}}},start:function(){this.setEnabled(true)},startWith:function(a){this.setInterval(a);this.start()},stop:function(){this.setEnabled(false)},restart:function(){this.stop();this.start()},restartWith:function(a){this.stop();this.startWith(a)},_oninterval:function(){try{if(this.getEnabled()&&this.hasEventListeners(_[26])){this.dispatchEvent(this.__event,false)}}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}}},destruct:function(){if(this.__intervalHandler){window.clearInterval(this.__intervalHandler)}this._disposeFields("__intervalHandler","__oninterval","__event")}});
rwt.qx.Class.define("rwt.html.Entity",{statics:{TO_CHARCODE:{quot:34,amp:38,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,fnof:402,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,bull:8226,hellip:8230,prime:8242,Prime:8243,oline:8254,frasl:8260,weierp:8472,image:8465,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,circ:710,tilde:732,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,permil:8240,lsaquo:8249,rsaquo:8250,euro:8364}}});
namespace(_[480]);rwt.runtime.Singletons={_holder:{},_sequence:0,get:function(a){var b=this._getId(a);if(!this._holder[b]){this._holder[b]=new a()}return this._holder[b]},clear:function(a){if(a){this._clearId(this._getId(a))}else{for(var b in this._holder){this._dispose(this._holder[b])}this._holder={}}},_clearExcept:function(a){for(var b in this._holder){if(!this._isException(this._holder[b],a)){this._clearId(b)}}},_isException:function(a,c){for(var b=0;b=16&&a<=20&&a!==19},isAlphaNumericKeyCode:function(b){var a=false;if((b>=this._charCodeA&&b<=this._charCodeZ)||(b>=this._charCode0&&b<=this._charCode9)){a=true}return a},shouldBlock:function(c,f,b,d){var a=true;var e;if(!isNaN(f)&&f!==0){e=this.keyCodeToIdentifier(f)}else{e=this.charCodeToIdentifier(b)}if(this._nonBlockableKeysMap[e]||d.altKey){a=false}else{if(d.ctrlKey){a=this._blockableCtrlKeysMap[e]===true}}return a},getElementAt:function(a,b){return document.elementFromPoint(a,b)},_specialCharCodeMap:{13:_[32],27:_[107],32:_[111]},_nonBlockableKeysMap:{Control:true,Alt:true,Shift:true,Meta:true,Win:true,F1:true,F2:true,F3:true,F4:true,F5:true,F6:true,F7:true,F8:true,F9:true,F10:true,F11:true,F12:true},_blockableCtrlKeysMap:{F:true,A:true,C:true,V:true,X:true,Z:true,Y:true},_keyCodeToIdentifierMap:{8:_[354],9:"Tab",16:"Shift",17:_[195],18:"Alt",20:"CapsLock",224:"Meta",37:"Left",38:"Up",39:_[35],40:"Down",33:_[34],34:_[36],35:"End",36:"Home",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",44:"PrintScreen",145:"Scroll",19:"Pause",91:"Win",93:"Apps"},_numpadToCharCode:{96:"0".charCodeAt(0),97:"1".charCodeAt(0),98:"2".charCodeAt(0),99:"3".charCodeAt(0),100:"4".charCodeAt(0),101:"5".charCodeAt(0),102:"6".charCodeAt(0),103:"7".charCodeAt(0),104:"8".charCodeAt(0),105:"9".charCodeAt(0),106:"*".charCodeAt(0),107:"+".charCodeAt(0),109:"-".charCodeAt(0),110:",".charCodeAt(0),111:"/".charCodeAt(0)},_charCodeA:"A".charCodeAt(0),_charCodeZ:"Z".charCodeAt(0),_charCode0:"0".charCodeAt(0),_charCode9:"9".charCodeAt(0)};
namespace(_[131]);rwt.remote.HandlerRegistry={_registry:{},add:function(a,b){this._registry[a]=b},remove:function(a){delete this._registry[a]},getHandler:function(b){var a=this._registry[b];if(a===undefined){throw new Error("No Handler for type "+b)}return a},hasHandler:function(a){return this._registry[a]!=null}};
namespace(_[131]);rwt.remote.ObjectRegistry={_map:{},_callbacks:{},add:function(d,a,c){this._map[d]={object:a,handler:c};a._rwtId=d;if(typeof a.applyObjectId===_[41]){a.applyObjectId(d)}if(this._callbacks[d]){for(var b=0;b|\")/g,_escapeRegExpMnemonics:/(&&|&|<|>|")/g,_newlineRegExp:/(\r\n|\n|\r)/g,_outerWhitespaceRegExp:/(^ {1,1}| +$)/g,_outerWhitespaceRegExp2:/(^ {1,}| +$)/g,_whitespaceRegExp:/ {2,}/g,_escapeResolver:null,_escapeResolverMnemonics:null,_mnemonicFound:false,_escapeMap:{"<":"<",">":">",'"':""","&&":"&","&":"&"},escapeText:function(c,b){if(c===null){throw new Error("escapeText with parameter null not allowed")}var a;this._mnemonicFound=false;if(b===true){a=c.replace(this._escapeRegExpMnemonics,this._getEscapeResolverMnemonics())}else{if(typeof b===_[18]){a=this._escapeWithMnemonic(c,b)}else{a=c.replace(this._escapeRegExp,this._getEscapeResolver())}}return this.truncateAtZero(a)},truncateAtZero:function(c){var a=c;var b=a.indexOf(String.fromCharCode(0));if(b!==-1){a=a.substring(0,b)}return a},replaceNewLines:function(c,a){var b=arguments.length>1?a:"\\n";return c.replace(this._newlineRegExp,b)},replaceWhiteSpaces:function(b){var a=b.replace(this._outerWhitespaceRegExp,this._outerWhitespaceResolver);a=a.replace(this._whitespaceRegExp,this._whitespaceResolver);return a},escapeLeadingTrailingSpaces:function(a){return a.replace(this._outerWhitespaceRegExp2,this._outerWhitespaceResolver)},escapeRegexpChars:function(a){return a.replace(/([\\\.\(\)\[\]\{\}\^\$\?\+\*])/g,"\\$1")},unescape:function(a){return this._unescapeEntities(a,rwt.html.Entity.TO_CHARCODE)},removeAmpersandControlCharacters:function(a){return a.replace(/(&&|&)/g,function(b){if(b==="&&"){return"&"}return""})},_escapeWithMnemonic:function(c,a){var b=[c.slice(0,a).replace(this._escapeRegExp,this._getEscapeResolver()),'',c.charAt(a).replace(this._escapeRegExp,this._getEscapeResolver()),"",c.slice(a+1).replace(this._escapeRegExp,this._getEscapeResolver())];return b.join("")},_getEscapeResolverMnemonics:function(){if(this._escapeResolverMnemonics===null){this._getEscapeResolver();var a=this;this._escapeResolverMnemonics=function(c){var b;if(c==="&"&&!a._mnemonicFound){b="";a._mnemonicFound=true}else{b=a._escapeResolver(c)}return b}}return this._escapeResolverMnemonics},_getEscapeResolver:function(){if(this._escapeResolver===null){var a=this;this._escapeResolver=function(b){return a._escapeMap[b]}}return this._escapeResolver},_outerWhitespaceResolver:function(a){return a.replace(/ /g," ")},_whitespaceResolver:function(a){return a.slice(1).replace(/ /g," ")+" "},_unescapeEntities:function(b,a){return b.replace(/&[#\w]+;/gi,function(c){var d=c;var c=c.substring(1,c.length-1);var e=a[c];if(e){d=String.fromCharCode(e)}else{if(c.charAt(0)==="#"){if(c.charAt(1).toUpperCase()==="X"){e=c.substring(2);if(e.match(/^[0-9A-Fa-f]+$/gi)){d=String.fromCharCode(parseInt(e,16))}}else{e=c.substring(1);if(e.match(/^\d+$/gi)){d=String.fromCharCode(parseInt(e,10))}}}}return d})}};
namespace(_[218]);rwt.widgets.Display=function(a){this._document=rwt.widgets.base.ClientDocument.getInstance();this._connection=rwt.remote.Connection.getInstance();if(a){this._startupParameters=a.startupParameters}this._exitConfirmation=null;this._hasResizeListener=false;this._sendResizeDelayed=false;this._disableShutdownRequest=false;this._initialized=false;if(rwt.widgets.Display._current!==undefined){throw new Error("Display can not be created twice")}else{rwt.widgets.Display._current=this}};rwt.widgets.Display.getCurrent=function(){return rwt.widgets.Display._current};rwt.widgets.Display._onAppearFocus=function(){var a=this;a.focus();a.removeEventListener(_[38],rwt.widgets.Display._onAppearFocus,a)};rwt.widgets.Display.prototype={applyObjectId:function(){if(!this._initialized){this.init()}},init:function(){this._appendWindowSize();this._appendSystemDPI();this._appendColorDepth();this._appendInitialHistoryEvent();this._appendTimezoneOffset();this._appendStartupParameters();this._attachListener();this._connection.send();this._initialized=true},allowEvent:function(){rwt.remote.KeyEventSupport.getInstance().allowEvent()},cancelEvent:function(){rwt.remote.KeyEventSupport.getInstance().cancelEvent()},beep:function(){},setOverflow:function(a){if(a===_[22]||a===_[224]||a===_[223]){this._document.setOverflow(a)}},setExitConfirmation:function(a){this._exitConfirmation=a},setFocusControl:function(a){var b=rwt.remote.ObjectRegistry.getObject(a);if(b.isSeeable()){setTimeout(function(){b.focus()},0)}else{b.addEventListener(_[38],rwt.widgets.Display._onAppearFocus,b)}},setMnemonicActivator:function(a){rwt.widgets.util.MnemonicHandler.getInstance().setActivator(a)},setEnableUiTests:function(a){rwt.widgets.base.Widget._renderHtmlIds=a},setDisableShutdownRequest:function(a){this._disableShutdownRequest=a},getDPI:function(){var a=[0,0];if(typeof screen.systemXDPI==_[18]){a[0]=parseInt(screen.systemXDPI,10);a[1]=parseInt(screen.systemYDPI,10)}else{var b=document.createElement("div");b.style.width="1in";b.style.height="1in";b.style.padding=0;document.body.appendChild(b);a[0]=parseInt(b.offsetWidth,10);a[1]=parseInt(b.offsetHeight,10);document.body.removeChild(b)}return a},setHasResizeListener:function(a){this._hasResizeListener=a},_attachListener:function(){this._document.addEventListener(_[139],this._onResize,this);this._document.addEventListener(_[3],this._onKeyPress,this);this._connection.addEventListener("send",this._onSend,this);rwt.remote.KeyEventSupport.getInstance();rwt.runtime.System.getInstance().addEventListener(_[273],this._onBeforeUnload,this);rwt.runtime.System.getInstance().addEventListener("unload",this._onUnload,this)},_onResize:function(){this._appendWindowSize();if(this._hasResizeListener&&!this._sendResizeDelayed){this._sendResizeDelayed=true;this._connection.sendDelayed(500)}},_onKeyPress:function(a){if(a.getKeyIdentifier()==_[107]){a.preventDefault()}},_onSend:function(){var d=rwt.event.MouseEvent.getPageX();var b=rwt.event.MouseEvent.getPageY();var a=[Math.round(d),Math.round(b)];var c=this._connection.getRemoteObject(this);c.set("cursorLocation",a);if(this._bounds){c.set(_[89],this._bounds);delete this._bounds}if(this._sendResizeDelayed){this._sendResizeDelayed=false;c.notify(_[198])}},_onBeforeUnload:function(a){if(this._exitConfirmation!==null&&this._exitConfirmation!==""){a.getDomEvent().returnValue=this._exitConfirmation;a.setUserData(_[429],this._exitConfirmation)}},_onUnload:function(){this._document.removeEventListener(_[139],this._onResize,this);this._document.removeEventListener(_[3],this._onKeyPress,this);this._connection.removeEventListener("send",this._onSend,this);rwt.client.ServerPush.getInstance().setActive(false);this._connection.getMessageWriter().appendHead("shutdown",true);if(!this._disableShutdownRequest){this._sendShutdown()}},_sendShutdown:rwt.util.Variant.select(_[5],{gecko:function(){this._connection.sendBeacon()},trident:function(){if(navigator.sendBeacon){this._connection.sendBeacon()}else{if(rwt.client.Client.getBrowser()===_[315]){this._connection.sendImmediate(false)}else{this._connection.sendImmediate(true)}}},"default":function(){this._connection.sendImmediate(true)}}),_appendWindowSize:function(){this._bounds=[0,0,window.innerWidth,window.innerHeight]},_appendSystemDPI:function(){var a=this.getDPI();this._connection.getRemoteObject(this).set("dpi",a)},_appendColorDepth:function(){var a=16;if(typeof screen.colorDepth==_[18]){a=parseInt(screen.colorDepth,10)}if(rwt.client.Client.isGecko()){a=a==24?32:a}this._connection.getRemoteObject(this).set("colorDepth",a)},_appendInitialHistoryEvent:function(){var c=window.location.hash;if(c!==""){var b=_[314];var d=rwt.client.BrowserNavigation.getInstance();var a=rwt.remote.HandlerRegistry.getHandler(b);rwt.remote.ObjectRegistry.add(b,d,a);this._connection.getRemoteObject(d).notify(_[305],{state:decodeURIComponent(c.substr(1))})}},_appendTimezoneOffset:function(){var a=rwt.client.Client.getTimezoneOffset();var b=this._connection.getMessageWriter();b.appendSet("rwt.client.ClientInfo","timezoneOffset",a)},_appendStartupParameters:function(){if(this._startupParameters){var a=rwt.runtime.System.getInstance()._parseQueryString(this._startupParameters);var b=this._connection.getMessageWriter();b.appendSet("rwt.client.StartupParameters","parameters",a)}}};
rwt.remote.HandlerRegistry.add("rwt.widgets.Display",{factory:function(a){return new rwt.widgets.Display(a)},destructor:null,properties:[_[101],"exitConfirmation","mnemonicActivator",_[431],"enableUiTests","disableShutdownRequest",_[254],_[228]],methods:["allowEvent","cancelEvent","beep"],propertyHandler:{activeKeys:function(a,b){var c=rwt.util.Objects.fromArray(b);rwt.remote.KeyEventSupport.getInstance().setKeyBindings(c)},cancelKeys:function(a,b){var c=rwt.util.Objects.fromArray(b);rwt.remote.KeyEventSupport.getInstance().setCancelKeys(c)}},listeners:[_[240],_[198]]});
rwt.qx.Mixin.define("rwt.widgets.util.OverStateMixin",{construct:function(){this.addEventListener(_[10],this._onMouseOver,this);this.addEventListener(_[16],this._onMouseOut,this)},members:{_onMouseOver:function(){this.addState("over")},_onMouseOut:function(){this.removeState("over")}}});
rwt.qx.Mixin.define("rwt.widgets.util.HtmlAttributesMixin",{destruct:function(){delete this._htmlAttributes},members:{applyObjectId:function(a){if(rwt.widgets.base.Widget._renderHtmlIds){this.setHtmlAttribute("id",a)}},clearHtmlAttributes:function(){if(!this._htmlAttributes){return}if(this._element){for(var a in this._htmlAttributes){this._element.removeAttribute(a)}}this._htmlAttributes={}},setHtmlAttributes:function(b){for(var a in b){this.setHtmlAttribute(a,b[a])}},setHtmlAttribute:function(a,b){if(!this._htmlAttributes&&!b){return}else{if(!this._htmlAttributes){this._htmlAttributes={}}}if(b===null){delete this._htmlAttributes[a];if(this._element){this._element.removeAttribute(a)}}else{this._htmlAttributes[a]=b;if(this._element){this._element.setAttribute(a,b)}}if(this._update){this._update()}},getHtmlAttribute:function(a){return this.getHtmlAttributes()[a]||""},getHtmlAttributes:function(){return this._htmlAttributes||{}}}});
rwt.qx.Class.define("rwt.widgets.util.WidgetUtil",{statics:{getControl:function(b){var c=rwt.remote.WidgetManager.getInstance();var a=b;while(a!=null&&!c.isControl(a)){a=a.getParent?a.getParent():null}return a},getShell:function(b){var a=b;while(a!=null&&a.classname!==_[352]){a=a.getParent()}return a},getChildIds:function(a){return a.getUserData(_[389])},isVisible:function(b){var a=true;var c=b;while(c&&a){a=c.getVisibility();c=c.getParent()}return a},getGC:function(b){var a=b.getUserData(_[283]);if(a==null){a=new rwt.widgets.GC(b);b.setUserData(_[283],a)}return a},callWithElement:function(b,c){if(b.getElement()){c(b.getElement())}else{var a=function a(){c(b.getElement());b.removeEventListener(_[44],a)};b.addEventListener(_[44],a)}},isWidget:function(a){return((a.classname||"").indexOf(_[218])===0)||(a instanceof rwt.widgets.base.Widget)},_fakeMouseEvent:function(b,d){if(!(b instanceof rwt.widgets.base.Widget)){b=rwt.event.EventHandlerUtil.getTargetObject(b);b=b||rwt.widgets.base.ClientDocument.getInstance()}if(b.getEnabled()){var f=b._getTargetNode();var a=rwt.event.EventHandlerUtil;var g=a.getTargetObject(null,b,true);var c={type:d,target:f,button:0,wheelData:0,detail:0,pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0,shiftKey:false,ctrlKey:false,altKey:false,metaKey:false,preventDefault:function(){},getModifierState:rwt.util.Functions.returnFalse};var e=new rwt.event.MouseEvent(d,c,f,g,b,null);g.dispatchEvent(e)}}}});
(function(){var b=rwt.client.Client;rwt.qx.Class.define(_[529],{statics:{VENDOR_PREFIX_VALUE:rwt.util.Variant.select(_[5],{gecko:"-moz-","webkit|blink":"-webkit-",trident:"-ms-","default":""}),VENDOR_PREFIX_PROPERTY:rwt.util.Variant.select(_[5],{gecko:"Moz","webkit|blink":_[138],trident:"ms","default":""}),getStyleProperty:function(f,d){try{var h=rwt.html.Nodes.getDocument(f);var g=h.defaultView.getComputedStyle(f,null);var c=g?g[d]:null;return c?c:f.style[d]}catch(e){throw new Error(_[381]+f+"["+d+"]: "+e)}},setStyleProperty:function(e,d,c){if(e.setStyleProperty){e.setStyleProperty(d,c)}else{e.style[d]=c}},removeStyleProperty:function(d,c){if(d instanceof rwt.widgets.base.Widget){d.removeStyleProperty(c)}else{d.style[c]=""}},getOwnProperty:function(d,c){if(d.getStyleProperty){d.getStyleProperty(c)}else{return d.style[c]}},getStyleSize:function(c,d){return parseInt(rwt.html.Style.getStyleProperty(c,d),10)||0},getMarginLeft:function(c){return rwt.html.Style.getStyleSize(c,_[161])},getMarginTop:function(c){return rwt.html.Style.getStyleSize(c,_[171])},getMarginRight:function(c){return rwt.html.Style.getStyleSize(c,_[186])},getMarginBottom:function(c){return rwt.html.Style.getStyleSize(c,_[217])},getPaddingLeft:function(c){return rwt.html.Style.getStyleSize(c,_[163])},getPaddingTop:function(c){return rwt.html.Style.getStyleSize(c,_[153])},getPaddingRight:function(c){return rwt.html.Style.getStyleSize(c,_[150])},getPaddingBottom:function(c){return rwt.html.Style.getStyleSize(c,_[172])},getBorderLeft:function(c){return rwt.html.Style.getStyleProperty(c,_[317])=="none"?0:rwt.html.Style.getStyleSize(c,_[73])},getBorderTop:function(c){return rwt.html.Style.getStyleProperty(c,_[355])=="none"?0:rwt.html.Style.getStyleSize(c,_[78])},getBorderRight:function(c){return rwt.html.Style.getStyleProperty(c,_[350])=="none"?0:rwt.html.Style.getStyleSize(c,_[209])},getBorderBottom:function(c){return rwt.html.Style.getStyleProperty(c,_[313])=="none"?0:rwt.html.Style.getStyleSize(c,_[190])},setBackgroundGradient:function(d,c){if(d.___rwtStyle__backgroundGradient!==c){d.___rwtStyle__backgroundGradient=c;if(!d.___rwtStyle__backgroundImage){this._updateBackground(d)}}},getBackgroundGradient:function(h){var g=h.___rwtStyle__backgroundGradient;if(!g){return undefined}var e=[g.horizontal===true?_[299]:_[285]];for(var f=0;f=1.9;var e=b.getBrowser()===_[194]&&c>=530;if(d||e){this.setStyleProperty(g,_[249],f);g.setAttribute(_[249],f)}else{this._passEventsThrough(g,f)}},setUserSelect:function(d,c){this.setStyleProperty(d,this._prefixProperty(_[248]),c)},getUserSelect:function(c){return this.getOwnProperty(c,this._prefixProperty(_[248]))},setTransition:function(e,c){if(!this._transitionProperty){this._transitionProperty=_[238];var d=document.createElement("div");if(!(_[238] in d.style)){if(_[263] in d.style){this._transitionProperty=_[263]}else{if(_[236] in d.style){this._transitionProperty=_[236]}}}}this.setStyleProperty(e,this._transitionProperty,c)},_prefixProperty:function(c){if(this.VENDOR_PREFIX_PROPERTY){return this.VENDOR_PREFIX_PROPERTY+rwt.util.Strings.toFirstUp(c)}return c},_updateBackground:function(d){var c=[];this._pushBackgroundImage(d,c);this._pushBackgroundGradient(d,c);this._pushBackgroundColor(d,c);if(c.length>0){this.setStyleProperty(d,_[98],c.join(", "));if(d.___rwtStyle__backgroundImage&&d.___rwtStyle__backgroundSize){this.setStyleProperty(d,_[453],d.___rwtStyle__backgroundSize)}}else{this._clearCssBackground(d)}},_pushBackgroundImage:function(f,g){var e=f.___rwtStyle__backgroundImage;if(e){var d=f.___rwtStyle__backgroundRepeat;var c=f.___rwtStyle__backgroundPosition;g.push(this._getImageString(e,d,c))}},_pushBackgroundGradient:function(d,e){var c=d.___rwtStyle__backgroundGradient;if(c&&!d.___rwtStyle__backgroundImage){e.push(this._getGradientString(c))}},_pushBackgroundColor:function(d,e){var c=d.___rwtStyle__backgroundColor;if(c){if((b.isWebkit()||b.isBlink())&&!d.___rwtStyle__backgroundGradient){e.push(this._getGradientString([[0,c],[1,c]]))}e.push(c)}},_getGradientString:rwt.util.Variant.select(_[5],{"webkit|blink":function(g){var e=["linear",_[328]];if(g.horizontal===true){e.push(_[301])}else{e.push(_[359])}for(var f=0;f ")},end:encodeURIComponent(_[497])+encodeURIComponent(_[522])+'")'}}());
rwt.qx.Class.define("rwt.html.Scroll",{statics:{disableScrolling:function(a){this.enableScrolling(a);a.scrollLeft=0;a.scrollTop=0;a.addEventListener(_[22],this._onscroll,false)},enableScrolling:function(a){a.removeEventListener(_[22],this._onscroll,false)},_onscroll:function(b){var a=null;if(b.target){a=(b.target==b.currentTarget)?b.target:null}else{if(b.srcElement){a=b.srcElement}}if(a&&(b.scrollLeft!==0||b.scrollTop!==0)){a.scrollLeft=0;a.scrollTop=0}}}});
rwt.qx.Class.define("rwt.html.StyleSheet",{statics:{createElement:document.createStyleSheet?function(a){var b=document.createStyleSheet();if(a){b.cssText=a}return b}:function(b){var a=document.createElement(_[69]);a.type="text/css";a.appendChild(document.createTextNode(b||"body {}"));document.getElementsByTagName("head")[0].appendChild(a);if(a.sheet){return a.sheet}else{var d=document.styleSheets;for(var c=d.length-1;c>=0;c--){if(d[c].ownerNode==a){return d[c]}}}throw"Error: Could not get a reference to the sheet object"},addRule:document.createStyleSheet?function(a,c,b){a.addRule(c,b)}:function(a,c,b){a.insertRule(c+"{"+b+"}",a.cssRules.length)},removeRule:document.createStyleSheet?function(b,e){var d=b.rules;var c=d.length;for(var a=c-1;a>=0;a--){if(d[a].selectorText==e){b.removeRule(a)}}}:function(b,e){var d=b.cssRules;var c=d.length;for(var a=c-1;a>=0;a--){if(d[a].selectorText==e){b.deleteRule(a)}}},removeAllRules:document.createStyleSheet?function(b){var d=b.rules;var c=d.length;for(var a=c-1;a>=0;a--){b.removeRule(a)}}:function(b){var d=b.cssRules;var c=d.length;for(var a=c-1;a>=0;a--){b.deleteRule(a)}}}});
namespace(_[141]);(function(){var x=rwt.html.Style;var n=rwt.widgets.util.WidgetUtil;rwt.util.RWTQuery=function(P){return new rwt.util.RWTQuery.fn.init(P)};rwt.util._RWTQuery=function(P){return new rwt.util.RWTQuery.fn.init(P,true)};var A=rwt.util.RWTQuery;rwt.util._RWTQuery.prototype=A.prototype={init:function(Q,P){if(typeof Q===_[7]){Q=i(Q)}this.__access=function(T,R,S){if(n.isWidget(Q)){if(typeof R===_[41]){return R.apply(this,[Q,T,P])}else{if(typeof R===_[7]){var U=t(Q,R);return S.apply(this,[U,T,P])}}}return S.apply(this,[Q,T,P])}},attr:function(){return this.__access(arguments,B,m)},removeAttr:function(){return this.__access(arguments,o,d)},prop:function(){return this.__access(arguments,_[118],z)},removeProp:function(){return this.__access(arguments,_[118],q)},append:function(){return this.__access(arguments,_[148],N)},prepend:function(){return this.__access(arguments,_[148],b)},detach:function(){return this.__access(arguments,null,h)},appendTo:function(){return this.__access(arguments,null,w)},insertAfter:function(){return this.__access(arguments,null,k)},insertBefore:function(){return this.__access(arguments,null,c)},focus:function(){return this.__access(arguments,null,u)},css:function(){return this.__access(arguments,p,I)},outerHeight:function(){return this.__access(arguments,_[118],f)},outerWidth:function(){return this.__access(arguments,_[118],v)},text:function(){return this.__access(arguments,_[148],D)},html:function(){return this.__access(arguments,_[148],a)},empty:function(){return this.__access(arguments,_[148],H)},clone:function(){return this.__access(arguments,_[118],C)},get:function(){return this.__access(arguments,_[118],e)},is:function(){return this.__access(arguments,null,s)},offset:function(){return this.__access(arguments,null,F)}};A.fn=A.prototype;A.fn.init.prototype=A.prototype;A.cssHooks={backgroundColor:{set:function(P,Q){rwt.html.Style.setBackgroundColor(P,Q)},get:function(P){return rwt.html.Style.getBackgroundColor(P)}},userSelect:{set:function(P,Q){rwt.html.Style.setUserSelect(P,Q)},get:function(P){return rwt.html.Style.getUserSelect(P)}},backgroundImage:{set:function(P,Q){rwt.html.Style.setBackgroundImage(P,G(Q))},get:function(P){return rwt.html.Style.getBackgroundImage(P)}},backgroundRepeat:{set:function(P,Q){rwt.html.Style.setBackgroundRepeat(P,Q)},get:function(P){return rwt.html.Style.getBackgroundRepeat(P)}},backgroundPosition:{set:function(P,Q){rwt.html.Style.setBackgroundPosition(P,Q)},get:function(P){return rwt.html.Style.getBackgroundPosition(P)}},backgroundGradient:{set:function(P,Q){rwt.html.Style.setBackgroundGradient(P,L(Q))},get:function(P){return rwt.html.Style.getBackgroundGradient(P)}},textShadow:{set:function(P,Q){if(Q instanceof Array){rwt.html.Style.setTextShadow(P,Q)}else{P.style.textShadow=Q}}},boxShadow:{set:function(P,Q){if(Q instanceof Array){rwt.html.Style.setBoxShadow(P,Q)}else{P.style.boxShadow=Q}}},border:{set:function(P,Q){if(Q&&typeof Q===_[55]&&Q.renderElement){Q.renderElement(P)}else{P.style.border=Q}}},font:{set:function(P,Q){if(Q&&typeof Q===_[55]&&Q.renderElement){Q.renderElement(P)}else{P.style.font=Q}}}};A.widgetCssHooks={font:"font",border:_[88],backgroundColor:_[129],textShadow:_[259],boxShadow:_[24],color:"textColor",left:"left",top:"top",width:_[21],height:_[14],bottom:_[29],right:_[2],opacity:_[102],overflow:_[101],userSelect:"selectable",backgroundImage:{set:function(Q,P){Q.set(_[362],G(P))}},backgroundGradient:{set:function(Q,P){Q.set(_[76],L(P))}}};A.cssNumber={columnCount:true,fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,zIndex:true,zoom:true};var J=function(P){return function(U,Q,T){if(Q.length===1&&(typeof Q[0]===_[55])){var S=Q[0];for(var R in S){P.apply(this,[U,[R,S[R]],T])}return this}return P.apply(this,[U,Q,T])}};var l=function(P){return function(U,R,T){var Q=R[0].trim().split(" ");for(var S=0;S0){P.apply(this,[U,Q[S],T])}}return this}};var B=J(function(Q,P,R){if(P.length===1){return Q.getHtmlAttributes()[P[0]]}else{if(R||!M[P[0]]){Q.setHtmlAttribute(P[0],P[1])}}return this});var m=J(function(Q,P,R){if(P.length===1){return Q.getAttribute(P[0])||undefined}else{if(R||!M[P[0]]){Q.setAttribute(P[0],P[1])}}return this});var o=l(function(Q,P){Q.setHtmlAttribute(P,null)});var d=l(function(Q,P){Q.removeAttribute(P)});var z=J(function(Q,P){if(P.length===1){return Q[P[0]]}else{Q[P[0]]=P[1]}return this});var q=J(function(R,P){try{R[P[0]]="";delete R[P[0]]}catch(Q){}return this});var p=J(function(S,Q){var R=A.widgetCssHooks[Q[0]];if(Q.length===1){if(R&&(typeof R===_[7]||R.get)){if(typeof R===_[7]){var P="get"+R.slice(0,1).toUpperCase()+R.slice(1);return S[P]()}else{return R.get(S)}}return S.getStyleProperties()[Q[0]]}if(R&&(typeof R===_[7]||R.set)){if(typeof R===_[7]){S.set(R,Q[1])}else{R.set(S,Q[1])}}else{S.setStyleProperty(Q[0],Q[1])}return this});var I=J(function(Q,P){var R=A.cssHooks[P[0]];if(P.length===1){if(R&&R.get){return R.get(Q)}return x.getStyleProperty(Q,P[0])}if(R&&R.set){R.set(Q,P[1])}else{Q.style[P[0]]=O(P)}return this});var f=function(P){return P.offsetHeight};var v=function(P){return P.offsetWidth};var N=function(Q,P){Q.appendChild(t(P[0]));return this};var b=function(Q,P){Q.insertBefore(t(P[0]),Q.firstChild);return this};var k=function(R,Q){var P=t(Q[0]);P.parentNode.insertBefore(R,P.nextSibling);return this};var c=function(R,Q){var P=t(Q[0]);P.parentNode.insertBefore(R,P);return this};var w=function(Q,P){t(P[0],_[148]).appendChild(Q);return this};var h=function(P){P.parentNode.removeChild(P);return this};var u=function(P){P.focus();return this};var e=function(R,Q){var P=[R];return Q.length>0?P[Q[0]]:P};var s=function(Q,P){return Q===t(P[0])};var F=function(Q){var P=rwt.html.Location.get(Q);return{left:P.left,top:P.top}};var D=function(Q,P){if(P.length===0){return Q.textContent}Q.textContent=P[0];return this};var a=function(Q,P){if(P.length===0){return Q.innerHTML}Q.innerHTML=P[0];return this};var H=function(P){while(P.firstChild){P.removeChild(P.firstChild)}return this};var C=function(Q){var S=Q.cloneNode(true);for(var P=0;P2);for(var R=1;R(?:<\/\1>|)$/);var g=function(S,P){var Q=P.trim().toLowerCase();var R=S+"(";if(Q.indexOf(R)===0&&Q.lastIndexOf(")")===(Q.length-1)){return j(Q.slice(R.length,-1).trim().split(","))}y(false)};var j=function(P){return P.map(function(Q){return Q.trim()})};var y=function(P){if(!P){throw new Error("Invalid or unsupported css value")}};var K=function(P){if(!P.getElement()){rwt.widgets.base.Widget.removeFromGlobalElementQueue(P);P._createElementImpl()}};var t=function(P,Q){if(n.isWidget(P)){K(P);return P[(Q||_[118])]()}return P instanceof A?P.get(0):P};var r=["___rwtStyle__backgroundPosition","___rwtStyle__backgroundGradient","___rwtStyle__backgroundImage","___rwtStyle__backgroundRepeat","___rwtStyle__backgroundColor"]}());
rwt.qx.Class.define(_[125],{extend:rwt.qx.Target,include:rwt.widgets.util.HtmlAttributesMixin,construct:function(){arguments.callee.base.call(this);this._layoutChanges={};this._outerFrame=[0,0]},statics:{_globalWidgetQueue:[],_globalElementQueue:[],_globalStateQueue:[],_globalJobQueue:[],_globalLayoutQueue:[],_fastGlobalDisplayQueue:[],_lazyGlobalDisplayQueues:{},_globalDisposeQueue:[],_autoFlushTimeout:null,_flushGlobalQueuesPhase:0,_renderHtmlIds:false,_FLUSH_PHASE_IDLE:0,_FLUSH_PHASE_WIDGET:1,_FLUSH_PHASE_STATE:2,_FLUSH_PHASE_ELEMENT:3,_FLUSH_PHASE_JOB:4,_FLUSH_PHASE_LAYOUT:5,_FLUSH_PHASE_DISPLAY:6,_FLUSH_PHASE_DISPOSE:7,_initAutoFlush:function(a){if(rwt.widgets.base.Widget._autoFlushTimeout==null){if(!rwt.widgets.base.Widget._inFlushGlobalQueues||a0){for(var b=0;b0){for(var b=0;b0){var a=rwt.util.Arrays.copy(d._globalStateQueue);d._globalStateQueue=[];for(var c=0,b=a.length;c0){for(var b=0;b0){for(var b=0;b=3){g=document.createDocumentFragment();for(var b=0,a=h.length;b0){for(var b=0;b1||c<0)?1:c;break;default:a=c!=null?c:0;break}return a},animate:function(c,a,b){if(this._context!=c||this._renderType!=a||this._animationType!=b){this.clearAnimation();this._context=c;this._renderAdapter=c.getAdapter(rwt.widgets.util.WidgetRenderAdapter);this._renderType=a;this._animationType=b;this._renderFunction=this._renderAdapter.getOriginalRenderer(this._renderType);var d=rwt.animation.AnimationRenderer.converterByRenderType;this.setConverter(d[this._renderType]);this._handleAnimationType()}},clearAnimation:function(){if(this._renderType!==null){this._animationType=0;this._handleAnimationType();this._renderType=null;this.setRenderFunction(null,null);this._renderAdapter=null}},isAnimated:function(b){var a=false;if(this._animationType>0&&this._active){var c=b&this._animationType;if(typeof b===_[8]||c!==0){a=true}}return a},setInvisibilityGetter:function(a){this._invisibilityGetter=a},setAutoStart:function(a){this._autoStartEnabled=a},setAutoCheck:function(a){this._autoCheck=a},getValueFromWidget:function(){var a=null;switch(this._renderType){case _[102]:a=this._context.getOpacity();break;case _[14]:if(this._context.isCreated()&&this._context._style.height){a=parseInt(this._context._style.height,10)}else{a=this._context.getHeightValue();this._context._computedHeightValue=null;this._context._invalidatePreferredInnerHeight();this._context._invalidatePreferredBoxHeight()}break;case"top":if(this._context.isCreated()&&this._context._style.top){a=parseInt(this._context._style.top,10)}else{a=this._context.getTopValue()}break;case"left":if(this._context.isCreated()&&this._context._style.left){a=parseInt(this._context._style.left,10)}else{a=this._context.getLeftValue()}break;case _[129]:var c=_[129];var b=this._context;if(b.getGfxProperty&&b.getGfxProperty(c)){a=b.getGfxProperty(c)}else{a=rwt.html.Style.getBackgroundColor(b)}break;case _[76]:var b=this._context;a=b.getBackgroundGradient();break;default:throw"getValueFromWidget: "+this._renderType+" not supported!"}return a},checkValues:function(){var a;switch(this._renderType){case _[76]:case _[129]:a=this._startValue!=null&&this._endValue!=null;break;default:a=true;break}return a&&this._startValue!=this._endValue},_handleAnimationType:function(){if(this._animation.isRunning()){throw"AnimationRenderer: Can not change animation while running!"}if(this.isAnimated()){this._attachToApplyVisibility(true);this._attachToWidgetRenderer(true)}else{this._attachToApplyVisibility(false);this._attachToWidgetRenderer(false)}},_attachToApplyVisibility:function(a){if(a){this._renderAdapter.addRenderListener(_[93],this._onVisibilityChange,this);this._context.addEventListener(_[44],this._onCreate,this)}else{this._renderAdapter.removeRenderListener(_[93],this._onVisibilityChange,this);this._context.removeEventListener(_[44],this._onCreate,this)}},_attachToWidgetRenderer:function(a){if(a){this._renderAdapter.addRenderListener(this._renderType,this._onOriginalRenderer,this)}else{this._renderAdapter.removeRenderListener(this._renderType,this._onOriginalRenderer,this)}},_onVisibilityChange:function(a){var c=a[0];var b=false;if(c){b=this._onBeforeAppear()}else{if(!this._context.isCreated()){this._animation.cancel()}if(this._context.isSeeable()){b=this._onBeforeDisappear()}else{b=true}}return b},_onCreate:function(){if(this._context.isDisplayable()){this._onBeforeAppear()}},_onBeforeAppear:function(){if(this._context.isCreated()){this._animation.skip()}else{this._animation.cancel()}var a=rwt.animation.AnimationRenderer.ANIMATION_APPEAR;if(this._context.isCreated()&&this.isAnimated(a)){this.setEndValue(this.getValueFromWidget());if(this._invisibilityGetter!=null){this.setStartValue(this._invisibilityGetter(this._context));this._render(0)}this._autoStart(a)}return true},_onBeforeDisappear:function(){this._animation.skip();var b=rwt.animation.AnimationRenderer.ANIMATION_DISAPPEAR;var a=!this.isAnimated(b);if(!a){if(this._invisibilityGetter!==null){this.setEndValue(this._invisibilityGetter(this._context))}this.setStartValue(this.getValueFromWidget());this._autoStart(b)}return a},_onOriginalRenderer:function(f){var g=f[0];var e=f[1];var c=false;if(this._animation.isStarted()){var d=this._animation.getConfig();var b=this._endValue;if(d==_[70]||d==_[38]){this.setEndValue(g)}if(b!=this._endValue){if(this._animation.isRunning()){this.setStartValue(this.getLastValue())}if(!this.checkValues()||!this._animation.restart()){this._animation.cancel();this.cancelActivateOnce();c=true}}}else{var a=rwt.animation.AnimationRenderer.ANIMATION_CHANGE;if(this.isAnimated(a)&&this._context.isSeeable()){this.setStartValue(typeof e!==_[8]?e:this.getValueFromWidget());this.setEndValue(g);if(!this._autoStart(a)&&this._autoStartEnabled){c=true}}else{c=true}}return c},_forceWidgetRenderer:function(){var a=rwt.animation.AnimationRenderer.applyFunctionNames[this._renderType];this._context[a](this._context.get(this._renderType))},_autoStart:function(b){var a=false;if(this._autoStartEnabled&&this.isAnimated(b)&&(this._autoCheck?this.checkValues():true)){a=this._animation.start(this._typeToConfig(b))}else{this.cancelActivateOnce()}return a},_typeToConfig:function(b){var a=null;switch(b){case rwt.animation.AnimationRenderer.ANIMATION_APPEAR:a=_[38];break;case rwt.animation.AnimationRenderer.ANIMATION_DISAPPEAR:a=_[144];break;case rwt.animation.AnimationRenderer.ANIMATION_CHANGE:a=_[70];break}return a},_updateWidgetVisibility:function(){var a=this._context.getVisibility();this._renderAdapter.forceRender(_[93],a)}},statics:{ANIMATION_APPEAR:1,ANIMATION_DISAPPEAR:2,ANIMATION_CHANGE:4,applyFunctionNames:{height:_[492],opacity:_[291],backgroundColor:_[516],backgroundGradient:_[363],top:"_applyTop",left:"_applyLeft"},converterByRenderType:{height:"numericPositiveRound",top:_[475],left:_[475],opacity:"factor",backgroundColor:_[68],backgroundGradient:"gradient"},converter:{none:function(a){return a},round:Math.round,positive:function(a){return Math.max(0,a)},numeric:function(c,b,a){return b+(a-b)*c},numericRound:function(d,c,b){var a=c+(b-c)*d;return Math.round(a)},numericPositive:function(c,b,a){var d=a-b;return Math.max(0,b+d*c)},numericPositiveRound:function(d,c,b){var e=b-c;var a=Math.max(0,c+e*d);return Math.round(a)},factor:function(d,c,b){var a=c+(b-c)*d;return Math.max(0,Math.min(a,1))},color:function(g,c,b){var a=[];var d;var f;for(var e=0;e<3;e++){f=b[e]-c[e];d=Math.round(c[e]+f*g);a[e]=Math.max(0,Math.min(d,255))}return rwt.util.Colors.rgbToRgbString(a)},gradient:function(f,c,b){var g=rwt.animation.AnimationRenderer.converter.color;var h=rwt.animation.AnimationRenderer.converter.factor;var a=[];var e=Math.min(b.length,c.length);for(var d=0;d=this._finishOn){this._finish()}else{var a=(b-this._startOn)/this._totalTime;this._render(a)}},_render:function(a){if(!this._isRunning){for(var b=0;b0},isEmpty:function(){return this.getChildrenLength()===0},indexOf:function(a){return this.getChildren().indexOf(a)},contains:function(a){switch(a){case null:return false;case this:return true;default:return this.contains(a.getParent())}},_computeVisibleChildren:function(){var c=[];var a=this.getChildren();if(!a){return 0}var d=a.length;for(var b=0;b0},isVisibleEmpty:function(){return this.getVisibleChildrenLength()===0},add:function(){var c;for(var b=0,a=arguments.length;bc){c++}return this.addAt(e,Math.max(0,c-1))},addAfter:function(e,d){var a=this.getChildren();var c=a.indexOf(d);if(c==-1){throw new Error("Child to add after: "+d+_[489])}var b=a.indexOf(e);if(b!=-1&&b0){c._renderRuntimeLeft(b.getPaddingLeft())}else{c._resetRuntimeLeft()}}else{c._renderRuntimeLeft(c.getLeftValue()+b.getPaddingLeft())}}if(a.initial||a.right||a.parentPaddingRight){if(c._computedRightTypeNull){if(c._computedLeftTypeNull&&b.getPaddingRight()>0){c._renderRuntimeRight(b.getPaddingRight())}else{c._resetRuntimeRight()}}else{c._renderRuntimeRight(c.getRightValue()+b.getPaddingRight())}}},layoutChild_locationX_mirror:function(c,a){var b=this.getWidget();if(a.initial||a.left||a.parentPaddingLeft){if(c._computedLeftTypeNull){if(c._computedRightTypeNull&&b.getPaddingLeft()>0){c._renderRuntimeRight(b.getPaddingLeft())}else{c._resetRuntimeRight()}}else{c._renderRuntimeRight(c.getLeftValue()+b.getPaddingLeft())}}if(a.initial||a.right||a.parentPaddingRight){if(c._computedRightTypeNull){if(c._computedLeftTypeNull&&b.getPaddingRight()>0){c._renderRuntimeLeft(b.getPaddingRight())}else{c._resetRuntimeLeft()}}else{c._renderRuntimeLeft(c.getRightValue()+b.getPaddingRight())}}},layoutChild_locationY:function(c,a){var b=this.getWidget();if(a.initial||a.top||a.parentPaddingTop){if(c._computedTopTypeNull){if(c._computedBottomTypeNull&&b.getPaddingTop()>0){c._renderRuntimeTop(b.getPaddingTop())}else{c._resetRuntimeTop()}}else{c._renderRuntimeTop(c.getTopValue()+b.getPaddingTop())}}if(a.initial||a.bottom||a.parentPaddingBottom){if(c._computedBottomTypeNull){if(c._computedTopTypeNull&&b.getPaddingBottom()>0){c._renderRuntimeBottom(b.getPaddingBottom())}else{c._resetRuntimeBottom()}}else{c._renderRuntimeBottom(c.getBottomValue()+b.getPaddingBottom())}}}}});
rwt.qx.Class.define("rwt.widgets.base.ClientDocument",{extend:rwt.widgets.base.Parent,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.widgets.base.ClientDocument)}},construct:function(){arguments.callee.base.call(this);this._window=window;this._document=window.document;this.setElement(this._document.body);this.getElement().setAttribute("spellcheck","false");this._document.body.style.position="";this._cachedInnerWidth=this._document.body.offsetWidth;this._cachedInnerHeight=this._document.body.offsetHeight;this.addEventListener(_[139],this._onwindowresize);this._modalWidgets=[];this.activateFocusRoot();this.initSelectable();rwt.event.EventHandler.setFocusRoot(this);if(rwt.client.Client.isGecko()){this.getElement().style.position=_[11];this.setSelectable(true)}var a=rwt.util.Functions.bind(this._resetScrollPosition,this);this._document.documentElement.onscroll=a;this.getElement().onscroll=a},properties:{appearance:{refine:true,init:"client-document"},enableElementFocus:{refine:true,init:false},enabled:{refine:true,init:true},selectable:{refine:true,init:false},hideFocus:{refine:true,init:true},globalCursor:{check:_[51],nullable:true,themeable:true,apply:"_applyGlobalCursor",event:"changeGlobalCursor"}},members:{_applyParent:rwt.util.Functions.returnTrue,_applyOverflow:function(b){var a=_[101];if(b===_[224]){a=_[174]}else{if(b===_[223]){a=_[175]}}this._document.documentElement.style[a]=b===_[6]?b:"auto";this.getElement().style[a]=b===_[6]?b:"auto"},getTopLevelWidget:function(){return this},getWindowElement:function(){return this._window},getDocumentElement:function(){return this._document},getParent:rwt.util.Functions.returnNull,getToolTip:rwt.util.Functions.returnNull,isSeeable:rwt.util.Functions.returnTrue,_isDisplayable:true,_hasParent:false,_initialLayoutDone:true,_isInDom:true,_getBlocker:function(){if(!this._blocker){this._blocker=new rwt.widgets.base.ClientDocumentBlocker();this._blocker.setStyleProperty(_[84],_[62]);this.add(this._blocker)}return this._blocker},block:function(a){this._getBlocker().show();if(rwt.qx.Class.isDefined(_[477])&&a instanceof rwt.widgets.base.Window){this._modalWidgets.push(a);var b=a.getZIndex();this._getBlocker().setZIndex(b);a.setZIndex(b+1)}},release:function(c){if(c){rwt.util.Arrays.remove(this._modalWidgets,c)}var b=this._modalWidgets.length;if(b===0){this._getBlocker().hide()}else{var d=this._modalWidgets[b-1];var a=d.getZIndex();this._getBlocker().setZIndex(a);d.setZIndex(a+1)}},_resetScrollPosition:function(){var a=this.getOverflow();if(a!==_[22]&&a!==_[224]){document.documentElement.scrollLeft=0;document.body.scrollLeft=0}if(a!==_[22]&&a!==_[223]){document.documentElement.scrollTop=0;document.body.scrollTop=0}},createStyleElement:function(a){return rwt.html.StyleSheet.createElement(a)},addCssRule:function(a,c,b){return rwt.html.StyleSheet.addRule(a,c,b)},removeCssRule:function(a,b){return rwt.html.StyleSheet.removeRule(a,b)},removeAllCssRules:function(a){return rwt.html.StyleSheet.removeAllRules(a)},_applyGlobalCursor:function(a){if(!this._globalCursorStyleSheet){this._globalCursorStyleSheet=this.createStyleElement()}this.removeCssRule(this._globalCursorStyleSheet,"*");if(a){this.addCssRule(this._globalCursorStyleSheet,"*","cursor:"+a+" !important")}},_onwindowresize:function(){rwt.widgets.util.PopupManager.getInstance().update();this._recomputeInnerWidth();this._recomputeInnerHeight();rwt.widgets.base.Widget.flushGlobalQueues()},_computeInnerWidth:function(){return this._document.body.offsetWidth},_computeInnerHeight:function(){return this._document.body.offsetHeight}},defer:function(){var b=rwt.client.Client.getEngineBoxSizingAttributes();var a=b.join(_[420])+_[420];var c=b.join(_[506])+_[506];rwt.html.StyleSheet.createElement("html,body { margin:0;border:0;padding:0; } html { border:0 none; } *{"+a+"} img{"+c+"}");rwt.html.StyleSheet.createElement("html,body{width:100%;height:100%;overflow:hidden;}");rwt.widgets.base.ClientDocument.BOXSIZING=_[270]},destruct:function(){this._disposeObjects("_blocker");this._disposeFields("_window","_document","_modalWidgets","_globalCursorStyleSheet")}});
rwt.qx.Class.define("rwt.widgets.base.Terminator",{extend:rwt.widgets.base.Widget,members:{_applyTextColor:function(){this._renderTextColor()},_renderAppearance:function(){arguments.callee.base.call(this);this._renderTextColor()},_renderTextColor:function(){var a=this.getEnabled()?this.getTextColor():this._getDisabledColor();if(this.getStyleProperty(_[68])!==a){if(a){this.setStyleProperty(_[68],a)}else{this.removeStyleProperty(_[68])}}},_getDisabledColor:function(){var a=this.__theme$textColor;var b=this.getParent();while(!a&&b!==null){a=b.__theme$textColor;b=b.getParent()}return a},renderPadding:function(a){if(a.paddingLeft){this._renderRuntimePaddingLeft(this.getPaddingLeft())}if(a.paddingRight){this._renderRuntimePaddingRight(this.getPaddingRight())}if(a.paddingTop){this._renderRuntimePaddingTop(this.getPaddingTop())}if(a.paddingBottom){this._renderRuntimePaddingBottom(this.getPaddingBottom())}},_renderContent:function(){if(this._computedWidthTypePixel){this._cachedPreferredInnerWidth=null}else{this._invalidatePreferredInnerWidth()}if(this._computedHeightTypePixel){this._cachedPreferredInnerHeight=null}else{this._invalidatePreferredInnerHeight()}if(this._initialLayoutDone){this.addToJobQueue("load")}},_layoutPost:function(a){if(a.initial||a.load||a.width||a.height){this._postApply()}this.createDispatchDataEvent("flush",a)},_postApply:rwt.util.Functions.returnTrue,_computeBoxWidthFallback:function(){return this.getPreferredBoxWidth()},_computeBoxHeightFallback:function(){return this.getPreferredBoxHeight()},_computePreferredInnerWidth:rwt.util.Functions.returnZero,_computePreferredInnerHeight:rwt.util.Functions.returnZero,_isWidthEssential:function(){if(!this._computedLeftTypeNull&&!this._computedRightTypeNull){return true}if(!this._computedWidthTypeNull&&!this._computedWidthTypeAuto){return true}if(!this._computedMinWidthTypeNull&&!this._computedMinWidthTypeAuto){return true}if(!this._computedMaxWidthTypeNull&&!this._computedMaxWidthTypeAuto){return true}if(this._targetNode){return true}return false},_isHeightEssential:function(){if(!this._computedTopTypeNull&&!this._computedBottomTypeNull){return true}if(!this._computedHeightTypeNull&&!this._computedHeightTypeAuto){return true}if(!this._computedMinHeightTypeNull&&!this._computedMinHeightTypeAuto){return true}if(!this._computedMaxHeightTypeNull&&!this._computedMaxHeightTypeAuto){return true}if(this._targetNode){return true}return false}}});
rwt.qx.Class.define("rwt.widgets.base.ClientDocumentBlocker",{extend:rwt.widgets.base.Terminator,include:rwt.animation.VisibilityAnimationMixin,construct:function(){arguments.callee.base.call(this);this.initTop();this.initLeft();this.initWidth();this.initHeight();this.initZIndex()},properties:{appearance:{refine:true,init:_[439]},zIndex:{refine:true,init:100000000},top:{refine:true,init:0},left:{refine:true,init:0},width:{refine:true,init:"100%"},height:{refine:true,init:"100%"},display:{refine:true,init:false}},members:{getFocusRoot:function(){return null}}});
rwt.qx.Class.define("rwt.theme.AppearanceManager",{extend:rwt.util.ObjectManager,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.theme.AppearanceManager)}},construct:function(){arguments.callee.base.call(this);this.__cache={};this.__stateMap={};this.__stateMapLength=1},members:{setCurrentTheme:function(a){this._currentTheme=a;this.syncAppearanceTheme()},getCurrentTheme:function(){return this._currentTheme},syncAppearanceTheme:function(){if(!this._currentTheme){return}if(this._currentTheme){this.__cache[this._currentTheme.name]={}}if(rwt.runtime.System.getInstance().getUiReady()){rwt.widgets.base.ClientDocument.getInstance()._recursiveAppearanceThemeUpdate(this._currentTheme)}},styleFrom:function(c,a){var b=this.getCurrentTheme();if(!b){return}return this.styleFromTheme(b,c,a)},styleFromTheme:function(i,e,m){var k=i.appearances[e];if(!k){if(rwt.util.Variant.isSet(_[104],"on")){throw new Error("Missing appearance entry: "+e)}return null}if(!k.style){if(k.include){return this.styleFromTheme(i,k.include,m)}else{return null}}var b=this.__stateMap;var f=[e];for(var c in m){if(!b[c]){b[c]=this.__stateMapLength++}f[b[c]]=true}var h=f.join();var a=this.__cache[i.name];if(a&&a[h]!==undefined){return a[h]}var n;if(k.include||k.base){var j=k.style(m);var g;if(k.include){g=this.styleFromTheme(i,k.include,m)}n={};if(k.base){var d=this.styleFromTheme(k.base,e,m);if(k.include){for(var l in d){if(g[l]===undefined&&j[l]===undefined){n[l]=d[l]}}}else{for(var l in d){if(j[l]===undefined){n[l]=d[l]}}}}if(k.include){for(var l in g){if(j[l]===undefined){n[l]=g[l]}}}for(var l in j){n[l]=j[l]}}else{n=k.style(m)}if(a){a[h]=n||null}return n||null}},destruct:function(){this._disposeFields("__cache","__stateMap")}});
rwt.qx.Class.define("rwt.html.Border",{extend:rwt.qx.Object,construct:function(c,b,a,d){arguments.callee.base.call(this);this._colors=null;this._widths=null;this._styles=null;this._innerColors=[null,null,null,null];this._radii=[0,0,0,0];this._singleColor=null;this._singleStyle=null;this._setWidth(c);this._setStyle(b?b:"none");this._setColor(a?a:"");if(b===_[169]){if(d===undefined){throw new Error("Missing innerColors")}this._setInnerColor(d)}else{if(d!==undefined){this._setRadii(d)}}},statics:{_EDGEWIDTH:[_[78],_[209],_[190],_[73]],_EDGECOLOR:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],_EDGESTYLE:[_[355],_[350],_[313],_[317]],_EDGEMOZCOLORS:["MozBorderTopColors","MozBorderRightColors","MozBorderBottomColors","MozBorderLeftColors"],_BORDERRADII:rwt.util.Variant.select(_[5],{"webkit|blink":["-webkit-border-top-left-radius","-webkit-border-top-right-radius","-webkit-border-bottom-right-radius","-webkit-border-bottom-left-radius"],"gecko|trident":["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],"default":[]}),resetWidget:function(a){a._style.border="";if(a._innerStyle){a._innerStyle.border=""}this._resetRadii(a);this._resetComplexBorder(a)},_resetRadii:function(c){try{for(var b=0;b<4;b++){c._style[this._BORDERRADII[b]]=""}}catch(a){}},_resetComplexBorder:rwt.util.Variant.select(_[5],{gecko:function(c){var d=rwt.html.Border;var b=c._style;for(var a=0;a<4;a++){b[d._EDGEMOZCOLORS[a]]=""}},"default":function(c){var d=rwt.html.Border;var a=c._innerStyle;if(a){for(var b=0;b<4;b++){a[d._EDGEWIDTH[b]]="";a[d._EDGESTYLE[b]]="";a[d._EDGECOLOR[b]]=""}}}})},members:{_setColor:function(a){if(typeof a===_[7]){this._singleColor=a}this._colors=this._normalizeValue(a)},_setWidth:function(a){this._widths=this._normalizeValue(a)},_setStyle:function(a){if(typeof a===_[7]){this._singleStyle=a}this._styles=this._normalizeValue(a===_[169]?_[80]:a)},_setInnerColor:function(a){this._innerColors=this._normalizeValue(a)},_setRadii:function(a){this._radii=this._normalizeValue(a)},getRadii:function(){return this._radii.concat()},getColor:function(){return this._singleColor},getColors:function(){return this._colors.concat()},getColorTop:function(){return this._colors[0]},getColorRight:function(){return this._colors[1]},getColorBottom:function(){return this._colors[2]},getColorLeft:function(){return this._colors[3]},getInnerColors:function(){return this._innerColors.concat()},getColorInnerTop:function(){return this._innerColors[0]},getColorInnerRight:function(){return this._innerColors[1]},getColorInnerBottom:function(){return this._innerColors[2]},getColorInnerLeft:function(){return this._innerColors[3]},getStyle:function(){return this._singleStyle},getStyles:function(){return this._styles.concat()},getStyleTop:function(){return this._styles[0]},getStyleRight:function(){return this._styles[1]},getStyleBottom:function(){return this._styles[2]},getStyleLeft:function(){return this._styles[3]},getWidths:function(){return this._widths.concat()},getWidthTop:function(){return this._widths[0]},getWidthRight:function(){return this._widths[1]},getWidthBottom:function(){return this._widths[2]},getWidthLeft:function(){return this._widths[3]},_normalizeValue:function(b){var a;if(b instanceof Array){a=b}else{a=[b,b,b,b]}return a},renderWidget:function(a){if(this.getStyle()===_[169]){this._renderComplexBorder(a)}else{if(this._isRounded()){this._renderRoundedBorder(a)}else{this._renderSimpleBorder(a)}}},renderElement:function(a){if(this.getStyle()===_[169]){throw new Error("Rendering complex or rounded border on elements currently unsupported")}this._renderSimpleBorderStyle(a.style);if(this._isRounded()){this._renderRadii(a.style)}},_renderSimpleBorder:function(a){rwt.html.Border._resetComplexBorder(a);rwt.html.Border._resetRadii(a);this._renderSimpleBorderStyle(a._style)},_renderSimpleBorderStyle:function(b){var c=rwt.html.Border;for(var a=0;a<4;a++){b[c._EDGEWIDTH[a]]=(this._widths[a]||0)+"px";b[c._EDGESTYLE[a]]=this._styles[a]||"none";b[c._EDGECOLOR[a]]=this._colors[a]||""}},_renderComplexBorder:rwt.util.Variant.select(_[5],{gecko:function(c){var d=rwt.html.Border;d._resetRadii(c);var b=c._style;for(var a=0;a<4;a++){b[d._EDGEWIDTH[a]]=(this._widths[a]||0)+"px";b[d._EDGECOLOR[a]]=this._colors[a]||"";if(this._widths[a]===2){b[d._EDGESTYLE[a]]=_[80];b[d._EDGEMOZCOLORS[a]]=this._colors[a]+" "+this._innerColors[a]}else{b[d._EDGESTYLE[a]]=this._styles[a]||"none";b[d._EDGEMOZCOLORS[a]]=""}}},"default":function(d){var e=rwt.html.Border;e._resetRadii(d);var c=d._style;var a=d._innerStyle;for(var b=0;b<4;b++){if(this._widths[b]===2){if(!a){d.prepareEnhancedBorder();a=d._innerStyle}c[e._EDGEWIDTH[b]]="1px";c[e._EDGESTYLE[b]]=_[80];c[e._EDGECOLOR[b]]=this._colors[b]||"";a[e._EDGEWIDTH[b]]="1px";a[e._EDGESTYLE[b]]=_[80];a[e._EDGECOLOR[b]]=this._innerColors[b]}else{c[e._EDGEWIDTH[b]]=(this._widths[b]||0)+"px";c[e._EDGESTYLE[b]]=this._styles[b]||"none";c[e._EDGECOLOR[b]]=this._colors[b]||"";if(a){a[e._EDGEWIDTH[b]]="";a[e._EDGESTYLE[b]]="";a[e._EDGECOLOR[b]]=""}}}}}),_renderRoundedBorder:function(a){this._renderSimpleBorder(a);this._renderRadii(a._style)},_renderRadii:function(b){var c=rwt.html.Border;for(var a=0;a<4;a++){b[c._BORDERRADII[a]]=this._radii[a]+"px"}},_isRounded:function(){return this._radii.join("")!=="0000"}}});
rwt.qx.Class.define("rwt.html.Font",{extend:rwt.qx.Object,construct:function(a,b){arguments.callee.base.call(this);if(a!==undefined){this.setSize(a)}if(b!==undefined){this.setFamily(b)}},statics:{_fontPool:{},fromString:function(g){var b=new rwt.html.Font();var f=g.split(/\s+/);var d=[];for(var e=0;e0){b.setFamily(d)}return b},fromArray:function(a){var d=a[0];var f=a[1];var e=a[2];var c=a[3];var g=d+f+e+c;var b=this._fontPool[g];if(!b){b=new rwt.html.Font(f,d);b.setBold(e);b.setItalic(c);this._fontPool[g]=b}return b},fromConfig:function(b){var a=new rwt.html.Font();a.set(b);return a},reset:function(a){a.removeStyleProperty("fontFamily");a.removeStyleProperty(_[241]);a.removeStyleProperty("fontWeight");a.removeStyleProperty("fontStyle");a.removeStyleProperty(_[212])},resetElement:function(a){var b=a.style;b.fontFamily="";b.fontSize="";b.fontWeight="";b.fontStyle="";b.textDecoration=""},resetStyle:function(a){a.fontFamily="";a.fontSize="";a.fontWeight="";a.fontStyle="";a.textDecoration=""}},properties:{size:{check:_[25],nullable:true,apply:"_applySize"},family:{check:"Array",nullable:true,apply:"_applyFamily"},bold:{check:_[1],nullable:true,apply:"_applyBold"},italic:{check:_[1],nullable:true,apply:"_applyItalic"},decoration:{check:[_[309],"line-through","overline"],nullable:true,apply:"_applyDecoration"}},members:{__size:null,__family:null,__bold:null,__italic:null,__decoration:null,_applySize:function(a){this.__size=a===null?null:a+"px"},_applyFamily:function(d){var c="";for(var b=0,a=d.length;b0){c+='"'+d[b]+'"'}else{c+=d[b]}if(b!=a-1){c+=","}}this.__family=c},_applyBold:function(a){this.__bold=a===null?null:a?"bold":_[43]},_applyItalic:function(a){this.__italic=a===null?null:a?"italic":_[43]},_applyDecoration:function(a){this.__decoration=a===null?null:a},render:function(a){a.setStyleProperty("fontFamily",this.__family);a.setStyleProperty(_[241],this.__size);a.setStyleProperty("fontWeight",this.__bold);a.setStyleProperty("fontStyle",this.__italic);a.setStyleProperty(_[212],this.__decoration)},renderStyle:function(a){a.fontFamily=this.__family||"";a.fontSize=this.__size||"";a.fontWeight=this.__bold||"";a.fontStyle=this.__italic||"";a.textDecoration=this.__decoration||""},renderElement:function(a){var b=a.style;b.fontFamily=this.__family||"";b.fontSize=this.__size||"";b.fontWeight=this.__bold||"";b.fontStyle=this.__italic||"";b.textDecoration=this.__decoration||""},toCss:function(){return(this.getItalic()?"italic ":"")+(this.getBold()?"bold ":"")+(this.__size?this.getSize()+"px ":"")+(this.__family?this.__family.replace(/\"/g,"'"):"")}}});
rwt.qx.Class.define(_[373],{extend:rwt.qx.Target,construct:function(a){arguments.callee.base.call(this);if(a!=null){this._attachedWidget=a}},statics:{mouseFocus:false,blockFocus:false},members:{getAttachedWidget:function(){return this._attachedWidget},_onkeyevent:function(a,d){if(d.getKeyIdentifier()!="Tab"){return}d.stopPropagation();d.preventDefault();rwt.widgets.util.FocusHandler.mouseFocus=false;var c=this.getAttachedWidget().getFocusedChild();if(!d.isShiftPressed()){var b=c?this.getWidgetAfter(a,c):this.getFirstWidget(a)}else{var b=c?this.getWidgetBefore(a,c):this.getLastWidget(a)}if(b){b.setFocused(true);b._ontabfocus()}},compareTabOrder:function(f,d){if(f==d){return 0}var h=f.getTabIndex();var g=d.getTabIndex();if(h!=g){return h-g}var j=rwt.html.Location.getTop(f.getElement());var i=rwt.html.Location.getTop(d.getElement());if(j!=i){return j-i}var b=rwt.html.Location.getLeft(f.getElement());var a=rwt.html.Location.getLeft(d.getElement());if(b!=a){return b-a}var e=f.getZIndex();var c=d.getZIndex();if(e!=c){return e-c}return 0},getFirstWidget:function(a){return this._getFirst(a,null)},getLastWidget:function(a){return this._getLast(a,null)},getWidgetAfter:function(b,a){if(b==a){return this.getFirstWidget(b)}if(a.getAnonymous()){a=a.getParent()}if(a==null){return[]}var c=[];this._getAllAfter(b,a,c);c.sort(this.compareTabOrder);return c.length>0?c[0]:this.getFirstWidget(b)},getWidgetBefore:function(c,b){if(c==b){return this.getLastWidget(c)}if(b.getAnonymous()){b=b.getParent()}if(b==null){return[]}var d=[];this._getAllBefore(c,b,d);d.sort(this.compareTabOrder);var a=d.length;return a>0?d[a-1]:this.getLastWidget(c)},_getAllAfter:function(e,f,b){var d=e.getChildren();var g;var a=d.length||0;for(var c=0;c0&&this.compareTabOrder(f,g)<0){b.push(d[c])}if(!g.isFocusRoot()&&g instanceof rwt.widgets.base.Parent){this._getAllAfter(g,f,b)}}},_getAllBefore:function(e,f,b){var d=e.getChildren();var g;var a=d.length;for(var c=0;c0&&this.compareTabOrder(f,g)>0){b.push(g)}if(!g.isFocusRoot()&&g instanceof rwt.widgets.base.Parent){this._getAllBefore(g,f,b)}}},_getFirst:function(d,f){var c=d.getChildren();var e;var a=c.length;for(var b=0;b0){if(f==null||this.compareTabOrder(e,f)<0){f=e}}if(!e.isFocusRoot()&&e instanceof rwt.widgets.base.Parent){f=this._getFirst(e,f)}}return f},_getLast:function(e,b){var d=e.getChildren();var f;var a=d.length;for(var c=0;c0){if(b==null||this.compareTabOrder(f,b)>0){b=f}}if(!f.isFocusRoot()&&f instanceof rwt.widgets.base.Parent){b=this._getLast(f,b)}}return b}},destruct:function(){this._disposeFields("_attachedWidget")}});
rwt.qx.Class.define("rwt.html.Location",{statics:{__style:function(b,a){return rwt.html.Style.getStyleProperty(b,a)},__num:function(c,b){var d=rwt.html.Style.getStyleProperty(c,b);var a=Math.round(parseFloat(d,10));return a||0},__computeScroll:function(b){var e=0,d=0;if(b.getBoundingClientRect){var c=rwt.html.Nodes.getWindow(b);e-=rwt.html.Viewport.getScrollLeft(c);d-=rwt.html.Viewport.getScrollTop(c)}else{var a=rwt.html.Nodes.getDocument(b).body;b=b.parentNode;while(b&&b!=a){e+=b.scrollLeft;d+=b.scrollTop;b=b.parentNode}}return{left:Math.ceil(e),top:Math.ceil(d)}},__computeBody:rwt.util.Variant.select(_[5],{"webkit|blink":function(b){var e=rwt.html.Nodes.getDocument(b);var a=e.body;var d=a.offsetLeft;var c=a.offsetTop;d+=this.__num(a,_[73]);c+=this.__num(a,_[78]);if(e.compatMode===_[303]){d+=this.__num(a,_[161]);c+=this.__num(a,_[171])}return{left:Math.ceil(d),top:Math.ceil(c)}},gecko:function(b){var a=rwt.html.Nodes.getDocument(b).body;var d=a.offsetLeft;var c=a.offsetTop;if(rwt.widgets.base.ClientDocument.BOXSIZING!==_[270]){d+=this.__num(a,_[73]);c+=this.__num(a,_[78]);if(!b.getBoundingClientRect){var e;while(b){if(this.__style(b,_[84])===_[11]||this.__style(b,_[84])===_[62]){e=true;break}b=b.offsetParent}if(!e){d+=this.__num(a,_[73]);c+=this.__num(a,_[78])}}}return{left:Math.ceil(d),top:Math.ceil(c)}},"default":function(b){var a=rwt.html.Nodes.getDocument(b).body;var d=a.offsetLeft;var c=a.offsetTop;return{left:Math.ceil(d),top:Math.ceil(c)}}}),__computeOffset:rwt.util.Variant.select(_[5],{"trident|webkit|blink":function(c){var f=rwt.html.Nodes.getDocument(c);if(c.getBoundingClientRect){var b=c.getBoundingClientRect();var e=b.left;var d=b.top}else{var e=c.offsetLeft;var d=c.offsetTop;c=c.offsetParent;var a=f.body;while(c&&c!=a){e+=c.offsetLeft;d+=c.offsetTop;e+=this.__num(c,_[73]);d+=this.__num(c,_[78]);c=c.offsetParent}}return{left:Math.ceil(e),top:Math.ceil(d)}},gecko:function(d){if(d.getBoundingClientRect){var c=d.getBoundingClientRect();var f=Math.round(c.left);var e=Math.round(c.top)}else{var f=0;var e=0;var a=rwt.html.Nodes.getDocument(d).body;var b=rwt.widgets.base.ClientDocument.BOXSIZING;if(b!==_[270]){f-=this.__num(d,_[73]);e-=this.__num(d,_[78])}while(d&&d!==a){f+=d.offsetLeft;e+=d.offsetTop;if(b!==_[270]){f+=this.__num(d,_[73]);e+=this.__num(d,_[78])}if(d.parentNode&&this.__style(d.parentNode,_[101])!=_[145]){f+=this.__num(d.parentNode,_[73]);e+=this.__num(d.parentNode,_[78])}d=d.offsetParent}}return{left:Math.ceil(f),top:Math.ceil(e)}},"default":function(b){var d=0;var c=0;var a=rwt.html.Nodes.getDocument(b).body;while(b&&b!==a){d+=b.offsetLeft;c+=b.offsetTop;b=b.offsetParent}return{left:Math.ceil(d),top:Math.ceil(c)}}}),get:function(e,g){var h=this.__computeBody(e);var c=e.tagName=="BODY";if(c){var d=h.left;var i=h.top}else{var f=this.__computeOffset(e);var j=this.__computeScroll(e);var d=f.left+h.left-j.left;var i=f.top+h.top-j.top}var k=d+e.offsetWidth;var b=i+e.offsetHeight;if(g){if(g==_[110]||g==_[22]){var a=rwt.html.Overflow.getX(e);if(a==_[22]||a=="auto"){k+=e.scrollWidth-e.offsetWidth+this.__num(e,_[73])+this.__num(e,_[209])}var l=rwt.html.Overflow.getY(e);if(l==_[22]||l=="auto"){b+=e.scrollHeight-e.offsetHeight+this.__num(e,_[78])+this.__num(e,_[190])}}if(g===_[110]){d+=this.__num(e,_[163]);i+=this.__num(e,_[153]);k-=this.__num(e,_[150]);b-=this.__num(e,_[172])}if(g===_[110]||g===_[22]){d-=c?rwt.html.Viewport.getScrollLeft():e.scrollLeft;i-=c?rwt.html.Viewport.getScrollTop():e.scrollTop;k-=c?rwt.html.Viewport.getScrollLeft():e.scrollLeft;b-=c?rwt.html.Viewport.getScrollTop():e.scrollTop}if(g===_[110]||g===_[22]||g===_[88]){d+=this.__num(e,_[73]);i+=this.__num(e,_[78]);k-=this.__num(e,_[209]);b-=this.__num(e,_[190])}if(g===_[201]){d-=this.__num(e,_[161]);i-=this.__num(e,_[171]);k+=this.__num(e,_[186]);b+=this.__num(e,_[217])}}return{left:d,top:i,right:k,bottom:b}},getLeft:function(a,b){return this.get(a,b).left},getTop:function(a,b){return this.get(a,b).top},getRight:function(a,b){return this.get(a,b).right},getBottom:function(a,b){return this.get(a,b).bottom},getRelative:function(b,a,f,d){var e=this.get(b,f);var c=this.get(a,d);return{left:e.left-c.left,top:e.top-c.top,right:e.right-c.right,bottom:e.bottom-c.bottom}}}});
(function(){var b=rwt.client.Client;rwt.qx.Class.define(_[529],{statics:{VENDOR_PREFIX_VALUE:rwt.util.Variant.select(_[5],{gecko:"-moz-","webkit|blink":"-webkit-",trident:"-ms-","default":""}),VENDOR_PREFIX_PROPERTY:rwt.util.Variant.select(_[5],{gecko:"Moz","webkit|blink":_[138],trident:"ms","default":""}),getStyleProperty:function(f,d){try{var h=rwt.html.Nodes.getDocument(f);var g=h.defaultView.getComputedStyle(f,null);var c=g?g[d]:null;return c?c:f.style[d]}catch(e){throw new Error(_[381]+f+"["+d+"]: "+e)}},setStyleProperty:function(e,d,c){if(e.setStyleProperty){e.setStyleProperty(d,c)}else{e.style[d]=c}},removeStyleProperty:function(d,c){if(d instanceof rwt.widgets.base.Widget){d.removeStyleProperty(c)}else{d.style[c]=""}},getOwnProperty:function(d,c){if(d.getStyleProperty){d.getStyleProperty(c)}else{return d.style[c]}},getStyleSize:function(c,d){return parseInt(rwt.html.Style.getStyleProperty(c,d),10)||0},getMarginLeft:function(c){return rwt.html.Style.getStyleSize(c,_[161])},getMarginTop:function(c){return rwt.html.Style.getStyleSize(c,_[171])},getMarginRight:function(c){return rwt.html.Style.getStyleSize(c,_[186])},getMarginBottom:function(c){return rwt.html.Style.getStyleSize(c,_[217])},getPaddingLeft:function(c){return rwt.html.Style.getStyleSize(c,_[163])},getPaddingTop:function(c){return rwt.html.Style.getStyleSize(c,_[153])},getPaddingRight:function(c){return rwt.html.Style.getStyleSize(c,_[150])},getPaddingBottom:function(c){return rwt.html.Style.getStyleSize(c,_[172])},getBorderLeft:function(c){return rwt.html.Style.getStyleProperty(c,_[317])=="none"?0:rwt.html.Style.getStyleSize(c,_[73])},getBorderTop:function(c){return rwt.html.Style.getStyleProperty(c,_[355])=="none"?0:rwt.html.Style.getStyleSize(c,_[78])},getBorderRight:function(c){return rwt.html.Style.getStyleProperty(c,_[350])=="none"?0:rwt.html.Style.getStyleSize(c,_[209])},getBorderBottom:function(c){return rwt.html.Style.getStyleProperty(c,_[313])=="none"?0:rwt.html.Style.getStyleSize(c,_[190])},setBackgroundGradient:function(d,c){if(d.___rwtStyle__backgroundGradient!==c){d.___rwtStyle__backgroundGradient=c;if(!d.___rwtStyle__backgroundImage){this._updateBackground(d)}}},getBackgroundGradient:function(h){var g=h.___rwtStyle__backgroundGradient;if(!g){return undefined}var e=[g.horizontal===true?_[299]:_[285]];for(var f=0;f=1.9;var e=b.getBrowser()===_[194]&&c>=530;if(d||e){this.setStyleProperty(g,_[249],f);g.setAttribute(_[249],f)}else{this._passEventsThrough(g,f)}},setUserSelect:function(d,c){this.setStyleProperty(d,this._prefixProperty(_[248]),c)},getUserSelect:function(c){return this.getOwnProperty(c,this._prefixProperty(_[248]))},setTransition:function(e,c){if(!this._transitionProperty){this._transitionProperty=_[238];var d=document.createElement("div");if(!(_[238] in d.style)){if(_[263] in d.style){this._transitionProperty=_[263]}else{if(_[236] in d.style){this._transitionProperty=_[236]}}}}this.setStyleProperty(e,this._transitionProperty,c)},_prefixProperty:function(c){if(this.VENDOR_PREFIX_PROPERTY){return this.VENDOR_PREFIX_PROPERTY+rwt.util.Strings.toFirstUp(c)}return c},_updateBackground:function(d){var c=[];this._pushBackgroundImage(d,c);this._pushBackgroundGradient(d,c);this._pushBackgroundColor(d,c);if(c.length>0){this.setStyleProperty(d,_[98],c.join(", "));if(d.___rwtStyle__backgroundImage&&d.___rwtStyle__backgroundSize){this.setStyleProperty(d,_[453],d.___rwtStyle__backgroundSize)}}else{this._clearCssBackground(d)}},_pushBackgroundImage:function(f,g){var e=f.___rwtStyle__backgroundImage;if(e){var d=f.___rwtStyle__backgroundRepeat;var c=f.___rwtStyle__backgroundPosition;g.push(this._getImageString(e,d,c))}},_pushBackgroundGradient:function(d,e){var c=d.___rwtStyle__backgroundGradient;if(c&&!d.___rwtStyle__backgroundImage){e.push(this._getGradientString(c))}},_pushBackgroundColor:function(d,e){var c=d.___rwtStyle__backgroundColor;if(c){if((b.isWebkit()||b.isBlink())&&!d.___rwtStyle__backgroundGradient){e.push(this._getGradientString([[0,c],[1,c]]))}e.push(c)}},_getGradientString:rwt.util.Variant.select(_[5],{"webkit|blink":function(g){var e=["linear",_[328]];if(g.horizontal===true){e.push(_[301])}else{e.push(_[359])}for(var f=0;f ")},end:encodeURIComponent(_[497])+encodeURIComponent(_[522])+'")'}}());
rwt.qx.Class.define("rwt.html.Overflow",{statics:{getX:rwt.util.Variant.select(_[5],{gecko:rwt.client.Client.getVersion()<1.8?function(a){var b=rwt.html.Style.getStyleProperty(a,_[101]);if(b===_[443]){b=_[6]}return b}:function(a){return rwt.html.Style.getStyleProperty(a,_[174])},"default":function(a){return rwt.html.Style.getStyleProperty(a,_[174])}}),getY:rwt.util.Variant.select(_[5],{gecko:rwt.client.Client.getVersion()<1.8?function(a,b){var c=rwt.html.Style.getStyleProperty(a,_[101],b,false);if(c===_[443]){c=_[6]}return c}:function(a){return rwt.html.Style.getStyleProperty(a,_[175])},"default":function(a){return rwt.html.Style.getStyleProperty(a,_[175])}})}});
rwt.qx.Class.define("rwt.html.ImageManager",{extend:rwt.qx.Target,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.html.ImageManager)}},construct:function(){arguments.callee.base.call(this);this.__visible={};this.__all={}},members:{add:function(b){var a=this.__all;if(a[b]===undefined){a[b]=1}else{a[b]++}},remove:function(b){var a=this.__all;if(a[b]!==undefined){a[b]--}if(a[b]<=0){delete a[b]}},show:function(b){var a=this.__visible;if(a[b]===undefined){a[b]=1}else{a[b]++}},hide:function(b){var a=this.__visible;if(a[b]!==undefined){a[b]--}if(a[b]<=0){delete a[b]}},getVisibleImages:function(){var c=this.__visible;var b={};for(var a in c){if(c[a]>0){b[a]=true}}return b},getHiddenImages:function(){var d=this.__visible;var a=this.__all;var c={};for(var b in a){if(d[b]===undefined){c[b]=true}}return c}},destruct:function(){this._disposeFields("__all","__visible")}});
rwt.qx.Class.define("rwt.html.Offset",{statics:{getLeft:rwt.util.Variant.select(_[5],{gecko:function(c){var f=c.offsetLeft;var b=c.parentNode;var e=rwt.html.Style.getStyleProperty(c,_[84]);var d=rwt.html.Style.getStyleProperty(b,_[84]);if(e!=_[11]&&e!=_[62]){f-=rwt.html.Style.getBorderLeft(b)}if(d!=_[11]&&d!=_[62]){while(b){b=b.parentNode;if(!b||typeof b.tagName!==_[7]){break}var a=rwt.html.Style.getStyleProperty(b,_[84]);if(a==_[11]||a==_[62]){f-=rwt.html.Style.getBorderLeft(b)+rwt.html.Style.getPaddingLeft(b);break}}}return f},"default":function(a){return a.offsetLeft}}),getTop:rwt.util.Variant.select(_[5],{gecko:function(c){var f=c.offsetTop;var b=c.parentNode;var e=rwt.html.Style.getStyleProperty(c,_[84]);var d=rwt.html.Style.getStyleProperty(b,_[84]);if(e!=_[11]&&e!=_[62]){f-=rwt.html.Style.getBorderTop(b)}if(d!=_[11]&&d!=_[62]){while(b){b=b.parentNode;if(!b||typeof b.tagName!==_[7]){break}var a=rwt.html.Style.getStyleProperty(b,_[84]);if(a==_[11]||a==_[62]){f-=rwt.html.Style.getBorderTop(b)+rwt.html.Style.getPaddingTop(b);break}}}return f},"default":function(a){return a.offsetTop}})}});
namespace("rwt.html");rwt.html.ScrollIntoView={scrollX:function(h,f){var e;var j=h.parentNode;var d=h.offsetLeft;var a=h.offsetWidth;while(j){switch(rwt.html.Style.getStyleProperty(j,_[101])){case _[22]:case"auto":case"-moz-scrollbars-horizontal":e=true;break;default:switch(rwt.html.Style.getStyleProperty(j,_[174])){case _[22]:case"auto":e=true;break;default:e=false}}if(e){var i=j.clientWidth;var c=j.scrollLeft;var g=j.rwtScrollable;var b=g?g.getVerticalBarWidth():0;if(f){j.scrollLeft=d}else{if(f===false){j.scrollLeft=d+a-i+b}else{if(a>i||d=c+i){j.scrollLeft=d+a-i+b}}}}d=j.offsetLeft;a=j.offsetWidth}else{d+=j.offsetLeft}if(j.tagName.toLowerCase()=="body"){break}j=j.offsetParent}return true},scrollY:function(h,b){var f;var i=h.parentNode;var c=h.offsetTop;var j=h.offsetHeight;while(i){switch(rwt.html.Style.getStyleProperty(i,_[101])){case _[22]:case"auto":case"-moz-scrollbars-vertical":f=true;break;default:switch(rwt.html.Style.getStyleProperty(i,_[175])){case _[22]:case"auto":f=true;break;default:f=false}}if(f){var d=i.clientHeight;var e=i.scrollTop;var g=i.rwtScrollable;var a=g?g.getHorizontalBarHeight():0;if(b){i.scrollTop=c}else{if(b===false){i.scrollTop=c+j-d+a}else{if(j>d||c=e+d){i.scrollTop=c+j-d+a}}}}c=i.offsetTop;j=i.offsetHeight}else{c+=i.offsetTop}if(i.tagName.toLowerCase()=="body"){break}i=i.offsetParent}return true}};
rwt.qx.Class.define("rwt.widgets.base.BoxLayout",{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setOrientation(a)}else{this.initOrientation()}},statics:{STR_REVERSED:"-reversed"},properties:{orientation:{check:[_[39],_[28]],init:_[39],apply:_[412],event:"changeOrientation"},spacing:{check:_[25],init:0,themeable:true,apply:_[459],event:_[531]},horizontalChildrenAlign:{check:["left",_[15],_[2]],init:"left",themeable:true,apply:_[393]},verticalChildrenAlign:{check:["top",_[42],_[29]],init:"top",themeable:true,apply:_[464]},reverseChildrenOrder:{check:_[1],init:false,apply:"_applyReverseChildrenOrder"},stretchChildrenOrthogonalAxis:{check:_[1],init:true,apply:"_applyStretchChildrenOrthogonalAxis"},useAdvancedFlexAllocation:{check:_[1],init:false,apply:"_applyUseAdvancedFlexAllocation"},accumulatedChildrenOuterWidth:{_cached:true,defaultValue:null},accumulatedChildrenOuterHeight:{_cached:true,defaultValue:null}},members:{_createLayoutImpl:function(){return this.getOrientation()==_[28]?new rwt.widgets.util.VerticalBoxLayoutImpl(this):new rwt.widgets.util.HorizontalBoxLayoutImpl(this)},_layoutHorizontal:false,_layoutVertical:false,_layoutMode:"left",isHorizontal:function(){return this._layoutHorizontal},isVertical:function(){return this._layoutVertical},getLayoutMode:function(){if(this._layoutMode==null){this._updateLayoutMode()}return this._layoutMode},_updateLayoutMode:function(){this._layoutMode=this._layoutVertical?this.getVerticalChildrenAlign():this.getHorizontalChildrenAlign();if(this.getReverseChildrenOrder()){this._layoutMode+=rwt.widgets.base.BoxLayout.STR_REVERSED}},_invalidateLayoutMode:function(){this._layoutMode=null},_applyOrientation:function(b,a){this._layoutHorizontal=b==_[39];this._layoutVertical=b==_[28];if(this._layoutImpl){this._layoutImpl.dispose();this._layoutImpl=null}if(b){this._layoutImpl=this._createLayoutImpl()}this._doLayoutOrder(b,a);this.addToQueueRuntime("orientation")},_applySpacing:function(){this._doLayout();this.addToQueueRuntime("spacing")},_applyHorizontalChildrenAlign:function(){this._doLayoutOrder();this.addToQueueRuntime("horizontalChildrenAlign")},_applyVerticalChildrenAlign:function(){this._doLayoutOrder();this.addToQueueRuntime("verticalChildrenAlign")},_applyReverseChildrenOrder:function(){this._doLayoutOrder();this.addToQueueRuntime("reverseChildrenOrder")},_applyStretchChildrenOrthogonalAxis:function(){this.addToQueueRuntime("stretchChildrenOrthogonalAxis")},_applyUseAdvancedFlexAllocation:function(){this.addToQueueRuntime("useAdvancedFlexAllocation")},_doLayoutOrder:function(){this._invalidateLayoutMode();this._doLayout()},_doLayout:function(){this._invalidatePreferredInnerDimensions();this._invalidateAccumulatedChildrenOuterWidth();this._invalidateAccumulatedChildrenOuterHeight()},_computeAccumulatedChildrenOuterWidth:function(){var c=this.getVisibleChildren();var e=this.getSpacing();var a=-e;var b=0;var d=c[b];while(d!=null){a+=d.getOuterWidth()+e;b++;d=c[b]}return a},_computeAccumulatedChildrenOuterHeight:function(){var c=this.getVisibleChildren(),e,a=-1,d=this.getSpacing(),b=-d;e=c[++a];while(e){b+=e.getOuterHeight()+d;e=c[++a]}return b},_recomputeChildrenStretchingX:function(){var b=this.getVisibleChildren(),c,a=-1;c=b[++a];while(c){if(c._recomputeStretchingX()&&c._recomputeBoxWidth()){c._recomputeOuterWidth()}c=b[++a]}},_recomputeChildrenStretchingY:function(){var b=this.getVisibleChildren(),c,a=-1;c=b[++a];while(c){if(c._recomputeStretchingY()&&c._recomputeBoxHeight()){c._recomputeOuterHeight()}c=b[++a]}}}});
rwt.qx.Class.define("rwt.widgets.util.VerticalBoxLayoutImpl",{extend:rwt.widgets.util.LayoutImpl,properties:{enableFlexSupport:{check:_[1],init:true}},members:{computeChildBoxWidth:function(a){if(this.getWidget().getStretchChildrenOrthogonalAxis()&&a._computedWidthTypeNull&&a.getAllowStretchX()){return this.getWidget().getInnerWidth()}return a.getWidthValue()||a._computeBoxWidthFallback()},computeChildBoxHeight:function(a){return a.getHeightValue()||a._computeBoxHeightFallback()},computeChildrenFlexHeight:function(){if(this._childrenFlexHeightComputed||!this.getEnableFlexSupport()){return}this._childrenFlexHeightComputed=true;var j=this.getWidget();var i=j.getVisibleChildren();var g=i.length;var m;var e=[];var s=j.getInnerHeight();var n=j.getSpacing()*(g-1);var q;for(q=0;q0;for(q=c-1;q>=0;q--){m=e[q];if(o){a=(m.getMaxHeightValue()||Infinity)-m._computedHeightFlexValue;if(a>0){m._allocationLoops=Math.floor(a/m._computedHeightParsed)}else{rwt.util.Arrays.removeAt(e,q);m._computedHeightFlexValue=Math.round(m._computedHeightFlexValue);n+=Math.round(m._computedHeightFlexValue+a)}}else{a=rwt.util.Numbers.isNumber(m.getMinHeightValue())?m._computedHeightFlexValue-m.getMinHeightValue():m._computedHeightFlexValue;if(a>0){m._allocationLoops=Math.floor(a/m._computedHeightParsed)}else{rwt.util.Arrays.removeAt(e,q);m._computedHeightFlexValue=Math.round(m._computedHeightFlexValue);n+=Math.round(m._computedHeightFlexValue-a)}}}while(b!==0&&c>0){c=e.length;k=Infinity;l=0;for(q=0;q=0;q--){m=e[q];m._computedHeightFlexValue+=p/l*m._computedHeightParsed;if(m._allocationLoops==k){m._computedHeightFlexValue=Math.round(m._computedHeightFlexValue);n+=m._computedHeightFlexValue;delete m._allocationLoops;rwt.util.Arrays.removeAt(e,q)}else{if(b===0){m._computedHeightFlexValue=Math.round(m._computedHeightFlexValue);n+=m._computedHeightFlexValue;delete m._allocationLoops}else{m._allocationLoops-=k}}}}}}m._computedHeightFlexValue+=s-n},invalidateChildrenFlexHeight:function(){delete this._childrenFlexHeightComputed},computeChildrenNeededHeight:function(){var a=this.getWidget();return rwt.widgets.util.LayoutImpl.prototype.computeChildrenNeededHeight_sum.call(this)+((a.getVisibleChildrenLength()-1)*a.getSpacing())},updateSelfOnChildOuterHeightChange:function(){this.getWidget()._invalidateAccumulatedChildrenOuterHeight()},updateChildOnInnerWidthChange:function(c){var a=c._recomputePercentX();var b=c._recomputeStretchingX();if((c.getHorizontalAlign()||this.getWidget().getHorizontalChildrenAlign())==_[15]){c.addToLayoutChanges(_[133])}return a||b},updateChildOnInnerHeightChange:function(c){if(this.getWidget().getVerticalChildrenAlign()==_[42]){c.addToLayoutChanges(_[132])}var a=c._recomputePercentY();var b=c._recomputeFlexY();return a||b},updateSelfOnJobQueueFlush:function(a){if(a.addChild||a.removeChild){this.getWidget()._invalidateAccumulatedChildrenOuterHeight()}},updateChildrenOnJobQueueFlush:function(a){var d=false,b=false;var c=this.getWidget();if(a.orientation){d=b=true}if(a.spacing||a.orientation||a.reverseChildrenOrder||a.verticalChildrenAlign){c._addChildrenToLayoutQueue(_[132])}if(a.horizontalChildrenAlign){c._addChildrenToLayoutQueue(_[133])}if(a.stretchChildrenOrthogonalAxis){d=true}if(d){c._recomputeChildrenStretchingX();c._addChildrenToLayoutQueue(_[21])}if(b){c._recomputeChildrenStretchingY();c._addChildrenToLayoutQueue(_[14])}return true},updateChildrenOnRemoveChild:function(g,c){var b=this.getWidget();var e=b.getVisibleChildren();var a=e.length;var f;var d=-1;if(this.getEnableFlexSupport()){for(var d=0;d=0&&!d[f[e].toHashCode()];e--){}for(var c=0;c<=e;c++){b._layoutChild(h=f[c])}break;case _[42]:case _[213]:e=-1;h=f[++e];while(h){b._layoutChild(h);h=f[++e]}break;default:e=-1;var g=false;h=f[++e];while(h){if(g||d[h.toHashCode()]){b._layoutChild(h);g=true}h=f[++e]}}},layoutChild:function(b,a){this.layoutChild_sizeX(b,a);this.layoutChild_sizeY(b,a);this.layoutChild_sizeLimitX(b,a);this.layoutChild_sizeLimitY(b,a);this.layoutChild_locationX(b,a);this.layoutChild_locationY(b,a);this.layoutChild_marginX(b,a);this.layoutChild_marginY(b,a)},layoutChild_sizeX:rwt.util.Variant.select(_[5],{"trident|webkit|blink":function(b,a){if(a.initial||a.width||a.minWidth||a.maxWidth){if((b._isWidthEssential()&&(!b._computedWidthTypeNull||!b._computedMinWidthTypeNull||!b._computedMaxWidthTypeNull))||(b.getAllowStretchX()&&this.getWidget().getStretchChildrenOrthogonalAxis())){b._renderRuntimeWidth(b.getBoxWidth())}else{b._resetRuntimeWidth()}}},"default":function(b,a){if(a.initial||a.width){if(b._isWidthEssential()&&!b._computedWidthTypeNull){b._renderRuntimeWidth(b.getWidthValue())}else{b._resetRuntimeWidth()}}}}),layoutChild_sizeY:rwt.util.Variant.select(_[5],{"trident|webkit|blink":function(b,a){if(a.initial||a.height||a.minHeight||a.maxHeight){if(b._isHeightEssential()&&(!b._computedHeightTypeNull||!b._computedMinHeightTypeNull||!b._computedMaxHeightTypeNull)){b._renderRuntimeHeight(b.getBoxHeight())}else{b._resetRuntimeHeight()}}},"default":function(b,a){if(a.initial||a.height){if(b._isHeightEssential()&&!b._computedHeightTypeNull){b._renderRuntimeHeight(b.getHeightValue())}else{b._resetRuntimeHeight()}}}}),layoutChild_locationY:function(d){var c=this.getWidget();if(c.getFirstVisibleChild()==d){switch(c.getLayoutMode()){case _[29]:case _[197]:var a=c.getPaddingBottom()+c.getAccumulatedChildrenOuterHeight()-d.getOuterHeight();break;case _[42]:case _[213]:var a=c.getPaddingTop()+Math.round((c.getInnerHeight()-c.getAccumulatedChildrenOuterHeight())/2);break;default:var a=c.getPaddingTop()}}else{var b=d.getPreviousVisibleSibling();switch(c.getLayoutMode()){case _[29]:case _[197]:var a=b._cachedLocationVertical-d.getOuterHeight()-c.getSpacing();break;default:var a=b._cachedLocationVertical+b.getOuterHeight()+c.getSpacing()}}d._cachedLocationVertical=a;switch(this.getWidget().getLayoutMode()){case _[29]:case _[428]:case _[213]:a+=!d._computedBottomTypeNull?d.getBottomValue():!d._computedTopTypeNull?-(d.getTopValue()):0;d._resetRuntimeTop();d._renderRuntimeBottom(a);break;default:a+=!d._computedTopTypeNull?d.getTopValue():!d._computedBottomTypeNull?-(d.getBottomValue()):0;d._resetRuntimeBottom();d._renderRuntimeTop(a)}},layoutChild_locationX:function(d){var b=this.getWidget();if(rwt.client.Client.isGecko()){if(d.getAllowStretchX()&&b.getStretchChildrenOrthogonalAxis()&&d._computedWidthTypeNull){d._renderRuntimeLeft(b.getPaddingLeft()||0);d._renderRuntimeRight(b.getPaddingRight()||0);return}}var c=d.getHorizontalAlign()||b.getHorizontalChildrenAlign();var a=c==_[15]?Math.round((b.getInnerWidth()-d.getOuterWidth())/2):0;if(c==_[2]){a+=b.getPaddingRight();if(!d._computedRightTypeNull){a+=d.getRightValue()}else{if(!d._computedLeftTypeNull){a-=d.getLeftValue()}}d._resetRuntimeLeft();d._renderRuntimeRight(a)}else{a+=b.getPaddingLeft();if(!d._computedLeftTypeNull){a+=d.getLeftValue()}else{if(!d._computedRightTypeNull){a-=d.getRightValue()}}d._resetRuntimeRight();d._renderRuntimeLeft(a)}}}});
rwt.qx.Class.define("rwt.widgets.util.HorizontalBoxLayoutImpl",{extend:rwt.widgets.util.LayoutImpl,properties:{enableFlexSupport:{check:_[1],init:true}},members:{computeChildBoxWidth:function(a){return a.getWidthValue()||a._computeBoxWidthFallback()},computeChildBoxHeight:function(a){if(this.getWidget().getStretchChildrenOrthogonalAxis()&&a._computedHeightTypeNull&&a.getAllowStretchY()){return this.getWidget().getInnerHeight()}return a.getHeightValue()||a._computeBoxHeightFallback()},computeChildrenFlexWidth:function(){if(this._childrenFlexWidthComputed||!this.getEnableFlexSupport()){return}this._childrenFlexWidthComputed=true;var j=this.getWidget();var i=j.getVisibleChildren();var g=i.length;var n;var e=[];var d=j.getInnerWidth();var o=j.getSpacing()*(g-1);var s;for(s=0;s0;for(s=c-1;s>=0;s--){n=e[s];if(q){a=(n.getMaxWidthValue()||Infinity)-n._computedWidthFlexValue;if(a>0){n._allocationLoops=Math.floor(a/n._computedWidthParsed)}else{rwt.util.Arrays.removeAt(e,s);n._computedWidthFlexValue=Math.round(n._computedWidthFlexValue);o+=Math.round(n._computedWidthFlexValue+a)}}else{a=rwt.util.Number.isNumber(n.getMinWidthValue())?n._computedWidthFlexValue-n.getMinWidthValue():n._computedWidthFlexValue;if(a>0){n._allocationLoops=Math.floor(a/n._computedWidthParsed)}else{rwt.util.Arrays.removeAt(e,s);n._computedWidthFlexValue=Math.round(n._computedWidthFlexValue);o+=Math.round(n._computedWidthFlexValue-a)}}}while(b!==0&&c>0){c=e.length;k=Infinity;m=0;for(s=0;s=0;s--){n=e[s];n._computedWidthFlexValue+=r/m*n._computedWidthParsed;if(n._allocationLoops==k){n._computedWidthFlexValue=Math.round(n._computedWidthFlexValue);o+=n._computedWidthFlexValue;delete n._allocationLoops;rwt.util.Arrays.removeAt(e,s)}else{if(b===0){n._computedWidthFlexValue=Math.round(n._computedWidthFlexValue);o+=n._computedWidthFlexValue;delete n._allocationLoops}else{n._allocationLoops-=k}}}}}}n._computedWidthFlexValue+=d-o},invalidateChildrenFlexWidth:function(){delete this._childrenFlexWidthComputed},computeChildrenNeededWidth:function(){var a=this.getWidget();return rwt.widgets.util.LayoutImpl.prototype.computeChildrenNeededWidth_sum.call(this)+((a.getVisibleChildrenLength()-1)*a.getSpacing())},updateSelfOnChildOuterWidthChange:function(){this.getWidget()._invalidateAccumulatedChildrenOuterWidth()},updateChildOnInnerWidthChange:function(c){if(this.getWidget().getHorizontalChildrenAlign()==_[15]){c.addToLayoutChanges(_[133])}var a=c._recomputePercentX();var b=c._recomputeFlexX();return a||b},updateChildOnInnerHeightChange:function(c){var a=c._recomputePercentY();var b=c._recomputeStretchingY();if((c.getVerticalAlign()||this.getWidget().getVerticalChildrenAlign())==_[42]){c.addToLayoutChanges(_[132])}return a||b},updateSelfOnJobQueueFlush:function(a){if(a.addChild||a.removeChild){this.getWidget()._invalidateAccumulatedChildrenOuterWidth()}},updateChildrenOnJobQueueFlush:function(a){var d=false,b=false;var c=this.getWidget();if(a.orientation){d=b=true}if(a.spacing||a.orientation||a.reverseChildrenOrder||a.horizontalChildrenAlign){c._addChildrenToLayoutQueue(_[133])}if(a.verticalChildrenAlign){c._addChildrenToLayoutQueue(_[132])}if(a.stretchChildrenOrthogonalAxis){b=true}if(d){c._recomputeChildrenStretchingX();c._addChildrenToLayoutQueue(_[21])}if(b){c._recomputeChildrenStretchingY();c._addChildrenToLayoutQueue(_[14])}return true},updateChildrenOnRemoveChild:function(g,c){var b=this.getWidget(),e=b.getVisibleChildren(),a=e.length,f,d=-1;if(this.getEnableFlexSupport()){for(d=0;d=0&&!d[f[e].toHashCode()];e--){}for(var c=0;c<=e;c++){b._layoutChild(h=f[c])}break;case _[15]:case _[206]:e=-1;h=f[++e];while(h){b._layoutChild(h);h=f[++e]}break;default:e=-1;var g=false;h=f[++e];while(h){if(g||d[h.toHashCode()]){b._layoutChild(h);g=true}h=f[++e]}}},layoutChild:function(b,a){this.layoutChild_sizeX(b,a);this.layoutChild_sizeY(b,a);this.layoutChild_sizeLimitX(b,a);this.layoutChild_sizeLimitY(b,a);this.layoutChild_locationX(b,a);this.layoutChild_locationY(b,a);this.layoutChild_marginX(b,a);this.layoutChild_marginY(b,a)},layoutChild_sizeX:rwt.util.Variant.select(_[5],{"trident|webkit|blink":function(b,a){if(a.initial||a.width||a.minWidth||a.maxWidth){if(b._isWidthEssential()&&(!b._computedWidthTypeNull||!b._computedMinWidthTypeNull||!b._computedMaxWidthTypeNull)){b._renderRuntimeWidth(b.getBoxWidth())}else{b._resetRuntimeWidth()}}},"default":function(b,a){if(a.initial||a.width){if(b._isWidthEssential()&&!b._computedWidthTypeNull){b._renderRuntimeWidth(b.getWidthValue())}else{b._resetRuntimeWidth()}}}}),layoutChild_sizeY:rwt.util.Variant.select(_[5],{"trident|webkit|blink":function(b,a){if(a.initial||a.height||a.minHeight||a.maxHeight){if((b._isHeightEssential()&&(!b._computedHeightTypeNull||!b._computedMinHeightTypeNull||!b._computedMaxHeightTypeNull))||(b.getAllowStretchY()&&this.getWidget().getStretchChildrenOrthogonalAxis())){b._renderRuntimeHeight(b.getBoxHeight())}else{b._resetRuntimeHeight()}}},"default":function(b,a){if(a.initial||a.height){if(b._isHeightEssential()&&!b._computedHeightTypeNull){b._renderRuntimeHeight(b.getHeightValue())}else{b._resetRuntimeHeight()}}}}),layoutChild_locationX:function(d){var c=this.getWidget();if(c.getFirstVisibleChild()==d){switch(c.getLayoutMode()){case _[2]:case _[199]:var a=c.getPaddingRight()+c.getAccumulatedChildrenOuterWidth()-d.getOuterWidth();break;case _[15]:case _[206]:var a=c.getPaddingLeft()+Math.round((c.getInnerWidth()-c.getAccumulatedChildrenOuterWidth())/2);break;default:var a=c.getPaddingLeft()}}else{var b=d.getPreviousVisibleSibling();switch(c.getLayoutMode()){case _[2]:case _[199]:var a=b._cachedLocationHorizontal-d.getOuterWidth()-c.getSpacing();break;default:var a=b._cachedLocationHorizontal+b.getOuterWidth()+c.getSpacing()}}d._cachedLocationHorizontal=a;switch(c.getLayoutMode()){case _[2]:case _[432]:case _[206]:a+=!d._computedRightTypeNull?d.getRightValue():!d._computedLeftTypeNull?-(d.getLeftValue()):0;d._resetRuntimeLeft();d._renderRuntimeRight(a);break;default:a+=!d._computedLeftTypeNull?d.getLeftValue():!d._computedRightTypeNull?-(d.getRightValue()):0;d._resetRuntimeRight();d._renderRuntimeLeft(a)}},layoutChild_locationY:function(d){var b=this.getWidget();if(rwt.client.Client.isGecko()){if(d.getAllowStretchY()&&b.getStretchChildrenOrthogonalAxis()&&d._computedHeightTypeNull){d._renderRuntimeTop(b.getPaddingTop()||0);d._renderRuntimeBottom(b.getPaddingBottom()||0);return}}var c=d.getVerticalAlign()||b.getVerticalChildrenAlign();var a=c==_[42]?Math.round((b.getInnerHeight()-d.getOuterHeight())/2):0;if(c==_[29]){a+=b.getPaddingBottom();if(!d._computedBottomTypeNull){a+=d.getBottomValue()}else{if(!d._computedTopTypeNull){a-=d.getTopValue()}}d._resetRuntimeTop();d._renderRuntimeBottom(a)}else{a+=b.getPaddingTop();if(!d._computedTopTypeNull){a+=d.getTopValue()}else{if(!d._computedBottomTypeNull){a-=d.getBottomValue()}}d._resetRuntimeBottom();d._renderRuntimeTop(a)}}}});
rwt.remote.HandlerRegistry.add(_[211],{factory:function(b){var c=rwt.remote.HandlerUtil.createStyleMap(b.style);c.MARKUP_ENABLED=b.markupEnabled;var a=new rwt.widgets.Label(c);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["text",_[136],_[17],_[333],"appearance","leftMargin","topMargin","rightMargin","bottomMargin",_[76]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({backgroundGradient:rwt.remote.HandlerUtil.getBackgroundGradientHandler()}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({}),methods:[_[86],_[91]],methodHandler:rwt.remote.HandlerUtil.extendListenerMethodHandler({}),scriptingMethods:rwt.remote.HandlerUtil.extendControlScriptingMethods({getText:function(){return this.getCellContent(1)}})});
rwt.qx.Class.define("rwt.widgets.base.Label",{extend:rwt.widgets.base.Terminator,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setText(a)}this.initWidth();this.initHeight();this.initSelectable();this.initCursor();this.initWrap()},properties:{appearance:{refine:true,init:_[46]},width:{refine:true,init:"auto"},height:{refine:true,init:"auto"},allowStretchX:{refine:true,init:false},allowStretchY:{refine:true,init:false},selectable:{refine:true,init:false},text:{apply:"_applyText",init:"",dispose:true,check:"Label"},wrap:{check:_[1],init:false,nullable:true,apply:_[288]},textAlign:{check:["left",_[15],_[2],"justify"],nullable:true,themeable:true,apply:_[368]},textOverflow:{check:_[1],init:true},mode:{check:["html","text","auto"],init:"auto"}},members:{_content:"",_applyTextAlign:function(a){if(a===null){this.removeStyleProperty(_[244])}else{this.setStyleProperty(_[244],a)}},_applyFont:function(a){this._styleFont(a)},_styleFont:function(a){this._invalidatePreferredInnerDimensions();if(a){a.render(this)}else{rwt.html.Font.reset(this)}},_applyWrap:function(a){if(a==null){this.removeStyleProperty(_[334])}else{this.setStyleProperty(_[334],a?_[43]:_[123])}},_applyText:function(){this._syncText(this.getText())},_syncText:function(a){this._content=a;if(this._isCreated){this._renderContent()}},_computeObjectNeededDimensions:function(){var c=this._styleProperties;var a=rwt.widgets.util.FontSizeCalculation;var b=a.computeTextDimensions(this._content,c);this._cachedPreferredInnerWidth=b[0];this._cachedPreferredInnerHeight=b[1]},_computePreferredInnerWidth:function(){this._computeObjectNeededDimensions();return this._cachedPreferredInnerWidth},_computePreferredInnerHeight:function(){this._computeObjectNeededDimensions();return this._cachedPreferredInnerHeight},_postApply:function(){var b=this._content;var a=this._getTargetNode();if(b==null){a.innerHTML=""}else{var c=a.style;if(!this.getWrap()){if(this.getInnerWidth()="0"&&a<="9"},_onkeydown:function(b){var a=b.getKeyIdentifier();if(this._intervalIncrease==null){switch(a){case"Up":case"Down":this._intervalIncrease=a=="Up";this._intervalMode="single";this._resetIncrements();this._checkValue(true,false);this._increment();this._timer.startWith(this.getFirstInterval());break;case _[34]:case _[36]:this._intervalIncrease=a==_[34];this._intervalMode="page";this._resetIncrements();this._checkValue(true,false);this._pageIncrement();this._timer.startWith(this.getFirstInterval());break}}},_onkeyup:function(a){if(this._intervalIncrease!=null){switch(a.getKeyIdentifier()){case"Up":case"Down":case _[34]:case _[36]:this._timer.stop();this._intervalIncrease=null;this._intervalMode=null}}},_onmousedown:function(b){if(!b.isLeftButtonPressed()){return}this._checkValue(true);var a=b.getCurrentTarget();a.addState(_[13]);a.addEventListener(_[4],this._onmouseup,this);a.addEventListener(_[16],this._onmouseup,this);this._intervalIncrease=a==this._upbutton;this._resetIncrements();this._increment();if(this.getSelectTextOnInteract()){this._textfield.selectAll()}this._timer.setInterval(this.getFirstInterval());this._timer.start()},_onmouseup:function(b){var a=b.getCurrentTarget();a.removeState(_[13]);a.removeEventListener(_[4],this._onmouseup,this);a.removeEventListener(_[16],this._onmouseup,this);if(this.getSelectTextOnInteract()){this._textfield.selectAll()}this._textfield.setFocused(true);this._timer.stop();this._intervalIncrease=null},_onmousewheel:function(b){this._checkValue(true);if(this.getManager().incrementValue){this.getManager().incrementValue(this.getWheelIncrementAmount()*b.getWheelDelta())}else{var a=this.getManager().getValue()+(this.getWheelIncrementAmount()*b.getWheelDelta());a=this.getManager().limit(a);this.getManager().setValue(a)}if(this.getSelectTextOnInteract()){this._textfield.selectAll()}b.preventDefault();b.stopPropagation()},_ontextchange:function(a){this._last_value=a.getOldValue()},_oninput:function(){this._checkValue(true,true)},_onchange:function(){var a=this.getManager().getValue();this._textfield.setValue(String(a));if(a==this.getMin()&&!this.getWrap()){this._downbutton.removeState(_[13]);this._downbutton.setEnabled(false);this._timer.stop()}else{this._downbutton.resetEnabled()}if(a==this.getMax()&&!this.getWrap()){this._upbutton.removeState(_[13]);this._upbutton.setEnabled(false);this._timer.stop()}else{this._upbutton.resetEnabled()}this.createDispatchDataEvent(_[70],a)},_onblur:function(){this._checkValue(false)},setValue:function(a){this.getManager().setValue(this.getManager().limit(a))},getValue:function(){this._checkValue(true);return this.getManager().getValue()},resetValue:function(){this.getManager().resetValue()},setMax:function(a){return this.getManager().setMax(a)},getMax:function(){return this.getManager().getMax()},setMin:function(a){return this.getManager().setMin(a)},getMin:function(){return this.getManager().getMin()},_intervalIncrease:null,_oninterval:function(){this._timer.stop();this.setInterval(Math.max(this.getMinTimer(),this.getInterval()-this.getTimerDecrease()));if(this._intervalMode=="page"){this._pageIncrement()}else{if(this.getInterval()==this.getMinTimer()){this._computedIncrementAmount=this.getAmountGrowth()*this._computedIncrementAmount}this._increment()}var a=this.getManager().getWrap();switch(this._intervalIncrease){case true:if(!(this.getValue()==this.getMax()&&!a)){this._timer.restartWith(this.getInterval())}break;case false:if(!(this.getValue()==this.getMin()&&!a)){this._timer.restartWith(this.getInterval())}break}},__checkValue:function(i,c){var b=this._textfield.getInputElement();if(!b){return}if((b.value==="")||(b.value==="-")){if(!i){this.resetValue();return}}else{var h=b.value;var g;g=h;var d=parseFloat(g);var e=this.getManager().limit(d);var a=this.getManager().getValue();var j=e;if(isNaN(d)||(e!=d)||(d!=g)){if(c){this._textfield.setValue(this._last_value)}else{if(isNaN(e)){j=a}else{j=e}}}if(c){return}var f;f=String(j);if((j===a)&&(h!==f)){this._textfield.setValue(f)}this.getManager().setValue(j)}},_increment:function(){if(this.getManager().incrementValue){this.getManager().incrementValue((this._intervalIncrease?1:-1)*this._computedIncrementAmount)}else{var a=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this._computedIncrementAmount);a=this.getManager().limit(a);this.getManager().setValue(a)}},_pageIncrement:function(){if(this.getManager().pageIncrementValue){this.getManager().pageIncrementValue()}else{var a=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this.getPageIncrementAmount());a=this.getManager().limit(a);this.getManager().setValue(a)}},_resetIncrements:function(){this._computedIncrementAmount=this.getIncrementAmount();this.resetInterval()}},destruct:function(){var a=this.getManager();if(a){a.dispose()}this._disposeObjects("_textfield","_buttonlayout","_upbutton","_downbutton","_timer")}});
rwt.qx.Class.define(_[454],{extend:rwt.widgets.base.Terminator,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setValue(a)}this.initWidth();this.initHeight();this.initTabIndex();this._selectionStart=0;this._selectionLength=0;this.__oninput=rwt.util.Functions.bind(this._oninput,this);this.addEventListener("blur",this._onblur);this.addEventListener(_[9],this._onkeydown);this.addEventListener(_[3],this._onkeypress);this.addEventListener(_[33],this._onkeyup,this);this.addEventListener(_[0],this._onMouseDownUp,this);this.addEventListener(_[4],this._onMouseDownUp,this);this._typed=null;this._selectionNeedsUpdate=false;this._applyBrowserFixes();this._inputOverflow=_[6]},destruct:function(){if(this._inputElement!=null){this._inputElement.removeEventListener(_[56],this.__oninput,false)}this._inputElement=null;this.__font=null;if(this._checkTimer){this._checkTimer.dispose();this._checkTimer=null}},events:{input:_[47]},properties:{allowStretchX:{refine:true,init:true},allowStretchY:{refine:true,init:false},appearance:{refine:true,init:"text-field"},tabIndex:{refine:true,init:1},hideFocus:{refine:true,init:true},width:{refine:true,init:"auto"},height:{refine:true,init:"auto"},selectable:{refine:true,init:true},value:{init:"",nullable:true,event:_[74],apply:"_applyValue",dispose:true},textAlign:{check:["left",_[15],_[2],"justify"],nullable:true,themeable:true,apply:_[368]},maxLength:{check:_[25],apply:"_applyMaxLength",nullable:true},readOnly:{check:_[1],apply:"_applyReadOnly",init:false,event:"changeReadOnly"}},members:{_inputTag:_[56],_inputType:"text",_inputElement:null,setSelection:function(a){this._selectionStart=a[0];this._selectionLength=a[1]-a[0];this._renderSelection()},getSelection:function(){return[this._selectionStart,this._selectionStart+this._selectionLength]},getComputedSelection:function(){var b=this._getSelectionStart();var a=this._getSelectionLength();return[b,b+a]},getComputedValue:function(){var a;if(this.isCreated()){a=this._inputElement.value}else{a=this.getValue()}return a},getInputElement:function(){if(!this._inputElement&&!this.isDisposed()){this._inputElement=document.createElement(this._inputTag);if(this._inputType){this._inputElement.type=this._inputType}this._inputElement.style.position=_[11];this._inputElement.autoComplete="off";this._inputElement.setAttribute("autoComplete","off")}return this._inputElement||null},_renderSelection:function(){if(this.isCreated()&&(this.getFocused()||this.getParent().getFocused())){this._setSelectionStart(this._selectionStart);this._setSelectionLength(this._selectionLength);this._selectionNeedsUpdate=false}},_detectSelectionChange:function(){if(this._isCreated){var b=this._getSelectionStart();var a=this._getSelectionLength();if(typeof b===_[8]){b=0}if(typeof a===_[8]){a=0}if(this._selectionStart!==b||this._selectionLength!==a){this._handleSelectionChange(b,a)}}},_handleSelectionChange:function(b,a){this._selectionStart=b;this._selectionLength=a;this.dispatchSimpleEvent(_[66])},_setSelectionStart:function(b){this._visualPropertyCheck();try{if(this._inputElement.selectionStart!==b){this._inputElement.selectionStart=b}}catch(a){}},_getSelectionStart:function(){this._visualPropertyCheck();try{if(this.isValidString(this._inputElement.value)){return this._inputElement.selectionStart}else{return 0}}catch(a){return 0}},_setSelectionLength:function(c){this._visualPropertyCheck();try{if(this.isValidString(this._inputElement.value)){var a=this._inputElement.selectionStart+c;if(this._inputElement.selectionEnd!=a){this._inputElement.selectionEnd=a}}}catch(b){}},_getSelectionLength:function(){this._visualPropertyCheck();try{return this._inputElement.selectionEnd-this._inputElement.selectionStart}catch(a){return 0}},selectAll:function(){this._visualPropertyCheck();if(this.getValue()!=null){this._setSelectionStart(0);this._setSelectionLength(this._inputElement.value.length)}this._inputElement.select();if(this.isEnabled()&&this.isSeeable()){this._inputElement.focus()}this._detectSelectionChange()},_applyElement:function(b,a){arguments.callee.base.call(this,b,a);if(b){var c=this.getInputElement();c.disabled=this.getEnabled()===false;c.readOnly=this.getReadOnly();c.value=this.getValue()!=null?this.getValue().toString():"";if(this.getMaxLength()!=null){c.maxLength=this.getMaxLength()}c.style.padding=0;c.style.margin=0;c.style.border="0 none";c.style.background=_[83];if(rwt.client.Client.isTrident()){c.style.verticalAlign="top"}c.style.overflow=this._inputOverflow;c.style.outline="none";c.style.resize="none";c.style.WebkitAppearance="none";c.style.MozAppearance="none";this._renderFont();this._renderTextColor();this._renderTextAlign();this._renderCursor();this._renderTextShadow();this._textInit();this._getTargetNode().appendChild(this._inputElement)}},_textInit:function(){this._inputElement.addEventListener(_[56],this.__oninput,false);this._applyBrowserFixesOnCreate()},_postApply:function(){this._syncFieldWidth();this._syncFieldHeight()},_changeInnerWidth:function(){this._syncFieldWidth()},_changeInnerHeight:function(){this._syncFieldHeight();this._centerFieldVertically()},_syncFieldWidth:function(){this._inputElement.style.width=Math.max(2,this.getInnerWidth())+"px"},_syncFieldHeight:function(){if(this._inputTag!==_[56]){this._inputElement.style.height=this.getInnerHeight()+"px"}},_applyCursor:function(){if(this.isCreated()){this._renderCursor()}},_renderCursor:function(){var a=this.getCursor();if(a){this._inputElement.style.cursor=a}else{this._inputElement.style.cursor=""}},_applyTextAlign:function(){if(this._inputElement){this._renderTextAlign()}},_renderTextAlign:function(){var a=this.getTextAlign();if(this.getDirection()==="rtl"){if(a==="left"){a=_[2]}else{if(a===_[2]){a="left"}}}this._inputElement.style.textAlign=a||""},_applyEnabled:function(b,a){if(this.isCreated()){this._inputElement.disabled=b===false}return arguments.callee.base.call(this,b,a)},_applyValue:function(){this._renderValue();this._detectSelectionChange()},_renderValue:function(){this._inValueProperty=true;var a=this.getValue();if(this.isCreated()){if(a===null){a=""}if(this._inputElement.value!==a){this._inputElement.value=a}}delete this._inValueProperty},_applyMaxLength:function(a){if(this._inputElement){this._inputElement.maxLength=a==null?"":a}},_applyReadOnly:function(a){if(this._inputElement){this._inputElement.readOnly=a}this.toggleState("readonly",a)},_renderTextColor:function(){if(this.isCreated()){var a=this.getEnabled()?this.getTextColor():this.__theme$textColor;if(this._textColor!==a){this._textColor=a;rwt.html.Style.setStyleProperty(this._inputElement,_[68],a||"")}}},_applyFont:function(a){this._styleFont(a)},_styleFont:function(a){this.__font=a;this._renderFont()},_renderFont:function(){if(this.isCreated()){if(this.__font!=null){this.__font.renderElement(this._inputElement)}else{rwt.html.Font.resetElement(this._inputElement)}}},_applyTextShadow:function(a){this.__textShadow=a;if(this._inputElement){this._renderTextShadow()}},_renderTextShadow:function(){rwt.html.Style.setTextShadow(this._inputElement,this.__textShadow)},_visualizeFocus:function(){arguments.callee.base.call(this);if(!rwt.widgets.util.FocusHandler.blockFocus){try{this._inputElement.focus()}catch(a){}}},_visualizeBlur:function(){arguments.callee.base.call(this);try{this._inputElement.blur()}catch(a){}},_afterAppear:function(){arguments.callee.base.call(this);this._centerFieldVertically();this._renderSelection()},_centerFieldVertically:function(){if(this._inputTag===_[56]&&this._inputElement){var c=this.getInnerHeight();var a=this._inputElement.offsetHeight;if(a!==0){var b=(c-a)/2;if(b<0){b=0}this._inputElement.style.top=Math.floor(b)+"px"}}},_oninput:function(){try{var b=true;if(this.hasEventListeners(_[56])){b=this.dispatchEvent(new rwt.event.DataEvent(_[56],this._typed),true)}if(b){rwt.client.Timer.once(this._updateValueProperty,this,0)}else{if(rwt.client.Client.isWebkit()||rwt.client.Client.isBlink()){rwt.client.Timer.once(this._renderSelection,this,0);this._selectionNeedsUpdate=true}}}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_updateValueProperty:function(){if(!this.isDisposed()){this.setValue(this.getComputedValue().toString())}},_ontabfocus:function(){this.selectAll()},_applyFocused:function(b,a){arguments.callee.base.call(this,b,a);if(b&&!rwt.widgets.util.FocusHandler.mouseFocus){this._renderSelection()}},_onblur:function(){if(this.getParent()!=null){this._setSelectionLength(0)}},_onkeydown:function(a){if(a.getKeyIdentifier()==_[354]&&this.getReadOnly()){a.preventDefault()}this._detectSelectionChange();this._typed=null},_onkeypress:function(a){if(a.getKeyIdentifier()!=="Tab"){a.stopPropagation()}if(this._selectionNeedsUpdate){this._renderSelection()}this._detectSelectionChange();this._typed=String.fromCharCode(a.getCharCode())},_onkeyup:function(){if(this._selectionNeedsUpdate){this._renderSelection()}this._detectSelectionChange();this._typed=null},_onMouseDownUp:function(){this._detectSelectionChange();this._typed=null},_applyBrowserFixes:rwt.util.Variant.select(_[5],{"default":function(){},trident:function(){this._checkTimer=new rwt.client.Timer(0);this._checkTimer.addEventListener(_[26],this._checkValueChanged,this);this.addEventListener(_[3],this._checkTimer.start,this._checkTimer);this.addEventListener(_[33],this._checkTimer.start,this._checkTimer);this.addEventListener(_[31],this._checkValueChanged,this);this.addEventListener(_[16],this._checkValueChanged,this);this.addEventListener("blur",this._checkValueChanged,this)}}),_checkValueChanged:function(){this._checkTimer.stop();var b=this.getComputedValue();var a=this.getValue();if(b!==a){this._oninput()}},_applyBrowserFixesOnCreate:rwt.util.Variant.select(_[5],{"default":function(){},"webkit|blink":function(){this.addEventListener(_[9],this._preventEnter,this);this.addEventListener(_[3],this._preventEnter,this);this.addEventListener(_[33],this._preventEnter,this);this._applyIOSFixes()}}),_applyIOSFixes:function(){if(rwt.client.Client.getPlatform()==="ios"){var a=rwt.util.Functions.bind(function(){var b=rwt.remote.WidgetManager.getInstance().findControl(this);b.getFocusRoot().setFocusedChild(b)},this);this._inputElement.addEventListener(_[61],a,false);this.addEventListener(_[113],function(){if(this._inputElement!=null){this._inputElement.removeEventListener(_[61],a,false)}})}},_preventEnter:function(a){if(a.getKeyIdentifier()===_[32]){a.preventDefault()}},isValidString:function(a){return typeof a===_[7]&&a!==""}}});
rwt.qx.Class.define("rwt.widgets.base.VerticalBoxLayout",{extend:rwt.widgets.base.BoxLayout,properties:{orientation:{refine:true,init:_[28]}}});
rwt.qx.Class.define(_[504],{extend:rwt.qx.Target,events:{change:_[151]},properties:{value:{check:"!isNaN(value)&&value>=this.getMin()&&value<=this.getMax()",nullable:true,event:_[70],init:0},precision:{check:_[25],nullable:true,event:_[70],init:0},min:{check:_[45],apply:"_applyMin",event:_[70],init:0},max:{check:_[45],apply:"_applyMax",event:_[70],init:100},wrap:{check:_[1],init:false}},members:{_applyMax:function(a){this.setValue(Math.min(this.getValue(),a))},_applyMin:function(a){this.setValue(Math.max(this.getValue(),a))},limit:function(c){var a=this.getPrecision();if(a!=null){var b=Math.pow(10,a)}if(this.getWrap()){if(a!=null){c=Math.round(c*b)/b}if(cthis.getMax()){return(this.getMin()+(c-this.getMax()))-1}}if(cthis.getMax()){return this.getMax()}if(a!=null){return Math.round(c*b)/b}else{return c}}}});
rwt.qx.Class.define(_[322],{extend:rwt.widgets.base.BoxLayout,construct:function(){arguments.callee.base.call(this);this.addEventListener(_[191],rwt.widgets.util.TabUtil.onTabFolderChangeFocused);this.addEventListener(_[3],rwt.widgets.util.TabUtil.onTabFolderKeyPress);this._bar=new rwt.widgets.base.TabFolderBar();this._pane=new rwt.widgets.base.TabFolderPane();this.add(this._bar,this._pane);this.setEnableElementFocus(false)},properties:{appearance:{refine:true,init:"tab-view"},orientation:{refine:true,init:_[28]},alignTabsToLeft:{check:_[1],init:true,apply:"_applyAlignTabsToLeft"},placeBarOnTop:{check:_[1],init:true,apply:"_applyPlaceBarOnTop"}},members:{getPane:function(){return this._pane},getBar:function(){return this._bar},_applyDirection:function(b){arguments.callee.base.call(this,b);var a=b==="rtl";this._bar.setReverseChildrenOrder(a);this.setAlignTabsToLeft(!a)},_applyAlignTabsToLeft:function(a){this._bar.setHorizontalChildrenAlign(a?"left":_[2]);this._bar._addChildrenToStateQueue()},_applyPlaceBarOnTop:function(a){if(a){this._bar.moveSelfToBegin()}else{this._bar.moveSelfToEnd()}this._bar._addChildrenToStateQueue()}},destruct:function(){this._disposeObjects("_bar","_pane")}});
rwt.qx.Class.define(_[474],{extend:rwt.qx.Target,construct:function(a,b){arguments.callee.base.call(this);this._items=[];this.setName(a!=null?a:rwt.widgets.util.RadioManager.AUTO_NAME_PREFIX+this.toHashCode());if(b!=null){this.add.apply(this,b)}},statics:{AUTO_NAME_PREFIX:"qx-radio-"},properties:{selected:{nullable:true,apply:"_applySelected",event:"changeSelected",check:_[501]},name:{check:_[51],nullable:true,apply:"_applyName"}},members:{getItems:function(){return this._items},getEnabledItems:function(){var c=[];for(var f=0,e=this._items,d=e.length;fh-i){d=h-i-a}if(k+m>p-c){k=p-c-m}if(d(this.getItemTop(h)-1)?this.getPrevious(h):this.getNext(h))||h)}if(!this.getItemSelected(h)){this.renderItemSelectionState(h,true)}this._selectedItems.add(h);this._addToCurrentSelection=true}else{if(this._activeDragSession&&d){if(j){this._deselectItemRange(l,j)}if(this.isBefore(l,h)){if(this._addToCurrentSelection){this._selectItemRange(l,h,false)}else{this._deselectItemRange(l,h)}}else{if(this._addToCurrentSelection){this._selectItemRange(h,l,false)}else{this._deselectItemRange(h,l)}}this.scrollItemIntoView((this.getBoundedWidget().getScrollTop()>(this.getItemTop(h)-1)?this.getPrevious(h):this.getNext(h))||h)}else{if(this.getMultiSelection()&&i&&!f){if(!this._activeDragSession){this._addToCurrentSelection=!(this.getCanDeselect()&&this.getItemSelected(h))}this.setItemSelected(h,this._addToCurrentSelection);this.setAnchorItem(h)}else{if(this.getMultiSelection()&&i&&f){if(!this._activeDragSession){this._addToCurrentSelection=!(this.getCanDeselect()&&this.getItemSelected(h))}if(this._addToCurrentSelection){this._selectItemRange(l,h,false)}else{this._deselectItemRange(l,h)}}else{if(this.getMultiSelection()&&!i&&f){if(this.getCanDeselect()){this._selectItemRange(l,h,true)}else{if(j){this._deselectItemRange(l,j)}this._selectItemRange(l,h,false)}}}}}}this.setFireChange(a);if(a&&this._hasChanged(k)){this._dispatchChange()}},handleKeyPress:function(d){var c=this._getChangeValue();var a=this.getFireChange();this.setFireChange(false);if(d.getKeyIdentifier()=="A"&&d.isCtrlPressed()){if(this.getMultiSelection()){this._selectAll();this.setLeadItem(this.getFirst())}}else{var b=this.getAnchorItem();var e=this.getItemToSelect(d);if(e&&this.getItemEnabled(e)){this.setLeadItem(e);this.scrollItemIntoView(e);d.preventDefault();if(d.isShiftPressed()&&this.getMultiSelection()){if(b==null){this.setAnchorItem(e)}this._selectItemRange(this.getAnchorItem(),e,true)}else{if(!d.isCtrlPressed()){this._deselectAll();this.renderItemSelectionState(e,true);this._selectedItems.add(e);this.setAnchorItem(e)}else{if(d.getKeyIdentifier()==_[111]){if(this._selectedItems.contains(e)){this.renderItemSelectionState(e,false);this._selectedItems.remove(e);this.setAnchorItem(this._selectedItems.getFirst())}else{if(!d.isCtrlPressed()||!this.getMultiSelection()){this._deselectAll()}this.renderItemSelectionState(e,true);this._selectedItems.add(e);this.setAnchorItem(e)}}}}}}this.setFireChange(a);if(a&&this._hasChanged(c)){this._dispatchChange()}},getItemToSelect:function(a){if(a.isAltPressed()){return null}switch(a.getKeyIdentifier()){case"Home":return this.getHome(this.getLeadItem());case"End":return this.getEnd(this.getLeadItem());case"Down":return this.getDown(this.getLeadItem());case"Up":return this.getUp(this.getLeadItem());case"Left":return this.getLeft(this.getLeadItem());case _[35]:return this.getRight(this.getLeadItem());case _[34]:return this.getPageUp(this.getLeadItem())||this.getHome(this.getLeadItem());case _[36]:return this.getPageDown(this.getLeadItem())||this.getEnd(this.getLeadItem());case _[111]:if(a.isCtrlPressed()){return this.getLeadItem()}}return null},_dispatchChange:function(){if(!this.getFireChange()){return}if(this.hasEventListeners(_[337])){this.dispatchEvent(new rwt.event.DataEvent(_[337],this.getSelectedItems()),true)}},_hasChanged:function(a){return a!=this._getChangeValue()},_getChangeValue:function(){return this._selectedItems.getChangeValue()},getHome:function(){return this.getFirst()},getEnd:function(){return this.getLast()},getDown:function(a){if(!a){return this.getFirst()}return this.getMultiColumnSupport()?(this.getUnder(a)||this.getLast()):this.getNext(a)},getUp:function(a){if(!a){return this.getLast()}return this.getMultiColumnSupport()?(this.getAbove(a)||this.getFirst()):this.getPrevious(a)},getLeft:function(a){if(!this.getMultiColumnSupport()){return null}return !a?this.getLast():this.getPrevious(a)},getRight:function(a){if(!this.getMultiColumnSupport()){return null}return !a?this.getFirst():this.getNext(a)},getPageUp:function(){var c=this.getLeadItem();if(!c){c=this.getFirst()}var b=this.getBoundedWidget();if(b.isCreated()){var a=b.getScrollTop();var e=b.getClientHeight();var d=0;while(d<2){while(c&&(this.getItemTop(c)-this.getItemHeight(c)>=a)){c=this.getUp(c)}if(c==null){break}if(c!=this.getLeadItem()){this.scrollItemIntoView(c,true);break}b.setScrollTop(a-e-this.getItemHeight(c));a=b.getScrollTop();d++}}return c},getPageDown:function(){var c=this.getLeadItem();if(!c){c=this.getFirst()}var b=this.getBoundedWidget();if(b.isCreated()){var a=b.getScrollTop();var e=b.getClientHeight();var d=0;while(d<2){while(c&&((this.getItemTop(c)+(2*this.getItemHeight(c)))<=(a+e))){c=this.getDown(c)}if(c==null){break}if(c!=this.getLeadItem()){break}b.setScrollTop(a+e-2*this.getItemHeight(c));a=b.getScrollTop();d++}}return c}},destruct:function(){this._disposeObjects("_selectedItems")}});
rwt.qx.Class.define("rwt.widgets.util.Selection",{extend:rwt.qx.Object,construct:function(){arguments.callee.base.call(this);this.__storage=[]},members:{add:function(b){var a=this.__storage.indexOf(b);if(a===-1){this.__storage.push(b)}},remove:function(b){var a=this.__storage.indexOf(b);if(a!==-1){this.__storage.splice(a,1)}},removeAll:function(){this.__storage=[]},contains:function(a){return this.__storage.indexOf(a)!==-1},toArray:function(){return this.__storage.slice(0)},getFirst:function(){return this.__storage.length>0?this.__storage[0]:null},getChangeValue:function(){var b=[];for(var a=0;a(this._maximum-this._thumbLength)){b=this._maximum-this._thumbLength}this._setSelection(b)}},_onMouseDown:function(a){if(a.isLeftButtonPressed()){this._mouseOffset=this._getMouseOffset(a);this._handleLineMouseDown()}},_onMouseUp:function(){this.setCapture(false);this._autoRepeat="";this._delayTimer.stop();this._repeatTimer.stop()},_onMouseOver:function(a){var b=a.getOriginalTarget();if(b===this&&this._autoRepeat.slice(0,4)==="line"){this.setCapture(false);this._repeatTimerStart()}},_onMouseOut:function(b){var c=b.getRelatedTarget();var a=c!==this&&!this.contains(c);if(a&&this._autoRepeat.slice(0,4)==="line"){this.setCapture(true);this._delayTimer.stop();this._repeatTimer.stop()}},_onMouseMove:function(a){this._mouseOffset=this._getMouseOffset(a)},_onMinButtonMouseEvent:function(a){a.stopPropagation();if(this._minButton.hasState(_[13])){this._autoRepeat="minButton";this._setSelection(this._selection-this._increment)}else{this._autoRepeat=""}},_onMaxButtonMouseEvent:function(a){a.stopPropagation();if(this._maxButton.hasState(_[13])){this._autoRepeat="maxButton";this._setSelection(this._selection+this._increment)}else{this._autoRepeat=""}},_onThumbMouseDown:function(b){b.stopPropagation();this._thumb.addState(_[13]);if(b.isLeftButtonPressed()){var a=this._getMouseOffset(b);this._thumbDragOffset=a-this._getThumbPosition();this._thumb.setCapture(true)}},_onThumbMouseMove:function(c){c.stopPropagation();if(this._thumb.getCapture()){var b=this._getMouseOffset(c);var a=this._pxToVirtual(b-this._thumbDragOffset);this._setSelection(a)}},_onThumbMouseUp:function(a){if(this._thumb.hasState(_[13])){a.stopPropagation();this._repeatTimer.stop();this._thumb.setCapture(false);this._thumb.removeState(_[13])}},_layoutX:function(){if(this._horizontal){if(this.getDirection()==="rtl"){this._minButton.setLeft(null);this._minButton.setRight(0);this._maxButton.setRight(null);this._maxButton.setLeft(0)}else{this._minButton.setLeft(0);this._minButton.setRight(null);this._maxButton.setRight(0);this._maxButton.setLeft(null)}this._renderThumbPosition()}else{this._thumb.setWidth("100%");this._minButton.setWidth("100%");this._maxButton.setWidth("100%")}},_layoutY:function(){if(this._horizontal){this._thumb.setHeight("100%");this._minButton.setHeight("100%");this._maxButton.setHeight("100%")}else{this._maxButton.setBottom(0)}},addState:function(a){arguments.callee.base.call(this,a);if(a===_[122]){this._minButton.addState(a);this._maxButton.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a===_[122]){this._minButton.removeState(a);this._maxButton.removeState(a)}},_setStates:function(){var a=this._horizontal?_[344]:_[120];var b=this._horizontal?_[39]:_[28];this.addState(a);this._minButton.addState(a);this._minButton.addState(b);this._maxButton.addState(a);this._maxButton.addState(b);this._thumb.addState(a);this._renderAppearance();this._minButton._renderAppearance();this._maxButton._renderAppearance();this._thumb._renderAppearance()},_visualizeFocus:function(){arguments.callee.base.call(this);this._thumb.addState(_[79])},_visualizeBlur:function(){arguments.callee.base.call(this);this._thumb.removeState(_[79])},_repeatTimerStart:function(){this._delayTimer.stop();if(this._autoRepeat!==""){this._repeatTimer.start()}},_onRepeatTimerInterval:function(){switch(this._autoRepeat){case"minButton":this._setSelection(this._selection-this._increment);break;case"maxButton":this._setSelection(this._selection+this._increment);break;case"linePlus":case"lineMinus":this._handleLineMouseDown();break}},_handleLineMouseDown:function(){var d;var b=this._thumbLengthPx/2;var c=this._getThumbPosition()+b;var a;if(this._mouseOffset>c){a=this._selection+this._pageIncrement;d="linePlus"}else{d="lineMinus";a=this._selection-this._pageIncrement}if(this._autoRepeat===""||this._autoRepeat===d){this._autoRepeat=d;this._setSelection(a)}},_renderThumb:function(){this._renderThumbSize();this._renderThumbPosition()},_renderThumbPosition:function(){this._setThumbPositionPx(this._virtualToPx(this._selection));this.dispatchSimpleEvent(_[135],this)},_renderThumbSize:function(){var d=false;var b=this._getLineSize();var c=this._maximum-this._minimum;if(b>0&&c>0){var a=this._thumbLength*b/c;this._setThumbLengthPx(Math.max(this._minThumbSize,Math.round(a)));d=true}return d},_setThumbLengthPx:function(a){this._thumbLengthPx=a;if(this._horizontal){this._thumb.setWidth(this._thumbLengthPx)}else{this._thumb.setHeight(this._thumbLengthPx)}},_setThumbPositionPx:function(a){if(this._horizontal){if(this.getDirection()==="rtl"){this._thumb.setLeft(null);this._thumb.setRight(a)}else{this._thumb.setLeft(a);this._thumb.setRight(null)}}else{this._thumb.setTop(a)}},_pxToVirtual:function(c){var b=this._getMinButtonWidth();var a=(c-b)/this._getVirtualToPxRatio()+this._minimum;return this._limitSelection(Math.round(a))},_virtualToPx:function(a){return this._getMinButtonWidth()+this._getVirtualToPxRatio()*(a-this._minimum)},_getVirtualToPxRatio:function(){var b=Math.max(0,this._getLineSize()-this._thumbLengthPx);var a=this._maximum-this._minimum-this._thumbLength;return a===0?0:b/a},_limitSelection:function(b){var a=b;if(b>=(this._maximum-this._thumbLength)){a=this._maximum-this._thumbLength}if(a<=this._minimum){a=this._minimum}return a},_getMouseOffset:function(c){var a=rwt.html.Location;if(this._horizontal){var b=c.getPageX()-a.getLeft(this.getElement());if(this.getDirection()==="rtl"){return this._getSliderSize()-b}else{return b}}else{return c.getPageY()-a.getTop(this.getElement())}},_getThumbPosition:function(){if(this._horizontal){if(this.getDirection()==="rtl"){return this._thumb.getRight()}else{return this._thumb.getLeft()}}else{return this._thumb.getTop()}},_getLineSize:function(){var a=this._getMinButtonWidth()+this._getMaxButtonWidth();return this._getSliderSize()-this.getFrameWidth()-a},_getSliderSize:function(){var a;if(this._horizontal){a=this.getWidth()}else{a=this.getHeight()}return a},_getMinButtonWidth:function(){var a;if(this._horizontal){a=this._minButton.getWidth()}else{a=this._minButton.getHeight()}return a},_getMaxButtonWidth:function(){var a;if(this._horizontal){a=this._maxButton.getWidth()}else{a=this._maxButton.getHeight()}return a},_setDisplayFor:function(a){if(a.getImage()[0]===null){if(this._horizontal){a.setWidth(0)}else{a.setHeight(0)}a.setDisplay(false)}}}});
rwt.qx.Class.define("rwt.widgets.base.ScrollBar",{extend:rwt.widgets.base.AbstractSlider,construct:function(a){arguments.callee.base.call(this,a);this._idealValue=0;this._idealThumb=10;this._lastDispatchedValue=0;this._renderSum=0;this._renderSamples=0;this.setMinimum(0);this._hasSelectionListener=false;var b=new rwt.theme.ThemeValues(this.__states);this.setMinThumbSize(b.getCssDimension("ScrollBar-Thumb","min-height"));this._autoThumbSize=true;this.setIncrement(20);this.addEventListener(_[0],this._stopEvent,this);this.addEventListener(_[4],this._stopEvent,this);this.addEventListener(_[23],this._stopEvent,this);this.addEventListener(_[53],this._stopEvent,this)},members:{_configureAppearance:function(){this.setAppearance("scrollbar");this._thumb.setAppearance(_[192]);this._minButton.setAppearance("scrollbar-min-button");this._maxButton.setAppearance("scrollbar-max-button")},_applyOpacity:function(b,a){arguments.callee.base.call(this,b,a);rwt.html.Style.setTransition(this,"opacity 250ms")},setValue:function(a){this._idealValue=a;this._setSelection(a)},getValue:function(){return this._selection},setMaximum:function(a){arguments.callee.base.call(this,a);this._checkValue()},setThumb:function(a){arguments.callee.base.call(this,a);this._checkValue();this._updatePageIncrement()},setIncrement:function(a){this._setIncrement(a)},setHasSelectionListener:function(a){this._hasSelectionListener=a},getHasSelectionListener:function(){return this._hasSelectionListener},isHorizontal:function(){return this._horizontal},setAutoThumbSize:function(a){this._autoThumbSize=a},_updateThumbLength:function(){if(this._autoThumbSize){var a=this._getSliderSize();if(a>0){this.setThumb(a)}}},_updatePageIncrement:function(){this._setPageIncrement(this.getThumb())},_stopEvent:function(a){a.stopPropagation();a.preventDefault()},_dispatchValueChanged:function(){this._lastDispatchedValue=this._selection;this.createDispatchEvent(_[74])},_updateStepsize:function(){var a=this._selection;arguments.callee.base.call(this);if(a!==this._selection){this._dispatchValueChanged()}},_onChangeSize:function(){this._updateThumbLength();this._updatePageIncrement();arguments.callee.base.call(this)},_renderThumbSize:function(){if(arguments.callee.base.call(this)){this._renderThumbIcon()}},_renderThumbIcon:function(){if(this._horizontal){var a=this._thumb.getCellWidth(1);var c=this._thumbLengthPx>=(a+6);this._thumb.setCellVisible(1,c)}else{var b=this._thumb.getCellHeight(1);var c=this._thumbLengthPx>=(b+6);this._thumb.setCellVisible(1,c)}},_checkValue:function(){if(this._idealValue!==null&&this._idealValue){this._setSelection(this._idealValue)}else{this._setSelection(this._selection)}},_setSelection:function(a){if(a!==this._idealValue){this._idealValue=null}arguments.callee.base.call(this,a)},_selectionChanged:function(){arguments.callee.base.call(this);this._dispatchValueChanged()}}});
rwt.qx.Class.define("rwt.html.ImagePreloaderSystem",{extend:rwt.qx.Target,construct:function(c,b,a){arguments.callee.base.call(this);if(c instanceof Array){this._list=rwt.util.Objects.fromArray(c)}else{this._list=c}this._timer=new rwt.client.Timer(3000);this._timer.addEventListener(_[26],this.__oninterval,this);if(b){this.addEventListener(_[264],b,a||null)}},events:{completed:_[151]},members:{_stopped:false,start:function(){if(rwt.util.Objects.isEmpty(this._list)){this.createDispatchEvent(_[264]);return}for(var a in this._list){var b=rwt.html.ImagePreloaderManager.getInstance().create(a);if(b.isErroneous()||b.isLoaded()){delete this._list[a]}else{b._origSource=a;b.addEventListener("load",this.__onload,this);b.addEventListener(_[124],this.__onerror,this)}}this._check()},__onload:function(a){if(this.getDisposed()){return}delete this._list[a.getTarget()._origSource];this._check()},__onerror:function(a){if(this.getDisposed()){return}delete this._list[a.getTarget()._origSource];this._check()},__oninterval:function(){this._stopped=true;this._timer.stop();this.createDispatchEvent(_[264])},_check:function(){if(this._stopped){return}if(rwt.util.Objects.isEmpty(this._list)){this._timer.stop();this.createDispatchEvent(_[264])}else{this._timer.restart()}}},destruct:function(){if(this._timer){this._timer.removeEventListener(_[26],this.__oninterval,this);this._disposeObjects("_timer")}this._disposeFields("_list")}});
rwt.qx.Class.define("rwt.html.Iframes",{statics:{getWindow:function(c){try{var a=rwt.html.Iframes.getDocument(c);return a?a.defaultView:null}catch(b){return null}},getDocument:function(b){try{return b.contentDocument}catch(a){return null}},getBody:function(b){var a=rwt.html.Iframes.getDocument(b);return a?a.getElementsByTagName("body")[0]:null}}});
namespace(_[131]);(function(){rwt.remote.Request=function(b,c,a){this._url=b;this._method=c;this._async=true;this._success=null;this._redirect=null;this._error=null;this._data=null;this._responseType=a;this._request=rwt.remote.Request.createXHR()};rwt.remote.Request.createXHR=function(){return new XMLHttpRequest()};rwt.remote.Request.prototype={dispose:function(){if(this._request!=null){this._request.onreadystatechange=null;this._request.abort();this._success=null;this._redirect=null;this._error=null;this._request=null}},send:function(){if(this._isFetchSupported()&&this._async){this._sendWithFetch()}else{this._sendWithXHR()}},setAsynchronous:function(a){this._async=a},getAsynchronous:function(){return this._async},setSuccessHandler:function(b,a){this._success=function(){b.apply(a,arguments)}},setErrorHandler:function(b,a){this._error=function(){b.apply(a,arguments)}},setRedirectHandler:function(b,a){this._redirect=function(){b.apply(a,arguments)}},setData:function(a){this._data=a},getData:function(){return this._data},_sendWithXHR:function(){this._request.open(this._method,this._createUrl(),this._async);this._request.setRequestHeader("Content-Type",_[382]);this._request.onreadystatechange=rwt.util.Functions.bind(this._onReadyStateChange,this);this._request.send(this._method==="POST"?this._data:undefined);if(!this._async){this.dispose()}},_sendWithFetch:function(){var a={target:this};fetch(this._createUrl(),{method:this._method,redirect:"manual",headers:{"Content-Type":_[382]},credentials:"same-origin",body:this._method==="POST"?this._data:undefined}).then(function(b){a.status=b.status;a.responseHeaders=a.target._getFetchHeaders(b.headers);if(b.type==="opaqueredirect"){a.responseHeaders.location=b.url;if(a.target._redirect){a.target._redirect(a)}}else{b.text().then(function(c){a.responseText=c;if(b.status===200){if(a.target._success){a.target._success(a)}}else{if(a.target._error){a.target._error(a)}}a.target.dispose()})}}).catch(function(){a.status=0;if(a.target._error){a.target._error(a)}})},_createUrl:function(){var c=null;var b=this._method==="POST";if(!b&&this._data){c=this._data}var a=this._url;if(c){a+=(a.indexOf("?")>=0?"&":"?")+c}return a},_onReadyStateChange:function(){if(this._request.readyState===4){var b;if(typeof this._request.responseText!==_[231]){b=this._request.responseText}var a={responseText:b,status:this._request.status,responseHeaders:this._getXHRHeaders(this._request.getAllResponseHeaders()),target:this};if(this._request.status===200){if(this._success){this._success(a)}}else{if(this._error){this._error(a)}}if(this._async){this.dispose()}}},_getXHRHeaders:function(e){var b=e.split(/[\r\n]+/g);var a={};for(var c=0;c=0?b.substring(a+1):""},__getState:function(){return decodeURIComponent(this.__getHash())},__storeState:function(a){window.location.hash="#"+encodeURIComponent(a).replace(/%2F/g,"/");return true},setHasNavigationListener:function(a){this._hasNavigationListener=a;if(a){this.addEventListener("request",this._historyNavigated,this);if(this._timer){this._timer.start()}}else{this.removeEventListener("request",this._historyNavigated,this);if(this._timer){this._timer.stop()}}},_historyNavigated:function(a){var b=a.getData();var c=rwt.remote.Connection.getInstance();c.getRemoteObject(this).notify(_[305],{state:b})}},destruct:function(){this._timer.stop();this._disposeObjects("_timer");this._disposeFields("_iframe","_titles")}});
rwt.remote.HandlerRegistry.add(_[314],{factory:function(){return rwt.client.BrowserNavigation.getInstance()},service:true,listeners:[_[305]],methods:["addToHistory"],methodHandler:{addToHistory:function(a,b){a.addToHistory(b.state,b.title)}}});
rwt.qx.Class.define(_[226],{extend:rwt.util.ObjectManager,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.event.DragAndDropHandler)}},construct:function(){arguments.callee.base.call(this);this.__data={};this.__actions={};this.__cursors={};var e,d;var c=["move","copy",_[95],"nodrop"];for(var b=0,a=c.length;b5||Math.abs(b.getScreenY()-this.__dragCache.startScreenY)>5){this.__dragCache.sourceWidget.dispatchEvent(new rwt.event.DragEvent(_[65],b,this.__dragCache.sourceWidget),true);this.__dragCache.hasFiredDragStart=true;if(this.__dragCache.dragHandlerActive){var c=this.getDropTarget(b);this._fireUserEvents(null,c,b);this.__dragCache.currentDropWidget=c;rwt.widgets.base.ClientDocument.getInstance().setCapture(true)}}}}},_handleMouseUp:function(a){if(!this.__dragCache){return}if(this.__dragCache.dragHandlerActive){this._endDrag(this.getDropTarget(a),a)}else{this.__dragCache=null}},handleKeyEvent:function(a){if(!this.__dragCache){return}switch(a.getType()){case _[9]:this._handleKeyDown(a);return;case _[33]:this._handleKeyUp(a);return}},_handleKeyDown:function(a){if(a.getKeyIdentifier()==_[107]){this.cancelDrag(a)}else{if(this.getCurrentAction()!=null){switch(a.getKeyIdentifier()){case"Shift":case _[195]:case"Alt":this.setAction(this._evalNewAction(a.isShiftPressed(),a.isCtrlPressed(),a.isAltPressed()));this._renderCursor();a.preventDefault()}}}},_handleKeyUp:function(d){var c=d.getKeyIdentifier()=="Shift";var b=d.getKeyIdentifier()==_[195];var a=d.getKeyIdentifier()=="Alt";if(c||b||a){if(this.getCurrentAction()!=null){this.setAction(this._evalNewAction(!c&&d.isShiftPressed(),!b&&d.isCtrlPressed(),!a&&d.isAltPressed()));this._renderCursor();d.preventDefault()}}},cancelDrag:function(a){if(!this.__dragCache){return}if(this.__dragCache.dragHandlerActive){this._endDrag(null,a)}else{this.__dragCache=null}},globalCancelDrag:function(){if(this.__dragCache&&this.__dragCache.dragHandlerActive){this._endDragCore()}},_endDrag:function(a,b){if(a){this.__lastDestinationEvent=b;this.setDestinationWidget(a)}this.getSourceWidget().dispatchEvent(new rwt.event.DragEvent("dragend",b,this.getSourceWidget(),a),true);this._endDragCore()},_endDragCore:function(){if(this.__feedbackWidget){var b=rwt.widgets.base.ClientDocument.getInstance();b.remove(this.__feedbackWidget);if(this.__feedbackAutoDispose){this.__feedbackWidget.destroy()}this.__feedbackWidget=null}var a=this.__cursor;if(a){a._style.display="none";this.__cursor=null}this._cursorDeltaX=null;this._cursorDeltaY=null;if(this.__dragCache){this.__dragCache.currentDropWidget=null;this.__dragCache=null}rwt.widgets.base.ClientDocument.getInstance().setCapture(false);this.clearData();this.clearActions();this.setSourceWidget(null);this.setDestinationWidget(null)},setCursorPosition:function(b,a){this._cursorDeltaX=b;this._cursorDeltaY=a},_renderCursor:function(){var b;var a=this.__cursor;switch(this.getCurrentAction()){case"move":b=this.__cursors.move;break;case"copy":b=this.__cursors.copy;break;case _[95]:b=this.__cursors.alias;break;default:b=this.__cursors.nodrop}if(b!=a&&a!=null){a._style.display="none"}if(!b._initialLayoutDone){rwt.widgets.base.ClientDocument.getInstance().add(b);rwt.widgets.base.Widget.flushGlobalQueues()}b._renderRuntimeLeft(this.__dragCache.pageX+((this._cursorDeltaX!=null)?this._cursorDeltaX:this.getDefaultCursorDeltaX()));b._renderRuntimeTop(this.__dragCache.pageY+((this._cursorDeltaY!=null)?this._cursorDeltaY:this.getDefaultCursorDeltaY()));if(b!=a){b._style.display=""}this.__cursor=b},supportsDrop:function(c){var b=c.getDropDataTypes();if(!b){return false}for(var a=0;a(b-5)&&a<(b+5)},_onmousemove:function(d){if(this._disableResize){return}var c=this._resizeSession;if(c){if(this._resizeWest){c.lastWidth=rwt.util.Numbers.limit(c.boxWidth+c.boxLeft-Math.max(d.getPageX(),c.parentContentLeft),c.minWidth,c.maxWidth);c.lastLeft=c.boxRight-c.lastWidth-c.parentContentLeft}else{if(this._resizeEast){c.lastWidth=rwt.util.Numbers.limit(Math.min(d.getPageX(),c.parentContentRight)-c.boxLeft,c.minWidth,c.maxWidth)}}if(this._resizeNorth){c.lastHeight=rwt.util.Numbers.limit(c.boxHeight+c.boxTop-Math.max(d.getPageY(),c.parentContentTop),c.minHeight,c.maxHeight);c.lastTop=c.boxBottom-c.lastHeight-c.parentContentTop}else{if(this._resizeSouth){c.lastHeight=rwt.util.Numbers.limit(Math.min(d.getPageY(),c.parentContentBottom)-c.boxTop,c.minHeight,c.maxHeight)}}switch(this.getResizeMethod()){case"opaque":case _[146]:if(this._resizeWest||this._resizeEast){this.setWidth(c.lastWidth);if(this._resizeWest){this.setLeft(c.lastLeft)}}if(this._resizeNorth||this._resizeSouth){this.setHeight(c.lastHeight);if(this._resizeNorth){this.setTop(c.lastTop)}}break;default:var f=this.getResizeMethod()==_[103]?this._frame:this;if(this._resizeWest||this._resizeEast){f._renderRuntimeWidth(c.lastWidth);if(this._resizeWest){f._renderRuntimeLeft(c.lastLeft)}}if(this._resizeNorth||this._resizeSouth){f._renderRuntimeHeight(c.lastHeight);if(this._resizeNorth){f._renderRuntimeTop(c.lastTop)}}}}else{var g="";var b=this.getElement();this._resizeNorth=this._resizeSouth=this._resizeWest=this._resizeEast=false;var a=rwt.html.Location.get(b);if(this._near(a.top,d.getPageY())){if(this.getResizableNorth()){g="n";this._resizeNorth=true}}else{if(this._near(a.bottom,d.getPageY())){if(this.getResizableSouth()){g="s";this._resizeSouth=true}}}if(this._near(a.left,d.getPageX())){if(this.getResizableWest()){g+="w";this._resizeWest=true}}else{if(this._near(a.right,d.getPageX())){if(this.getResizableEast()){g+="e";this._resizeEast=true}}}if(this._resizeNorth||this._resizeSouth||this._resizeWest||this._resizeEast){this.setCursor(g+"-resize")}else{this.resetCursor()}}d.stopPropagation()}},destruct:function(){this._disposeObjects("_frame")}});
rwt.qx.Class.define("rwt.widgets.base.ResizablePopup",{extend:rwt.widgets.base.Popup,include:rwt.widgets.util.MResizable,construct:function(){arguments.callee.base.call(this);this.initMinWidth();this.initMinHeight();this.initWidth();this.initHeight()},properties:{appearance:{refine:true,init:"resizer"},minWidth:{refine:true,init:"auto"},minHeight:{refine:true,init:"auto"},width:{refine:true,init:"auto"},height:{refine:true,init:"auto"}},members:{_changeWidth:function(a){this.setWidth(a)},_changeHeight:function(a){this.setHeight(a)},_getResizeParent:function(){return this.getParent()},_getMinSizeReference:function(){return this}}});
rwt.qx.Class.define(_[477],{extend:rwt.widgets.base.ResizablePopup,construct:function(d,m,g){arguments.callee.base.call(this);this.setWindowManager(g||rwt.widgets.base.Window.getDefaultWindowManager());var e=this._layout=new rwt.widgets.base.VerticalBoxLayout();e.setEdge(0);this.add(e);var f=this._captionBar=new rwt.widgets.base.HorizontalBoxLayout();f.setAppearance("window-captionbar");f.setHeight("auto");f.setOverflow(_[6]);e.add(f);var q=this._captionIcon=new rwt.widgets.base.Image();q.setAppearance("window-captionbar-icon");f.add(q);var h=this._captionTitle=new rwt.widgets.base.Label(d);h.setAppearance("window-captionbar-title");h.setSelectable(false);f.add(h);var b=this._captionFlex=new rwt.widgets.base.HorizontalSpacer();f.add(b);var c=this._minimizeButton=new rwt.widgets.base.BasicButton("push",true);c.setAppearance("window-captionbar-minimize-button");c.setTabIndex(null);c.addEventListener(_[99],this._onminimizebuttonclick,this);c.addEventListener(_[0],this._onbuttonmousedown,this);f.add(c);var o=this._restoreButton=new rwt.widgets.base.BasicButton("push",true);o.setAppearance("window-captionbar-restore-button");o.setTabIndex(null);o.addEventListener(_[99],this._onrestorebuttonclick,this);o.addEventListener(_[0],this._onbuttonmousedown,this);var j=this._maximizeButton=new rwt.widgets.base.BasicButton("push",true);j.setAppearance("window-captionbar-maximize-button");j.setTabIndex(null);j.addEventListener(_[99],this._onmaximizebuttonclick,this);j.addEventListener(_[0],this._onbuttonmousedown,this);f.add(j);var i=this._closeButton=new rwt.widgets.base.BasicButton("push",true);i.setAppearance("window-captionbar-close-button");i.setTabIndex(null);i.addEventListener(_[99],this._onclosebuttonclick,this);i.addEventListener(_[0],this._onbuttonmousedown,this);f.add(i);var a=this._pane=new rwt.widgets.base.Parent();a.setHeight("1*");a.setOverflow(_[6]);e.add(a);var k=this._statusBar=new rwt.widgets.base.HorizontalBoxLayout();k.setAppearance("window-statusbar");k.setHeight("auto");var n=this._statusText=new rwt.widgets.base.Label("Ready");n.setAppearance("window-statusbar-text");n.setSelectable(false);k.add(n);if(d!=null){this.setCaption(d)}if(m!=null){this.setIcon(m)}this.setAutoHide(false);this.addEventListener(_[0],this._onwindowmousedown);this.addEventListener(_[23],this._onwindowclick);f.addEventListener(_[0],this._oncaptionmousedown,this);f.addEventListener(_[4],this._oncaptionmouseup,this);f.addEventListener(_[31],this._oncaptionmousemove,this);f.addEventListener(_[53],this._oncaptiondblblick,this);this.remapChildrenHandlingTo(this._pane)},statics:{getDefaultWindowManager:function(){if(!rwt.widgets.base.Window._defaultWindowManager){rwt.widgets.base.Window._defaultWindowManager=new rwt.widgets.util.WindowManager()}return rwt.widgets.base.Window._defaultWindowManager}},properties:{appearance:{refine:true,init:"window"},windowManager:{check:_[467],event:"changeWindowManager"},active:{check:_[1],init:false,apply:"_applyActive",event:_[284]},modal:{check:_[1],init:false,apply:"_applyModal",event:"changeModal"},mode:{check:[_[147],_[50]],init:null,nullable:true,apply:"_applyMode",event:"changeMode"},opener:{check:_[125]},caption:{apply:"_applyCaption",event:"changeCaption",dispose:true},icon:{check:_[51],nullable:true,apply:"_applyIcon",event:"changeIcon"},status:{check:_[51],init:"Ready",apply:"_applyStatus",event:"changeStatus"},showClose:{check:_[1],init:true,apply:"_applyShowClose"},showMaximize:{check:_[1],init:true,apply:"_applyShowMaximize"},showMinimize:{check:_[1],init:true,apply:"_applyShowMinimize"},showStatusbar:{check:_[1],init:false,apply:"_applyShowStatusbar"},allowClose:{check:_[1],init:true,apply:"_applyAllowClose"},allowMaximize:{check:_[1],init:true,apply:"_applyAllowMaximize"},allowMinimize:{check:_[1],init:true,apply:"_applyAllowMinimize"},showCaption:{check:_[1],init:true,apply:"_applyShowCaption"},showIcon:{check:_[1],init:true,apply:"_applyShowIcon"},moveable:{check:_[1],init:true,event:"changeMoveable"},moveMethod:{check:["opaque",_[103],_[146]],init:"opaque",event:"changeMoveMethod"}},members:{_isFocusRoot:true,getPane:function(){return this._pane},getCaptionBar:function(){return this._captionBar},getStatusBar:function(){return this._statusBar},close:function(){this.hide()},open:function(a){if(a!=null){this.setOpener(a)}if(this.getCentered()){this.centerToBrowser()}this.show()},focus:function(){this.setActive(true)},blur:function(){this.setActive(false)},maximize:function(){this.setMode(_[50])},minimize:function(){this.setMode(_[147])},restore:function(){this.setMode(null)},_beforeAppear:function(){rwt.widgets.base.Parent.prototype._beforeAppear.call(this);rwt.widgets.util.PopupManager.getInstance().update();rwt.event.EventHandler.setFocusRoot(this);this.getWindowManager().add(this);this._makeActive()},_beforeDisappear:function(){rwt.widgets.base.Parent.prototype._beforeDisappear.call(this);var a=rwt.event.EventHandler.getFocusRoot();if(a==this||this.contains(a)){rwt.event.EventHandler.setFocusRoot(null)}var b=rwt.event.EventHandler.getCaptureWidget();if(b&&this.contains(b)){b.setCapture(false)}this.getWindowManager().remove(this);this._makeInactive()},_minZIndex:100000,_sendTo:function(){var d=function(g,f){return g.getZIndex()-f.getZIndex()};var e=rwt.util.Objects.getValues(this.getWindowManager().getAll()).sort(d);var c=e.length;var a=this._minZIndex;for(var b=0;b1){c.sort(this.compareWindows);this.setActiveWindow(c[b-1])}}}}}}});
rwt.qx.Class.define("rwt.widgets.MenuItemSeparator",{extend:rwt.widgets.base.Parent,construct:function(){arguments.callee.base.call(this);this.initHeight();this.setStyleProperty(_[241],"0");this.setStyleProperty("lineHeight","0");this._line=new rwt.widgets.base.Terminator();this._line.setAnonymous(true);this._line.setAppearance("menu-separator-line");this.add(this._line);this.addEventListener(_[0],this._onmousedown)},properties:{height:{refine:true,init:"auto"},appearance:{refine:true,init:"menu-separator"}},members:{hasIcon:rwt.util.Functions.returnFalse,hasLabel:rwt.util.Functions.returnFalse,hasShortcut:rwt.util.Functions.returnFalse,hasMenu:rwt.util.Functions.returnFalse,_onmousedown:function(a){a.stopPropagation()}},destruct:function(){this._disposeObjects("_line")}});
rwt.qx.Class.define(_[465],{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);if(a!==undefined){this.setButton(a)}this.initTop();this.initRight();this.initBottom();this.initLeft()},properties:{top:{refine:true,init:0},right:{refine:true,init:0},bottom:{refine:true,init:0},left:{refine:true,init:0},display:{refine:true,init:false},button:{check:_[268],apply:"_applyButton"}},members:{_applyButton:function(b,a){if(a){a.setPage(null)}if(b){b.setPage(this)}}}});
rwt.qx.Class.define("rwt.runtime.ErrorHandler",{statics:{_overlay:null,_box:null,processJavaScriptErrorInResponse:function(a,b,c){var d=this._getErrorPageHeader();d+=""+this._gatherErrorDetails(b,a,c)+"
";this.showErrorBox(_[253],true,d)},processJavaScriptError:function(b){this.errorObject=b;if(typeof console===_[55]){var e="Error: "+(b.message?b.message:b);if(typeof console.error!==_[8]){console.error(e)}else{if(typeof console.log!==_[8]){console.log(e)}}if(typeof console.log===_[41]&&b.stack){console.log("Error stack:\n"+b.stack)}else{if(typeof console.trace!==_[8]){console.trace()}}}var a=true;try{a=rwt.util.Variant.isSet(_[104],"on")}catch(c){}if(a){var d=this._getErrorPageHeader();d+=""+this._gatherErrorDetails(b)+"
";this.showErrorBox(_[253],true,d);throw b}},showErrorPage:function(a){this._enableTextSelection();this._freezeApplication();document.title="Error Page";this._createErrorPageArea().innerHTML=a},showErrorBox:function(d,a,i){if(a){this._freezeApplication()}if(d!==_[361]){this._unloadAllIframes()}this._overlay=this._createOverlay();this._box=this._createErrorBoxArea(450,150);var c=rwt.theme.ThemeStore.getInstance();var e=c.getBorder("ErrorBox",{},_[88]);e.renderElement(this._box);this._box.style.padding="0px";this._box.style.overflow=_[6];var b=this._getErrorBoxData(d);this._title=this._createErrorBoxTitleArea(this._box);this._title.innerHTML=b.title;this._description=this._createErrorBoxDescriptionArea(this._box);this._description.innerHTML=b.description;this._action=this._createErrorBoxActionArea(this._box);var f=b.action;if(i&&i.trim().length>0){f+=this._getDetailsAction()}if(f){this._action.innerHTML=f}var j=this._action.getElementsByTagName("a")[0];if(j){this._styleHyperlinkAsButton(j);j.focus()}var h=document.getElementById("rwt_retryActionHyperlink");if(h){h.addEventListener(_[23],function(l){l.preventDefault();rwt.remote.Connection.getInstance()._retry();return false})}var g=document.getElementById("rwt_detailsActionHyperlink");if(g){this._styleHyperlinkAsButton(g);var k=this;g.addEventListener(_[23],function(){k.showErrorPage(i)})}},_getDetailsAction:function(){var a=rwt.client.ClientMessages.getInstance().getMessage("Details");return''+a+""},showWaitHint:function(){this._overlay=this._createOverlay();var c=rwt.theme.ThemeStore.getInstance();var a=_[307];var b=c.getSizedImage(a,{},"background-image");if(b&&b[0]){this._box=this._createErrorBoxArea(b[1],b[2]);rwt.html.Style.setBackgroundImage(this._box,b[0]);this._box.style.backgroundColor=_[83];this._box.style.border="none";this._box.style.overflow=_[6]}},hideErrorBox:function(){if(this._box){this._box.parentNode.removeChild(this._box);this._box=null}if(this._overlay){this._overlay.parentNode.removeChild(this._overlay);this._overlay=null}rwt.event.EventHandler.setBlockKeyEvents(false)},_getErrorPageHeader:function(){var b=this._getErrorBoxData(_[253]);var a=""+b.title+"
";a+=""+b.details+"
";a+="
";return a},_gatherErrorDetails:function(b,a,e){var g=[];try{g.push("Error: "+b+"\n");if(a){g.push("Script: "+a)}if(b instanceof Error){for(var d in b){g.push(d+": "+b[d])}if(b.stack){g.push("Stack: "+b.stack)}}g.push("Debug: "+rwt.util.Variant.get(_[104]));if(e){g.push("Request: "+e.getData())}var f=rwt.widgets.base.Widget._inFlushGlobalQueues;if(f){g.push("Phase: "+rwt.widgets.base.Widget._flushGlobalQueuesPhase)}}catch(c){}return g.join("\n ")},_createOverlay:function(){var b=document.createElement("div");var d=rwt.theme.ThemeStore.getInstance();var a=d.getColor(_[307],{},_[127]);var e=d.getAlpha(_[307],{},_[127]);var c=b.style;c.position=_[62];c.width="100%";c.height="100%";c.backgroundColor=a===_[8]?_[83]:a;c.opacity=e;c.zIndex=100000000;document.body.appendChild(b);rwt.event.EventHandler.setBlockKeyEvents(true);return b},_createErrorPageArea:function(){var a=document.createElement("div");var b=a.style;b.position=_[11];b.width="100%";b.height="100%";b.backgroundColor="#ffffff";b.zIndex=100000001;b.overflow="auto";b.padding="10px";document.body.appendChild(a);return a},_createErrorBoxArea:function(d,a){var b=document.createElement("div");var c=b.style;c.position=_[62];c.width=d+"px";c.height=a+"px";var g=rwt.widgets.base.ClientDocument.getInstance();var f=(g.getClientWidth()-d)/2;var e=(g.getClientHeight()-a)/2;c.left=(f<0?0:f)+"px";c.top=(e<0?0:e)+"px";c.zIndex=100000001;c.padding="10px";c.textAlign=_[15];c.fontFamily='verdana,"lucida sans",arial,helvetica,sans-serif';c.fontSize="12px";c.fontStyle=_[43];c.fontWeight=_[43];document.body.appendChild(b);return b},_createErrorBoxTitleArea:function(a){var f=document.createElement("div");var h=rwt.theme.ThemeStore.getInstance();var e="ErrorBox-Titlebar";var d=h.getColor(e,{},_[68]);var c=h.getFont(e,{},"font");var b=h.getColor(e,{},_[127]);var g=f.style;g.position=_[11];g.left="0px";g.top="0px";g.width="100%";g.height="40px";g.padding="10px";g.textAlign="left";g.color=d;g.font=c.toCss();g.backgroundColor=b;a.appendChild(f);return f},_createErrorBoxDescriptionArea:function(a){var f=document.createElement("div");var h=rwt.theme.ThemeStore.getInstance();var e="ErrorBox";var d=h.getColor(e,{},_[68]);var c=h.getFont(e,{},"font");var b=h.getColor(e,{},_[127]);var g=f.style;g.position=_[11];g.left="0px";g.top="40px";g.width="100%";g.height="70px";g.padding="10px";g.overflow="auto";g.textAlign="left";g.font=c.toCss();g.color=d;g.backgroundColor=b;a.appendChild(f);return f},_createErrorBoxActionArea:function(a){var b=document.createElement("div");var c=b.style;c.position=_[11];c.left="0px";c.top="110px";c.width="100%";c.height="40px";c.padding="10px";c.textAlign=_[15];c.borderTop=_[310];c.backgroundColor="#F2F2F2";c.fontSize="14px";a.appendChild(b);return b},_freezeApplication:function(){try{var c=rwt.widgets.Display.getCurrent();c.setExitConfirmation(null);rwt.event.EventHandler.detachEvents();rwt.qx.Target.prototype.dispatchEvent=function(){};rwt.animation.Animation._stopLoop()}catch(b){try{console.log("_freezeApplication exception: "+b)}catch(a){}}},_unloadAllIframes:function(){var b=document.getElementsByTagName(_[202]);for(var a=0;a'+b.getMessage(_[183])+" ";break;case"session timeout":a.title=b.getMessage("SessionTimeout");a.description=b.getMessage("SessionTimeoutDescription");a.action=_[245]+this._getRestartURL()+'">'+b.getMessage(_[183])+" ";break;case _[361]:a.title=b.getMessage("ConnectionError");a.description=b.getMessage("ConnectionErrorDescription");a.action=''+b.getMessage("Retry")+"";break;case _[253]:a.title=b.getMessage("ClientError");a.description=b.getMessage("ClientErrorDescription");a.details=b.getMessage("Details");a.action=_[245]+this._getRestartURL()+'">'+b.getMessage(_[183])+" ";break;default:a.title=b.getMessage(_[462]);a.description=b.getMessage(_[425]);a.action=_[245]+this._getRestartURL()+'">'+b.getMessage(_[183])+" "}a.title=rwt.util.Encoding.replaceNewLines(a.title,"");a.description=rwt.util.Encoding.replaceNewLines(a.description,_[63]);return a},_getRestartURL:function(){var a=String(window.location);var b=a.indexOf("#");if(b!=-1){a=a.substring(0,b)}return a},_styleHyperlinkAsButton:function(a){var b=a.style;b.outline="none";b.textDecoration="none";b.backgroundColor="#E8E8E8";b.color="#4a4a4a";b.padding="5px 15px";b.margin="5px";b.borderTop=_[310];b.borderRight=_[476];b.borderBottom=_[476];b.borderLeft=_[310]}}});
namespace(_[100]);(function(){var a=rwt.util.Variant;rwt.widgets.util.CellRendererRegistry=function(){var k=function(){};var l={};this.add=function(m){h(m);j(m);l[m.cellType]=m};this.getRendererFor=function(m){return l[m]||null};this.removeRendererFor=function(m){delete l[m]};this.getAll=function(){k.prototype=l;return new k()};var h=function(m){if(m==null||typeof m.contentType!==_[7]||typeof m.cellType!==_[7]){throw new Error("Can not register invalid renderer")}if(l[m.cellType]!=null){throw new Error("Renderer for cellType "+m.cellType+" already registered")}};var j=function(n){var m=n.createElement||i;n.createElement=function(q){var o=m(q);o.style.position=_[11];o.style.overflow=_[6];var p=q.selectable?"rwt-cell-selectable":"rwt-cell";if(c(q.name)){p+=" "+q.name}o.setAttribute("class",p);return o}};var i=function(){return document.createElement("div")};this.add(b);this.add(g)};var c=function(h){if(h&&h.length>1){return h.charAt(0).match(/[a-zA-Z]/)&&h.match(/^[a-zA-Z0-9_\-]*$/)}else{return false}};rwt.widgets.util.CellRendererRegistry.getInstance=function(){return rwt.runtime.Singletons.get(rwt.widgets.util.CellRendererRegistry)};var f=rwt.util.Encoding;var e=function(j,i){var h=f.escapeText(j,false);h=f.replaceNewLines(h,i?"":_[63]);h=f.replaceWhiteSpaces(h);return h};var d={LEFT:"left",CENTER:_[15],RIGHT:_[2],TOP:"top",BOTTOM:_[29]};var b={cellType:"text",contentType:"text",createElement:function(i){var h=document.createElement("div");h.style.textAlign=d[i.horizontalAlignment]||"left";h.style.whiteSpace=i.wrap?"":_[123];h.style.textOverflow=_[349];return h},renderContent:a.select(_[5],{trident:function(j,k,h,i){var l=k||"";if(i.markupEnabled){if(j.rap_Markup!==l){j.innerHTML=l;j.rap_Markup=l}}else{if(i.seeable){if(i.removeNewLines){l=f.replaceNewLines(l,"")}j.innerText=l}else{j.innerHTML=e(l,i.removeNewLines)}}},"default":function(j,k,h,i){var l=k||"";if(i.markupEnabled){if(l!==j.rap_Markup){j.innerHTML=l;j.rap_Markup=l}}else{j.innerHTML=e(l,i.removeNewLines)}}})};var g={cellType:_[17],contentType:_[17],renderContent:function(k,l,h,j){var i=j.enabled?1:0.3;var m=l?l[0]:null;rwt.html.Style.setBackgroundImage(k,m);k.style.opacity=i},createElement:function(j){var i=document.createElement("div");rwt.html.Style.setBackgroundRepeat(i,_[130]);var h=[_[15],_[15]];if(j.scaleMode==="FIT"){rwt.html.Style.setBackgroundSize(i,"contain")}else{if(j.scaleMode==="FILL"){rwt.html.Style.setBackgroundSize(i,"cover")}else{if(j.scaleMode==="STRETCH"){rwt.html.Style.setBackgroundSize(i,"100% 100%")}else{h[0]=d[j.horizontalAlignment]||_[15];h[1]=d[j.verticalAlignment]||_[15]}}}rwt.html.Style.setBackgroundPosition(i,h.join(" "));return i}}}());
(function(b){rwt.qx.Class.define(_[308],{extend:rwt.widgets.base.VerticalBoxLayout,construct:function(){arguments.callee.base.call(this);this.$rows=b(_[109]).css(a).appendTo(this);this.$el=b(this);this.setOverflow(_[6]);this._scrollLeft=0;this._rowHeight=16;this._rowWidth=0;this._gridLines={horizontal:null,vertical:null};this._baseAppearance=null;this._topItem=null;this._renderTime=null;this._topItemIndex=0;this._items=[];this._asyncQueue={};this._asyncTimer=new rwt.client.Timer(0);this._asyncTimer.addEventListener(_[26],this._onAsyncTimer,this);this._hoverItem=null;this._hoverTargetType=[];this._config=rwt.widgets.base.GridRowContainer.createRenderConfig();this.addEventListener(_[115],this._onElementOver,this);this.addEventListener(_[189],this._onElementOut,this)},destruct:function(){while(this.getRowCount()>0){this.getRow(0).dispose()}this._gridLines=null;this._topItem=null;this._renderTime=null;this._items=null;this._hoverItem=null;this._hoverTargetType=null;this._asyncTimer.dispose();this._asyncTimer=null},statics:{createRenderConfig:function(){return{textColor:null,font:null,enabled:true,seeable:false,focused:false,linesVisible:false,fullSelection:false,hideSelection:false,alwaysHideSelection:false,autoHeight:false,variant:null,selectionPadding:null,indentionWidth:0,hasCheckBoxes:false,checkBoxLeft:null,checkBoxWidth:null,columnCount:0,cellOrder:[0],treeColumn:0,alignment:[],wordWrap:[],itemLeft:[],itemWidth:[],itemImageLeft:[],itemImageWidth:[],itemTextLeft:[],itemTextWidth:[],itemCellCheck:[],itemCellCheckLeft:[],itemCellCheckWidth:[],vBarWidth:0}}},members:{setTopItem:function(i,c,f){this._topItem=i;if(f){var j=c-this._topItemIndex;this._topItemIndex=c;var h=j>0;j=Math.abs(j);if(j>=this.getRowCount()){this._renderAll(true)}else{var g=this.getRowCount()-j;var e=h?g:0;var d=this.getRow(h?j:g);this._sortRows(d,h);this._updateRows(e,j,true)}this._checkHoverItem()}else{this._topItemIndex=c}},getRenderConfig:function(){return this._config},setSelectionProvider:function(d,c){this._selectionProvider=[d,c]},setBaseAppearance:function(c){this._baseAppearance=c},setRowWidth:function(c){this._rowWidth=c;this.$rows.css(_[21],c);this._forEachRow(function(d){d.setWidth(c)})},setRowHeight:function(c){this._rowHeight=c;this._forEachRow(function(d){d.setHeight(c)});this._updateRowCount()},setCellToolTipsEnabled:function(c){this._cellToolTipsEnabled=c;if(c){this.setToolTipText("")}else{this.resetToolTipText()}},getCellToolTipsEnabled:function(){return this._cellToolTipsEnabled},requestToolTipText:function(){this.dispatchSimpleEvent(_[366],this._hoverRow,true)},getToolTipTargetBounds:function(){return rwt.widgets.util.GridCellToolTipSupport.getCurrentToolTipTargetBounds(this._hoverRow)},updateGridLines:function(){this._gridLines={horizontal:this._getGridLine(_[39]),vertical:this._getGridLine(_[28])};this._forEachRow(function(c){c.setGridLines(this._gridLines);c.setState(_[339],this._config.linesVisible)})},_getGridLine:function(c){if(!this._config.linesVisible){return null}var d={rowTempalte:this._config.rowTemplate!=null};d[c]=true;if(this._config.variant!=null){d[this._config.variant]=true}var e=new rwt.theme.ThemeValues(d);var f=e.getCssColor(rwt.util.Strings.toFirstUp(this._baseAppearance)+"-GridLine",_[68]);f=f==_[8]?_[83]:f;e.dispose();return f},getRowCount:function(){return this.$rows.prop("childElementCount")},getRow:function(c){return this.$rows.prop("children")[c]["row"]},renderAll:function(){this._renderAll(false)},renderItemQueue:function(c){for(var e in c){var f=c[e];var d=this._items.indexOf(f);if(d!==-1){this._renderRow(this.getRow(d),f)}}},renderItem:function(c){if(this._isCreated&&c!=null){var d=this.findRowByItem(c);if(d!=null){this._renderRow(d,c)}}},renderRowHeight:function(){this._forEachRow(function(d){var c=this.findItemByRow(d);if(c!=null){d.renderHeight(c,this._config)}})},setScrollLeft:function(c){this._scrollLeft=c;if(this.isSeeable()){arguments.callee.base.call(this,c)}},findRowByElement:function(c){while(c&&!c.row&&!c.rwtWidget){c=c.parentElement}return c?c.row:null},findItemByRow:function(f){var d=-1;var c=this.getRowCount();for(var e=0;ec){this.getRow(this.getRowCount()-1).dispose()}this._items.length=this.getRowCount();this._updateRowsEvenState()},_updateRowsEvenState:function(){this._forEachRow(function(d,c){d.updateEvenState(this._topItemIndex+c)})},_updateRows:function(j,h,e){this._updateRowsEvenState();var d=this._topItem;var g=j+h;var f=0;while(d!=null&&f=j&&f<=g){this._renderRow(this.getRow(f),d,e)}d=d.getNextItem();f++}for(var c=f;cthis._fixedColumns){b=this._config.itemLeft[a[this._fixedColumns]]}else{b=this._width}return b},_layoutX:function(){var a=Math.min(this._splitOffset,this._width);this._container[0].setWidth(a);this._container[0].setRowWidth(a);this._container[1].setLeft(a);this._container[1].setWidth(this._width-a);this._container[1].setRowWidth(this._rowWidth-a)},_onHoverItem:function(b){for(var a=0;a=g-1){g=null}d.setHeight(g,true);var f=d.getOwnHeight();if(f!==a.getHeight()){a.setHeight(f)}if(f!==c.getHeight()){c.setHeight(f)}}}}},findRowByItem:function(b,a){var c=a=j&&d-1){this.indention=this._gridConfig.indentionWidth*(this._item.getLevel()+1)}else{this.indention=0}};rwt.widgets.util.GridRowLayout.prototype._computeCellPadding=function(){var b=rwt.theme.AppearanceManager.getInstance();var a={};if(this._gridConfig.variant){a[this._gridConfig.variant]=true}this.cellPadding=b.styleFrom(this._gridConfig.baseAppearance+"-cell",a).padding};rwt.widgets.util.GridRowLayout.prototype._computeAllCells=function(){this._initCells();var b=-1;for(var a=0;a0){this._expandCell(c,b)}if(this._gridConfig.treeColumn===a){this._indentCellContent(a)}};rwt.widgets.util.GridRowLayout.prototype._expandCell=function(f,e){var g=this._gridConfig.cellOrder.length-1;var b=this._gridConfig.cellOrder[f];var d=this._gridConfig.cellOrder[f];var a=this._gridConfig.cellOrder[Math.min(f+e,g)];var c=this._gridConfig.itemLeft[a]+this._gridConfig.itemWidth[a];this.cellWidth[b]=c-this._gridConfig.itemLeft[d];this.cellTextWidth[b]=c-this._gridConfig.itemTextLeft[d]-this.cellPadding[1]};rwt.widgets.util.GridRowLayout.prototype._indentCellContent=function(c){var e=this.cellLeft[c]+this.cellWidth[c];var b=this.cellImageLeft[c]+=this.indention;var a=this.cellTextLeft[c]+=this.indention;var d=this.cellCheckLeft[c]+=this.indention;if(b+this.cellImageWidth[c]>e){this.cellImageWidth[c]=Math.max(0,e-b)}if(a+this.cellTextWidth[c]>e){this.cellTextWidth[c]=Math.max(0,e-a)}if(d+this.cellCheckWidth[c]>e){this.cellCheckWidth[c]=Math.max(0,e-d)}};rwt.widgets.util.GridRowLayout.prototype._computeCheckBox=function(){this.checkBoxLeft=this._gridConfig.checkBoxLeft+this.indention;this.checkBoxWidth=this._gridConfig.checkBoxWidth;var a=this._gridConfig.cellOrder[0];var b=this.cellLeft[a]+this.cellWidth[a];if(this.checkBoxLeft+this.checkBoxWidth>b){this.checkBoxWidth=Math.max(0,b-this.checkBoxLeft)}};
namespace(_[100]);rwt.widgets.util.GridSynchronizer=function(a){this._grid=a;this._grid.addEventListener(_[66],this._onSelectionChanged,this);this._grid.addEventListener(_[434],this._onFocusItemChanged,this);this._grid.addEventListener(_[451],this._onFocusCellChanged,this);this._grid.addEventListener(_[300],this._onTopItemChanged,this);this._grid.addEventListener(_[293],this._onScrollLeftChanged,this);this._grid.getRootItem().addEventListener(_[121],this._onItemUpdate,this)};rwt.widgets.util.GridSynchronizer.prototype={_onSelectionChanged:function(d){if(!rwt.remote.EventUtil.getSuspended()){var c=d.item;var b=d.type;var a=rwt.remote.Connection.getInstance();if(b===_[19]){a.getRemoteObject(this._grid).set(_[19],this._getSelectionList());if(this._grid.getRenderConfig().cellSelection){a.getRemoteObject(this._grid).set(_[374],this._getCellSelectionList())}}else{if(b===_[40]){a.getRemoteObject(c).set(_[157],c.isChecked())}else{if(b===_[326]){a.getRemoteObject(c).set(_[525],this._getCellChecked(c))}}}this._notifySelectionChanged(d)}},_notifySelectionChanged:function(d){var c;var b=d.type;if(b===_[40]||b===_[326]){c=_[40]}else{if(b==="cell"){c="cell"}else{if(b===_[239]){c=_[239]}}}var a={item:this._getItemId(d.item),detail:c,index:d.index,text:d.text};if(b===_[294]){rwt.remote.EventUtil.notifyDefaultSelected(this._grid,a)}else{rwt.remote.EventUtil.notifySelected(this._grid,a)}},_onFocusItemChanged:function(){if(!rwt.remote.EventUtil.getSuspended()){var a=rwt.remote.Connection.getInstance();var b=this._getItemId(this._grid.getFocusItem());a.getRemoteObject(this._grid).set("focusItem",b)}},_onFocusCellChanged:function(){if(!rwt.remote.EventUtil.getSuspended()){var a=rwt.remote.Connection.getInstance();var b=this._grid.getRenderConfig().cellOrder[this._grid.getFocusCell()];a.getRemoteObject(this._grid).set("focusCell",b)}},_onTopItemChanged:function(){if(!rwt.remote.EventUtil.getSuspended()){var a=this._grid.getVerticalBar();var b=rwt.remote.Connection.getInstance();var c=b.getRemoteObject(this._grid);c.set(_[507],this._grid.getTopItemIndex());if(a.getHasSelectionListener()){b.onNextSend(function(){b.getRemoteObject(a).notify(_[12])},this)}if(c.isListening(_[278])){b.onNextSend(function(){c.notify(_[278])},this)}if(a.getHasSelectionListener()||c.isListening(_[278])){b.sendDelayed(400)}}},_onScrollLeftChanged:function(){var c=this._grid.getHorizontalBar();var a=rwt.remote.Connection.getInstance();var b=a.getRemoteObject(this._grid);b.set("scrollLeft",c.getValue());if(c.getHasSelectionListener()){a.onNextSend(function(){a.getRemoteObject(c).notify(_[12])},this);a.sendDelayed(400)}},_onItemUpdate:function(c){if(!rwt.remote.EventUtil.getSuspended()||c.rendering){var b=rwt.remote.Connection.getInstance();if(c.msg===_[14]){b.getRemoteObject(c.target).set(_[14],c.target.getOwnHeight())}else{if(c.msg===_[60]||c.msg===_[185]){var a=c.msg===_[60];b.getRemoteObject(c.target).set(_[60],a);b.getRemoteObject(this._grid).notify(a?_[159]:_[165],{item:this._getItemId(c.target)})}}}},_getSelectionList:function(){var a=[];var c=this._grid.getSelection();for(var b=0;b=e-1){e=null}this._item.setHeight(e,true)}var d=this._item.getOwnHeight();if(d!==this.getHeight()){this.$el.css(_[14],this._item.getOwnHeight())}}},_renderOverlay:function(){if(this._item&&this._hasOverlayBackground(this._gridConfig)){var d=this._overlayStyleMap.backgroundGradient;if(d){this._getOverlayElement().css(_[76],d||"")}else{this._getOverlayElement().css({backgroundColor:this._overlayStyleMap.background,opacity:this._overlayStyleMap.backgroundAlpha})}this._renderOverlayBounds()}else{if(this.$overlay){this.$overlay.css(_[90],"none")}}},_renderHtmlAttributes:function(){this.$el.removeAttr(Object.keys(this._lastAttributes).join(" "));var d=this._item?this._item.getHtmlAttributes():{};if(d.id&&this._gridConfig.containerNumber===1){d=rwt.util.Objects.copy(d);d.id+="-1"}this.$el.attr(d);this._lastAttributes=d},_renderTemplate:function(){var f=this._layout.indention;var h=0;var e=this.getWidth()-f-this._gridConfig.vBarWidth;var d=this.getHeight();var g=this._getTemplateRenderer(this._gridConfig);g.targetBounds=[f,h,e,d];g.markupEnabled=this._gridConfig.markupEnabled;g.targetIsEnabled=this._gridConfig.enabled;g.targetIsSeeable=this._gridConfig.seeable;g.renderItem(this._item)},_getTemplateRenderer:function(d){if(this._templateRenderer==null){this._templateRenderer=new rwt.widgets.util.TemplateRenderer(d.rowTemplate,this.$el.get(0),100)}return this._templateRenderer},_renderCheckBox:function(){var e=this._getCheckBoxImage();this._getCheckBoxElement().css({display:e===null?"none":"",opacity:this._gridConfig.enabled?1:a,backgroundImage:e||""});var d=this._gridConfig.treeColumn!==-1;if(this._item&&(d||!this._contentOnly)){this._renderCheckBoxBounds()}},_renderCells:function(){var e=this._getColumnCount(this._gridConfig);if(this._cellsRendered>e){this._removeCells(e,this._cellsRendered)}for(var d=0;d0){if(this._gridConfig.cellSelection&&this._item&&this._item.isCellSelected(d)){this._renderCellSelectionColor(d)}else{this._renderCellBackground(d)}this._renderCellCheckBox(d);this._renderCellImage(d);this._renderCellLabel(d);if(!this._gridConfig.fullSelection&&this._isTreeColumn(d)){this.$treeColumnParts=[this.$cellImages[d],this.$cellLabels[d]]}}else{this._removeCell(d)}}this._cellsRendered=e},_renderCellSelectionColor:function(d){var e=this._overlayStyleMap.backgroundGradient;if(e){this._getCellBackgroundElement(d).css(_[76],e||"")}else{this._getCellBackgroundElement(d).css({backgroundColor:this._overlayStyleMap.background,opacity:this._overlayStyleMap.backgroundAlpha})}this._renderCellBackgroundBounds(d)},_renderCellBackground:function(d){var e=this._getCellBackgroundColor(d);var f=false;if(e!==_[8]&&e!=this._styleMap.backgroundColor){f=!this._contentOnly||!this.$cellBackgrounds[d];this._getCellBackgroundElement(d).css({backgroundGradient:"",backgroundColor:e,opacity:""})}else{if(this.$cellBackgrounds[d]||this._gridLines.vertical||this._gridConfig.cellSelection){this._getCellBackgroundElement(d).css({backgroundColor:"",opacity:""});f=!this._contentOnly}}if(f){this._renderCellBackgroundBounds(d)}},_renderCellCheckBox:function(d){if(this._gridConfig.itemCellCheck[d]){var g=this._getCellCheckBoxImage(d);var e=this._isTreeColumn(d);var f=e||!this._contentOnly||!this.$cellCheckBoxes[d];this._getCellCheckBoxElement(d).css({display:g===null?"none":"",opacity:this._gridConfig.enabled?1:a,backgroundImage:g||""});if(f){this._renderCellCheckBounds(d)}}else{if(this.$cellCheckBoxes[d]){this._getCellCheckBoxElement(d).css(_[90],"none")}}},_renderCellImage:function(d){var g=this._item?this._item.getImage(d):null;var e=this._isTreeColumn(d);var f=e||!this._contentOnly;if(g!==null){f=f||!this.$cellImages[d];this._getCellImageElement(d).css({opacity:this._gridConfig.enabled?1:a,backgroundImage:g[0]||""})}else{if(this.$cellImages[d]){this._getCellImageElement(d).css({backgroundImage:""})}}if(f){this._renderCellImageBounds(d)}},_renderCellLabel:function(d){var g=null;var f=this._isTreeColumn(d);var h=f||!this._contentOnly;if(this._item&&this._item.hasText(d)){h=h||!this.$cellLabels[d];g=this._getCellLabelElement(d);this._renderCellLabelContent(d,g);if(h){var e=this._mirror?_[2]:"left";var i=this._getAlignment(d,this._gridConfig);if(this._gridConfig.baseAppearance==="grid"){e=i}g.css(_[244],f?e:i)}this._renderCellLabelFont(d,g)}else{if(this.$cellLabels[d]){g=this._getCellLabelElement(d);this._renderCellLabelContent(-1,g)}}if(h){this._renderCellLabelBounds(d)}},_renderCellLabelContent:function(d,f){var e={markupEnabled:this._gridConfig.markupEnabled,seeable:this._gridConfig.seeable,removeNewLines:true};var g=this._item?this._item.getText(d):null;c.text.renderContent(f.get(0),g,null,e)},_renderCellLabelFont:function(d,e){e.css({color:this._getCellColor(d)||"",whiteSpace:this._gridConfig.wordWrap[d]?"":_[123]});this._setFont(e,this._item.getCellFont(d))},_getCheckBoxImage:function(){if(!this._item){return null}this.setState("over",this._hoverTarget&&this._hoverTarget[0]===_[257]);this.setState(_[128],!this._item.isCellCheckable(0));var d=this._getImageFromAppearance(_[234],this.__states);this.setState("over",this._hoverTarget!==null);this.setState(_[128],false);return d},_getCellCheckBoxImage:function(d){if(!this._item){return null}this.setState(_[157],this._item.isCellChecked(d));this.setState(_[128],!this._item.isCellCheckable(d));this.setState(_[207],this._item.isCellGrayed(d));this.setState("over",this._hoverTarget&&this._hoverTarget[0]===_[269]&&this._hoverTarget[1]===d);var e=this._getImageFromAppearance(_[234],this.__states);this.setState(_[128],false);return e},_getCellBackgroundColor:function(d){if(!this._item||this._gridConfig.enabled===false){return _[8]}return this._item.getCellBackground(d)},_getItemColor:function(){var d=_[8];if(this._gridConfig.fullSelection){d=this._overlayStyleMap.foreground}if(d===_[8]){d=this._styleMap.foreground}if(d===_[8]){d=this._gridConfig.textColor}if(d===_[8]){d=_[96]}return d},_getCellColor:function(f){var g=this._isTreeColumn(f);var e=this._gridConfig.fullSelection||g;var d=e?this._overlayStyleMap.foreground:_[8];if(d===_[8]&&this._gridConfig.enabled!==false&&this._item.getCellForeground(f)){d=this._item.getCellForeground(f)}if(d===_[8]&&g&&!this._gridConfig.fullSelection){d=this._overlayStyleMap.rowForeground}if(d===_[8]){d=_[96]}return d},_renderCheckBoxBounds:function(){var e=this._layout.checkBoxLeft;var d=this._layout.checkBoxWidth;this.$checkBox.css({left:this._mirror?"":e,right:this._mirror?e:"",top:0,width:d,height:"100%"})},_renderCellBackgroundBounds:function(d){var e=this.$cellBackgrounds[d];if(e){var f=this._layout.cellLeft[d];e.css({left:this._mirror?"":f,right:this._mirror?f:"",top:0,width:this._layout.cellWidth[d],height:"100%"})}},_renderCellCheckBounds:function(d){var e=this.$cellCheckBoxes[d];if(e){var g=this._layout.cellCheckLeft[d];var f=this._layout.cellCheckWidth[d];e.css({left:this._mirror?"":g,right:this._mirror?g:"",top:0,width:f,height:"100%"})}},_renderCellImageBounds:function(d){var e=this.$cellImages[d];if(e){var g=this._layout.cellImageLeft[d];var f=this._layout.cellImageWidth[d];e.css({left:this._mirror?"":g,right:this._mirror?g:"",top:0,width:f,height:"100%"})}},_renderCellLabelBounds:function(d){var e=this.$cellLabels[d];if(e){var h=this._layout.cellTextLeft[d];var f=this._layout.cellTextWidth[d];var g=this._layout.cellPadding[0];e.css({left:this._mirror?"":h,right:this._mirror?h:"",top:g,width:f,height:"auto"})}},_renderOverlayBounds:function(){if(!this._gridConfig.fullSelection){var d=this._gridConfig.treeColumn;var h=this._gridConfig.selectionPadding;var g=this._layout.cellTextLeft[d];g-=h[0];var e=this._layout.cellTextWidth[d];e+=e>0?h[0]:0;var f=this._computeVisualTextWidth(d);f+=h[0]+h[1];e=Math.min(e,f);this._getOverlayElement().css({left:this._mirror?"":g,right:this._mirror?g:"",width:e})}},computeAutoHeight:function(){var e=0;for(var d=0;db.length){a=-1}d=a>=0?b[a]:null;if(d&&d.isEnabled()&&d.classname==_[230]){c=d}}while(!c&&(a!=e));this.setHoverItem(c,true)},_hoverPreviousItem:function(){var d;var c=null;var b=this._layout.getVisibleChildren();var a=b.indexOf(this._hoverItem);var e=a;do{a--;if(a<-1){a=b.length}d=a>=0?b[a]:null;if(d&&d.isEnabled()&&d.classname==_[230]){c=d}}while(!c&&(a!=e));this.setHoverItem(c,true)},_makeActive:function(){this.setCapture(true)},_makeInactive:function(){this.setCapture(false)},_beforeAppear:function(){rwt.widgets.base.Parent.prototype._beforeAppear.call(this);rwt.widgets.util.MenuManager.getInstance().add(this);this.bringToFront();this._makeActive();this._menuShown();rwt.widgets.util.MnemonicHandler.getInstance().deactivate()},_beforeDisappear:function(){rwt.widgets.base.Parent.prototype._beforeDisappear.call(this);rwt.widgets.util.MenuManager.getInstance().remove(this);this._makeInactive();this.setOpenItem(null);this.setHoverItem(null);if(this._opener instanceof rwt.widgets.MenuItem){var a=this._opener.getParentMenu();if(a instanceof rwt.widgets.MenuBar){this._opener.removeState(_[13]);if(a.getOpenItem()==this._opener){a.setOpenItem(null)}}}this._menuHidden()},hasSubmenu:function(a){return a&&a.getMenu&&a.getMenu()},_onOpenTimer:function(){this._openTimer.stop();this.setOpenItem(this._hoverItem);this._closeTimer.stop()},_onCloseTimer:function(){this._closeTimer.stop();this.setOpenItem(null)},openByMnemonic:function(a){this.setOpenItem(a,true);this.setHoverItem(null,true)},setOpenItem:function(f,e){if(this._openItem&&this._openItem.getMenu()){this._openItem.setSubMenuOpen(false);var a=this._openItem.getMenu();a.hide();if(this.getVisibility()){this._makeActive()}}this._openItem=f;if(f&&f.getMenu()&&f.getEnabled()){var c=f.getMenu();f.setSubMenuOpen(true);c.setOpener(f);var g=f.getElement();var d=this.getElement();var b=rwt.html.Location.getLeft(d);c.setTop(rwt.html.Location.getTop(g)-2);if(this.getDirection()==="rtl"){c.setRight(window.innerWidth-b-3)}else{c.setLeft(b+d.offsetWidth-3)}c.setMnemonics(e===true);c.show();if(e){c.hoverFirstItem()}}},_onMouseOut:function(a){var c=a.getOriginalTarget();if(this.contains(c)){var b=a.getRelatedTarget();if(c===this||(b!==this&&!this.contains(b))){this.setHoverItem(null)}}else{c._dispatchEvent(a);a.stopPropagation()}},_onMouseOver:function(a){var b=a.getOriginalTarget();if(this.contains(b)){if(b instanceof rwt.widgets.MenuItem){this.setHoverItem(b)}this._unhoverSubMenu()}else{b._dispatchEvent(a);a.stopPropagation()}},_onMouseDown:function(a){this._unhoverSubMenu();var b=a.getOriginalTarget();if(this.contains(b)){this.addState(_[13])}else{rwt.event.EventHandlerUtil.handleFocusedChild(b);b._dispatchEvent(a);a.stopPropagation()}},_onMouseUp:function(a){var b=a.getOriginalTarget();if(this.contains(b)){if(b instanceof rwt.widgets.MenuItem&&this.hasState(_[13])){b.execute()}}else{b._dispatchEvent(a);a.stopPropagation()}},_unhoverSubMenu:function(){if(this._openItem){var a=this._openItem.getMenu();a.setOpenItem(null);a.setHoverItem(null)}},_onKeyDown:function(d){if(this._mnemonics){var e=d.getKeyCode();var c=!isNaN(e)&&rwt.event.EventHandlerUtil.isAlphaNumericKeyCode(e);if(c){var d={type:_[97],charCode:e,success:false};var a=this._layout.getChildren();for(var b=0;b=d-5&&b<=d+5&&e>=c-5&&e<=c+5},_notifyMouseListeners:function(e,d,c){var b={x:d.getPageX(),y:d.getPageY(),time:a.eventTimestamp()};a.addButtonToProperties(b,d);a.addModifierToProperties(b);rwt.remote.Connection.getInstance().getRemoteObject(e).notify(c,b)},helpRequested:function(c){if(c.getKeyIdentifier()==="F1"){c.stopPropagation();c.preventDefault();var d=c.getTarget();var f=rwt.remote.WidgetManager.getInstance();var e=f.findIdByWidget(d);if(e===null){d=f.findControl(d);e=f.findIdByWidget(d)}if(e!=null){var b=rwt.remote.Connection.getInstance().getRemoteObject(d);b.notify("Help")}}},menuDetectedByKey:function(c){if(c.getKeyIdentifier()==="Apps"){c.stopPropagation();c.preventDefault();var b=rwt.event.MouseEvent.getPageX();var d=rwt.event.MouseEvent.getPageY();a.sendMenuDetected(c.getTarget(),b,d)}},menuDetectedByMouse:function(c){if(c.getButton()===rwt.event.MouseEvent.C_BUTTON_RIGHT){c.stopPropagation();c.preventDefault();var b=c.getPageX();var d=c.getPageY();a.sendMenuDetected(c.getTarget(),b,d)}},sendMenuDetected:function(d,b,g){if(!a.getSuspended()){var f=rwt.remote.WidgetManager.getInstance();while(d!=null&&!f.isControl(d)){d=d.getParent?d.getParent():null}var e=f.findIdByWidget(d);if(e!=null){var c=rwt.remote.Connection.getInstance().getRemoteObject(d);c.notify("MenuDetect",{x:b,y:g})}}}};a=rwt.remote.EventUtil}());
(function(){namespace(_[94]);rwt.widgets.util.ToolTipConfig={getConfig:function(a){if(a.getParent() instanceof rwt.widgets.CoolBar){return this._getClickableConfig(a)}switch(a.classname){case _[325]:return this._quickConfig;case _[211]:return this._getLabelConfig(a);case _[210]:case _[268]:case _[208]:return this._getClickableConfig(a);case _[182]:case _[302]:case _[332]:case _[418]:case _[452]:return this._fieldConfig;case _[338]:return this._getClickableConfig(a);case _[247]:return rwt.util.Objects.mergeWith({overlap:3},this._getBarConfig(a));case _[290]:case _[306]:return rwt.util.Objects.mergeWith({overlap:-2},this._getBarConfig(a));case _[308]:return this._rowConfig;default:return this._defaultConfig}},_getBarConfig:function(a){if(a.hasState(_[120])){return this._verticalBarConfig}else{return this._horizontalBarConfig}},_getClickableConfig:function(c){if(c.hasState(_[120])){return this._verticalClickableConfig}else{var b=c.getAppearance();var a=this._horizontalClickableConfig;if(b===_[234]||b===_[430]){return rwt.util.Objects.mergeWith({overlap:-1},a)}else{return a}}},_getLabelConfig:function(a){if(!a._rawText){return this._quickConfig}else{return this._fieldConfig}},_defaultConfig:{position:"mouse",appearOn:"rest",disappearOn:"move",appearDelay:1000,disappearDelay:200,autoHide:true},_horizontalClickableConfig:{position:_[258],appearOn:"enter",disappearOn:"exit",appearDelay:200,disappearDelay:100,autoHide:true},_verticalClickableConfig:{position:_[364],appearOn:"enter",disappearOn:"exit",appearDelay:200,disappearDelay:100,autoHide:true},_horizontalBarConfig:{position:_[258],appearOn:"enter",disappearOn:"exit",appearDelay:200,disappearDelay:100,autoHide:false},_verticalBarConfig:{position:_[364],appearOn:"enter",disappearOn:"exit",appearDelay:200,disappearDelay:100,autoHide:false},_fieldConfig:{position:_[265],appearOn:"rest",disappearOn:"exit",appearDelay:500,disappearDelay:200,autoHide:true},_quickConfig:{position:_[258],appearOn:"enter",disappearOn:"exit",appearDelay:20,disappearDelay:50,autoHide:false,overlap:-1},_rowConfig:{position:_[265],appearOn:"rest",disappearOn:_[403],appearDelay:700,disappearDelay:100,autoHide:true}}}());
rwt.qx.Class.define("rwt.widgets.base.WidgetToolTip",{extend:rwt.widgets.base.Popup,include:rwt.animation.VisibilityAnimationMixin,construct:function(){arguments.callee.base.call(this);this._label=new rwt.widgets.base.MultiCellWidget([_[46]]);this._label.setParent(this);this._pointer=null;this._showTimer=new rwt.client.Timer();this._showTimer.addEventListener(_[26],this._onshowtimer,this);this._hideTimer=new rwt.client.Timer();this._hideTimer.addEventListener(_[26],this._onhidetimer,this);this._lastWidget=null;this._fallbackMode=false;this.addEventListener(_[10],this._onMouseOver);this.addEventListener(_[16],this._onMouseOver);this.addEventListener(_[4],this._onMouseUp);this._config={};this.setRestrictToPageOnOpen(false)},statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.widgets.base.WidgetToolTip)},setToolTipText:function(c,b){if(b!=null&&b!==""){var d=b;if(c.getUserData(_[54])!==true){var a=rwt.util.Encoding;d=a.escapeText(d,false);d=a.replaceNewLines(d,_[63])}c.setToolTipText(d);c.dispatchSimpleEvent(_[135],c)}else{c.setToolTipText(null)}}},properties:{appearance:{refine:true,init:"widget-tool-tip"},mousePointerOffsetX:{check:_[25],init:1},mousePointerOffsetY:{check:_[25],init:20},boundToWidget:{check:_[125],apply:"_applyBoundToWidget",nullable:true,init:null},pointers:{nullable:true,init:null,themeable:true},textAlign:{check:["left",_[15],_[2]],init:_[15],themeable:true,apply:_[368]}},members:{_minZIndex:10000000,_targetDistance:4,updateText:function(){if(this.getBoundToWidget()){this._updateTextInternal();if(this.getText()&&!this._showTimer.isEnabled()){this._onshowtimer()}if(!this.getText()){this._quickHide()}}},getLastWidget:function(){return this._lastWidget},getFocusRoot:function(){return null},_applyElement:function(b,a){arguments.callee.base.call(this,b,a)},_applyTextAlign:function(a){this._label.setHorizontalChildrenAlign(a)},_getPointerElement:function(){if(this._pointer==null){this._pointer=document.createElement("div");this._pointer.style.position=_[11];rwt.html.Style.setBackgroundRepeat(this._pointer,_[130]);rwt.html.Style.setPointerEvents(this._pointer,"none");this.getElement().appendChild(this._pointer)}return this._pointer},_applyBoundToWidget:function(b,a){if(b){this.setParent(rwt.widgets.base.ClientDocument.getInstance());this._config=rwt.widgets.util.ToolTipConfig.getConfig(this.getBoundToWidget());this._showTimer.setInterval(this._config.appearDelay||1000);this._hideTimer.setInterval(this._config.disappearDelay||200);this.setAutoHide(this._config.autoHide!==false)}else{if(a){this._config={}}}},_beforeAppear:function(){arguments.callee.base.call(this);this._stopShowTimer()},_beforeDisappear:function(){arguments.callee.base.call(this);this._stopHideTimer()},_startShowTimer:function(){if(this._allowQuickAppear()&&(this._config.appearOn==="enter"||this._lastWidget==this.getBoundToWidget())){this._onshowtimer()}else{if(!this._showTimer.getEnabled()){this._showTimer.start()}}},_allowQuickAppear:function(){var a=(new Date()).getTime();return this.isSeeable()||(this._hideTimeStamp>0&&(a-this._hideTimeStamp)<300)},_startHideTimer:function(){if(!this._hideTimer.getEnabled()){this._hideTimer.start()}},_stopShowTimer:function(){if(this._showTimer.getEnabled()){this._showTimer.stop()}},_stopHideTimer:function(){if(this._hideTimer.getEnabled()){this._hideTimer.stop()}},_onMouseOver:function(a){if(this._pointer&&this._pointer===a.getDomTarget()){return}if(this.getElement().getElementsByTagName("a").length>0){return}this._quickHide()},_onMouseUp:function(){rwt.client.Timer.once(function(){this._quickHide()},this,100)},_quickHide:function(){if(this._disappearAnimation&&this._disappearAnimation.isRunning()){this._disappearAnimation.skip()}else{if(this._disappearAnimation&&this._disappearAnimation.getDefaultRenderer().isActive()){this._disappearAnimation.getDefaultRenderer().setActive(false);this.hide();this._disappearAnimation.getDefaultRenderer().setActive(true)}else{this.hide()}}},_handleMouseMove:function(c){if(this.getBoundToWidget()){if(this.isSeeable()&&!this._hideTimer.getEnabled()){if(this._config.disappearOn==="move"||this._fallbackMode){this._startHideTimer()}else{if(this._config.disappearOn===_[403]){var b=this._getTargetBounds();var a=c.getPageX();var d=c.getPageY();if((a(b.left+b.width))||(d(b.top+b.height))){this._startHideTimer()}}}}else{if(this._config.appearOn==="rest"){this._showTimer.restart()}}}},_onshowtimer:function(){this._lastWidget=this.getBoundToWidget();this._stopShowTimer();this._stopHideTimer();this._updateTextInternal();if(this.getText()){if(this._allowQuickAppear()&&this._appearAnimation&&this._appearAnimation.getDefaultRenderer().isActive()&&!this.isSeeable()){this._appearAnimation.getDefaultRenderer().setActive(false);this.show();this._appearAnimation.getDefaultRenderer().setActive(true)}else{this.show()}rwt.widgets.base.Widget.flushGlobalQueues();this._afterAppearLayout();rwt.widgets.base.Widget.flushGlobalQueues()}else{if(this.getBoundToWidget().requestToolTipText){this.getBoundToWidget().requestToolTipText()}}},_onhidetimer:function(){if(this._config.appearOn==="rest"){this._showTimer.start()}return this.hide()},_afterAppearLayout:function(){var c=this._getTargetBounds();this._fallbackMode=this._computeFallbackMode(c);var d=this._getViewportBounds();var a=this._getOwnDimension();var b=this._getPositionAfterAppear(c,d,a);this.setLeft(b[0]);this.setTop(b[1]);var e={left:b[0]+this._cachedBorderLeft,top:b[1]+this._cachedBorderTop,width:a.width-this._cachedBorderLeft-this._cachedBorderRight,height:a.height-this._cachedBorderTop-this._cachedBorderBottom};this._renderPointer(c,e)},_renderPointer:function(e,b){var a=this.getPointers();var c=this._config.position&&this._config.position!=="mouse"&&a&&!this._fallbackMode;this._getPointerElement().style.display="none";if(c){var d=this._getDirection(e,b);if(d==="up"&&a[0]){this._renderPointerUp(e,b)}else{if(d==="down"&&a[2]){this._renderPointerDown(e,b)}else{if(d==="left"&&a[3]){this._renderPointerLeft(e,b)}else{if(d===_[2]&&a[1]){this._renderPointerRight(e,b)}}}}}},_renderPointerUp:function(c,a){var d=this.getPointers()[0];var b=this._getPointerElement();rwt.html.Style.setBackgroundImage(b,d[0]);b.style.width=d[1]+"px";b.style.height=d[2]+"px";b.style.top=(-1*d[2])+"px";this._renderPointerHorizontalAlign(c,a,d);b.style.display=""},_renderPointerDown:function(c,a){var d=this.getPointers()[2];var b=this._getPointerElement();rwt.html.Style.setBackgroundImage(b,d[0]);b.style.width=d[1]+"px";b.style.height=d[2]+"px";b.style.top=a.height+"px";this._renderPointerHorizontalAlign(c,a,d);b.style.display=""},_renderPointerLeft:function(d,b){var e=this.getPointers()[3];var c=this._getPointerElement();var a=this._getBoundsCenter(d);rwt.html.Style.setBackgroundImage(c,e[0]);c.style.width=e[1]+"px";c.style.height=e[2]+"px";c.style.left=(-1*e[1])+"px";c.style.top=Math.round(a.top-b.top-e[2]/2)+"px";c.style.display=""},_renderPointerRight:function(d,b){var e=this.getPointers()[1];var c=this._getPointerElement();var a=this._getBoundsCenter(d);rwt.html.Style.setBackgroundImage(c,e[0]);c.style.width=e[1]+"px";c.style.height=e[2]+"px";c.style.left=b.width+"px";c.style.top=Math.round(a.top-b.top-e[2]/2)+"px";c.style.display=""},_renderPointerHorizontalAlign:function(e,c,f){var d=this._getPointerElement();if(this._config.position===_[265]){var b=e.left+this._targetDistance+this._cachedBorderLeft+this.getPaddingLeft();d.style.left=Math.round(b-c.left)+"px"}else{var a=this._getBoundsCenter(e);d.style.left=Math.round(a.left-c.left-f[1]/2)+"px"}},_getDirection:function(d,a){var c=d.left>=a.left&&d.left<=(a.left+a.width);var b=a.left>=d.left&&a.left<=(d.left+d.width);if(c||b){return a.top>d.top?"up":"down"}else{return a.left>d.left?"left":_[2]}},_getBoundsCenter:function(a){return{left:a.left+a.width/2,top:a.top+a.height/2}},_updateTextInternal:function(){this._label.setCellContent(0,this.getBoundToWidget().getToolTipText())},_computeFallbackMode:function(f){var g=this._getViewportBounds();var c=f.left;var l=f.left+f.width;var j=f.top;var a=f.top+f.height;if(cg.left+g.width||a>g.top+g.height){return true}var h=this.getElement().style.display;this.getElement().style.display="none";var b=[document.elementFromPoint(c+f.width/2-g.left,j+1-g.top),document.elementFromPoint(l-1-g.left,j+f.height/2-g.top),document.elementFromPoint(c+f.width/2-g.left,a-1-g.top),document.elementFromPoint(c+1-g.left,j+f.height/2-g.top)];this.getElement().style.display=h;var k=this.getBoundToWidget();for(var d=0;d<4;d++){var e=rwt.event.EventHandlerUtil.getOriginalTargetObject(b[d]);if(e==null||!(k===e||k.contains(e))){return true}}return false},getText:function(){return this._label.getCellContent(0)},_getPositionAfterAppear:function(d,b,c){var a;if(!this._fallbackMode){switch(this._config.position){case _[258]:a=this._positionHorizontalCenter(d,b,c);break;case _[265]:a=this._positionAlignLeft(d,b,c);break;case _[364]:a=this._positionVerticalCenter(d,b,c);break;default:a=this._positionMouseRelative(d,b,c);break}}else{a=this._positionMouseRelative(d,b,c)}a[0]=Math.min(a[0],b.left+b.width-c.width);a[1]=Math.min(a[1],b.top+b.height-c.height);a[0]=Math.max(a[0],b.left);a[1]=Math.max(a[1],b.top);return a},_positionMouseRelative:function(){return[rwt.event.MouseEvent.getPageX()+this.getMousePointerOffsetX(),rwt.event.MouseEvent.getPageY()+this.getMousePointerOffsetY()]},_positionHorizontalCenter:function(e,a,b){var d=this._getHorizontalOffsetCentered(e,b,a);var c=this._getVerticalOffsetAutoByAbsolutePosition(e,b,a);return[d,c]},_positionAlignLeft:function(e,a,b){var d=this._getHorizontalOffsetAlignLeft(e,b,a);var c=this._getVerticalOffsetAutoByAbsolutePosition(e,b,a);return[d,c]},_positionVerticalCenter:function(e,a,b){var d=this._getHorizontalOffsetAuto(e,b,a);var c=this._getVerticalOffsetCentered(e,b,a);return[d,c]},_getVerticalOffsetAutoByAbsolutePosition:function(c,a){var b=this._getVerticalOffsetTop(c,a);if(b<30){b=this._getVerticalOffsetBottom(c,a)}return b},_getVerticalOffsetTop:function(b,a){return b.top-a.height-this._getTargetDistance("down")},_getVerticalOffsetBottom:function(a){return a.top+a.height+this._getTargetDistance("up")},_getHorizontalOffsetCentered:function(b,a){return Math.round(b.left+(b.width/2)-a.width/2)},_getHorizontalOffsetAlignLeft:function(a){return a.left+this._targetDistance},_getHorizontalOffsetAuto:function(d,c,b){var e=d.left;var a=b.width-e-d.width;if(e>a){return d.left-c.width-this._getTargetDistance(_[2])}else{return d.left+d.width+this._getTargetDistance("left")}},_getVerticalOffsetCentered:function(b,a){return Math.round(b.top+(b.height/2)-a.height/2)},_getTargetBounds:function(){var d=this.getBoundToWidget();var b=rwt.html.Location.get(d.getElement());var a={left:b.left,top:b.top,width:d.getBoxWidth(),height:d.getBoxHeight()};if(d.getToolTipTargetBounds){var c=d.getToolTipTargetBounds();a.left+=c.left;a.top+=c.top;a.width=c.width;a.height=c.height}return a},_getViewportBounds:function(){var a=rwt.html.Viewport;return{left:a.getScrollLeft(),top:a.getScrollTop(),width:a.getWidth(),height:a.getHeight()}},_getOwnDimension:function(){return{width:this.getBoxWidth(),height:this.getBoxHeight()}},_getTargetDistance:function(c){var a=typeof this._config.overlap===_[18]?this._config.overlap:4;var b=this.getPointers();if(c==="up"&&b&&b[0]){return b[0][2]-a}else{if(c==="down"&&b&&b[2]){return b[2][2]-a}else{if(c==="left"&&b&&b[3]){return b[3][1]-a}else{if(c===_[2]&&b&&b[1]){return b[1][1]-a}else{return this._targetDistance}}}}}},destruct:function(){this._disposeObjects("_showTimer","_hideTimer","_label")}});
rwt.qx.Class.define(_[419],{extend:rwt.qx.Object,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.theme.ThemeStore)}},construct:function(){this._values={dimensions:{},boxdims:{},images:{},gradients:{},fonts:{},colors:{},borders:{},cursors:{},animations:{},shadows:{}};this._cssValues={};this._statesMap={"*":{hover:"over"},"DateTime-Calendar-Day":{unfocused:_[108]},"List-Item":{unfocused:_[108]},Text:{"read-only":"readonly"},TreeItem:{unfocused:_[108]},"Tree-RowOverlay":{unfocused:_[108]},TreeColumn:{hover:_[10]},Shell:{inactive:_[214]},"Shell-Titlebar":{inactive:_[214]},"Shell-MinButton":{inactive:_[214]},"Shell-MaxButton":{inactive:_[214]},"Shell-CloseButton":{inactive:_[214]},TableColumn:{hover:_[10]},TableItem:{unfocused:_[108]},"Table-RowOverlay":{unfocused:_[108]},TabItem:{selected:_[157],first:"firstChild",last:"lastChild",bottom:"barBottom"}};this._namedColors={}},members:{setCurrentTheme:function(a){this._currentTheme=a},getCurrentTheme:function(){return this._currentTheme},setFallbackTheme:function(a){this.fallbackTheme=a},getFallbackTheme:function(){return this.fallbackTheme},defineValues:function(a){for(var c in this._values){if(c in a){for(var b in a[c]){if(!(b in this._values[c])){this._values[c][b]=a[c][b]}}}}},setThemeCssValues:function(c,a,b){this._cssValues[c]=a;if(b){this.fallbackTheme=c}this._fillNamedColors(c)},getColor:function(d,b,e,f){var c=this._getCssValue(d,b,e,f);var a=this._values.colors[c];if(a instanceof Array){a="#"+rwt.util.Colors.rgbToHexString(a)}return a},getAlpha:function(e,c,f,g){var d=this._getCssValue(e,c,f,g);var b=this._values.colors[d];var a=1;if(b instanceof Array){a=b[3]}else{if(b===_[83]){a=0}}return a},getNamedColor:function(b){var a=this._namedColors[b];return a?a:b},getDimension:function(c,a,d,e){var b=this._getCssValue(c,a,d,e);return this._values.dimensions[b]},getBoxDimensions:function(c,a,d,e){var b=this._getCssValue(c,a,d,e);return this._values.boxdims[b]},getFloat:function(b,a,c,d){return parseFloat(this._getCssValue(b,a,c,d))},getIdentifier:function(b,a,c,d){return this._getCssValue(b,a,c,d)},getImage:function(d,b,f,g){var a;var c=this._getCssValue(d,b,f,g);var e=this._values.images[c];if(e!=null){a=_[493]+c}else{a=rwt.theme.ThemeValues.NONE_IMAGE}return a},getSizedImage:function(d,b,f,g){var c=this._getCssValue(d,b,f,g);var e=this._values.images[c];var a;if(e!=null){a=[_[493]+c].concat(e)}else{a=rwt.theme.ThemeValues.NONE_IMAGE_SIZED}return a},getCursor:function(d,b,e,f){var c=this._getCssValue(d,b,e,f);var a=this._values.cursors[c];if(a===null){a="rwt-resources/themes/cursors/"+c}return a},getAnimation:function(c,a,d,e){var b=this._getCssValue(c,a,d,e);return this._values.animations[b]},getFont:function(d,b,f,g){var c=this._getCssValue(d,b,f,g);var e=this._values.fonts[c];if(!(e instanceof rwt.html.Font)){var a=new rwt.html.Font();a.setSize(e.size);a.setFamily(e.family);a.setBold(e.bold);a.setItalic(e.italic);this._values.fonts[c]=a}return this._values.fonts[c]},getBorder:function(j,p,m,i){var n=this._createCompleteBorderKey(j,p,i);var c=this._getCssValue(j,p,_[509],i);var h=this._values.boxdims[c];var e=h!=null&&(h.join("")!=="0000");if(e){n+="#"+c}var g=this._values.borders[n];if(!g||!(g instanceof rwt.html.Border)){var k=this.getBorderEdge(j,p,"border-top",i);var l=this.getBorderEdge(j,p,_[484],i);var b=this.getBorderEdge(j,p,_[502],i);var d=this.getBorderEdge(j,p,_[379],i);var f=[k.getWidthTop(),l.getWidthTop(),b.getWidthTop(),d.getWidthTop()];var a=[k.getColorTop(),l.getColorTop(),b.getColorTop(),d.getColorTop()];var o=[k.getStyleTop(),l.getStyleTop(),b.getStyleTop(),d.getStyleTop()];g=new rwt.html.Border(f,o,a,e?h:undefined);this._values.borders[n]=g}return g},getBorderEdge:function(i,n,k,h){var f;var l=this._getCssValue(i,n,k,h);var j=this._values.borders[l];var m=j instanceof rwt.html.Border;var b=this._getCssValue(i,n,_[509],h);var g=this._values.boxdims[b];if(g!=null&&(g.join("")!=="0000")){var d=l+"#"+b;f=this._values.borders[d];if(!f){var c=m?j.getWidthTop():j.width;var a=m?j.getStyleTop():j.style;var e=m?j.getColorTop():j.color;f=new rwt.html.Border(c,a,e,g);this._values.borders[d]=f}}if(!f){if(m){f=j}else{f=new rwt.html.Border(j.width,j.style,j.color);this._values.borders[l]=f}}return f},getNamedBorder:function(c){var d="_"+c;var a=this._values.borders[d];if(!a){var f=rwt.theme.BorderDefinitions.getDefinition(c);if(f){var b=this._resolveNamedColors(f.color);var e=this._resolveNamedColors(f.innerColor);a=new rwt.html.Border(f.width,_[169],b,e);this._values.borders[d]=a}else{a=null}}return a},getShadow:function(c,a,d,e){var b=this._getCssValue(c,a,d,e);return this._values.shadows[b]},getGradient:function(c,h,f,b){var j=null;var g=this._getCssValue(c,h,f,b);var e=this._values.gradients[g];if(e){if(e.colors&&e.percents){var d=[];for(var a=0;a0){var h=f.charAt(0);if(h=="."){a=_[193]+f.substr(1) in b}else{if(h==":"){var g=this._translateState(f.substr(1),e);if(g.charAt(0)=="!"){a=!(g.substr(1) in b)}else{a=g in b}}else{if(h=="["){a="rwt_"+f.substr(1) in b}}}}}return a},_translateState:function(c,b){var a=c;if(b in this._statesMap&&c in this._statesMap[b]){a=this._statesMap[b][c]}else{if(c in this._statesMap["*"]){a=this._statesMap["*"][c]}}return a},_resolveNamedColors:function(c){var a=null;if(c){a=[];for(var b=0;bi||this._expandFlexCell){d=i}else{d=h}return d},_getContentSizeFlowDir:function(k){var g=this.getVertical();if(g){this._beforeComputeInnerHeight()}else{this._beforeComputeInnerWidth()}var j=k===_[330];var f=k===_[399];var e=0;var d=0;for(var h=0;hg){d=g}else{d=f}return d},cellIsDisplayable:function(d){return this._flexibleCell===d||(this.getCellWidth(d)>0)},renderPadding:function(){},_layoutPost:function(e){if(e.createContent){this._createSubElements()}if(e.updateContent||e.createContent){this._updateAllImages();this._updateAllLabels()}e.layoutX=e.width||e.layoutX||e.frameWidth||e.initial;e.layoutY=e.height||e.layoutY||e.frameHeight||e.initial||(e.layoutX&&this._flexibleCell!=-1);this._beforeRenderLayout(e);var d=this.getVertical();if((e.layoutY&&d)||(e.layoutX&&!d)){this._renderLayoutFlowDir()}if((e.layoutX&&d)||(e.layoutY&&!d)){this._renderLayoutOrthDir()}this._afterRenderLayout(e);arguments.callee.base.call(this,e)},_renderLayoutFlowDir:function(){var g=this.getSpacing();var d=this.getVertical();var h=this._getFirstCellOffset(d);for(var f=0;f=0)){a.add(this,this._onMnemonic)}else{a.remove(this)}},getMnemonicIndex:function(){return this._mnemonicIndex},computeBadgePosition:function(a){return[(a[1]*-1)+this.getPaddingTop()+1,Math.round(this.getPaddingRight()/2),"auto","auto"]},_applyText:function(b){if(this._rawText){var a=b?this._mnemonicIndex:undefined;var c=rwt.util.Encoding.escapeText(this._rawText,a);this.setCellContent(1,c)}else{this.setCellContent(1,null)}},_onMnemonic:function(b){switch(b.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case _[97]:var a=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(b.charCode===a){this.setChecked(true);b.success=true}break}},_onkeydown:function(b){var a=b.getKeyIdentifier();if(a===_[32]||a===_[111]){this.setChecked(true)}},_onkeypress:function(b){switch(b.getKeyIdentifier()){case"Left":var c=this.getPreviousActiveSibling();if(c&&c!==this){delete rwt.widgets.util.FocusHandler.mouseFocus;c.setFocused(true);c.setChecked(true)}break;case _[35]:var a=this.getNextActiveSibling();if(a&&a!==this){delete rwt.widgets.util.FocusHandler.mouseFocus;a.setFocused(true);a.setChecked(true)}break}},_renderAppearance:function(){if(this.getView()){this.toggleState("firstChild",this.isFirstVisibleChild());this.toggleState("lastChild",this.isLastVisibleChild());this.toggleState("alignLeft",this.getView().getAlignTabsToLeft());this.toggleState("alignRight",!this.getView().getAlignTabsToLeft());this.toggleState("barTop",this.getView().getPlaceBarOnTop());this.toggleState("barBottom",!this.getView().getPlaceBarOnTop())}arguments.callee.base.call(this)},getView:function(){var a=this.getParent();return a?a.getParent():null},_applyManager:function(b,a){if(a){a.remove(this)}if(b){b.add(this)}},_applyParent:function(b,a){arguments.callee.base.call(this,b,a);if(a){a.getManager().remove(this)}if(b){b.getManager().add(this)}},_applyPage:function(b,a){if(a){a.setButton(null)}if(b){b.setButton(this);if(this.getChecked()){b.show()}else{b.hide()}}},_applyChecked:function(b){if(this._hasParent){var a=this.getManager();if(a){a.handleItemChecked(this,b)}}this.toggleState(_[157],b);var c=this.getPage();if(c){if(this.getChecked()){c.show()}else{c.hide()}}this.setZIndex(b?1:0);this.addToQueue("updateBadgePosition")},_applyName:function(a){if(this.getManager()){this.getManager().setName(a)}},_onmousedown:function(){this.setChecked(true)}},destruct:function(){this.setMnemonicIndex(null)}});
rwt.qx.Class.define(_[377],{extend:rwt.widgets.base.MultiCellWidget,construct:function(){arguments.callee.base.call(this,[_[46]]);this.setHorizontalChildrenAlign("left");this.setContainerOverflow(false)},properties:{appearance:{refine:true,init:"list-item"},width:{refine:true,init:null},allowStretchX:{refine:true,init:true}},members:{setLabel:function(a){this.setCellContent(0,a)},getLabel:function(){return this.getCellContent(0)},matchesString:function(d){var c;var b=this.getCellNode(0);if(b){c=b.innerText||b.textContent}else{c=this.getLabel()}var a=(typeof d===_[7])?d.toLowerCase():"";c=(typeof c===_[7])?c.toLowerCase():"";return a!==""&&c.indexOf(a)===0},getCellHeight:function(){return this.getHeight()-this.getPaddingTop()},getCellWidth:function(){return this.getWidth()-this.getPaddingLeft()-this.getPaddingRight()},_applyDirection:function(a){arguments.callee.base.call(this,a);this.setHorizontalChildrenAlign(a==="rtl"?_[2]:"left")}}});
rwt.qx.Class.define("rwt.widgets.util.MenuManager",{extend:rwt.util.ObjectManager,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.widgets.util.MenuManager)}},members:{update:function(j,a){var f=this.getAll();var d=a==_[0];var o=a==_[4];var l=d||o;var e=j!=null;var n=e&&j.getMenu&&j.getMenu()!=null;var m=this._getMenuBar(j);for(var g in f){var b=f[g];var h=false;if(b.getAutoHide()){var i=b.getOpener()===j;var c=!(b.getOpener() instanceof rwt.widgets.MenuItem);var k=m!=this._getMenuBar(b);if(!e||!l){h=true}if(d&&k){h=true}if(d&&c&&i){h=true}if(!n&&!i){if(d&&!b.isSubElement(j)){h=true}if(o&&b.isSubElement(j,true)&&j.isEnabled()&&j.getParentMenu().isPressed()){h=true}}}if(h){b.hide()}}},_getMenuBar:function(c){var d=null;var b=null;if(c instanceof rwt.widgets.MenuItem){d=c.getParentMenu()}else{if(c instanceof rwt.widgets.Menu||c instanceof rwt.widgets.MenuBar){d=c}}while(b==null&&d!=null){if(d instanceof rwt.widgets.MenuBar){b=d}else{var a=d.getOpener() instanceof rwt.widgets.MenuItem;d=a?d.getOpener().getParentMenu():null}}return b}}});
rwt.qx.Class.define(_[230],{extend:rwt.widgets.base.MultiCellWidget,construct:function(a){arguments.callee.base.call(this,[_[17],_[17],_[46],_[46],_[17]]);this._selected=false;this._parentMenu=null;this._rawText=null;this._mnemonicIndex=null;this._subMenu=null;this._subMenuOpen=false;this._preferredCellWidths=null;this.set({width:"auto",horizontalChildrenAlign:"left",verticalChildrenAlign:_[42]});this.addEventListener(_[272],this._onFontChange);this.addState(a);switch(a){case"push":this._isSelectable=false;this._isDeselectable=false;break;case _[40]:this._isSelectable=true;this._isDeselectable=true;break;case _[252]:this._isSelectable=false;this._isDeselectable=false;break;case _[112]:this._isSelectable=true;this.setNoRadioGroup(false);rwt.widgets.util.RadioButtonUtil.registerExecute(this);break}this._preferredCellWidths=[0,0,0,0,13];if(this._isSelectable){this.setCellContent(0,"")}},destruct:function(){this.setMnemonicIndex(null);this.setParentMenu(null);this._disposeFields("_parentMenu","_subMenu")},properties:{selectionIndicator:{apply:_[391],nullable:true,themeable:true},arrow:{apply:"_applyArrow",nullable:true,themeable:true},appearance:{refine:true,init:"menu-item"}},members:{setText:function(a){this._rawText=a;this._mnemonicIndex=null;this.renderText()},setAccelerator:function(b){var a=null;if(b){a=rwt.util.Encoding.escapeText(b);a=rwt.util.Encoding.replaceWhiteSpaces(" "+a)}this.setCellContent(3,a);this.setCellDimension(3,null,null);this._setPreferredCellWidth(3,this.getCellWidth(3))},setMnemonicIndex:function(b){this._mnemonicIndex=b;if(this._parentMenu instanceof rwt.widgets.MenuBar){var a=rwt.widgets.util.MnemonicHandler.getInstance();if((typeof b===_[18])&&(b>=0)){a.add(this,this._onMnemonic)}else{a.remove(this)}}else{if(b!=null&&this._isMnemonicMenu()){this.renderText()}}},renderText:function(){this._applyText(this._isMnemonicMenu())},_isMnemonicMenu:function(){return this._parentMenu!=null&&this._parentMenu.getMnemonics()},getMnemonicIndex:function(){return this._mnemonicIndex},handleMnemonic:function(a){this._onMnemonic(a)},_applyText:function(b){if(this._rawText){var a=b?this._mnemonicIndex:undefined;var c=rwt.util.Encoding.escapeText(this._rawText,a);this._setText(c)}else{this._setText(null)}},_afterRenderLayout:function(b){if(b.createContent&&this.getCellNode(3)){var a=this.getDirection()==="rtl";this.getCellNode(3).style.textAlign=a?"left":_[2]}},_onMnemonic:function(b){switch(b.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case _[97]:if(this._rawText&&this._mnemonicIndex!==null){var a=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(b.charCode===a){if(this.hasState(_[252])){this._parentMenu.openByMnemonic(this)}else{this.execute();rwt.widgets.util.MenuManager.getInstance().update()}b.success=true}}break}},setParentMenu:function(b){var a=this._applyParentMenuDirection;if(this._parentMenu){this._parentMenu.removeEventListener(_[281],a,this)}this._parentMenu=b;if(this._parentMenu){this._applyParentMenuDirection();this._parentMenu.addEventListener(_[281],a,this)}},getParentMenu:function(){return this._parentMenu},setSubMenuOpen:function(a){this._subMenuOpen=a},setMenu:function(a){this._subMenu=a;this.dispatchSimpleEvent(_[524])},getMenu:function(){return this._subMenu},_applyParentMenuDirection:function(){var a=this._parentMenu.getDirection();this.setDirection(a);this.setHorizontalChildrenAlign(a==="rtl"?_[2]:"left")},_applySelectionIndicator:function(e){var b=e?e[0]:null;var c=e?e[1]:0;var a=e?e[2]:0;if(b==null){var d=this._isSelectable?"":null;this.setCellContent(0,d)}else{this.setCellContent(0,b)}this.setCellHeight(0,a);this._setPreferredCellWidth(0,c)},_setPreferredCellWidth:function(a,b){this._preferredCellWidths[a]=b;if(this._parentMenu instanceof rwt.widgets.Menu){this._parentMenu.invalidateMaxCellWidth(a)}this._scheduleLayoutX()},_afterScheduleLayoutX:function(){if(this._parentMenu instanceof rwt.widgets.Menu){this._parentMenu.scheduleMenuLayout()}},getPreferredCellWidth:function(a){return this._preferredCellWidths[a]},setImage:function(c,b,a){this.setCellContent(1,c);this.setCellHeight(1,a);this._setPreferredCellWidth(1,b)},_setText:function(a){this.setCellContent(2,a);this.setCellDimension(2,null,null);this._setPreferredCellWidth(2,this.getCellWidth(2))},_onFontChange:function(){this.setCellDimension(2,null,null);this._setPreferredCellWidth(2,this.getCellWidth(2))},_applyArrow:function(d){var b=d?d[0]:null;var c=d?d[1]:13;var a=d?d[2]:0;this.setCellContent(4,b);this.setCellHeight(4,a);this._setPreferredCellWidth(4,c)},_beforeComputeInnerWidth:function(){if(this._parentMenu instanceof rwt.widgets.Menu){for(var a=0;a<5;a++){this._setCellWidth(a,this._parentMenu.getMaxCellWidth(a))}}},_beforeAppear:function(){arguments.callee.base.call(this);if(this._parentMenu instanceof rwt.widgets.Menu){this._parentMenu.invalidateAllMaxCellWidths();this._parentMenu.scheduleMenuLayout()}},setSubMenu:function(a){this._subMenu=a;this.createDispatchEvent(_[524])},setNoRadioGroup:function(a){if(this.hasState(_[112])){this._noRadioGroup=a;this._isDeselectable=a}},getNoRadioGroup:function(){return this._noRadioGroup},execute:function(){if(this.isEnabled()){arguments.callee.base.call(this);if(this._isSelectable){this.setSelection(!(this._selected&&this._isDeselectable))}else{this._notifySelected()}}},setSelection:function(c){var b=this._selected;var a=this._selected!=c;if(a){this._selected=c;this.toggleState(_[27],c);if(!rwt.remote.EventUtil.getSuspended()){var d=rwt.remote.Connection.getInstance();d.getRemoteObject(this).set(_[19],this._selected)}}if(a||b){this._notifySelected()}},_notifySelected:function(){if(this._shouldSendEvent()){rwt.remote.EventUtil.notifySelected(this)}},_shouldSendEvent:function(){return !this.hasState(_[252])}}});
rwt.remote.HandlerRegistry.add(_[230],{factory:function(b){var a;rwt.remote.HandlerUtil.callWithTarget(b.parent,function(f){var e=rwt.remote.HandlerUtil.createStyleMap(b.style);var d=f.hasState("rwt_BAR");var c="push";if(e.CASCADE){c=_[252]}else{if(e.CHECK&&!d){c=_[40]}else{if(e.RADIO&&!d){c=_[112]}}}if(e.SEPARATOR){a=new rwt.widgets.MenuItemSeparator()}else{a=new rwt.widgets.MenuItem(c);a.setNoRadioGroup(f.hasState(_[336]));if(d){a.addState("onMenuBar")}}f.addMenuItemAt(a,b.index);rwt.remote.HandlerUtil.addDestroyableChild(f,a);a.setUserData(_[71],f)});rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);return a},destructor:rwt.remote.HandlerUtil.getWidgetDestructor(),properties:["menu",_[203],"text",_[136],_[17],_[54],_[75],_[19],_[72],"data"],propertyHandler:{data:rwt.remote.HandlerUtil.getControlPropertyHandler("data"),menu:function(b,a){if(!b.hasState(_[250])){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setMenu(c)})}},text:function(d,c){if(!d.hasState(_[250])){var e=c;var b=e.indexOf("\t");var a=null;if(b!=-1){a=e.substring(b+1);e=e.substring(0,b)}d.setText(e);d.setAccelerator(a)}},image:function(b,a){if(!b.hasState(_[250])){if(a===null){b.setImage(a)}else{b.setImage.apply(b,a)}}},toolTipMarkupEnabled:rwt.remote.HandlerUtil.getControlPropertyHandler(_[54]),toolTip:rwt.remote.HandlerUtil.getControlPropertyHandler(_[75]),selection:function(b,a){if(!b.hasState(_[250])){b.setSelection(a)}}},events:[_[12]],listeners:["Help"],listenerHandler:{Help:rwt.remote.HandlerUtil.getControlListenerHandler("Help")}});
rwt.qx.Class.define("rwt.widgets.util.RadioButtonUtil",{statics:{registerExecute:function(a){a.addEventListener(_[99],this._onSelection,this)},registerKeypress:function(a){a.addEventListener(_[3],this._onKeypress,this)},_onKeypress:function(a){var b=a.getTarget();switch(a.getKeyIdentifier()){case"Left":case"Up":this._setNextOrPrevious(b,"previous");a.preventDefault();a.stopPropagation();break;case _[35]:case"Down":this._setNextOrPrevious(b,"next");a.preventDefault();a.stopPropagation();break;case"Home":case"End":case _[36]:case _[34]:a.preventDefault();a.stopPropagation();break}},_onSelection:function(a){this._unselectSiblings(a.getTarget())},_isRadioElement:function(a){return a.hasState(_[112])},_getRadioGroup:function(d){var e=[];if(!d.getNoRadioGroup()){var f=d.getParent().getChildren();var c=f.length;if(d.classname==_[210]){for(var a=0;a0){var d;for(var c=0;c=a.length){f=0}}while(!a[f].getEnabled())}if(g=="previous"){do{f--;if(f<0){f=a.length-1}}while(!a[f].getEnabled())}if(f!==d){var b=a[f];this._unselectSiblings(b);b.setSelection(true);b.setFocused(true)}}},_unselectSiblings:function(b){var c=this._getRadioGroup(b);for(var a=0;a0){for(var e=0;e0){this._focusCell=b;this.dispatchSimpleEvent(_[451])}},getFocusCell:function(){return this._focusCell},setSortDirection:function(b){this._sortDirection=b;if(this._sortColumn!==null){this._sortColumn.setSortDirection(this._sortDirection)}},setSortColumn:function(b){if(this._sortColumn!==null){this._sortColumn.setSortDirection("none")}this._sortColumn=b;if(this._sortColumn!==null){this._sortColumn.setSortDirection(this._sortDirection)}},setScrollBarsVisible:function(c,b){this._horzScrollBar.setVisibility(c);this._vertScrollBar.setVisibility(b);this._config.vBarWidth=this._getVerticalBarWidth();this._layoutX();this._layoutY()},getVerticalBar:function(){return this._vertScrollBar},getHorizontalBar:function(){return this._horzScrollBar},isVerticalBarVisible:function(){return this._vertScrollBar.getVisibility()},isHorizontalBarVisible:function(){return this._horzScrollBar.getVisibility()},setAlignment:function(b,c){this._config.alignment[b]=c;this._scheduleUpdate()},setWordWrap:function(b,c){this._config.wordWrap[b]=c;this._scheduleUpdate()},setAutoHeight:function(b){this._config.autoHeight=b;rwt.client.Timer.once(this._scheduleUpdate,this,0)},setCellCheck:function(b,c){this._config.itemCellCheck[b]=c;this._scheduleUpdate()},setLinesVisible:function(b){this._config.linesVisible=b;this.toggleState(_[339],b);this._rowContainer.updateGridLines();this._scheduleUpdate()},setAlwaysHideSelection:function(b){this._config.alwaysHideSelection=b;this._scheduleUpdate()},setIndentionWidth:function(b){this._config.indentionWidth=b;this._scheduleUpdate()},addState:function(b){arguments.callee.base.call(this,b);if(b.slice(0,8)===_[193]){this._config.variant=b;this._rootItem.setVariant(b);this._rowContainer.updateGridLines();this._scheduleColumnUpdate()}},removeState:function(b){if(this._config.variant===b){this._config.variant=null;this._rootItem.setVariant(null);this._rowContainer.updateGridLines();this._scheduleColumnUpdate()}arguments.callee.base.call(this,b)},getRenderConfig:function(){return this._config},getRootItem:function(){return this._rootItem},isFocusItem:function(b){return this._focusItem===b},isItemSelected:function(b){return this._selection.indexOf(b)!=-1},getSelection:function(){return this._selection.slice(0)},getRowContainer:function(){return this._rowContainer},getTableHeader:function(){return this._header},getFooter:function(){return this._footer},update:function(){this._scheduleUpdate()},addColumn:function(b){this._columns[b.toHashCode()]=b;b.addEventListener(_[121],this._scheduleColumnUpdate,this);this._scheduleColumnUpdate()},setColumnOrder:function(b){this._columnOrder=b;if(b&&b.length>0){this._config.cellOrder=b.map(function(c){return c.getIndex()})}else{this._config.cellOrder=[0]}},getColumnOrder:function(){return this._columnOrder},removeColumn:function(b){delete this._columns[b.toHashCode()];b.removeEventListener(_[121],this._scheduleColumnUpdate,this);this._scheduleColumnUpdate()},_onItemUpdate:function(c){var b=c.target;if(c.msg===_[185]){if(this._focusItem&&(this._focusItem.isDisposed()||this._focusItem.isChildOf(b))){this.setFocusItem(b)}}else{if(c.msg===_[180]){this._scheduleUpdate(_[448])}else{if(c.msg===_[14]){this._enableAltScrolling();this._scheduleUpdate(_[114])}}}if(!c.rendering){this._renderItemUpdate(b,c)}return false},_beforeAppear:function(){arguments.callee.base.call(this);this._scheduleColumnUpdate()},_afterInsertDom:function(){arguments.callee.base.call(this);if(this._config.autoHeight&&!this._config.splitContainer){this._rowContainer.renderRowHeight()}},_onChangeSeeable:function(){this._config.seeable=this.isSeeable()},_scheduleColumnUpdate:function(){rwt.widgets.base.Widget.addToGlobalWidgetQueue(this);this._scheduleUpdate()},flushWidgetQueue:function(){this._updateColumns()},_onVertScrollBarChangeValue:function(){this._updateTopItemIndex()},_updateTopItemIndex:function(){this._topItemIndex=this._vertScrollBar.getValue();this._topItem=null;if(this._allowRender()){this._updateTopItem(true)}else{this._scheduleUpdate("topItem")}this.dispatchSimpleEvent(_[300])},_onHorzScrollBarChangeValue:function(){this._setScrollLeft(this._adjustScrollLeft(this._horzScrollBar.getValue()));this.dispatchSimpleEvent(_[293])},_onHorzScrollBarChangeMaximum:function(){this._setScrollLeft(this._adjustScrollLeft(this._horzScrollBar.getValue()))},_setScrollLeft:function(b){this._rowContainer.setScrollLeft(b);if(this._header){this._header.setScrollLeft(b)}if(this._footer){this._footer.setScrollLeft(b)}},_onMouseDown:function(b){this._delayedSelection=false;if(!this._checkAndProcessHyperlink(b)){var c=this._rowContainer.findRowByElement(b.getDomTarget());if(c){this._onRowMouseDown(c,b);if(this._config.cellSelection&&this._hasMultiSelection){this.setCapture(true);this._mouseDownY=b.getPageY()-rwt.html.Location.getTop(this.getElement());this._mouseDownX=b.getPageX()-rwt.html.Location.getLeft(this.getElement());this._createSelectionOverlay(this._mouseDownY,this._mouseDownX)}}}},_onMouseUp:function(b){if(this._delayedSelection){this._onMouseDown(b)}else{if(this.$selectionOverlay!==null){this.setCapture(false);this.$selectionOverlay.detach();this.$selectionOverlay=null;var c=this._rowContainer.findRowByElement(b.getDomTarget());if(c&&!b.isCtrlPressed()){this._onRowMouseUp(c,b)}}else{this._checkAndProcessHyperlink(b)}}},_onMouseMove:function(f){if(this.$selectionOverlay!==null){var c=f.getPageY()-rwt.html.Location.getTop(this.getElement());var d=f.getPageX()-rwt.html.Location.getLeft(this.getElement());var b=Math.abs(c-this._mouseDownY-1);var e=Math.abs(d-this._mouseDownX-1);if(c0){this._dragSelection=true;this._onSelectionClick(e,d,b);this._dragSelection=false}}}},_acceptsGlobalSelection:function(){return this._config.fullSelection||this._config.rowTemplate||this._config.cellSelection},_checkAndProcessHyperlink:function(c){var g=null;var d=c.getOriginalTarget();if(this._config.markupEnabled&&d instanceof rwt.widgets.base.GridRowContainer){g=this._findHyperlink(c);if(g!==null&&this._isRWTHyperlink(g)){c.setDefaultPrevented(true);if(c.getType()===_[23]){var f=this._rowContainer.findRowByElement(c.getDomTarget());var b=this._rowContainer.findItemByRow(f);var e=g.getAttribute("href");if(!e){e=g.innerHTML}this._fireSelectionChanged(b,_[239],null,e)}}}return g!==null},_findHyperlink:function(c){var d=c.getDomTarget();var b=d.tagName.toLowerCase();while(b!=="a"&&b!=="div"){d=d.parentNode;b=d.tagName.toLowerCase()}return b==="a"?d:null},_isRWTHyperlink:function(b){return b.getAttribute("target")==="_rwt"},_onExpandClick:function(c){var b=!c.isExpanded();if(!b){this._deselectVisibleChildren(c)}c.setExpanded(b)},_onSelectionClick:function(d,c,b){var e=this._isDoubleClicked(d,c);if(e){this._fireSelectionChanged(c,_[294])}else{if(!this._hasMultiSelection){this._singleSelectItem(d,c,b)}else{if(!this._delayMultiSelect(d,c)){this._multiSelectItem(d,c,b)}}}},_delayMultiSelect:function(c,b){if(this._isDragSource()&&this.isItemSelected(b)&&c.getType()===_[0]){this._delayedSelection=true}return this._delayedSelection},_onMouseOut:function(){this._delayedSelection=false},_onClientAreaMouseWheel:function(c){var g=c.getWheelDelta();var e=Math.abs(g)/g;var f=Math.ceil(Math.abs(g)*2)*e;var b=this._vertScrollBar.getValue();this._vertScrollBar.setValue(b-f);var d=this._vertScrollBar.getValue();this._vertScrollBar.setValue(d);if(d!==b){c.preventDefault();c.stopPropagation()}},_onKeyPress:function(b){var c=this.getDirection()==="rtl";if(this._focusItem!=null){switch(b.getKeyIdentifier()){case _[32]:this._handleKeyEnter(b);break;case _[111]:this._handleKeySpace(b);break;case"Up":this._handleKeyUp(b);break;case"Down":this._handleKeyDown(b);break;case _[34]:this._handleKeyPageUp(b);break;case _[36]:this._handleKeyPageDown(b);break;case"Home":this._handleKeyHome(b);break;case"End":this._handleKeyEnd(b);break;case"Left":if(c){this._handleKeyRight(b)}else{this._handleKeyLeft(b)}break;case _[35]:if(c){this._handleKeyLeft(b)}else{this._handleKeyRight(b)}break}}this._stopKeyEvent(b)},_stopKeyEvent:function(b){switch(b.getKeyIdentifier()){case"Up":case"Down":case"Left":case _[35]:case"Home":case"End":case _[34]:case _[36]:b.preventDefault();b.stopPropagation();break}},_onShowResizeLine:function(c){var b=c.position;if(this._resizeLine===null){this._resizeLine=new rwt.widgets.base.Terminator();this._resizeLine.setAppearance("table-column-resizer");this.add(this._resizeLine);rwt.widgets.base.Widget.flushGlobalQueues()}var e=this._rowContainer.getTop();this._resizeLine._renderRuntimeTop(e);var d=b-2-this._horzScrollBar.getValue();if(this.getDirection()==="rtl"){this._resizeLine._renderRuntimeRight(d)}else{this._resizeLine._renderRuntimeLeft(d)}this._resizeLine._renderRuntimeHeight(this._rowContainer.getHeight());this._resizeLine.removeStyleProperty(_[93])},_onHideResizeLine:function(){this._resizeLine.setStyleProperty(_[93],_[6])},_handleKeyEnter:function(){this._fireSelectionChanged(this._focusItem,_[294])},_handleKeySpace:function(c){if(c.isCtrlPressed()||!this.isItemSelected(this._focusItem)){var b=this._focusItem.getFlatIndex();this._handleKeyboardSelect(c,this._focusItem,b,false,this._focusCell)}if(this._config.hasCheckBoxes){this._toggleCheckSelection(this._focusItem)}},_handleKeyUp:function(e){var d=this._focusItem.getPreviousItem();if(d!=null){var c=d.getFlatIndex();var b=this._focusCell;if(this._config.cellSelection){while(b>1&&!d.isCellVisible(b)){b--}}this._handleKeyboardSelect(e,d,c,false,b)}},_handleKeyDown:function(e){var d=this._focusItem.getNextItem();if(d!=null){var c=d.getFlatIndex();var b=this._focusCell;if(this._config.cellSelection){while(b>1&&!d.isCellVisible(b)){b--}}this._handleKeyboardSelect(e,d,c,false,b)}},_handleKeyPageUp:function(d){var f=this._focusItem.getOffset();var e=this._getClientAreaHeight();var g=Math.max(0,f-e);var c=this._rootItem.findItemByOffset(g);if(g!==0){c=c.getNextItem()}var b=c.getFlatIndex();this._handleKeyboardSelect(d,c,b,false,this._focusCell)},_handleKeyPageDown:function(e){var g=this._focusItem.getOffset();var f=this._getClientAreaHeight();var b=this.getRootItem().getOffsetHeight()-1;var h=Math.min(b,g+f);var d=this._rootItem.findItemByOffset(h);if(h!==b){d=d.getPreviousItem()}var c=d.getFlatIndex();this._handleKeyboardSelect(e,d,c,false,this._focusCell)},_handleKeyHome:function(c){var b=this.getRootItem().getChild(0);this._handleKeyboardSelect(c,b,0,false,this._focusCell)},_handleKeyEnd:function(d){var c=this.getRootItem().getLastChild();var b=this.getRootItem().getVisibleChildrenCount()-1;this._handleKeyboardSelect(d,c,b,false,this._focusCell)},_handleKeyLeft:function(f){if(f.isCtrlPressed()){this._scrollLeft()}else{if(this._config.cellSelection){var e=this._focusItem;var b=this._focusCell;for(var c=b-1,g=false;c>0&&!g;c--){if(this._columnOrder[c].getVisibility()&&e.isCellVisible(c)){b=c;g=true}}var d=e.getFlatIndex();this._handleKeyboardSelect(f,e,d,false,b)}else{if(this._focusItem.isExpanded()){this._focusItem.setExpanded(false)}else{if(!this._focusItem.getParent().isRootItem()){var e=this._focusItem.getParent();var d=e.getFlatIndex();this._handleKeyboardSelect(f,e,d,true,this._focusCell)}else{this._scrollLeft()}}}}},_handleKeyRight:function(f){if(f.isCtrlPressed()){this._scrollRight()}else{if(this._config.cellSelection){var e=this._focusItem;var b=this._focusCell;for(var c=b+1,g=false;c1)}if(!this._vertScrollBar.getDisposed()&&(this._vertScrollBar.getMaximum()!==b)){this._vertScrollBar.setMaximum(b)}},_getLastPageRowCount:function(){var d=this._getClientAreaHeight();var c=this._getLastVisibleItem();var b=0;while(c&&d>0){d-=c.getOwnHeight();if(d>0){b++;c=c.getPreviousItem()}}return b},_getLastVisibleItem:function(){var b=this.getRootItem().getLastChild();while(b&&b.hasChildren()&&b.isExpanded()){b=b.getLastChild()}return b},_updateScrollThumbHeight:function(){if(!this._altScrollingEnabled){var b=Math.max(1,Math.floor(this._getClientAreaHeight()/this._itemHeight));this._vertScrollBar.setThumb(b)}},_setVerticalScrollBarVisible:function(c){var b=this._vertScrollBar.getVisibility();if(c!==b){this._vertScrollBar.setVisibility(c);this._layoutX()}},_updateTopItem:function(b){this._rowContainer.setTopItem(this._getTopItem(),this._topItemIndex,b)},_updateScrollWidth:function(){var b=this._getItemWidth();this._rowContainer.setRowWidth(this._getRowWidth());if(!this._horzScrollBar.getDisposed()){this._horzScrollBar.setMaximum(b)}if(this._header){this._header.setScrollWidth(b+this._getVerticalBarWidth())}if(this._footer){this._footer.setScrollWidth(b+this._getVerticalBarWidth())}},_scrollIntoView:function(d,j){if(dthis._topItemIndex){var e=this._getTopItem();var i=e.getOffset();var h=j.getOffset();var g=this._getClientAreaHeight()-j.getOwnHeight();if(h>i+g){var c=h-g-1;var f=this.getRootItem().findItemByOffset(c);var b=f.getFlatIndex()+1;this._setTopItemIndex(b)}}}if(this._allowRender()){rwt.widgets.base.Widget.flushGlobalQueues()}},_setTopItemIndex:function(b){this._updateScrollHeight();this._vertScrollBar.setValue(b)},_fireSelectionChanged:function(d,c,b,f){var e={item:d,type:c,index:typeof b===_[18]?b:undefined,text:f!=null?f:undefined};this.dispatchSimpleEvent(_[66],e)},_isDoubleClicked:function(d,i){var j=false;var e=d.getType()===_[0];var f=d.getButton()==="left";if(f&&e&&this.isFocusItem(i)&&this._selectionTimestamp!=null){var b=new Date();var g=d.getPageX();var c=rwt.remote.EventUtil.DOUBLE_CLICK_TIME;var h=8;if(b.getTime()-this._selectionTimestamp.getTime()d){var i=f;f=c;c=i}if(e>b){var i=e;e=b;b=i}while(f!=null&&f!==c){this._selectCells(f,e,b);this._selectItem(f,true);f=f.getNextItem()}this._selectCells(c,e,b);this._selectItem(c,true);this._fireSelectionChanged(j,_[19]);this.setFocusItem(j);this.setFocusCell(h)},_selectCells:function(d,e,b){if(this._config.cellSelection&&e>=0){for(var c=e;c<=b;c++){if(this._columnOrder[c].getVisibility()){d.selectCell(this._config.cellOrder[c])}}}},_selectItem:function(c,b){if(!this.isItemSelected(c)){this._selection.push(c)}if(b){this._rowContainer.renderItem(c)}},_deselectItem:function(c,b){if(this.isItemSelected(c)){c.setCellSelection([]);this._selection.splice(this._selection.indexOf(c),1)}if(b){this._rowContainer.renderItem(c)}},deselectAll:function(){this._checkDisposedItems();var b=this._selection;this._selection=[];for(var c=0;c0){var d=Math.max(1,this._config.columnCount);for(var c=0;ca?_[180]:"add";this._children.length=a;this._update(b)},setIndex:function(a){var c=this._parent._children;if(c.indexOf(this)!==a){var b=c[a];c[a]=this;if(b&&!b.isCached()){b.dispose()}}},clear:function(){delete this._cached;delete this._checked;delete this._grayed;this._texts=["..."];delete this._images;delete this._background;delete this._foreground;delete this._font;delete this._cellBackgrounds;delete this._cellForegrounds;delete this._cellFonts;delete this._columnSpans;delete this._variant},isCached:function(){return this._cached||false},markCached:function(){this._cached=true;delete this._texts},setTexts:function(a){this._texts=a;this._update(_[77])},getText:function(a){return(this._texts?this._texts[a]:undefined)||""},hasText:function(a){return !!(this._texts?this._texts[a]:undefined)},setFont:function(a){this._font=a;this._update(_[77])},getCellFont:function(b){var a=this._cellFonts?this._cellFonts[b]:null;return typeof a===_[7]&&a!==""?a:this._getFont()},_getFont:function(){return this._font||null},setCellFonts:function(a){this._cellFonts=a;this._update(_[77])},setForeground:function(a){this._foreground=a;this._update(_[77])},getCellForeground:function(b){var a=this._cellForegrounds?this._cellForegrounds[b]:null;return typeof a===_[7]?a:this._getForeground()},_getForeground:function(){return this._foreground||null},setCellForegrounds:function(a){this._cellForegrounds=a;this._update(_[77])},setBackground:function(a){this._background=a;this._update(_[77])},getCellBackground:function(b){var a=this._cellBackgrounds?this._cellBackgrounds[b]:null;return typeof a===_[7]?a:null},getBackground:function(){return this._background||null},setCellBackgrounds:function(a){this._cellBackgrounds=a;this._update(_[77])},setColumnSpans:function(a){this._columnSpans=a;this._update(_[77])},getColumnSpan:function(a){return(this._columnSpans?this._columnSpans[a]:undefined)||0},setImages:function(a){this._images=a;this._update(_[77])},getImage:function(b){var a=this._images?this._images[b]:null;return a||null},setChecked:function(a){this._checked=a;this._update(_[40])},isChecked:function(){return this._checked||false},setGrayed:function(a){this._grayed=a;this._update(_[40])},isGrayed:function(){return this._grayed||false},setCellChecked:function(a){this._cellChecked=a;this._update(_[40])},toggleCellChecked:function(a){if(!this._cellChecked){this._cellChecked=[]}this._cellChecked[a]=!this._cellChecked[a];this._update(_[40])},getCellChecked:function(){return this._cellChecked||[]},isCellChecked:function(a){return this._cellChecked?this._cellChecked[a]:false},setCellGrayed:function(a){this._cellGrayed=a;this._update(_[40])},isCellGrayed:function(a){return this._cellGrayed?this._cellGrayed[a]:false},setCellCheckable:function(a){this._cellCheckable=a;this._update(_[40])},isCellCheckable:function(a){if(!this._cellCheckable||this._cellCheckable[a]===undefined){return true}return this._cellCheckable[a]},setVariant:function(a){this._variant=a},getVariant:function(){if(this._variant){return this._variant}if(this._rootItem&&this._rootItem!==this){return this._rootItem.getVariant()}return null},setDefaultHeight:function(a){if(!this.isRootItem()){throw new Error("Can only set default item height on root item")}this._height=a},setHeight:function(b,a){if(this.isRootItem()){throw new Error("Can not set item height on root item")}if(this._height===b){return}this._height=b;if(b!==null){this._parent._addToCustomHeightItems(this)}else{this._removeFromCustomHeightItems(this)}this._update(_[14],null,a)},getHeight:function(){return this._height},getDefaultHeight:function(){var a;if(this.isRootItem()){a=this._height}else{a=this.getRootItem().getDefaultHeight()}return a},isCellVisible:function(b){for(var a=0;a<=b;a++){if(a===b){return true}a+=this.getColumnSpan(a)}return false},isRootItem:function(){return this._level<0},getRootItem:function(){return this._rootItem},getLevel:function(){return this._level},getParent:function(){return this._parent},getCellSelection:function(){return this._cellSelection},setCellSelection:function(b){this._cellSelection=[];for(var a=0;a0){this._cellSelection.push(b[a])}}},selectCell:function(a){if(!this.isCellSelected(a)&&a>0){this._cellSelection.push(a)}},deselectCell:function(a){if(this.isCellSelected(a)){this._cellSelection.splice(this._cellSelection.indexOf(a),1)}},selectCells:function(c,a){for(var b=c;b<=a;b++){this._cellSelection.push(b)}},isCellSelected:function(a){return this._cellSelection.indexOf(a)!=-1},setExpanded:function(a){if(this._expanded!=a){this._expanded=a;this._update(a?_[60]:_[185]);if(a){this._parent._addToExpandedItems(this)}else{this._parent._removeFromExpandedItems(this)}}},isExpanded:function(){return this._expanded},isDisplayable:function(){var a=false;if(this.isRootItem()||this._parent.isRootItem()){a=true}else{a=this._parent.isExpanded()&&this._parent.isDisplayable()}return a},hasChildren:function(){return this._children.length>0},getChildrenLength:function(){return this._children.length},isChildCreated:function(a){return this._children[a]!==undefined},isChildCached:function(a){return this._children[a].isCached()},getCachedChildren:function(){var a=[];for(var b=0;b=0&&bm){var h=m-g-l;var a=e+1+Math.floor(h/b);n=this.getChild(a);c=true}else{e=d;g=k}}}return n},findItemByFlatIndex:function(c){var b=this._getExpandedIndicies();var h=c;var a=null;var g=false;while(!g&&h>=0){var e=b.shift();if(e===undefined||e>=h){a=this.getChild(h);if(a){this._indexCache[a.toHashCode()]=h}g=true}else{var d=this.getChild(e).getVisibleChildrenCount();var f=h-e;if(f<=d){a=this.getChild(e).findItemByFlatIndex(f-1);g=true;if(a==null){throw new Error("getItemByFlatIndex failed")}}else{h-=d}}}return a},getOffset:function(){var a=0;if(!this._parent.isRootItem()){a+=this._parent.getOffset()+this._parent.getOwnHeight()}a+=this._parent._getChildOffset(this);return a},_getChildOffset:function(c){var e=this.indexOf(c);var a=e*this.getDefaultHeight();var d=this._getDifferingHeightIndicies();while(d.length>0&&e>d[0]){var b=d.shift();a-=this.getDefaultHeight();a+=this._children[b].getOffsetHeight()}return a},getFlatIndex:function(){var d=this._parent.indexOf(this);var a=d;var b=this._parent._getExpandedIndicies();while(b.length>0&&d>b[0]){var c=b.shift();a+=this._parent._children[c].getVisibleChildrenCount()}if(!this._parent.isRootItem()){a+=this._parent.getFlatIndex()+1}return a},hasPreviousSibling:function(){var a=this._parent.indexOf(this)-1;return a>=0},hasNextSibling:function(){var a=this._parent.indexOf(this)+1;return a0){a=this._parent.getNextItem(true)}}}return a},getPreviousItem:function(){var a=null;if(this.hasPreviousSibling()){a=this.getPreviousSibling();while(a.hasChildren()&&a.isExpanded()){a=a.getLastChild()}}else{if(this.getLevel()>0){a=this._parent}}return a},_add:function(b,a){if(this._children[a]){this._children.splice(a,0,b);this._children.pop();this._update("add",b)}else{this._children[a]=b}},_remove:function(b){if(b.isExpanded()){delete this._expandedItems[b.toHashCode()]}if(b.hasCustomHeight()){delete this._customHeightItems[b.toHashCode()]}var a=this._children.indexOf(b);if(a!==-1){this._children.splice(a,1);this._children.push(undefined)}this._update(_[180],b)},_addToExpandedItems:function(a){this._expandedItems[a.toHashCode()]=a},_removeFromExpandedItems:function(a){delete this._expandedItems[a.toHashCode()]},_addToCustomHeightItems:function(a){this._customHeightItems[a.toHashCode()]=a},_removeFromCustomHeightItems:function(a){delete this._customHeightItems[a.toHashCode()]},getEnabled:function(){return true},_update:function(d,c,a){var b={msg:d,related:c,rendering:a,target:this};this.dispatchSimpleEvent(_[121],b,true);delete b.target;delete b.related;delete b.msg},_onUpdate:function(a){if(a.msg!==_[77]&&a.msg!==_[40]){this._visibleChildrenCount=null;this._indexCache={}}},_computeVisibleChildrenCount:function(){var a=0;if(this.isExpanded()||this.isRootItem()){a=this._children.length;for(var b=0;b=this._tree._rowContainer.getRowCount()-2){a=1}}return a},_onScrollTimer:function(){this._stopScrollTimer();var e=this._getScrollDirection(this._currentRow);if(e!==0){var d=this._tree._rowContainer.findItemByRow(this._currentRow);if(d!=null){var c=e>0?d.getNextItem():d.getPreviousItem();if(c!=null){var g=this._tree._topItemIndex+e;this._tree._setTopItemIndex(g);var b=this._tree._rowContainer.findRowByItem(c);var a=this._currentRow;var f=function(){this._targetUpdateCheck(a,b)};rwt.client.Timer.once(f,this,1)}}}},_targetUpdateCheck:function(a,b){if(!this.isDisposed()){if(b!=this._currentRow&&a==this._currentRow){var c=rwt.remote.DNDSupport.getInstance();c.setCurrentTargetElement(b.$el.get(0))}}}}});
namespace(_[100]);rwt.widgets.util.GridCellToolTipSupport={_cell:[null,null,null],_requestedCell:null,setEnabled:function(a,b){if(b){a.addEventListener(_[366],this._onRender,a)}else{a.removeEventListener(_[366],this._onRender,a)}},showToolTip:function(c){if(this._isValidToolTip(c)){var a=this._cell[0];var b=rwt.remote.ObjectRegistry.getObject(this._cell[1]);if(a.getRowContainer().getHoverItem()===b){a.getRowContainer().setToolTipText(c);rwt.widgets.base.WidgetToolTip.getInstance().updateText();a.getRowContainer().setToolTipText("")}}},getCurrentToolTipTargetBounds:function(d){var c=this._cell[0];var a=c.getRowContainer();var b=a.getSplitOffset?a.getSplitOffset(this._cell[2]):0;return{left:c.getRenderConfig().itemLeft[this._cell[2]]-b,top:d.getTop(),height:d.getHeight(),width:c.getRenderConfig().itemWidth[this._cell[2]]}},_onRender:function(d){var c=null;var a=-1;var b=this._rowContainer.findItemByRow(d);if(b){c=rwt.remote.ObjectRegistry.getId(this._rowContainer.getHoverItem());var e=rwt.widgets.util.GridUtil;a=e.getColumnByPageX(this,rwt.event.MouseEvent.getPageX())}rwt.widgets.util.GridCellToolTipSupport._setCell(this,c,a)},_setCell:function(c,e,d){var a=[c,e,d];if(this._isValidCell(a)){this._cell=a;var b=rwt.remote.Connection.getInstance();b.getRemoteObject(this._cell[0]).call("renderToolTipText",{item:this._cell[1],column:this._cell[2]});this._requestedCell=this._cell}},_isValidCell:function(a){return a&&a[0]!=null&&a[1]!=null&&a[2]!=-1},_isValidToolTip:function(a){return a&&this._requestedCell&&this._cell[0]===this._requestedCell[0]&&this._cell[1]===this._requestedCell[1]&&this._cell[2]===this._requestedCell[2]}};
rwt.qx.Class.define("rwt.widgets.base.GridHeader",{extend:rwt.widgets.base.Parent,construct:function(b){arguments.callee.base.call(this);this.setOverflow(_[6]);this.setZIndex(2000);this._fixedColumns=b.splitContainer;this._scrollWidth=0;this._scrollLeft=0;this._footer=b.footer?true:false;this._baseAppearance=b.appearance;this._config=b.config;this._dummyColumn=this._createDummyColumn();this._currentDragColumn=null;this._feedbackLabel=null;this._labelToColumnMap={};this._columnToLabelMap={};var a=function(c){c.stopPropagation()};this.addEventListener(_[65],a)},destruct:function(){this._dummyColumn=null},events:{columnLayoutChanged:_[151]},members:{setScrollLeft:function(c){this._scrollLeft=c;if(this._fixedColumns&&!rwt.widgets.base.Widget._inFlushGlobalQueues){for(var a=0;a0);if(this._footer){this._renderFooterLabel(a,b)}else{this._renderHeaderLabel(a,b)}a.setHorizontalChildrenAlign(this._getAlignment(b));a.setWordWrap(b.getHeaderWordWrap())},_renderFooterLabel:function(a,b){a.setWidth(b.getFooterWidth());a.setText(b.getFooterText());a.setImage(b.getFooterImage());if(b.getFooterFont()!==null){a.setFont(b.getFooterFont())}else{a.resetFont()}var c=b.isFixed()||b.getFooterSpan()>1;a.setZIndex(c?10000000:1)},_renderHeaderLabel:function(a,b){a.setWidth(b.getWidth());a.setHoverEffect(b.getMoveable());a.clearHtmlAttributes();a.setHtmlAttributes(b.getHtmlAttributes());if(b.getFont()!==null){a.setFont(b.getFont())}else{a.resetFont()}if(this._config.headerForeground!=null){a.setTextColor(this._config.headerForeground)}else{a.resetTextColor()}if(this._config.headerBackground!=null){a.setBackgroundGradient(null);a.setBackgroundColor(this._config.headerBackground)}else{a.resetBackgroundGradient();a.resetBackgroundColor()}a.setText(b.getText());a.setImage(b.getImage());a.setToolTipText(b.getToolTipText());a.setSortIndicator(b.getSortDirection());if(b.isGroup()&&b.getShowChevron()){a.setChevron(b.isExpanded()?_[60]:_[185])}this._renderLabelY(a,b);a.setZIndex(b.isFixed()?10000000:1)},_renderLabelY:function(a,c){if(c.isGroup()){a.setTop(0);a.setHeight(c.getHeight())}else{if(c.getGroup()!=null){var b=c.getGroup().getHeight();a.setTop(b);a.setHeight(this.getHeight()-b)}else{a.setTop(0);a.setHeight("100%")}}},_renderLabelLeft:function(a,b){var c=b.isFixed()?this._adjustScrollLeft(this._scrollLeft):0;a.setLeft(b.getLeft()+c)},_onDummyRendered:function(){this.setScrollLeft(this._scrollLeft)},_flushChildrenQueue:function(){arguments.callee.base.call(this);this.setScrollLeft(this._scrollLeft)},_fireUpdateEvent:function(){this.createDispatchEvent("columnLayoutChanged")},_renderDummyColumn:function(){var b=this._getDummyColumnLeft();var a=Math.max(this._scrollWidth,this.getWidth());var c=Math.max(0,a-b);this._dummyColumn.setLeft(b);this._dummyColumn.setWidth(c);this._dummyColumn.setCustomVariant(this._config.variant);if(this._config.headerForeground!=null){this._dummyColumn.setTextColor(this._config.headerForeground)}else{this._dummyColumn.resetTextColor()}if(this._config.headerBackground!=null){this._dummyColumn.setBackgroundGradient(null);this._dummyColumn.setBackgroundColor(this._config.headerBackground)}else{this._dummyColumn.resetBackgroundGradient();this._dummyColumn.resetBackgroundColor()}},_getDummyColumnLeft:function(){var c=this._labelToColumnMap;var a=0;for(var b in c){if(c[b].getVisibility()){var d=c[b].getLeft()+c[b].getWidth();a=Math.max(a,d)}}return a},_onLabelSelected:function(b){var a=this._getColumnByLabel(b.target);a.handleSelectionEvent(b)},_onLabelMoveStart:function(b){var a=this._getColumnByLabel(b.target);return !this._footer&&a.getMoveable()},_onLabelMoveEnd:function(b){var a=this._getColumnByLabel(b.target);a.setLeft(b.position)},_onShowDragFeedback:function(b){var a=this._getColumnByLabel(b.target);var c=this._getDragFeedback(a);c.setLeft(b.position)},_onHideDragFeedback:function(c){var a=c.target;var b=this._getColumnByLabel(a);var d=this._getDragFeedback(b);var e=a.getLeft();if(c.snap){rwt.animation.AnimationUtil.snapTo(d,250,e,a.getTop(),true)}else{d.setDisplay(false)}this._currentDragColumn=null},_onLabelResizeStart:function(b){var a=this._getColumnByLabel(b.target);return !this._footer&&a.getResizeable()},_onLabelResizeEnd:function(b){var a=this._getColumnByLabel(b.target);a.setWidth(b.width)},_getColumnByLabel:function(a){return this._labelToColumnMap[a.toHashCode()]},_getLabelByColumn:function(b){var a=this._columnToLabelMap[b.toHashCode()];if(!a){if(b.getVisibility()){a=this._createLabel(b)}else{a=null}}return a},_getAlignment:function(a){var b=a?a.getAlignment():"left";if(this.getDirection()==="rtl"){if(b==="left"){return _[2]}else{if(b===_[2]){return"left"}}}return b},_getDragFeedback:function(a){if(this._feedbackLabel===null){this._feedbackLabel=this._createFeedbackColumn()}if(this._currentDragColumn!==a){this._renderLabelY(this._feedbackLabel,a);this._feedbackLabel.setWidth(a.getWidth());this._feedbackLabel.setCustomVariant(a.getCustomVariant());this._feedbackLabel.setText(a.getText());this._feedbackLabel.setImage(a.getImage());this._feedbackLabel.setSortIndicator(a.getSortDirection());this._feedbackLabel.setHorizontalChildrenAlign(this._getAlignment(a));this._feedbackLabel.setDisplay(true);this._feedbackLabel.dispatchSimpleEvent(_[343]);this._currentDragColumn=a}return this._feedbackLabel},_createLabel:function(b){var a=new rwt.widgets.base.GridColumnLabel(this._baseAppearance);if(this._footer){a.addState("footer")}else{if(b.getResizeable()){a.setResizeCursor(_[271])}}if(b.isGroup()){a.addState("group")}a.setTop(0);a.setHeight("100%");a.setDirection(this.getDirection());this.add(a);this._labelToColumnMap[a.toHashCode()]=b;this._columnToLabelMap[b.toHashCode()]=a;a.addEventListener(_[27],this._onLabelSelected,this);a.addEventListener("moveStart",this._onLabelMoveStart,this);a.addEventListener(_[466],this._onShowDragFeedback,this);a.addEventListener(_[491],this._onHideDragFeedback,this);a.addEventListener("moveEnd",this._onLabelMoveEnd,this);a.addEventListener(_[411],this._onLabelResizeStart,this);a.addEventListener("resizeEnd",this._onLabelResizeEnd,this);b.addEventListener(_[113],this._onColumnDispose,this);return a},_createDummyColumn:function(){var a=new rwt.widgets.base.GridColumnLabel(this._baseAppearance);if(this._footer){a.addState("footer")}a.setTop(0);a.setHeight("100%");a.setDirection(this.getDirection());a.addState("dummy");a.addEventListener(_[38],this._onDummyRendered,this);a.setEnabled(false);this.add(a);return a},_createFeedbackColumn:function(){var a=new rwt.widgets.base.GridColumnLabel(this._baseAppearance);a.addState("moving");a.setTop(0);a.setHeight("100%");a.setDirection(this.getDirection());a.setEnabled(false);a.setZIndex(100000000);a.addState(_[10]);this.add(a);return a},_adjustScrollLeft:function(a){return rwt.widgets.base.Scrollable.adjustScrollLeft(this.getParent(),a)}}});
rwt.qx.Class.define(_[427],{extend:rwt.qx.Target,include:rwt.widgets.util.HtmlAttributesMixin,construct:function(a,b){arguments.callee.base.call(this);this._grid=a;this._isGroup=b?true:false;this._index=0;this._resizable=b?false:true;this._moveable=false;this._alignment="left";this._wordWrap=false;this._headerWordWrap=false;this._group=null;this._left=0;this._height=0;this._visibility=true;this._expanded=true;this._width=0;this._toolTip=null;this._customVariant=null;this._text="";this._font=null;this._image=null;this._footerText="";this._footerFont=null;this._footerImage=null;this._footerSpan=1;this._sortDirection=null;this._showChevron=false;this._check=false;this._grid.addColumn(this)},destruct:function(){this._grid.removeColumn(this);this.dispatchSimpleEvent(_[113],{target:this})},members:{setLeft:function(a){if(rwt.remote.EventUtil.getSuspended()){this._left=a;this._update()}else{this._sendMove(a)}},getLeft:function(){return this._left},setWidth:function(a){if(rwt.remote.EventUtil.getSuspended()){this._width=a;this._update()}else{this._sendResize(a)}},getWidth:function(){return this._width},setHeight:function(a){this._height=a;this._update()},getHeight:function(){return this._height},setVisibility:function(a){this._visibility=a;this._update()},getVisibility:function(){return this._visibility},setExpanded:function(a){this._expanded=a;this._update()},isExpanded:function(){return this._expanded},setGroup:function(a){this._group=a},getGroup:function(){return this._group},setToolTipText:function(a){this._toolTip=a;this._update()},getToolTipText:function(){return this._toolTip},setCustomVariant:function(a){this._customVariant=a;this._update()},getCustomVariant:function(){if(this._customVariant){return this._customVariant}return this._grid.getRenderConfig().variant},setText:function(a){this._text=a;this._update()},getText:function(){return this._text},setImage:function(a){this._image=a;this._update()},getImage:function(){return this._image},setFont:function(a){this._font=a?rwt.html.Font.fromArray(a):null;this._update()},getFont:function(){return this._font},setFooterText:function(a){this._footerText=a;this._update()},getFooterText:function(){return this._footerText},setFooterImage:function(a){this._footerImage=a;this._update()},getFooterImage:function(){return this._footerImage},setFooterFont:function(a){this._footerFont=a?rwt.html.Font.fromArray(a):null;this._update()},getFooterFont:function(){return this._footerFont},setFooterSpan:function(a){this._footerSpan=a;this._update()},getFooterSpan:function(){return this._footerSpan},getFooterWidth:function(){var a=this._width;if(this._footerSpan>1){var b=this._grid.getColumnOrder();var d=b.indexOf(this);for(var c=d+1;c1){this._wasResizeOrMoveEvent=true;var d=this.getLeft()+this._getMouseOffset(a);this.dispatchSimpleEvent("moveEnd",{target:this,position:d})}else{this._hideDragFeedback(false)}a.stopPropagation();a.preventDefault();b._fakeMouseEvent(a.getTarget(),_[10])}}},_getMouseOffset:function(a){if(this.getDirection()==="rtl"){return this._initialLeft-a.getPageX()}return a.getPageX()-this._initialLeft},_onClick:function(a){if(!this._wasResizeOrMoveEvent){var b={target:this};if(this._chevron){b.chevron=a.getDomTarget()===this.getCellNode(2);if(b.chevron){this.setChevron("loading")}}this.dispatchSimpleEvent(_[27],b)}this._wasResizeOrMoveEvent=false},_onMouseOut:function(a){if(!this._inMove){this.removeState(_[10])}if(!this._inResize){this.getTopLevelWidget().setGlobalCursor(null);a.stopPropagation();a.preventDefault()}},_allowResize:function(){return this.dispatchSimpleEvent(_[411],{target:this})},_allowMove:function(){return this.dispatchSimpleEvent("moveStart",{target:this})},_hideDragFeedback:function(a){if(this._feedbackVisible){this.dispatchSimpleEvent(_[491],{target:this,snap:a});this._feedbackVisible=false}},_isResizeLocation:function(b){var a=rwt.html.Location.getLeft(this.getElement());if(this.getDirection()==="rtl"){return b<=a+5&&b>=a}a+=this.getWidth();return b>=a-5&&b<=a},_getResizeWidth:function(a){var b=this._resizeStartX-a;if(this.getDirection()==="rtl"){return this.getWidth()+b}return this.getWidth()-b}}});
rwt.remote.HandlerRegistry.add(_[427],{factory:function(b){var a;rwt.remote.HandlerUtil.callWithTarget(b.parent,function(c){a=new rwt.widgets.GridColumn(c);rwt.remote.HandlerUtil.addDestroyableChild(c,a)});return a},destructor:function(a){rwt.remote.HandlerUtil.removeDestroyableChild(a._grid,a);a.dispose()},properties:["index","left",_[21],"text",_[17],"font","footerText","footerImage","footerFont",_[54],_[75],"resizable","moveable",_[333],_[62],"group",_[72],_[93],_[40],"wordWrap",_[490],"footerSpan","data"],propertyHandler:{data:rwt.remote.HandlerUtil.getControlPropertyHandler("data"),toolTipMarkupEnabled:rwt.remote.HandlerUtil.getControlPropertyHandler(_[54]),toolTip:rwt.remote.HandlerUtil.getControlPropertyHandler(_[75]),group:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setGroup(c)})}},events:[_[12]]});
rwt.remote.HandlerRegistry.add("rwt.widgets.GridColumnGroup",{factory:function(b){var a;var c=rwt.remote.HandlerUtil.createStyleMap(b.style);rwt.remote.HandlerUtil.callWithTarget(b.parent,function(d){a=new rwt.widgets.GridColumn(d,true);a.setShowChevron(c.TOGGLE===true);rwt.remote.HandlerUtil.addDestroyableChild(d,a)});return a},destructor:function(a){rwt.remote.HandlerUtil.removeDestroyableChild(a._grid,a);a.dispose()},properties:["left",_[21],_[14],"text",_[17],"font",_[60],_[93],_[72],_[490],_[62]],events:[_[159],_[165]]});
rwt.qx.Class.define(_[438],{extend:rwt.widgets.base.Iframe,construct:function(){arguments.callee.base.call(this);this._browserFunctions={};this.setTabIndex(1);this.setSelectable(true);this.setAppearance("browser");this.addEventListener(_[44],this._onCreate,this)},properties:{asynchronousResult:{check:_[1],init:false},executedFunctionPending:{check:_[1],init:false},executedFunctionResult:{nullable:true,init:null},executedFunctionError:{check:_[51],nullable:true,init:null}},statics:{getDomain:function(a){var e=null;if(a!==null){var b=a.toLowerCase();var d;if(b.indexOf("http://")===0){d=80}else{if(b.indexOf("https://")===0){d=443}else{if(b.indexOf("ftp://")===0){d=21}else{if(b.indexOf("ftps://")===0){d=990}}}}if(d){e=b.slice(b.indexOf("://")+3);var c=e.indexOf("/");if(c!==-1){e=e.slice(0,c)}if(e.indexOf(":")===-1){e+=":"+d}}}return e}},members:{syncSource:function(){if(this.isCreated()){this._syncSource()}},_applySource:function(){},_applyEnabled:function(b,a){arguments.callee.base.call(this,b,a);if(b){this.release()}else{this.block()}},release:function(){if(this.getEnabled()){arguments.callee.base.call(this)}},_onload:function(a){if(!this._isInGlobalDisposeQueue&&!this.isDisposed()){arguments.callee.base.call(this,a);if(this._isContentAccessible()){this._attachBrowserFunctions()}this._sendProgressEvent()}},_onCreate:function(){if(!this.getEnabled()){this.block()}},_sendProgressEvent:function(){if(rwt.remote.ObjectRegistry.containsObject(this)){rwt.remote.Connection.getInstance().getRemoteObject(this).notify("Progress")}},execute:function(c){this._checkIframeAccess();var f=true;var a=null;try{a=this._parseEvalResult(this._eval(c))}catch(e){f=false}var b=rwt.remote.Connection.getInstance();var h=rwt.remote.ObjectRegistry.getId(this);var g=f?"evaluationSucceeded":"evaluationFailed";var d=f?{result:a}:{};b.getMessageWriter().appendCall(h,g,d);if(this.getExecutedFunctionPending()){b.sendImmediate(false)}else{b.send()}},_srcInLocalDomain:function(){var f=this.getSource();var e=rwt.widgets.Browser;var c=e.getDomain(document.URL);var d=e.getDomain(f);var a=c===d;var b=d===null;return b||a},_isContentAccessible:function(){if(!this._isLoaded){return false}var a=false;try{var c=this.getSource()||"";c=c.split("?")[0];if(c.indexOf("://")===-1){c=document.URL}a=c.indexOf(this.getContentDocument().domain)!==-1}catch(b){}return a},_checkIframeAccess:function(){if(!this._isContentAccessible()){var a=this._srcInLocalDomain();if(!a){this._throwSecurityException(false)}if(this._isLoaded&&a){this._throwSecurityException(true)}}},_throwSecurityException:function(a){var e=rwt.widgets.Browser;var b=e.getDomain(document.URL);var d=a?null:e.getDomain(this.getSource());var c="SecurityRestriction:\nBrowser-Widget can not access ";c+=d!==null?'"'+d+'"':"unkown domain";c+=' from "'+b+'".';throw new Error(c)},_eval:function(a){var b=this.getContentWindow();if(!b["eval"]&&b.execScript){b.execScript("null;","JScript")}return b["eval"](a)},_parseEvalResult:function(b){var a=null;var c=this.getContentWindow();if(b instanceof c.Function||b instanceof Function){a=this.toJSON([[]])}else{if(b instanceof c.Array||b instanceof Array){a=this.toJSON([b])}else{if(typeof b!==_[55]&&typeof b!==_[41]){a=this.toJSON([b])}}}return a},createFunction:function(a){this._browserFunctions[a]=true;this._checkIframeAccess();if(this.isLoaded()){try{this._createFunctionImpl(a);this._createFunctionWrapper(a)}catch(b){var c='Unable to create function: "'+a+'".\n'+b;if(rwt.remote.EventUtil.getSuspended()){throw c}else{rwt.runtime.ErrorHandler.processJavaScriptError(c)}}}},_attachBrowserFunctions:function(){for(var a in this._browserFunctions){this.createFunction(a)}},_createFunctionImpl:function(b){var d=this.getContentWindow();var a=rwt.remote.Connection.getInstance();var e=rwt.remote.ObjectRegistry.getId(this);var c=this;d[b+"_impl"]=function(){var f={};try{if(c.getExecutedFunctionPending()){f.error='Unable to execute browser function "'+b+'". Another browser function is still pending.'}else{var i={name:b,"arguments":c.toJSON(arguments)};a.getMessageWriter().appendCall(e,"executeFunction",i);c.setExecutedFunctionResult(null);c.setExecutedFunctionError(null);c.setExecutedFunctionPending(true);c.setAsynchronousResult(false);a.sendImmediate(false);if(c.getExecutedFunctionPending()){c.setAsynchronousResult(true)}else{var g=c.getExecutedFunctionError();if(g!=null){f.error=g}else{f.result=c.getExecutedFunctionResult()}}}}catch(h){rwt.runtime.ErrorHandler.processJavaScriptError(h)}return f}},_createFunctionWrapper:function(b){var a=[];a.push("window."+b+" = function(){");a.push(" var result = "+b+"_impl.apply( window, arguments );");a.push(" if( result.error ) {");a.push(" throw new Error( result.error );");a.push(" }");a.push(" return result.result;");a.push("}");this._eval(a.join(""))},destroyFunction:function(b){delete this._browserFunctions[b];var d=this.getContentWindow();if(d!=null){try{var a=[];a.push(_[446]+b+";");a.push(_[446]+b+"_impl;");this._eval(a.join(""))}catch(c){throw new Error("Unable to destroy function: "+b+" error: "+c)}}},setFunctionResult:function(c,a,b){this.setExecutedFunctionResult(a);this.setExecutedFunctionError(b);this.setExecutedFunctionPending(false)},toJSON:function(b){var a;var d=typeof b;if(b===null){a=b}else{if(d===_[55]){a=[];for(var c=0;c0?d[6]:null;return this.computeTextDimensions(f,e,b)},computeTextDimensions:function(f,e,c){var a=this._getMeasureNode();var d=this._getWrapNode();var b=a.style;b.fontFamily=e.fontFamily||"";b.fontSize=e.fontSize||"";b.fontWeight=e.fontWeight||"";b.fontStyle=e.fontStyle||"";a.innerHTML=f;if(c){d.style.width=c+"px";d.style.whiteSpace=_[43];b.whiteSpace=_[43]}else{d.style.width="auto";d.style.whiteSpace=_[123];b.whiteSpace=_[123]}return this._measureElement(a)},_measureElement:rwt.util.Variant.select(_[5],{"default":function(b){var a;if(b.getBoundingClientRect){var c=b.getBoundingClientRect();if(c.width!=null&&c.height!=null){a=[Math.ceil(c.width),Math.round(c.height)]}else{a=[b.scrollWidth,b.scrollHeight]}}else{a=[b.scrollWidth,b.scrollHeight]}return this._addOffset(a)},trident:function(b){var c=window.getComputedStyle(b,null);var a=[Math.ceil(parseFloat(c.width)),Math.round(parseFloat(c.height))];return this._addOffset(a)}}),_addOffset:function(b){var a=b[0]>0?b[0]+this._offset:0;var c=b[1]>0?b[1]+this._offset:0;return[a,c]},_getMeasureNode:function(){var b=this._measureNode;if(!b){b=document.createElement("div");var a=b.style;a.width=a.height="auto";a.visibility=_[6];a.position=_[11];a.margin="0px";a.zIndex="-1";this._getWrapNode().appendChild(b);this._measureNode=b}return b},_getWrapNode:function(){var b=this._wrapNode;if(!b){b=document.createElement("div");var a=b.style;a.width=a.height="auto";a.visibility=_[6];a.padding="0px";a.position=_[11];a.zIndex="-1";document.body.appendChild(b);this._wrapNode=b}return b},_storeMeasurements:function(c,a){var b=rwt.remote.Connection.getInstance().getRemoteObject(this);b.call("storeMeasurements",{results:a})},_escapeText:function(c){var b=rwt.util.Encoding;var a=b.escapeText(c,true);a=b.replaceNewLines(a,_[63]);a=b.replaceWhiteSpaces(a);return a}}});
rwt.remote.HandlerRegistry.add("rwt.client.TextSizeMeasurement",{factory:function(){return rwt.widgets.util.FontSizeCalculation},service:true,methods:["measureItems"]});
rwt.qx.Class.define(_[211],{extend:rwt.widgets.base.MultiCellWidget,include:rwt.widgets.util.OverStateMixin,construct:function(a){arguments.callee.base.call(this,this._CELLORDER);this.setVerticalChildrenAlign("top");this.setAlignment("left");this.setAppearance("label-wrapper");if(a.WRAP){this.setFlexibleCell(1);this.setWordWrap(true)}this._markupEnabled=a.MARKUP_ENABLED===true;this._rawText=null;this._mnemonicIndex=null},destruct:function(){this.setMnemonicIndex(null)},members:{_CELLORDER:[_[17],_[46]],setAlignment:function(a){this.setHorizontalChildrenAlign(a)},setImage:function(a){if(a){this.setCellContent(0,a[0]);this.setCellDimension(0,a[1],a[2])}else{this.setCellContent(0,null);this.setCellDimension(0,0,0)}},setText:function(a){this._rawText=a;this._applyText(false);this._mnemonicIndex=null;this.dispatchSimpleEvent(_[158],this)},setMnemonicIndex:function(b){this._mnemonicIndex=b;var a=rwt.widgets.util.MnemonicHandler.getInstance();if((typeof b===_[18])&&(b>=0)){a.add(this,this._onMnemonic)}else{a.remove(this)}},getMnemonicIndex:function(){return this._mnemonicIndex},_applyText:function(c){var d=this._rawText;if(d){if(!this._markupEnabled){var a=rwt.util.Encoding;var b=c?this._mnemonicIndex:undefined;d=a.escapeText(this._rawText,b);d=a.replaceNewLines(d,_[63]);d=a.replaceWhiteSpaces(d)}this.setCellContent(1,d)}else{this.setCellContent(1,null)}},_onMnemonic:function(b){switch(b.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case _[97]:var a=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(b.charCode===a){var c=this.getNextSibling();if(c&&c.getVisibility()&&c.getEnabled()){c.focus()}b.success=true}break}},setTopMargin:function(a){this.setPaddingTop(a)},setLeftMargin:function(a){this.setPaddingLeft(a)},setRightMargin:function(a){this.setPaddingRight(a)},setBottomMargin:function(a){this.setPaddingBottom(a)}}});
rwt.qx.Class.define("rwt.widgets.base.BasicButton",{extend:rwt.widgets.base.MultiCellWidget,construct:function(a,b){arguments.callee.base.call(this,this._CELLORDER);this._selected=false;this._image=[null,null,null];this._hotImage=[null,null,null];this.addEventListener(_[10],this._onMouseOver);this.addEventListener(_[16],this._onMouseOut);this.addEventListener(_[0],this._onMouseDown);this.addEventListener(_[4],this._onMouseUp);if(!b){this.addEventListener(_[9],this._onKeyDown);this.addEventListener(_[33],this._onKeyUp);this.addEventListener(_[3],this._onKeyPress)}this.addState(a);switch(a){case"arrow":case"push":this._isSelectable=false;this._isDeselectable=false;break;case"toggle":case _[40]:this._isSelectable=true;this._isDeselectable=true;break;case _[112]:this._isSelectable=true;this.setNoRadioGroup(false);rwt.widgets.util.RadioButtonUtil.registerExecute(this);rwt.widgets.util.RadioButtonUtil.registerKeypress(this);break}},destruct:function(){if(this._animation!=null){this._animation.dispose()}this._animation=null},events:{stateOverChanged:_[151]},properties:{selectionIndicator:{apply:_[391],nullable:true,themeable:true},icon:{apply:"_applyIcon",nullable:true,themeable:true},animation:{check:_[155],nullable:false,init:null,apply:_[416],themeable:true}},members:{_CELLORDER:[_[17],_[17],_[46]],_applyIcon:function(a){this.setImage.apply(this,a)},setImage:function(c,b,a){this._image=[c,b,a];this._updateButtonImage()},getImage:function(){return this._image},setHotImage:function(c,b,a){this._hotImage=[c,b,a];this._updateButtonImage()},_updateButtonImage:function(){var b=(this._hotImage[0]!=null&&this.hasState("over"))?this._hotImage:this._image;var a=this.getCellContent(1);if(a!=b[0]){this.setCellContent(1,b[0]);this.setCellDimension(1,b[1],b[2])}},setText:function(a){this.setCellContent(2,a)},_applySelectionIndicator:function(d){var b=d?d[0]:null;var c=d?d[1]:0;var a=d?d[2]:0;this.setCellContent(0,b);this.setCellDimension(0,c,a)},setGrayed:function(a){this.toggleState(_[207],a)},setNoRadioGroup:function(a){if(this.hasState(_[112])){this._noRadioGroup=a;this._isDeselectable=a}},getNoRadioGroup:function(){return this._noRadioGroup},execute:function(){arguments.callee.base.call(this);if(this._isSelectable){this.setSelection(!(this._selected&&this._isDeselectable))}else{this._notifySelected()}},setSelection:function(c){var b=this._selected;var a=this._selected!=c;if(a){this._selected=c;this.toggleState(_[27],c);if(!rwt.remote.EventUtil.getSuspended()){var d=rwt.remote.Connection.getInstance();d.getRemoteObject(this).set(_[19],this._selected)}}if(a||b){this._notifySelected()}},_notifySelected:function(){},_onMouseOver:function(a){if(a.getTarget()==this&&!this.hasState("over")){if(this.hasState(_[49])){this.removeState(_[49]);this.addState(_[13])}this.addState("over");this._updateButtonImage();this.createDispatchEvent(_[179])}},_onMouseOut:function(a){if(a.getTarget()==this){this.removeState("over");this._updateButtonImage();if(this.hasState(_[13])){this.setCapture(true);this.removeState(_[13]);this.addState(_[49])}this.createDispatchEvent(_[179])}},_onMouseDown:function(a){if(a.getTarget()==this&&a.isLeftButtonPressed()){this.removeState(_[49]);this.addState(_[13])}},_onMouseUp:function(){this.setCapture(false);var a=this.hasState(_[13]);var b=this.hasState(_[49]);if(a){this.removeState(_[13])}if(b){this.removeState(_[49])}if(!b){this.addState("over");this._updateButtonImage();if(a){this.execute()}}},_onKeyDown:function(a){switch(a.getKeyIdentifier()){case _[32]:case _[111]:this.removeState(_[49]);this.addState(_[13]);a.stopPropagation()}},_onKeyUp:function(a){switch(a.getKeyIdentifier()){case _[32]:case _[111]:if(this.hasState(_[13])){this.removeState(_[49]);this.removeState(_[13]);this.execute();a.preventDefault();a.stopPropagation()}}},_onKeyPress:function(a){switch(a.getKeyIdentifier()){case"Left":case"Up":case _[35]:case"Down":case _[34]:case _[36]:case"End":case"Home":case _[32]:case _[111]:a.preventDefault();a.stopPropagation()}},_applyAnimation:function(a){if(a.hoverIn||a[_[319]]){if(this._animation==null){this._animation=new rwt.animation.Animation();this._animation.addEventListener("init",this._initAnimation,this)}this.addEventListener(_[179],this._animation.activateRendererOnce,this._animation);this.addEventListener(_[331],this._configureRenderer,this);this._configureRenderer()}else{if(this._animation!=null){this.removeEventListener(_[179],this._animation.activateRendererOnce,this._animation);this.removeEventListener(_[331],this._configureRenderer,this)}}},_configureRenderer:function(c){if(!c||c.getValue()==null||c.getOldValue()==null){this._animation.skip();var d=this._animation.getDefaultRenderer(false);var a=this.getBackgroundGradient()!=null?_[76]:_[129];var b=rwt.animation.AnimationRenderer.ANIMATION_CHANGE;d.animate(this,a,b)}},_initAnimation:function(){if(this.hasState(_[13])){this._animation.cancel()}else{var a=this.getAnimation();if(this.hasState("over")&&a.hoverIn){this._animation.setProperties(a.hoverIn)}else{if(!this.hasState("over")&&a[_[319]]){this._animation.setProperties(a[_[319]])}else{this._animation.cancel()}}}},_renderAppearance:function(){arguments.callee.base.call(this);if(this._animation!=null&&!this._animation.isStarted()){this._animation.getDefaultRenderer().cancelActivateOnce()}}}});
(function(a){rwt.qx.Class.define(_[338],{extend:rwt.widgets.base.BasicButton,construct:function(c,b){arguments.callee.base.call(this,c);this._isDropDown=false;this.setAppearance("toolbar-button");if(c=="dropDown"){this._isDropDown=true;this._isSelectable=false;this._isDeselectable=false;this._sendEvent=true;this.$dropDownArrow=a(_[109]).css({position:_[11]});this.$separator=a(_[109]).css({position:_[11],top:0,right:0,left:"auto",width:1,height:"100%"})}if(b){this.addState(_[120])}this._rawText=null;this._mnemonicIndex=null;this.removeEventListener(_[9],this._onKeyDown);this.removeEventListener(_[33],this._onKeyUp);this.addEventListener(_[134],this._onChangeParent,this)},destruct:function(){this.setMnemonicIndex(null)},properties:{dropDownArrow:{apply:"_applyDropDownArrow",nullable:true,themeable:true},separatorBorder:{nullable:true,init:null,apply:"_applySeparatorBorder",themeable:true}},members:{_onKeyPress:function(b){this.getParent().dispatchEvent(b);arguments.callee.base.call(this,b)},setText:function(b){this._rawText=b;this._mnemonicIndex=null;this._applyText(false);this.dispatchSimpleEvent(_[158])},computeBadgePosition:function(){return[3,3,"auto","auto"]},setMnemonicIndex:function(c){this._mnemonicIndex=c;var b=rwt.widgets.util.MnemonicHandler.getInstance();if((typeof c===_[18])&&(c>=0)){b.add(this,this._onMnemonic)}else{b.remove(this)}},getMnemonicIndex:function(){return this._mnemonicIndex},_applyText:function(c){if(this._rawText){var b=c?this._mnemonicIndex:undefined;var d=rwt.util.Encoding.escapeText(this._rawText,b);this.setCellContent(2,d)}else{this.setCellContent(2,null)}},_onMnemonic:function(c){switch(c.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case _[97]:var b=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(c.charCode===b){this.execute();c.success=true}break}},_onMouseDown:function(b){if(b.getTarget()==this&&b.isLeftButtonPressed()){this.removeState(_[49]);if(this._isDropDownClick(b)){this._onDropDownClick()}else{this.addState(_[13])}}},_isDropDownClick:function(b){if(this.$separator){if(this.getDirection()==="rtl"){return b.getClientX()this.$separator.offset().left}return false},_onDropDownClick:function(){if(this._sendEvent){rwt.remote.EventUtil.notifySelected(this,0,0,0,0,"arrow")}this.dispatchSimpleEvent("dropDownClicked")},_applyDropDownArrow:function(f){if(this._isDropDown){var g=this.getDirection()==="rtl";var c=f?f[0]:null;var d=f?f[1]:0;var b=f?f[2]:0;this.$dropDownArrow.css({backgroundImage:c,width:d,height:b,right:g?"":this.getSpacing(),left:g?this.getSpacing():""});var e=d+this.getSpacing()*2;this.$separator.css({right:g?"":e,left:g?e:""})}},_applySeparatorBorder:function(){if(this._isDropDown){var b=this.getSeparatorBorder();this.$separator.css({borderLeftWidth:(b.getWidthLeft()||0)+"px",borderLeftStyle:b.getStyleLeft()||"none",borderLeftColor:b.getColorLeft()||""})}},_createSubElements:function(){arguments.callee.base.call(this);if(this._isDropDown){this.$dropDownArrow.appendTo(this);this.$separator.appendTo(this)}},_afterRenderLayout:function(c){if(this._isDropDown&&c.layoutY){var d=this.getInnerHeight();var b=(this.getDropDownArrow()||[null,0,0])[2];this.$dropDownArrow.css("top",Math.round(this.getPaddingTop()+d/2-b/2))}},_getAvailableInnerWidth:function(){if(!this._isDropDown){return this.getInnerWidth()}var b=(this.getDropDownArrow()||[null,0,0])[1];return Math.max(0,this.getInnerWidth()-b-1-this.getSpacing()*2)},_notifySelected:function(){rwt.remote.EventUtil.notifySelected(this)},_onChangeParent:function(d){var b=d.getOldValue();var c=d.getValue();if(b){this._toggleFirstLastState(b)}else{this._toggleFirstLastState(c)}if(c){this.setDirection(c.getDirection());this.toggleState("rwt_RIGHT",c.hasState("rwt_RIGHT"));this.toggleState(_[167],c.hasState(_[167]))}},_toggleFirstLastState:function(b){var d;var c;b.forEachVisibleChild(function(){if(this instanceof rwt.widgets.ToolItem){this.toggleState("first",false);this.toggleState("last",false);if(!d){d=this}c=this}});if(d){d.toggleState("first",true);c.toggleState("last",true)}}}})}(rwt.util._RWTQuery));
rwt.qx.Class.define(_[442],{extend:rwt.widgets.base.Parent,construct:function(){arguments.callee.base.call(this);this._frame=new rwt.widgets.base.Parent();this._frame.setAppearance("group-box-frame");this.add(this._frame);this._legend=new rwt.widgets.base.MultiCellWidget([_[46]]);this._legend.setAppearance("group-box-legend");this.add(this._legend);this.setOverflow(_[6]);this.setEnableElementFocus(false);var a=new rwt.theme.ThemeValues({});this._themeBackgroundColor=a.getCssColor("Group-Label",_[127]);a.dispose();this._legend.addEventListener(_[10],this._onMouseOver,this);this._legend.addEventListener(_[16],this._onMouseOut,this);this._legend.setTop(0);this._legend.setLeft(0);rwt.widgets.base.Widget.disableScrolling(this)},destruct:function(){this._disposeObjects("_legend","_frame");this.setMnemonicIndex(null)},properties:{appearance:{refine:true,init:"group-box"}},members:{setText:function(a){this._rawText=a;this._mnemonicIndex=null;this._applyText(false)},setMnemonicIndex:function(b){this._mnemonicIndex=b;var a=rwt.widgets.util.MnemonicHandler.getInstance();if((typeof b===_[18])&&(b>=0)){a.add(this,this._onMnemonic)}else{a.remove(this)}},getMnemonicIndex:function(){return this._mnemonicIndex},_onMnemonic:function(b){switch(b.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case _[97]:var a=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(b.charCode===a){var c=this._findFirstFocusableChild(this);if(c!=null){c.focus()}b.success=true}break}},_applyText:function(c){var a=rwt.util.Encoding;if(this._rawText){var b=c?this._mnemonicIndex:undefined;var d=a.escapeText(this._rawText,b);if(this.hasState("rwt_WRAP")){d=a.replaceNewLines(d,_[63])}this._setLegend(d)}else{this._setLegend(null)}},_getSubWidgets:function(){return[this._legend,this._frame]},_applyBackgroundColor:function(b,a){arguments.callee.base.call(this,b,a);if(this._themeBackgroundColor===_[8]){this._legend.setBackgroundColor(b)}},_applyFont:function(b,a){arguments.callee.base.call(this,b,a);this._legend.setFont(b)},_onMouseOver:function(){this._legend.addState("over");this._frame.addState("over")},_onMouseOut:function(){this._legend.removeState("over");this._frame.removeState("over")},_applyDirection:function(a){arguments.callee.base.call(this,a);this.getLayoutImpl().setMirror(a==="rtl")},_layoutPost:function(a){arguments.callee.base.call(this,a);this._frame._layoutPost(a)},applyObjectId:function(a){arguments.callee.base.call(this,a);this._legend.applyObjectId(a+"-label")},_setLegend:function(a){if(a!==""&&a!==null){this._legend.setCellContent(0,a);this._legend.setDisplay(true)}else{this._legend.setDisplay(false)}},_findFirstFocusableChild:function(f){var c=rwt.remote.ObjectRegistry;var b=rwt.widgets.util.WidgetUtil;var a=null;var e=b.getChildIds(f);for(var d=0;d0){var b=g[0].getTopLevelWidget();var a=rwt.widgets.Shell.MIN_ZINDEX;for(var d=0;dthis.getZIndex()){this.setActive(false);a.setActive(true)}}},_applyMode:function(c,b){var d=c==null?_[43]:c;rwt.remote.Connection.getInstance().getRemoteObject(this).set("mode",d);var a=rwt.widgets.base.ClientDocument.getInstance();if(c==_[50]){this._sendBoundsTimer.start();a.addEventListener(_[139],this._onWindowResize,this)}else{a.removeEventListener(_[139],this._onWindowResize,this)}arguments.callee.base.call(this,c,b)},_onWindowResize:function(){this._sendResizeDelayed=true;this._sendResizeFlag=true;this._sendBounds()},_onChangeSize:function(){if(!rwt.remote.EventUtil.getSuspended()){this._sendResizeFlag=true;this._sendBoundsTimer.start()}},_onChangeLocation:function(){if(!rwt.remote.EventUtil.getSuspended()){this._sendMoveFlag=true;this._sendBoundsTimer.start()}},_sendBounds:function(){this._sendBoundsTimer.stop();var e=this._parseNumber(this.getLeft());var d=this._parseNumber(this.getTop());var a=this._parseNumber(this.getHeightValue());var c=this._parseNumber(this.getWidthValue());var b=rwt.remote.Connection.getInstance().getRemoteObject(this);b.set(_[89],[e,d,c,a]);if(this._sendMoveFlag){b.notify("Move",{})}if(this._sendResizeFlag){b.notify(_[198],{},this._sendResizeDelayed?500:undefined)}this._sendMoveFlag=false;this._sendResizeFlag=false;this._sendResizeDelayed=false},_parseNumber:function(b){var a=parseInt(b,10);return isNaN(a)?0:a},_onKeydown:function(a){var c=a.getKeyIdentifier();if(c==_[32]&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isCtrlPressed()&&!a.isMetaPressed()){var b=this.getDefaultButton();if(b!=null&&b.isSeeable()&&b.getEnabled()){b.setFocused(true);b.execute()}}else{if(c==_[107]&&this._parentShell!=null){this.close()}}},_onSend:function(){if(this.getActive()){var b=this.getFocusedChild();if(b!=null&&b!=this._focusControl){this._focusControl=b;var e=rwt.remote.WidgetManager.getInstance();var a=e.findIdByWidget(b);var c=rwt.remote.Connection.getInstance();var d=c.getRemoteObject(rwt.widgets.Display.getCurrent());d.set(_[431],a)}}},_getParentControl:function(c){var b=rwt.remote.WidgetManager.getInstance();var a=c;while(a!=null&&!b.isControl(a)){if(a.getParent){a=a.getParent()}else{a=null}}return a},isDialogOf:function(c){var a=false;var b=this._parentShell;while(!a&&b!=null){a=c===b;b=b._parentShell}return a},getTopLevelShell:function(){var a=this;while(a._parentShell!=null){a=a._parentShell}return a},_sendTo:function(){rwt.widgets.Shell.reorderShells(this.getWindowManager())},bringToFront:function(){var a=this;while(a._parentShell!=null){a=a._parentShell}this._setRenderZIndex(false);this.setZIndex(rwt.widgets.Shell.MAX_ZINDEX+1);a.setZIndex(rwt.widgets.Shell.MAX_ZINDEX+1);rwt.widgets.Shell.reorderShells(this.getWindowManager());this._setRenderZIndex(true)},_applyZIndex:function(b,a){if(this._renderZIndex){arguments.callee.base.call(this,b,a)}},_setRenderZIndex:function(a){this._renderZIndex=a;if(a){this._applyZIndex(this.getZIndex())}},_applyDirection:function(b){arguments.callee.base.call(this,b);var a=b==="rtl";this.getCaptionBar().setReverseChildrenOrder(a);this.getCaptionBar().setHorizontalChildrenAlign(a?_[2]:"left");this.getLayoutImpl().setMirror(a)},setBlocked:function(a){if(a){if(!this._blocker){this._blocker=new rwt.widgets.base.Parent();this._blocker.setAppearance(_[439]);this.add(this._blocker)}this._blocker.setSpace(0,0,10000,10000);this._blocker.setZIndex(1000)}else{if(this._blocker){this.remove(this._blocker);this._blocker.destroy();this._blocker=null}}},setFullScreen:function(a){if(a){this._captionBar.setDisplay(false)}else{this._captionBar.setDisplay(this.hasState("rwt_TITLE"))}}}});
rwt.remote.HandlerRegistry.add(_[352],{factory:function(b){var d=rwt.remote.HandlerUtil;var c=d.createStyleMap(b.style);var a=new rwt.widgets.Shell(c);d.addStatesForStyles(a,b.style);a.setUserData(_[20],true);d.callWithTarget(b.parentShell,function(e){if(e){a.setParentShell(e)}a.initialize()});return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["showMinimize","allowMinimize","showMaximize","allowMaximize","showClose","allowClose","resizable",_[17],"text","alpha",_[64],"mode","hasShellListener","minimumSize","defaultButton",_[468]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({bounds:function(b,a){if(!b.isDisableResize()){b.setLeft(a[0]);b.setTop(a[1]);b.setWidth(a[2]);b.setHeight(a[3])}},alpha:function(a,b){a.setOpacity(b/255)},defaultButton:function(a,b){rwt.remote.HandlerUtil.callWithTarget(b,function(c){a.setDefaultButton(c)})},activeControl:function(a,b){rwt.remote.HandlerUtil.callWithTarget(b,function(c){a.setActiveControl(c)})},mode:function(a,c){var b=c==="fullscreen";a.setMode(b?_[50]:c);a.setFullScreen(b)},minimumSize:function(a,b){a.setMinWidth(b[0]);a.setMinHeight(b[1])},text:function(a,b){var c=rwt.util.Encoding.escapeText(b,false);a.setCaption(c)},image:function(a,b){if(b===null){a.setIcon(b)}else{a.setIcon(b[0])}},visibility:function(a,b){if(b){a.show()}else{a.hide()}rwt.widgets.Shell.reorderShells(a.getWindowManager())}}),events:[_[256],"Close",_[198],"Move"],listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})});
(function(){var a=rwt.util.RWTQuery;rwt.qx.Class.define(_[247],{extend:rwt.widgets.base.Parent,construct:function(b,c){arguments.callee.base.call(this);this.$el=a(this);this._indet=c||false;this._vertical=b||false;this._minimum=0;this._maximum=100;this._selection=0;this._createIndicator();this._createTimer();this.setOverflow(_[6]);this.setState(_[43]);this.setAppearance("progressbar")},destruct:function(){if(this._timer!=null){this._timer.dispose()}this._timer=null},statics:{UNDETERMINED_SIZE:40},properties:{indicatorColor:{nullable:true,init:null,apply:"_applyIndicatorColor",themeable:true},indicatorImage:{nullable:true,init:null,apply:"_applyIndicatorImage",themeable:true},indicatorGradient:{nullable:true,init:null,apply:"_applyIndicatorGradient",themeable:true},indicatorOpacity:{nullable:true,init:1,apply:"_applyIndicatorOpacity",themeable:true}},members:{setMinimum:function(b){this._minimum=b;this.addToQueue(_[341]);this.dispatchSimpleEvent(_[387])},setMaximum:function(b){this._maximum=b;this.addToQueue(_[341]);this.dispatchSimpleEvent(_[461])},setSelection:function(b){this._selection=b;this.addToQueue(_[341]);this.dispatchSimpleEvent(_[66],this);this.dispatchSimpleEvent(_[135],this)},getMinimum:function(){return this._minimum},getMaximum:function(){return this._maximum},getSelection:function(){return this._selection},setState:function(b){if(b==_[124]){this.removeState(_[43]);this.removeState("paused");this.addState(_[124])}else{if(b=="paused"){this.removeState(_[43]);this.removeState(_[124]);this.addState("paused")}else{this.removeState(_[124]);this.removeState("paused");this.addState(_[43])}}},getToolTipTargetBounds:function(){if(this.isVertical()){return{top:this.getBoxHeight()-this._cachedBorderLeft-this._indicator.offsetHeight,left:0,width:this.getBoxWidth(),height:1}}else{if(this.isIndeterminate()){return{left:0,top:0,width:this.getBoxWidth(),height:this.getBoxHeight()}}else{return{left:this._cachedBorderLeft+this._indicator.offsetWidth,top:0,width:1,height:this.getBoxHeight()}}}},isIndeterminate:function(){return this._indet},isHorizontal:function(){return !this._vertical},isVertical:function(){return this._vertical},_applyIndicatorColor:function(b){this.$indicator.css(_[129],b||"")},_applyIndicatorImage:function(b){this.$indicator.css(_[362],b||"")},_applyIndicatorGradient:function(b){this.$indicator.css(_[76],b||"")},_applyIndicatorOpacity:function(b){this.$indicator.css(_[102],b||"")},_onInterval:function(){if(this.isSeeable()){this._animPosition+=1;var b=this._vertical?this.getHeight():this.getWidth();if(this._animPosition>b){this._animPosition=rwt.widgets.ProgressBar.UNDETERMINED_SIZE*-1}this._renderIndicatorSelection()}},_layoutPost:function(b){if(b.indicatorSelection||b.initial){this._renderIndicatorSelection()}},_createIndicator:function(){this._indicator=document.createElement("div");this.$el.append(this._indicator);this.$indicator=a(this._indicator);this.$indicator.css(_[84],_[11]);if(this._vertical){this.$indicator.css({left:0,top:"auto",width:"100%"})}else{this.$indicator.css({top:0,height:"100%",bottom:"auto"})}},_createTimer:function(){if(this._indet){this._animPosition=rwt.widgets.ProgressBar.UNDETERMINED_SIZE*-1;this._timer=new rwt.client.Timer(30);this._timer.addEventListener(_[26],this._onInterval,this);this._timer.start()}},_renderIndicatorSelection:function(){var c=this._computeIndicatorCssLength();var d=this._computeIndicatorCssOffset();if(this._vertical){this.$indicator.css({height:c,bottom:d})}else{var b={};b[_[21]]=c;b[this.getDirection()==="rtl"?_[2]:"left"]=d;this.$indicator.css(b)}},_computeIndicatorCssLength:function(){if(this.isIndeterminate()){return rwt.widgets.ProgressBar.UNDETERMINED_SIZE}var c=this._selection-this._minimum;var b=this._maximum-this._minimum;return Math.floor(100*c/b)+"%"},_computeIndicatorCssOffset:function(){return this.isIndeterminate()?this._animPosition:0}}})}());
rwt.remote.HandlerRegistry.add(_[247],{factory:function(b){var a=new rwt.widgets.ProgressBar(b.style&&b.style.indexOf("VERTICAL")!==-1,b.style&&b.style.indexOf("INDETERMINATE")!==-1);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties([_[216],_[188],_[19],"state"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({}),methods:[_[86],_[91]],methodHandler:rwt.remote.HandlerUtil.extendListenerMethodHandler({}),scriptingMethods:rwt.remote.HandlerUtil.extendControlScriptingMethods({getSelection:function(){return this._selection},getMaximum:function(){return this._maximum},getMinimum:function(){return this._minimum}})});
rwt.qx.Class.define(_[488],{extend:rwt.widgets.base.Terminator,construct:function(){arguments.callee.base.call(this);this.setAppearance("link");this._text="";this._hyperlinksHaveListeners=false;this._readyToSendChanges=true;this._focusedLinkIndex=-1;this._linksCount=0;this.setSelectable(false);this.setHideFocus(true);this.__onMouseDown=rwt.util.Functions.bind(this._onMouseDown,this);this.__onMouseOver=rwt.util.Functions.bind(this._onMouseOver,this);this.__onMouseOut=rwt.util.Functions.bind(this._onMouseOut,this);this.__onKeyDown=rwt.util.Functions.bind(this._onKeyDown,this);this.addEventListener(_[44],this._onCreate,this);this.addEventListener(_[170],this._onChangeEnabled,this);this.addEventListener(_[3],this._onKeyPress);this.addEventListener(_[162],this._onFocusOut)},destruct:function(){this._removeEventListeners();delete this.__onMouseDown;delete this.__onMouseOver;delete this.__onMouseOut;delete this.__onKeyDown},members:{_onCreate:function(){this._renderText()},_applyTextColor:function(b,a){arguments.callee.base.call(this,b,a);this._applyHyperlinksStyleProperties()},_onChangeEnabled:function(){this._applyHyperlinksStyleProperties();this._changeHyperlinksTabIndexProperty()},_getStates:function(){if(!this.__states){this.__states={}}return this.__states},addText:function(a){this._text+=a},addLink:function(b,a){var d=rwt.remote.WidgetManager.getInstance();var c=d.findIdByWidget(this)+"#"+a;this._text+='";this._text+=b;this._text+="";this._linksCount++},applyText:function(){this._renderText();if(this._linksCount===0){this.setTabIndex(null)}else{this.setTabIndex(1)}},clear:function(){this._removeEventListeners();this._text="";this._linksCount=0;this._focusedLinkIndex=-1},_renderText:function(){if(this._isCreated){this._getTargetNode().innerHTML=this._text;this._applyHyperlinksStyleProperties();this._addEventListeners()}},_applyFont:function(a){if(a){a.render(this)}else{rwt.html.Font.reset(this)}},_applyHyperlinksStyleProperties:function(){var c=this._getHyperlinkStyle(false);var a=this._getHyperlinkElements();for(var b=0;b0&&!this._hyperlinksHaveListeners){for(var b=0;b0&&this._hyperlinksHaveListeners){for(var b=0;b0){this._setFocusedLink(0)}},_onKeyPress:function(b){if(this.isFocused()&&b.getKeyIdentifier()==="Tab"&&this._linksCount>0){var a=this._focusedLinkIndex;if(!b.isShiftPressed()&&a>=0&&a0&&a<=this._linksCount-1){b.stopPropagation();b.preventDefault();this._setFocusedLink(a-1)}}}}},_onFocusOut:function(){this._setFocusedLink(-1)},_setFocusedLink:function(a){var b=this._getFocusedHyperlinkElement();if(b!==null){b.blur();b.style.outline="none"}this._focusedLinkIndex=a;b=this._getFocusedHyperlinkElement();if(b!==null){b.focus();b.style.outline="1px dotted"}},_getFocusedHyperlinkElement:function(){var a=null;var c=this._getHyperlinkElements();var b=this._focusedLinkIndex;if(b>=0&&bc){this.setSelection(this._selection+this._pageIncrement)}else{this.setSelection(this._selection-this._pageIncrement)}this._scheduleSendChanges()}},_onThumbMouseDown:function(b){if(b.isLeftButtonPressed()){var a=this._getMouseOffset(b);this._thumbOffset=a-this._getThumbPosition();this._thumb.setCapture(true)}},_onThumbMouseMove:function(b){if(this._thumb.getCapture()){var a=this._getMouseOffset(b);var c=this._getSelectionFromThumbPosition(a-this._thumbOffset);if(this._selection!=c){this.setSelection(c);this._scheduleSendChanges()}}},_onThumbMouseUp:function(){this._thumb.setCapture(false)},_getMouseOffset:function(c){var a=rwt.html.Location;if(this._horizontal){var b=c.getPageX()-a.getLeft(this.getElement());if(this.getDirection()==="rtl"){return this.getWidth()-b}else{return b}}else{return c.getPageY()-a.getTop(this.getElement())}},_updateStep:function(){var a=rwt.widgets.Scale.PADDING+rwt.widgets.Scale.HALF_THUMB;if(this._horizontal){this._pxStep=(this.getWidth()-2*a)/(this._maximum-this._minimum)}else{this._pxStep=(this.getHeight()-2*a)/(this._maximum-this._minimum)}},_updateThumbPosition:function(){var a=rwt.widgets.Scale.PADDING+this._pxStep*(this._selection-this._minimum);this._setThumbPosition(Math.round(a));this.dispatchSimpleEvent(_[135],this)},_getThumbPosition:function(){if(this._horizontal){if(this.getDirection()==="rtl"){return this._thumb.getRight()}else{return this._thumb.getLeft()}}else{return this._thumb.getTop()}},_setThumbPosition:function(a){if(this._horizontal){if(this.getDirection()==="rtl"){this._thumb.setLeft(null);this._thumb.setRight(a)}else{this._thumb.setLeft(a);this._thumb.setRight(null)}}else{this._thumb.setTop(a)}},_getSelectionFromThumbPosition:function(a){var b=(a-rwt.widgets.Scale.PADDING)/this._pxStep+this._minimum;return this._normalizeSelection(Math.round(b))},_normalizeSelection:function(b){var a=b;if(bthis._maximum){a=this._maximum}return a},_scheduleSendChanges:function(){if(this._readyToSendChanges){this._readyToSendChanges=false;rwt.client.Timer.once(this._sendChanges,this,500)}},_sendChanges:function(){if(!rwt.remote.EventUtil.getSuspended()){var a=rwt.remote.Connection.getInstance().getRemoteObject(this);a.set(_[19],this._selection);rwt.remote.EventUtil.notifySelected(this);this._readyToSendChanges=true}},setSelection:function(a){this._selection=this._normalizeSelection(a);this._updateThumbPosition();this.dispatchSimpleEvent(_[66])},setMinimum:function(a){this._minimum=a;this._updateStep();this._updateThumbPosition();this.dispatchSimpleEvent(_[387])},setMaximum:function(a){this._maximum=a;this._updateStep();this._updateThumbPosition();this.dispatchSimpleEvent(_[461])},setIncrement:function(a){this._increment=a},setPageIncrement:function(a){this._pageIncrement=a},getToolTipTargetBounds:function(){var a=this._horizontal&&this.getDirection()==="rtl"?this.getWidth()-this._thumb.getRight()-this._thumb.getWidth():this._thumb.getLeft();return{left:this._cachedBorderLeft+(a||0),top:this._cachedBorderLeft+(this._thumb.getTop()||0),width:this._thumb.getBoxWidth(),height:this._thumb.getBoxHeight()}},_visualizeFocus:function(){arguments.callee.base.call(this);this._thumb.addState(_[79])},_visualizeBlur:function(){arguments.callee.base.call(this);this._thumb.removeState(_[79])},_layoutX:function(){this._updateThumbPosition()}}});
rwt.remote.HandlerRegistry.add(_[290],{factory:function(b){var c=b.style.indexOf(_[327])!=-1;var a=new rwt.widgets.Scale(c);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties([_[216],_[188],_[19],_[345],_[360]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),events:[_[12]],listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({}),methods:[_[86],_[91]],methodHandler:rwt.remote.HandlerUtil.extendListenerMethodHandler({}),scriptingMethods:rwt.remote.HandlerUtil.extendControlScriptingMethods({getSelection:function(){return this._selection},getMaximum:function(){return this._maximum},getMinimum:function(){return this._minimum}})});
rwt.qx.Class.define("rwt.widgets.ToolItemSeparator",{extend:rwt.widgets.base.Parent,construct:function(b,a){arguments.callee.base.call(this);this._line=null;this._control=null;this._vertical=a;if(b){this._line=new rwt.widgets.base.Terminator();if(a){this._line.addState(_[28])}this._line.setAppearance("toolbar-separator-line");this.add(this._line)}this.setStyleProperty(_[241],"0px");this.setStyleProperty("lineHeight","0px")},properties:{appearance:{refine:true,init:"toolbar-separator"}},members:{_applyWidth:function(e,d){arguments.callee.base.call(this,e,d);if(this._line&&!this._vertical){var c=this._line.getWidth();var b=e*0.5;var a=Math.floor(b-(c*0.5));this._line.setLeft(a)}},_applyHeight:function(e,c){arguments.callee.base.call(this,e,c);if(this._line&&this._vertical){var d=this._line.getHeight();var a=e*0.5;var b=Math.floor(a-(d*0.5));this._line.setTop(b)}},setLineVisible:function(a){if(this._line){this._line.setVisibility(a)}}}});
namespace("rwt.theme.BorderDefinitions");rwt.theme.BorderDefinitions={getDefinition:function(a){return this._definitions[a]},_definitions:{inset:{color:[_[24],_[30],_[30],_[24]],innerColor:[_[204],_[140],_[140],_[204]],width:2},thinInset:{color:[_[24],_[30],_[30],_[24]],width:1},outset:{color:[_[140],_[204],_[204],_[140]],innerColor:[_[30],_[24],_[24],_[30]],width:2},thinOutset:{color:[_[30],_[24],_[24],_[30]],width:1},groove:{color:[_[24],_[30],_[30],_[24]],innerColor:[_[30],_[24],_[24],_[30]],width:2},ridge:{color:[_[30],_[24],_[24],_[30]],innerColor:[_[24],_[30],_[30],_[24]],width:2},shadow:{width:1,color:[_[24],_[24],_[24],_[24]]},verticalDivider:{width:[1,0,1,0],color:[_[24],null,_[30],null]},horizontalDivider:{width:[0,1,0,1],color:[null,_[24],null,_[30]]},"separator.shadowin.horizontal.border":{width:[1,0,1,0],color:[_[140],null,_[30]]},"separator.shadowin.vertical.border":{width:[0,1,0,1],color:[null,_[30],null,_[140]]},"separator.shadowout.horizontal.border":{width:[1,0,1,0],color:[_[30],null,_[24],null]},"separator.shadowout.vertical.border":{width:[0,1,0,1],color:[null,_[24],null,_[30]]}}};
rwt.qx.Class.define(_[332],{extend:rwt.widgets.base.HorizontalBoxLayout,construct:function(b){arguments.callee.base.call(this);this._editable=true;this._userSelection=true;this._listMinWidth=-1;this._field=new rwt.widgets.base.BasicText();this._field.setTabIndex(null);this._field.setAllowStretchY(true);this._field.setTop(0);this._field.setWidth("1*");this._field.setHeight("100%");this.add(this._field);this._button=new rwt.widgets.base.BasicButton("push",true);this._button.setTabIndex(null);this._button.setTop(0);this._button.setHeight("100%");this.add(this._button);this.setHideFocus(true);var a=b?"ccombo":"combo";this.setAppearance(a);this._field.setAppearance(a+"-field");this._button.setAppearance(a+"-button");this._registerListeners()},destruct:function(){this._list.destroy();this._disposeObjects("_field","_button")},members:{setItems:function(a){this._listMinWidth=-1;this._userSelection=false;this._list.setItems(a);this._userSelection=true;this.dispatchSimpleEvent("itemsChanged");if(this._list.getVisible()){this._list.setMinWidth(this._getListMinWidth())}},setVisibleItemCount:function(a){this._list.setVisibleItemCount(a)},select:function(a){this._userSelection=false;this._list.setSelectionIndex(a);this._userSelection=true},setEditable:function(a){this._editable=a;this._field.setReadOnly(!a)},setListVisible:function(a){if(a){this._list.setMinWidth(this._getListMinWidth())}this._list.setVisible(a)},setText:function(a){if(this._editable){this._field.setValue(a)}},setTextSelection:function(a){this._field.setSelection(a)},setTextLimit:function(a){this._field.setMaxLength(a)},addState:function(a){arguments.callee.base.call(this,a);if(a===_[167]||a===_[122]){this._field.addState(a);this._button.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a===_[122]){this._field.removeState(a);this._button.removeState(a)}},_getSubWidgets:function(){return[this._field,this._button,this._list]},_applyDirection:function(a){arguments.callee.base.call(this,a);this.setReverseChildrenOrder(a==="rtl");this.setHorizontalChildrenAlign(a==="rtl"?_[2]:"left");if(this._list){this._list.setDirection(a)}},_registerListeners:function(){this.addEventListener(_[134],this._onChangeParent,this);this.addEventListener(_[0],this._onMouseDown,this);this.addEventListener(_[37],this._onMouseWheel,this);this.addEventListener(_[3],this._onKeyPress,this);this._field.addEventListener(_[56],this._onTextInput,this);this._field.addEventListener(_[3],this._onTextKeyPress,this);this._field.addEventListener(_[66],this._onTextSelectionChange,this)},_onChangeParent:function(){if(!this._list){var a=this.getAppearance()+"-list";this._list=new rwt.widgets.DropDown({parent:this,appearance:a});this._list.setSelectionWrapping(false);this._list.setDirection(this.getDirection());var b=this;this._list.addListener("Show",function(d){b._onListVisibleChanged(d)});this._list.addListener("Hide",function(d){b._onListVisibleChanged(d)});this._list.addListener(_[12],function(d){b._onListSelectionChanged(d)});var c=this.getHtmlAttribute("id");if(c){this._list.applyObjectId(c+"-listbox")}}},_applyFont:function(b,a){arguments.callee.base.call(this,b,a);this._field.setFont(b)},_applyTextColor:function(b,a){arguments.callee.base.call(this,b,a);this._field.setTextColor(b)},_applyCursor:function(b,a){arguments.callee.base.call(this,b,a);this._field.setCursor(b);this._button.setCursor(b)},_ontabfocus:function(){this._showFocusIndicator();if(this._field.isCreated()){this._field.selectAll()}},_showFocusIndicator:function(){if(!this._editable){var a=(this.getAppearance()==="combo"?"":"C")+"Combo-FocusIndicator";rwt.widgets.util.FocusIndicator.getInstance().show(this,a,null)}},_visualizeFocus:function(){if(this._field.isCreated()){this._field._visualizeFocus();this._field._renderSelection()}this.addState(_[79])},_visualizeBlur:function(){if(this._field.isCreated()){this._field._setSelectionLength(0);this._field._visualizeBlur()}if(!this._editable){rwt.widgets.util.FocusIndicator.getInstance().hide(this)}this.removeState(_[79])},_toggleListVisibility:function(){if(this._list.getVisible()){this._list.hide()}else{this._list.setMinWidth(this._getListMinWidth());this._list.show()}},_getListMinWidth:function(){if(this._listMinWidth===-1){var f={};this.getFont().renderStyle(f);var b=rwt.widgets.util.FontSizeCalculation;var a=this._list.getItems();for(var c=0;c0){this._scrollSelection(a.getWheelDelta()<0);a.preventDefault();a.stopPropagation()}},_onTextKeyPress:function(a){this.dispatchEvent(a)},_onKeyPress:function(b){var a=b.getKeyIdentifier();if(a===_[32]){this._handleKeyEnter(b)}else{if(a==="Up"||a==="Down"||a===_[34]||a===_[36]){this._handleKeyUpDown(b)}}this._selectByFirstLetter(b);this._stopKeyEvent(b)},_handleKeyEnter:function(a){if(!this._list.getVisible()&&a.getModifiers()===0){rwt.remote.EventUtil.notifyDefaultSelected(this)}},_handleKeyUpDown:function(a){if(a.isAltPressed()){this._toggleListVisibility()}else{if(!this._list.getVisible()&&this._list.getItemCount()>0){switch(a.getKeyIdentifier()){case"Up":this._scrollSelection(false);break;case"Down":this._scrollSelection(true);break;case _[34]:this._scrollSelection(false,true);break;case _[36]:this._scrollSelection(true,true);break}}}},_selectByFirstLetter:function(d){var b=d.getCharCode();if(b!==0&&!d.isAltPressed()&&!d.isCtrlPressed()){if(this._list.getVisible()||!this._editable){var f=this._list.getSelectionIndex()+1;var e=this._list.getItemCount()-1;var c=String.fromCharCode(b);var a=this._findIndexByFirstLetter(f,e,c);if(a===-1){a=this._findIndexByFirstLetter(0,f-1,c)}if(a!==-1){this._list.setSelectionIndex(a)}}}},_findIndexByFirstLetter:function(e,d,c){var a=this._list.getItems();for(var b=e;b<=d;b++){if(a[b].slice(0,1).toLowerCase()===c.toLowerCase()){return b}}return -1},_stopKeyEvent:function(a){switch(a.getKeyIdentifier()){case _[32]:case"Up":case"Down":case _[34]:case _[36]:a.preventDefault();a.stopPropagation();break}},_scrollSelection:function(e,c){var b=this._list.getSelectionIndex();var d=this._list.getItemCount();var a=this._list.getVisibleItemCount();if(b===-1){b=0}else{if(e){b=c?b+a-1:b+1;b=Math.min(d-1,b)}else{b=c?b-a+1:b-1;b=Math.max(0,b)}}if(b!==this._list.getSelectionIndex()){this._list.setSelectionIndex(b)}},_onTextInput:function(){if(this._editable){var a=rwt.remote.Connection.getInstance().getRemoteObject(this);a.set("text",this._field.getComputedValue());this._notifyModify(true);this._internalSelectionChanged=true;this._list.setSelectionIndex(-1);this._internalSelectionChanged=false}},_onListVisibleChanged:function(){var b=this._list.getVisible();if(this._editable){this._field.setReadOnly(b)}if(this.getFocused()){if(b){this._field._visualizeBlur()}else{if(this._editable){this._field._visualizeFocus()}}}if(!rwt.remote.EventUtil.getSuspended()){var a=rwt.remote.Connection.getInstance();a.getRemoteObject(this).set(_[455],b)}},_onListSelectionChanged:function(a){if(!this._internalSelectionChanged){if(this._userSelection){this.setFocused(true)}this._field.setValue(a.index===-1?"":a.text);if(this._field.isCreated()&&this._userSelection){this._field.selectAll()}this._sendSelectionChanged(a);this.dispatchSimpleEvent(_[66])}},_onTextSelectionChange:function(){if(!rwt.remote.EventUtil.getSuspended()){var a=rwt.remote.Connection.getInstance().getRemoteObject(this);a.set(_[19],this._field.getSelection())}},_sendSelectionChanged:function(b){if(!rwt.remote.EventUtil.getSuspended()){var a=rwt.remote.Connection.getInstance().getRemoteObject(this);if(this._editable){a.set("text",b.text)}a.set(_[279],b.index);rwt.remote.EventUtil.notifySelected(this);this._notifyModify()}},_notifyModify:function(b){var a=rwt.remote.Connection.getInstance();if(a.getRemoteObject(this).isListening(_[105])){a.onNextSend(this._onSend,this);if(b){a.sendDelayed(500)}else{a.send()}}},_onSend:function(){if(!this.isDisposed()){rwt.remote.Connection.getInstance().getRemoteObject(this).notify(_[105],null,true)}},applyObjectId:function(a){arguments.callee.base.call(this,a);if(this._list){this._list.applyObjectId(a+"-listbox")}}}});
rwt.remote.HandlerRegistry.add(_[332],{factory:function(b){var a=new rwt.widgets.Combo(b.ccombo);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["itemHeight",_[388],"items",_[455],_[279],"editable","text",_[19],_[348]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({selectionIndex:function(b,a){b.select(a)},selection:function(b,a){b.setTextSelection(a)}}),events:[_[12],_[48],_[105]],listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({}),methods:[_[86],_[91]],methodHandler:rwt.remote.HandlerUtil.extendListenerMethodHandler({}),scriptingMethods:rwt.remote.HandlerUtil.extendControlScriptingMethods({getText:function(){return this._field.getValue()},getSelection:function(){return this._field.getSelection()}})});
rwt.qx.Class.define("rwt.widgets.util.FocusIndicator",{extend:rwt.qx.Object,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.widgets.util.FocusIndicator)}},construct:function(){arguments.callee.base.call(this);this._frame=null},members:{_createFrame:function(){this._frame=document.createElement("div");this._frame.setAttribute("id","focusIndicator");this._frame.style.position=_[11];this._frame.style.fontSize=0;this._frame.style.lineHeight=0;this._frame.style.zIndex=0},_createTheme:function(h,b,n){var g=null;var m=typeof h.__states!=_[8]?h.__states:{};var i=new rwt.theme.ThemeValues(m);var f=i.getCssBorder(b,_[88]);var k=i.getCssFloat(b,_[102]);var j=f instanceof rwt.html.Border;var e=i.getCssBoxDimensions(b,_[201]);var l=i.getCssBoxDimensions(b,_[110]);if(!l){l=[0,0,0,0]}var d=l[0]===0&&l[1]===0&&l[2]===0&&l[3]===0;var a=!d&&n!=null;if(j&&(e!=null||a)){var c=i.getCssColor(b,_[127]);g={backgroundColor:c!=_[8]?c:"",opacity:k,border:f,margin:e,padding:a?l:null}}return g},show:function(d,c,b){this.hide();if(d.isCreated()){var f=this._createTheme(d,c,b);if(f!=null){var a=d._getTargetNode();if(this._frame==null){this._createFrame()}if(this._frame.parentNode!=a){if(a.hasChildNodes()){var e=a.firstChild;a.insertBefore(this._frame,e)}else{a.appendChild(this._frame)}}this._styleFocusIndicator(f);this._layoutFocusIndicator(d,f,b)}}},hide:function(){if(this._frame!=null&&this._frame.parentNode!=null){this._frame.parentNode.removeChild(this._frame)}},_styleFocusIndicator:function(g){var e=g[_[88]];var b=this._frame.style;var f=["Left","Top","Bottom",_[35]];for(var h=0;h<4;h++){var c=f[h];var d=e["getColor"+c]();var j=e["getStyle"+c]();var a=e["getWidth"+c]();b[_[88]+c+"Width"]=a==null?"0px":a+"px";b[_[88]+c+"Style"]=j==null?"none":j;b[_[88]+c+"Color"]=d==null?"":d}b.backgroundColor=g[_[129]];this._styleFocusIndiactorOpacity(g[_[102]])},_styleFocusIndiactorOpacity:function(c){var b=this._frame.style;var a=c==1?"":c;b.opacity=a;b.KhtmlOpacity=a;b.MozOpacity=a},_layoutFocusIndicator:function(f,h,a){var d=[];if(h[_[110]]!=null){var g=h[_[110]];d[0]=a.offsetLeft-g[3];d[1]=parseInt(a.style.top,10)-g[0];d[2]=parseInt(a.style.width,10)+g[1]+g[3];d[3]=parseInt(a.style.height,10)+g[2]+g[0]}else{var e=h[_[201]];f._invalidateBoxWidth();f._invalidateBoxHeight();var c=f.getBoxWidth()-f._cachedBorderLeft-f._cachedBorderRight;var b=f.getBoxHeight()-f._cachedBorderTop-f._cachedBorderBottom;f._invalidateBoxWidth();f._invalidateBoxHeight();d[0]=e[3];d[1]=e[0];d[2]=c-(e[3]+e[1]);d[3]=b-(e[0]+e[2]);d[2]=Math.max(0,d[2]);d[3]=Math.max(0,d[3])}this._frame.style.left=d[0]+"px";this._frame.style.top=d[1]+"px";this._frame.style.width=d[2]+"px";this._frame.style.height=d[3]+"px"}}});
rwt.remote.HandlerRegistry.add(_[283],{factory:function(b){var c=rwt.remote.ObjectRegistry.getObject(b.parent);var a=rwt.widgets.util.WidgetUtil.getGC(c);rwt.remote.HandlerUtil.addDestroyableChild(c,a);return a},destructor:function(a){rwt.remote.HandlerUtil.removeDestroyableChild(a._control,a);a.dispose()},methods:["init","draw"],methodHandler:{init:function(b,a){b.init(a.x,a.y,a.width,a.height,a.font,a.fillStyle,a.strokeStyle)},draw:function(b,a){b.draw(a.operations)}}});
rwt.qx.Class.define(_[283],{extend:rwt.qx.Object,construct:function(a){arguments.callee.base.call(this);this._control=a;this._control.addEventListener(_[44],this._onControlCreate,this);this._control.addEventListener(_[52],this._onControlChangeWidth,this);this._control.addEventListener(_[67],this._onControlChangeHeight,this);this._canvas=null;this._context=null;this._createCanvas();this._canvas.rwtObject=this;if(this._control.isCreated()){this._addCanvasToDOM()}this._linearGradient=null;this._currentGCState={};this._paused=false;this._pendingOperations=null;this._pendingImages=[]},destruct:function(){this._control.removeEventListener(_[44],this._onControlCreate,this);this._control.removeEventListener(_[52],this._onControlChangeWidth,this);this._control.removeEventListener(_[67],this._onControlChangeHeight,this);if(this._control.isCreated()&&!this._control.isDisposed()){this._removeCanvasFromDOM()}this._control=null;this._canvas.rwtObject=null;this._canvas=null;if(this._context.dispose){this._context.dispose()}this._context=null},members:{init:function(b,g,e,a,c,d,f){this._initClipping(b,g,e,a);this._initFields(c,d,f);this._control.dispatchSimpleEvent("paint")},draw:function(a){this._paused=false;this._pendingOperations=null;this._cleanPendingImages();this._draw(a,0)},_draw:function(b,a){var e=a;while(e0&&f>0){this._context.translate(a,h);this._context.scale(1,f/g);this._context.arc(0,0,g,e,b,d)}},_resetClip:function(){this._context.restore();this._applyCurrentState(this._currentGCState)},_setProperty:function(a){var c=a[0];var b=a[1];this._currentGCState[c]=b;if(b==="linearGradient"){b=this._linearGradient}else{if(c==="fillStyle"||c===_[458]){b=rwt.util.Colors.rgbToRgbString(b)}else{if(c==="font"){b=this._toCssFont(b)}}}this._context[c]=b},_strokeText:function(c){var a=c[5];var f=c[6];var e=this._prepareText.apply(this,c.slice(1,5));var b=e.split("\n");if(b.length>1){var d=this._getTextBounds.apply(this,c.slice(1,7));this._drawText(b,d,false)}else{this._context.save();this._context.fillStyle=this._context.strokeStyle;this._context.fillText(e,a,f);this._context.restore()}},_fillText:function(b){var d=this._prepareText.apply(this,b.slice(1,5));var a=d.split("\n");var c=this._getTextBounds.apply(this,b.slice(1,7));this._drawText(a,c,true)},_drawText:function(c,d,e){this._context.save();if(e){this._context.fillRect.apply(this._context,d)}this._context.fillStyle=this._context.strokeStyle;var b=d[3]/c.length;for(var a=0;athis._maxMove){return this._maxMove}}return a},_applyOrientation:function(b,a){this._removeStyle(a);this._setStyle(b)},_setStyle:function(a){if(a==_[39]){this.addEventListener(_[0],this._onMouseDownY,this);this.addEventListener(_[31],this._onMouseMoveY,this);this.addEventListener(_[4],this._onMouseUpY,this);this.addState(_[39]);this._handle.addState(_[39]);this._sliderHandle.addState(_[39])}else{if(a==_[28]){this.addEventListener(_[31],this._onMouseMoveX,this);this.addEventListener(_[0],this._onMouseDownX,this);this.addEventListener(_[4],this._onMouseUpX,this);this.addState(_[28]);this._handle.addState(_[28]);this._sliderHandle.addState(_[28])}}},_removeStyle:function(a){if(a==_[39]){this.removeEventListener(_[0],this._onMouseDownY,this);this.removeEventListener(_[31],this._onMouseMoveY,this);this.removeEventListener(_[4],this._onMouseUpY,this);this.removeState(_[39]);this._handle.removeState(_[39]);this._sliderHandle.removeState(_[39])}else{if(a==_[28]){this.removeEventListener(_[0],this._onMouseDownX,this);this.removeEventListener(_[31],this._onMouseMoveX,this);this.removeEventListener(_[4],this._onMouseUpX,this);this.removeState(_[28]);this._handle.removeState(_[28]);this._sliderHandle.removeState(_[28])}}},_sendWidgetSelected:function(){var b=this._slider.getLeft()+this._frameOffset;if(this.getDirection()==="rtl"){b=-b}var a=this._slider.getTop()+this._frameOffset;rwt.remote.EventUtil.notifySelected(this,this.getLeft()+b,this.getTop()+a,this.getWidth(),this.getHeight(),this.getCapture()?"drag":null)}}});
rwt.remote.HandlerRegistry.add(_[505],{factory:function(c){var a=new rwt.widgets.Sash();rwt.remote.HandlerUtil.addStatesForStyles(a,c.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,c.parent);var b=rwt.widgets.util.Layout.ORIENTATION_VERTICAL;if(c.style.indexOf(_[327])!=-1){b=rwt.widgets.util.Layout.ORIENTATION_HORIZONTAL}a.setOrientation(b);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties([]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),events:[_[12]],listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})});
rwt.remote.HandlerRegistry.add("rwt.widgets.Canvas",{factory:function(b){var a=new rwt.widgets.Composite();rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties([_[76],_[342],"clientArea"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({backgroundGradient:rwt.remote.HandlerUtil.getBackgroundGradientHandler(),roundedBorder:rwt.remote.HandlerUtil.getRoundedBorderHandler()}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({}),methods:[_[86],_[91]],methodHandler:rwt.remote.HandlerUtil.extendListenerMethodHandler({}),scriptingMethods:rwt.remote.HandlerUtil.extendControlScriptingMethods({redraw:function(){var e=rwt.widgets.util.WidgetUtil.getGC(this);var d=this.getInnerWidth();var a=this.getInnerHeight();var c=this.getBackgroundColor();var f=this.getTextColor();var b=null;if(this.getFont()){b=[this.getFont().getFamily(),this.getFont().getSize(),this.getFont().getBold(),this.getFont().getItalic()]}e.init(0,0,d,a,b,rwt.util.Colors.stringToRgb(c?c:"#000000"),rwt.util.Colors.stringToRgb(f?f:"#000000"))}})});
rwt.qx.Class.define(_[512],{extend:rwt.widgets.base.Scrollable,construct:function(a){arguments.callee.base.call(this,new rwt.widgets.base.VerticalBoxLayout());this.setAppearance("list");this.setScrollBarsVisible(false,false);this.setEnableElementFocus(false);this._manager=new rwt.widgets.util.SelectionManager(this._clientArea);this._manager.setMultiSelection(a);this._manager.setDragSelection(false);this._manager.addEventListener(_[410],this._onChangeLeadItem,this);this._manager.addEventListener(_[337],this._onSelectionChange,this);this.addEventListener(_[61],this._onFocusChange,this);this.addEventListener("blur",this._onFocusChange,this);this.addEventListener(_[10],this._onMouseOver,this);this.addEventListener(_[0],this._onMouseDown,this);this.addEventListener(_[4],this._onMouseUp,this);this.addEventListener(_[23],this._onClick,this);this.addEventListener(_[53],this._onDblClick,this);this.addEventListener(_[3],this._onKeyPress,this);this.addEventListener(_[38],this._onAppear,this);this.addEventListener(_[251],this._onUserScroll);this.initOverflow();this.initTabIndex();this._pressedString="";this._lastKeyPress=0;this._itemWidth=0;this._itemHeight=0;this._topIndex=0;this._markupEnabled=false},destruct:function(){this._disposeObjects("_manager")},members:{setMarkupEnabled:function(a){this._markupEnabled=a},getSelectedItem:function(){return this._manager.getSelectedItems()[0]||null},getSelectedItems:function(){return this._manager.getSelectedItems()},_onAppear:function(){this._applyTopIndex(this._topIndex)},setTopIndex:function(a){this._topIndex=a;this._applyTopIndex(a)},_applyTopIndex:function(b){var a=this._manager.getItems();if(a.length>0&&a[0].isCreated()){if(this._itemHeight>0){this.setVBarSelection(b*this._itemHeight)}}},_getTopIndex:function(){var b=0;var c=this._clientArea.getScrollTop();var a=this._manager.getItems();if(a.length>0){var d=this._manager.getItemHeight(a[0]);if(d>0){b=Math.round(c/d)}}return b},_onChangeLeadItem:function(){if(!rwt.remote.EventUtil.getSuspended()){var a=this._clientArea.indexOf(this._manager.getLeadItem());rwt.remote.Connection.getInstance().getRemoteObject(this).set("focusIndex",a)}},_onSelectionChange:function(){if(!rwt.remote.EventUtil.getSuspended()){this._sendSelectionChange();rwt.remote.EventUtil.notifySelected(this)}this._updateSelectedItemState()},_sendSelectionChange:function(){var c=[];var d=this._manager.getSelectedItems();for(var b=0;b1000){this._pressedString=""}this._pressedString+=String.fromCharCode(d.getCharCode());var a=this.findString(this._pressedString,null);if(a){var c=this._manager._getChangeValue();var b=this._manager.getFireChange();this._manager.setFireChange(false);this._manager._deselectAll();this._manager.setItemSelected(a,true);this._manager.setAnchorItem(a);this._manager.setLeadItem(a);a.scrollIntoView();this._manager.setFireChange(b);if(b&&this._manager._hasChanged(c)){this._manager._dispatchChange()}}this._lastKeyPress=(new Date()).valueOf();d.preventDefault()}}},findString:function(b,a){return this._findItem(b,a||0)},_findItem:function(d,c){var b=this.getItems();if(c==null){c=b.indexOf(this.getSelectedItem());if(c==-1){c=0}}for(var a=c;ad.length){b=this._clientArea.getLastChild();b.removeEventListener(_[10],this._onListItemMouseOver,this);b.removeEventListener(_[16],this._onListItemMouseOut,this);b._isDisplayable=true;b.destroy()}this._manager.setSelectedItems(a);this._manager.setLeadItem(j);if(this._manager.getMultiSelection()){this._manager.setAnchorItem(f)}this._updateScrollDimension();this._applyTopIndex(this._topIndex)},_escapeItems:function(b){var a=b;if(!this._markupEnabled){var c=rwt.util.Encoding;for(var d=0;d=12){c=0;b++}break;case this._nextYearBt:b++;break}this.showMonth(c,b);this.setDate(new Date(b,c,1))},_onDayClicked:function(a){if(a.isLeftButtonPressed()&&!a.getTarget().hasState(_[128])){var b=a.getTarget().dateTime;this.setDate(new Date(b))}},_onDayDblClicked:function(){this.createDispatchDataEvent("select",this.getDate())},_onDayMouseOver:function(a){a.getTarget().addState("over")},_onDayMouseOut:function(a){a.getTarget().removeState("over")},_onkeypress:function(a){var f=null;var b=null;var d=null;var e=this.getDirection()==="rtl";if(a.getModifiers()===0){switch(a.getKeyIdentifier()){case"Left":f=e?1:-1;a.preventDefault();a.stopPropagation();break;case _[35]:f=e?-1:1;a.preventDefault();a.stopPropagation();break;case"Up":f=-7;a.preventDefault();a.stopPropagation();break;case"Down":f=7;a.preventDefault();a.stopPropagation();break;case _[34]:b=-1;a.preventDefault();a.stopPropagation();break;case _[36]:b=1;a.preventDefault();a.stopPropagation();break;case"Home":case"End":a.preventDefault();a.stopPropagation();break;case _[32]:if(this.getDate()!=null){this.createDispatchDataEvent("select",this.getDate())}a.preventDefault();a.stopPropagation();return}}else{if(a.isShiftPressed()){switch(a.getKeyIdentifier()){case _[34]:d=-1;a.preventDefault();a.stopPropagation();break;case _[36]:d=1;a.preventDefault();a.stopPropagation();break}}}if(f!=null||b!=null||d!=null){var c=this.getDate();if(c!=null){c=new Date(c.getTime())}if(c==null){c=new Date()}else{if(f!=null){c.setDate(c.getDate()+f)}if(b!=null){c.setMonth(c.getMonth()+b)}if(d!=null){c.setFullYear(c.getFullYear()+d)}}this.setDate(c)}},showMonth:function(b,a){if((b!=null&&b!=this.getShownMonth())||(a!=null&&a!=this.getShownYear())){if(b!=null){this.setShownMonth(b)}if(a!=null){this.setShownYear(a)}this._updateDatePane()}},_updateDatePane:function(){var x=new Date();var f=x.getFullYear();var l=x.getMonth();var D=x.getDate();var b=this.getDate();var v=(b==null)?-1:b.getFullYear();var c=(b==null)?-1:b.getMonth();var A=(b==null)?-1:b.getDate();var g=this.getShownMonth();var u=this.getShownYear();var B=this.__getWeekStart();var y=new Date(this.getShownYear(),this.getShownMonth(),1);var h=this.getShownYear();var z=rwt.widgets.base.Calendar.MONTH_NAMES[this.getShownMonth()];this._monthYearLabel.setText(z+" "+h);var m=y.getDay();var j=(1+7-m)%7;for(var r=0;r<7;r++){var q=(r+B)%7;var p=this._weekdayLabelArr[r];y=new Date(this.getShownYear(),this.getShownMonth(),j+q);var w=rwt.widgets.base.Calendar.WEEKDAY_NAMES[y.getDay()+1];p.setText(w);p.toggleState("weekend",this.__isWeekend(q))}y=new Date(u,g,1);var t=(7+m-B)%7;y.setDate(y.getDate()-t);for(var o=0;o<6;o++){this._weekLabelArr[o].setText(""+this.__getWeekInYear(y));for(var r=0;r<7;r++){var p=this._dayLabelArr[o*7+r];var h=y.getFullYear();var z=y.getMonth();var k=y.getDate();var n=this.getMinimum();var s=this.getMaximum();var a=n&&y.getTime()s.getTime();var d=(v==h&&c==z&&A==k);var C=(h==f&&z==l&&k==D);p.toggleState(_[27],d);p.toggleState("otherMonth",z!=g);p.toggleState("today",C);p.toggleState(_[128],a||e);p.setText(""+k);p.dateTime=y.getTime();y.setDate(y.getDate()+1)}}},__thursdayOfSameWeek:function(a){return new Date(a.getTime()+(3-((a.getDay()+6)%7))*86400000)},__getWeekInYear:function(a){var d=this.__thursdayOfSameWeek(a);var b=d.getFullYear();var c=this.__thursdayOfSameWeek(new Date(b,0,4));return Math.floor(1.5+(d.getTime()-c.getTime())/86400000/7)},__getWeekStart:function(){var a={MV:5,AE:6,AF:6,BH:6,DJ:6,DZ:6,EG:6,ER:6,ET:6,IQ:6,IR:6,JO:6,KE:6,KW:6,LB:6,LY:6,MA:6,OM:6,QA:6,SA:6,SD:6,SO:6,TN:6,YE:6,AS:0,AU:0,AZ:0,BW:0,CA:0,CN:0,FO:0,GE:0,GL:0,GU:0,HK:0,IE:0,IL:0,IS:0,JM:0,JP:0,KG:0,KR:0,LA:0,MH:0,MN:0,MO:0,MP:0,MT:0,NZ:0,PH:0,PK:0,SG:0,TH:0,TT:0,TW:0,UM:0,US:0,UZ:0,VI:0,ZA:0,ZW:0,MW:0,NG:0,TJ:0};var b=this.__getTerritory();return a[b]!=null?a[b]:1},__getWeekendStart:function(){var a={EG:5,IL:5,SY:5,IN:0,AE:4,BH:4,DZ:4,IQ:4,JO:4,KW:4,LB:4,LY:4,MA:4,OM:4,QA:4,SA:4,SD:4,TN:4,YE:4};var b=this.__getTerritory();return a[b]!=null?a[b]:6},__getWeekendEnd:function(){var a={AE:5,BH:5,DZ:5,IQ:5,JO:5,KW:5,LB:5,LY:5,MA:5,OM:5,QA:5,SA:5,SD:5,TN:5,YE:5,AF:5,IR:5,EG:6,IL:6,SY:6};var b=this.__getTerritory();return a[b]!=null?a[b]:0},__isWeekend:function(b){var c=this.__getWeekendStart();var a=this.__getWeekendEnd();if(a>c){return((b>=c)&&(b<=a))}else{return((b>=c)||(b<=a))}},__getTerritory:function(){return rwt.client.Client.getTerritory().toUpperCase()},_applyMinimum:function(){this._updateDatePane()},_applyMaximum:function(){this._updateDatePane()}},destruct:function(){this._disposeObjects("_lastYearBt","_lastMonthBt","_nextMonthBt","_nextYearBt","_monthYearLabel");this._disposeObjectDeep("_weekdayLabelArr",1);this._disposeObjectDeep("_dayLabelArr",1);this._disposeObjectDeep("_weekLabelArr",1)}});
rwt.qx.Class.define(_[404],{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);this.setOverflow(_[6]);this.setAppearance("coolitem");this._orientation=a;this._handle=new rwt.widgets.base.Terminator();this._handle.addState(a);this._handle.setAppearance(_[398]);this._handle.addEventListener(_[0],this._onHandleMouseDown,this);this._handle.addEventListener(_[31],this._onHandleMouseMove,this);this._handle.addEventListener(_[4],this._onHandleMouseUp,this);this.add(this._handle);this._bufferedZIndex=null;this._bufferedControlZIndex=null;this._control=null},destruct:function(){if(this._handle!=null){this._handle.removeEventListener(_[0],this._onHandleMouseDown,this);this._handle.removeEventListener(_[31],this._onHandleMouseMove,this);this._handle.removeEventListener(_[4],this._onHandleMouseUp,this);this._handle.dispose()}},statics:{DRAG_CURSOR:_[271],CONTROL_OFFSET:6},members:{setLocked:function(a){this._handle.setDisplay(!a)},setControl:function(a){if(a!=null){a.setLeft(this.getLeft()+rwt.widgets.CoolItem.CONTROL_OFFSET);a.setDisplay(true)}if(this._control!=null){this._control.setDisplay(false)}this._control=a},updateHandleBounds:function(){if(this._orientation==_[28]){this._handle.setWidth(this.getWidth())}else{this._handle.setHeight(this.getHeight())}},_applyParent:function(b,a){arguments.callee.base.call(this,b,a);if(b!=null){this.setLocked(b.getLocked());this.setDirection(b.getDirection())}},_onHandleMouseDown:function(a){this._handle.setCapture(true);this.getTopLevelWidget().setGlobalCursor(rwt.widgets.CoolItem.DRAG_CURSOR);this._initialLeft=this.getLeft();this._offsetX=a.getPageX();this._bufferedZIndex=this.getZIndex();this.setZIndex(10000000-1);if(this._control!=null){this._bufferedControlZIndex=this._control.getZIndex();this._control.setZIndex(10000000)}this.setBackgroundColor(this._findBackground())},_applyLeft:function(c,a){arguments.callee.base.call(this,c,a);if(this._control!=null){var b=c+rwt.widgets.CoolItem.CONTROL_OFFSET;this._control.setLeft(b)}},_applyWidth:function(c,a){arguments.callee.base.call(this,c,a);if(this._control!=null){var b=c-rwt.widgets.CoolItem.CONTROL_OFFSET;this._control.setWidth(b)}},_onHandleMouseMove:function(a){if(this._handle.getCapture()){this.setLeft(this._initialLeft+this._getMouseOffset(a))}},_onHandleMouseUp:function(){this._handle.setCapture(false);this.setZIndex(this._bufferedZIndex);if(this._control!=null){this._control.setZIndex(this._bufferedControlZIndex)}this.resetBackgroundColor();this.getTopLevelWidget().setGlobalCursor(null);if(!rwt.remote.EventUtil.getSuspended()){rwt.remote.Connection.getInstance().getRemoteObject(this).call("move",{left:this.getLeft()})}},_getMouseOffset:function(a){if(this.getDirection()==="rtl"){return this._offsetX-a.getPageX()}return a.getPageX()-this._offsetX},_findBackground:function(){var b=true;var a=null;var c=this.getParent();while(b&&c!=null&&a==null){if(c.getBackgroundColor){a=c.getBackgroundColor()}if(c.getParent){c=c.getParent()}else{b=false}}return a}}});
rwt.remote.HandlerRegistry.add(_[404],{factory:function(c){var d=rwt.remote.HandlerUtil.createStyleMap(c.style);var b=d.VERTICAL?_[28]:_[39];var a=new rwt.widgets.CoolItem(b);rwt.remote.HandlerUtil.setParent(a,c.parent);a.setMinWidth(0);a.setMinHeight(0);return a},destructor:rwt.remote.HandlerUtil.getWidgetDestructor(),properties:[_[89],_[173],_[72],"data"],propertyHandler:{data:rwt.remote.HandlerUtil.getControlPropertyHandler("data"),bounds:function(b,a){b.setLeft(a[0]);b.setTop(a[1]);b.setWidth(a[2]);b.setHeight(a[3]);b.updateHandleBounds()},control:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setControl(c)})}}});
rwt.qx.Class.define(_[210],{extend:rwt.widgets.base.BasicButton,construct:function(a){arguments.callee.base.call(this,a);this._alignment=a==="arrow"?"up":_[15];switch(a){case"arrow":this.addState("rwt_UP");this.setAppearance(_[408]);break;case"push":case"toggle":this.setAppearance(_[408]);break;case _[40]:this.setAppearance(_[234]);break;case _[112]:this.setAppearance(_[430])}this.initTabIndex();this._rawText=null;this._mnemonicIndex=null;this._markupEnabled=false},destruct:function(){this.setMnemonicIndex(null)},properties:{tabIndex:{refine:true,init:1}},members:{setMarkupEnabled:function(a){this._markupEnabled=a},setText:function(a){this._rawText=a;this._mnemonicIndex=null;this._applyText(false);this.dispatchSimpleEvent(_[158],this)},setMnemonicIndex:function(b){this._mnemonicIndex=b;var a=rwt.widgets.util.MnemonicHandler.getInstance();if((typeof b===_[18])&&(b>=0)){a.add(this,this._onMnemonic)}else{a.remove(this)}},getMnemonicIndex:function(){return this._mnemonicIndex},setAlignment:function(a){if(this.hasState("rwt_ARROW")){this.removeState("rwt_"+this._alignment.toUpperCase());this.addState("rwt_"+a.toUpperCase())}else{this.setHorizontalChildrenAlign(a)}this._alignment=a},setWrap:function(a){if(a){this.setFlexibleCell(2);this.setWordWrap(true)}},getToolTipTargetBounds:function(){if(this.getSelectionIndicator()){var a=parseInt(this.getCellNode(0).style.top,10);return{left:this._cachedBorderLeft+this.getPaddingLeft(),top:this._cachedBorderTop+a,width:this.getSelectionIndicator()[1],height:this.getSelectionIndicator()[2]}}else{return{left:0,top:0,width:this.getBoxWidth(),height:this.getBoxHeight()}}},computeBadgePosition:function(){return[-3,-5,"auto","auto"]},_onMnemonic:function(b){switch(b.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case _[97]:var a=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(b.charCode===a){this.setFocused(true);this.execute();b.success=true}break}},_applyText:function(c){var a=rwt.util.Encoding;if(this._rawText){var d=this._rawText;if(!this._markupEnabled){var b=c?this._mnemonicIndex:undefined;d=a.escapeText(this._rawText,b);d=a.replaceNewLines(d,_[63])}this.setCellContent(2,d)}else{this.setCellContent(2,null)}},_applyEnabled:function(a){arguments.callee.base.call(this,a);if(this._mnemonicIndex!==null&&!a){this._applyText(false)}},_afterRenderLayout:function(){if(this.getFocused()){this._showFocusIndicator()}},_ontabfocus:function(){this._showFocusIndicator()},_showFocusIndicator:function(){if(!rwt.widgets.util.FocusHandler.mouseFocus){var b=rwt.widgets.util.FocusIndicator.getInstance();var a=this.getCellNode(2)!=null?this.getCellNode(2):this.getCellNode(1);b.show(this,"Button-FocusIndicator",a)}},_visualizeBlur:function(){arguments.callee.base.call(this);rwt.widgets.util.FocusIndicator.getInstance().hide(this)},_notifySelected:function(){rwt.remote.EventUtil.notifySelected(this)}}});
rwt.remote.HandlerRegistry.add(_[210],{factory:function(c){var d=rwt.remote.HandlerUtil.createStyleMap(c.style);var b="push";if(d.CHECK){b=_[40]}else{if(d.TOGGLE){b="toggle"}else{if(d.RADIO){b=_[112]}else{if(d.ARROW){b="arrow"}}}}var a=new rwt.widgets.Button(b);a.setMarkupEnabled(c.markupEnabled===true);a.setWrap(d.WRAP);rwt.remote.HandlerUtil.addStatesForStyles(a,c.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,c.parent);rwt.remote.HandlerUtil.callWithTarget(c.parent,function(e){a.setNoRadioGroup(e.hasState(_[336]))});return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["text",_[136],_[333],_[17],_[19],_[207],"badge"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({image:function(b,a){if(a===null){b.setImage(a)}else{b.setImage.apply(b,a)}},badge:function(b,a){rwt.widgets.util.Badges.setBadge(b,a)}}),events:[_[12]],listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({}),methods:[_[86],_[91]],methodHandler:rwt.remote.HandlerUtil.extendListenerMethodHandler({}),scriptingMethods:rwt.remote.HandlerUtil.extendControlScriptingMethods({getText:function(){return this.getCellContent(2)},getSelection:function(){return this.hasState(_[27])}})});
rwt.qx.Class.define(_[470],{extend:rwt.widgets.Button,construct:function(a){arguments.callee.base.call(this,"push");this.setAppearance("file-upload");this.addEventListener("insertDom",this._layoutInputElement,this);this.addEventListener(_[115],this._onMouseOverElement,this);this._formElement=null;this._inputElement=null;this._iframe=null;this._multi=a;this._filterExtensions=null;this._cursor="";this.__onValueChange=rwt.util.Functions.bind(this._onValueChange,this);this.setEnableElementFocus(false);this._createIframeWidget()},destruct:function(){if(this._inputElement){this._inputElement.value=""}this._formElement=null;this._inputElement=null},members:{setFilterExtensions:function(a){this._filterExtensions=a.filter(function(b){return b!=null}).join();if(this._inputElement){this._inputElement.setAttribute("accept",this._filterExtensions)}},submit:function(a){if(typeof a!==_[7]){throw new Error("No url given!")}if(this._getFileNames().length===0){throw new Error("No file selected!")}if(this._formElement===null){throw new Error("Form element not created!")}this._formElement.setAttribute("action",a);this._formElement.submit()},destroy:function(){arguments.callee.base.call(this);this._iframe.destroy()},execute:function(){},_createSubElements:function(){if(this._formElement===null){arguments.callee.base.call(this);this._createFormElement();this._createInputElement()}else{this._formElement.removeChild(this._inputElement);this._getTargetNode().removeChild(this._formElement);arguments.callee.base.call(this);this._getTargetNode().appendChild(this._formElement);this._formElement.appendChild(this._inputElement)}},_createFormElement:function(){this._formElement=document.createElement("form");this._formElement.setAttribute("target",this._getFrameName());this._formElement.setAttribute("method","POST");this._formElement.setAttribute("enctype","multipart/form-data");this._getTargetNode().appendChild(this._formElement)},_createInputElement:function(){this._inputElement=document.createElement(_[56]);this._inputElement.style.position=_[11];this._inputElement.setAttribute("type","file");this._inputElement.setAttribute("name","file");this._inputElement.setAttribute("size","1");this._inputElement.setAttribute("title",rwt.client.Client.isTrident()?"":" ");if(this._multi){this._inputElement.setAttribute("multiple","multiple")}if(this._filterExtensions){this._inputElement.setAttribute("accept",this._filterExtensions)}this._inputElement.style.cursor=this._cursor;this._inputElement.onchange=this.__onValueChange;this._inputElement.style.opacity=0;this._formElement.appendChild(this._inputElement)},_createIframeWidget:function(){this._iframe=new rwt.widgets.base.Iframe();this._iframe.setSource("about:blank");this._iframe.setVisibility(false);this._iframe.setWidth(0);this._iframe.setHeight(0);this._iframe.setFrameName(this._getFrameName());this._iframe.addToDocument()},_onValueChange:function(){try{var a=this._formatFileNames(this._getFileNames());if(a.length>0){rwt.remote.Connection.getInstance().getRemoteObject(this).set("fileNames",a);this._notifySelected()}}catch(b){rwt.runtime.ErrorHandler.processJavaScriptError(b)}},_getFileNames:function(){var c=this._inputElement;var a=c.value?[c.value]:[];if(c.files){for(var b=0;b100){var b="Failed to force input-element width.";throw new Error(b)}}var d=this._inputElement.offsetWidth;var f=a-d+g;this._inputElement.style.left=f+"px"},_layoutInputElementVertical:function(b){var a=this.getBoxHeight();this._inputElement.style.height=(a+b*2)+"px";this._inputElement.style.top=(b*-1)+"px"},setStyleProperty:function(b,a){if(b===_[116]){this._cursor=a;if(this._inputElement!=null){this._inputElement.style.cursor=a}}else{arguments.callee.base.call(this,b,a)}},_applyEnabled:function(b,a){arguments.callee.base.call(this,b,a);if(this._inputElement){this._inputElement.style.display=b?"":"none";this._layoutInputElement()}},_afterAppear:function(){arguments.callee.base.call(this);this._layoutInputElement()},_onMouseOver:function(a){if(a.getDomTarget()===this._inputElement){arguments.callee.base.call(this,a)}},_onMouseOverElement:function(a){if(a.getDomTarget()===this._inputElement){this._onMouseOver(a)}},_onMouseDown:function(a){if(a.getDomTarget()===this._inputElement){arguments.callee.base.call(this,a)}if(rwt.client.Client.getBrowser()==="chrome"){this._visualizeBlur()}},_onMouseUp:function(a){if(a.getDomTarget()===this._inputElement||this.hasState(_[49])){arguments.callee.base.call(this,a)}},_onFocus:function(a){arguments.callee.base.call(this,a);this._inputElement.focus()},_onKeyDown:rwt.util.Functions.returnTrue,_onKeyUp:rwt.util.Functions.returnTrue,_showFocusIndicator:function(){var b=rwt.widgets.util.FocusIndicator.getInstance();var a=this.getCellNode(2)!=null?this.getCellNode(2):this.getCellNode(1);b.show(this,"FileUpload-FocusIndicator",a)},_formatFileNames:function(b){var a=[];for(var c=0;cthis._maximum){b=this._maximum}this.setSelection(b);if(this._readyToSendChanges){this._readyToSendChanges=false;rwt.client.Timer.once(this._sendChanges,this,rwt.widgets.Slider.SEND_DELAY)}}}},_onMouseWheel:function(a){if(this.getFocused()){arguments.callee.base.call(this,a);if(this._readyToSendChanges){this._readyToSendChanges=false;rwt.client.Timer.once(this._sendChanges,this,500)}}},_scheduleSendChanges:function(){if(!rwt.remote.EventUtil.getSuspended()){if(!this._requestScheduled){this._requestScheduled=true;rwt.client.Timer.once(this._sendChanges,this,rwt.widgets.Slider.SEND_DELAY)}}},_sendChanges:function(){var a=rwt.remote.Connection.getInstance().getRemoteObject(this);a.set(_[19],this._selection);rwt.remote.EventUtil.notifySelected(this);this._requestScheduled=false}}});
rwt.remote.HandlerRegistry.add(_[306],{factory:function(b){var c=b.style.indexOf(_[327])!=-1;var a=new rwt.widgets.Slider(c);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),properties:rwt.remote.HandlerUtil.extendControlProperties([_[216],_[188],_[19],_[345],_[360],"thumb"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),events:[_[12]],listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({}),methods:[_[86],_[91]],methodHandler:rwt.remote.HandlerUtil.extendListenerMethodHandler({}),scriptingMethods:rwt.remote.HandlerUtil.extendControlScriptingMethods({getSelection:function(){return this._selection},getMaximum:function(){return this._maximum},getMinimum:function(){return this._minimum}})});
rwt.qx.Class.define(_[302],{extend:rwt.widgets.base.Spinner,construct:function(){arguments.callee.base.call(this);this.setWrap(false);this._textfield.setFocused=function(){};this._textfield.addEventListener(_[74],this._onChangeValue,this);this._textfield.addEventListener(_[3],this._onChangeValue,this);this._textfield.addEventListener("blur",this._onChangeValue,this);this._textfield.addEventListener(_[9],this._onKeyDown,this);this._textfield.setTabIndex(null);this.addEventListener(_[170],this._onChangeEnabled,this);this.addEventListener(_[162],this._onFocusOut,this);this._checkValue=this.__checkValueWithDigits},destruct:function(){this._textfield.removeEventListener(_[74],this._onChangeValue,this);this._textfield.removeEventListener(_[3],this._onChangeValue,this);this._textfield.removeEventListener("blur",this._onChangeValue,this);this._textfield.removeEventListener(_[9],this._onKeyDown,this);this.removeEventListener(_[170],this._onChangeEnabled,this);this.removeEventListener(_[162],this._onFocusOut,this)},properties:{digits:{check:_[25],init:0,apply:"_applyDigits"},decimalSeparator:{check:_[51],init:".",apply:"_applyDecimalSeparator"}},members:{_applyTextColor:function(b,a){arguments.callee.base.call(this,b,a);this._textfield.setTextColor(b)},setFont:function(a){this._textfield.setFont(a)},setMaxLength:function(a){this._textfield.setMaxLength(a)},setMinMaxSelection:function(b,a,c){this.setMin(Math.min(b,this.getMin()));this.setMax(Math.max(a,this.getMax()));this.setValue(c);this.setMin(b);this.setMax(a)},addState:function(a){arguments.callee.base.call(this,a);if(a===_[122]){this._upbutton.addState(a);this._downbutton.addState(a);this._textfield.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a===_[122]){this._upbutton.removeState(a);this._downbutton.removeState(a);this._textfield.removeState(a)}},_applyDirection:function(a){arguments.callee.base.call(this,a);this.setReverseChildrenOrder(a==="rtl");this.setHorizontalChildrenAlign(a==="rtl"?_[2]:"left")},_applyCursor:function(b,a){arguments.callee.base.call(this,b,a);if(b){this._upbutton.setCursor(b);this._downbutton.setCursor(b);this._textfield.setCursor(b)}else{this._upbutton.resetCursor();this._downbutton.resetCursor();this._textfield.resetCursor()}},_visualizeFocus:function(){this._textfield._visualizeFocus();if(this._textfield.isCreated()){this._textfield.selectAll()}this.addState(_[79])},_visualizeBlur:function(){this._textfield._setSelectionLength(0);this._textfield._visualizeBlur();this.removeState(_[79])},_oninput:function(){this._suspendTextFieldUpdate=true;this._checkValue(true,false);this._suspendTextFieldUpdate=false},_onChangeValue:function(){if(!rwt.remote.EventUtil.getSuspended()){var a=rwt.remote.Connection.getInstance();var b=a.getRemoteObject(this);b.set(_[19],this.getManager().getValue());if(b.isListening(_[12])||b.isListening(_[105])){a.onNextSend(this._onSend,this);a.sendDelayed(500)}}},_onChangeEnabled:function(a){var b=a.getValue();this._upbutton.setEnabled(b&&this.getValue()this.getMin())},_onKeyDown:function(a){if(a.getKeyIdentifier()==_[32]&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isCtrlPressed()&&!a.isMetaPressed()){a.stopPropagation();rwt.remote.EventUtil.notifyDefaultSelected(this)}},_onmousewheel:function(a){if(this.getFocused()){arguments.callee.base.call(this,a)}},_onSend:function(){rwt.remote.EventUtil.notifySelected(this);if(!this.isDisposed()){rwt.remote.Connection.getInstance().getRemoteObject(this).notify(_[105],null,true)}},_applyDigits:function(){var a=this.getManager().getValue();if(this.getDigits()>0){this._textfield.setValue(this._format(a))}else{this._textfield.setValue(String(a))}},_applyDecimalSeparator:function(){var a=this.getManager().getValue();if(this.getDigits()>0){this._textfield.setValue(this._format(a))}},_format:function(d){var c=this.getDigits();var f=d/Math.pow(10,c);var a=f.toFixed(c);var e=this.getDecimalSeparator();if(e!="."){var b=rwt.util.Encoding.escapeRegexpChars(".");a=a.replace(new RegExp(b),e)}return a},_limit:function(c){var a=c;var b=this.getDigits();if(b>0){a=a*Math.pow(10,b)}a=Math.round(a);if(a>this.getMax()){a=this.getMax()}if(a0&&b==c)){arguments.callee.base.call(this,a)}},_onchange:function(){var a=this.getManager().getValue();if(!this._suspendTextFieldUpdate){if(this.getDigits()>0){this._textfield.setValue(this._format(a))}else{this._textfield.setValue(String(a))}}if(a==this.getMin()&&!this.getWrap()){this._downbutton.removeState(_[13]);this._downbutton.setEnabled(false);this._timer.stop()}else{this._downbutton.resetEnabled()}if(a==this.getMax()&&!this.getWrap()){this._upbutton.removeState(_[13]);this._upbutton.setEnabled(false);this._timer.stop()}else{this._upbutton.resetEnabled()}this.createDispatchDataEvent(_[70],a)},__checkValueWithDigits:function(g,b){var k=this._textfield.getInputElement();if(k){if(k.value===""&&!g){this.resetValue()}else{var i=k.value;var e=i;var d=this.getDecimalSeparator();if(this.getDigits()>0&&d!="."){d=rwt.util.Encoding.escapeRegexpChars(d);e=i.replace(new RegExp(d),".")}var j=parseFloat(e);var f=this._limit(j);var a=this.getManager().getValue();var h=f;if(isNaN(j)||j!=f||j!=e){if(b){this._textfield.setValue(this._last_value)}else{if(isNaN(f)){h=a}}}if(!b){var c=String(h);if(this.getDigits()>0){c=this._format(h)}if(h===a&&i!==c&&!this._suspendTextFieldUpdate){this._textfield.setValue(c)}this.getManager().setValue(h)}}}}}});
rwt.remote.HandlerRegistry.add(_[302],{factory:function(b){var a=new rwt.widgets.Spinner();rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,b.parent);var c=rwt.remote.HandlerUtil.createStyleMap(b.style);if(c.READ_ONLY){a.setEditable(false)}if(c.WRAP){a.setWrap(true)}return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties([_[216],_[188],_[19],"digits",_[345],_[360],_[348],"decimalSeparator"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({minimum:function(c,b){var a=c.getMax();if(b>a){c.setMax(b+1)}c.setMin(b)},maximum:function(b,a){b.setMax(a)},selection:function(b,a){b.setValue(a)},increment:function(b,a){b.setIncrementAmount(a);b.setWheelIncrementAmount(a)},pageIncrement:function(b,a){b.setPageIncrementAmount(a)},textLimit:function(b,a){b.setMaxLength(a)}}),events:[_[12],_[48],_[105]],listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({}),methods:[_[86],_[91]],methodHandler:rwt.remote.HandlerUtil.extendListenerMethodHandler({}),scriptingMethods:rwt.remote.HandlerUtil.extendControlScriptingMethods({getSelection:function(){return this.getValue()},getText:function(){return this._textfield.getValue()},getMaximum:function(){return this.getMax()},getMinimum:function(){return this.getMin()}})});
rwt.qx.Class.define(_[452],{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);this.setOverflow(_[6]);this._short=rwt.util.Strings.contains(a,"short");this._medium=rwt.util.Strings.contains(a,"medium");this._long=rwt.util.Strings.contains(a,"long");this.addEventListener(_[3],this._onKeyPress,this);this.addEventListener(_[33],this._onKeyUp,this);this.addEventListener(_[37],this._onMouseWheel,this);this.addEventListener(_[61],this._onFocusIn,this);this.addEventListener("blur",this._onFocusOut,this);this._timePane=new rwt.widgets.base.Parent();this._timePane.setLeft(0);this._timePane.setHeight("100%");this.add(this._timePane);this._hoursTextField=new rwt.widgets.base.Label("00");this._hoursTextField.setAppearance(_[142]);this._hoursTextField.setUserData(_[137],2);this._hoursTextField.addEventListener(_[0],this._onTextFieldMouseDown,this);this._timePane.add(this._hoursTextField);this._separator3=new rwt.widgets.base.Label(":");this._separator3.setAppearance(_[215]);this._timePane.add(this._separator3);this._minutesTextField=new rwt.widgets.base.Label("00");this._minutesTextField.setAppearance(_[142]);this._minutesTextField.setUserData(_[137],2);this._minutesTextField.addEventListener(_[0],this._onTextFieldMouseDown,this);this._timePane.add(this._minutesTextField);this._separator4=new rwt.widgets.base.Label(":");this._separator4.setAppearance(_[215]);if(this._medium||this._long){this._timePane.add(this._separator4)}this._secondsTextField=new rwt.widgets.base.Label("00");this._secondsTextField.setAppearance(_[142]);this._secondsTextField.setUserData(_[137],2);this._secondsTextField.addEventListener(_[0],this._onTextFieldMouseDown,this);if(this._medium||this._long){this._timePane.add(this._secondsTextField)}this._spinner=this._createSpinner();this.add(this._spinner);this._focusedTextField=this._hoursTextField;this.setAppearance("datetime-time")},destruct:function(){this._disposeObjects("_timePane","_hoursTextField","_minutesTextField","_secondsTextField",_[487],"_spinner","_separator3","_separator4")},members:{_getSubWidgets:function(){return[this._hoursTextField,this._minutesTextField,this._secondsTextField,this._spinner,this._separator3,this._separator4]},_applyDirection:function(a){arguments.callee.base.call(this,a);this.getLayoutImpl().setMirror(a==="rtl");this._spinner._upbutton.setDirection(a);this._spinner._downbutton.setDirection(a)},_layoutX:function(){this._timePane.setWidth(this.getWidth()-this._spinner.getWidth())},_createSpinner:function(){var a=new rwt.widgets.base.Spinner();a.set({wrap:true,border:null,backgroundColor:null,selectTextOnInteract:false});a.setMin(0);a.setMax(23);a.setValue(0);a.addEventListener(_[70],this._onSpinnerChange,this);a.addEventListener(_[52],this._layoutX,this);a._textfield.setTabIndex(null);a._textfield.setFocused=rwt.util.Functions.returnTrue;a._textfield.setDisplay(false);a._upbutton.setAppearance(_[523]);a._downbutton.setAppearance(_[472]);a.removeEventListener(_[3],a._onkeypress,a);a.removeEventListener(_[9],a._onkeydown,a);a.removeEventListener(_[33],a._onkeyup,a);a.removeEventListener(_[37],a._onmousewheel,a);return a},_applyFont:function(b,a){arguments.callee.base.call(this,b,a);this._hoursTextField.setFont(b);this._minutesTextField.setFont(b);this._secondsTextField.setFont(b);this._separator3.setFont(b);this._separator4.setFont(b)},_onFocusIn:function(){this._focusedTextField.addState(_[27]);this._initialEditing=true},_onFocusOut:function(){this._focusedTextField.removeState(_[27])},_onTextFieldMouseDown:function(a){this._setFocusedTextField(a.getTarget())},_setFocusedTextField:function(a){if(this._focusedTextField!==a){this._focusedTextField.removeState(_[27]);this._focusedTextField=null;this._applySpinnerValue(a);this._focusedTextField=a;this._focusedTextField.addState(_[27]);this._initialEditing=true}},_applySpinnerValue:function(a){if(a===this._hoursTextField){this._applyHourSpinnerValue()}else{if(a===this._minutesTextField){this._applyMinuteSpinnerValue()}else{if(a===this._secondsTextField){this._applySecondSpinnerValue()}}}},_applySecondSpinnerValue:function(){this._spinner.setMin(0);this._spinner.setMax(59);var a=parseInt(this._removeLeadingZero(this._hoursTextField.getText()));var c=parseInt(this._removeLeadingZero(this._minutesTextField.getText()));if(this._minimum&&this._minimum.getHours()===a&&this._minimum.getMinutes()===c){this._spinner.setMin(this._minimum.getSeconds())}if(this._maximum&&this._maximum.getHours()===a&&this._maximum.getMinutes()===c){this._spinner.setMax(this._maximum.getSeconds())}var b=this._removeLeadingZero(this._secondsTextField.getText());this._spinner.setValue(parseInt(b,10))},_applyMinuteSpinnerValue:function(){this._spinner.setMin(0);this._spinner.setMax(59);var a=parseInt(this._removeLeadingZero(this._hoursTextField.getText()));if(this._minimum&&this._minimum.getHours()===a){this._spinner.setMin(this._minimum.getMinutes())}if(this._maximum&&this._maximum.getHours()===a){this._spinner.setMax(this._maximum.getMinutes())}var b=this._removeLeadingZero(this._minutesTextField.getText());this._spinner.setValue(parseInt(b,10))},_applyHourSpinnerValue:function(){this._spinner.setMin(0);this._spinner.setMax(23);if(this._minimum){this._spinner.setMin(this._minimum.getHours())}if(this._maximum){this._spinner.setMax(this._maximum.getHours())}var a=this._removeLeadingZero(this._hoursTextField.getText());this._spinner.setValue(parseInt(a,10))},_onSpinnerChange:function(){if(this._focusedTextField!=null){var a=this._focusedTextField.getText();var b=this._addLeadingZero(this._spinner.getValue());this._focusedTextField.setText(b);if(a!=b){this._sendChanges()}this._applyLimitRestriction()}},_applyLimitRestriction:function(){var a=parseInt(this._removeLeadingZero(this._hoursTextField.getText()));var d=parseInt(this._removeLeadingZero(this._minutesTextField.getText()));var c=parseInt(this._removeLeadingZero(this._secondsTextField.getText()));var b=new Date(1970,0,1,a,d,c);if(this._minimum&&b.getTime()this._maximum.getTime()){this.setHours(this._maximum.getHours());this.setMinutes(this._maximum.getMinutes());this.setSeconds(this._maximum.getSeconds())}},_onKeyPress:function(a){if(a.getModifiers()===0){switch(a.getKeyIdentifier()){case _[32]:this._handleKeyEnter(a);break;case"Left":this._handleKeyLeft(a);break;case _[35]:this._handleKeyRight(a);break;case"Up":this._handleKeyUp(a);break;case"Down":this._handleKeyDown(a);break;case _[34]:case _[36]:case"Home":case"End":this._stopEvent(a);break}}},_onKeyUp:function(a){if(a.getModifiers()===0){switch(a.getKeyIdentifier()){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":this._handleKeyNumber(a);break;case"Home":this._handleKeyHome(a);break;case"End":this._handleKeyEnd(a);break}}},_handleKeyEnter:function(){rwt.remote.EventUtil.notifyDefaultSelected(this)},_handleKeyLeft:function(a){if(this._focusedTextField===this._hoursTextField){if(this._short){this._setFocusedTextField(this._minutesTextField)}else{this._setFocusedTextField(this._secondsTextField)}}else{if(this._focusedTextField===this._minutesTextField){this._setFocusedTextField(this._hoursTextField)}else{if(this._focusedTextField===this._secondsTextField){this._setFocusedTextField(this._minutesTextField)}}}this._stopEvent(a)},_handleKeyRight:function(a){if(this._focusedTextField===this._hoursTextField){this._setFocusedTextField(this._minutesTextField)}else{if(this._focusedTextField===this._minutesTextField){if(this._short){this._setFocusedTextField(this._hoursTextField)}else{this._setFocusedTextField(this._secondsTextField)}}else{if(this._focusedTextField===this._secondsTextField){this._setFocusedTextField(this._hoursTextField)}}}this._stopEvent(a)},_handleKeyDown:function(a){var b=this._spinner.getValue();if(b==this._spinner.getMin()){this._spinner.setValue(this._spinner.getMax())}else{this._spinner.setValue(b-1)}this._stopEvent(a)},_handleKeyUp:function(a){var b=this._spinner.getValue();if(b==this._spinner.getMax()){this._spinner.setValue(this._spinner.getMin())}else{this._spinner.setValue(b+1)}this._stopEvent(a)},_handleKeyNumber:function(c){var a=c.getKeyIdentifier();var e=this._removeLeadingZero(this._focusedTextField.getText());var d=this._focusedTextField.getUserData(_[137]);var f=e.length=this._spinner.getMin()&&b<=this._spinner.getMax()){this._spinner.setValue(b)}else{b=parseInt(a,10);if(b>=this._spinner.getMin()&&b<=this._spinner.getMax()){this._spinner.setValue(b)}}this._initialEditing=false;this._stopEvent(c)},_handleKeyHome:function(a){this._spinner.setValue(this._spinner.getMin());this._initialEditing=true;this._stopEvent(a)},_handleKeyEnd:function(a){this._spinner.setValue(this._spinner.getMax());this._initialEditing=true;this._stopEvent(a)},_onMouseWheel:function(a){if(this.getFocused()){this._stopEvent(a);this._spinner._onmousewheel(a)}},_stopEvent:function(a){a.preventDefault();a.stopPropagation()},_addLeadingZero:function(a){return a<10?"0"+a:""+a},_removeLeadingZero:function(c){var a=c;if(c.length==2){var b=c.substring(0,1);if(b=="0"){a=c.substring(1)}}return a},_sendChanges:function(){if(!rwt.remote.EventUtil.getSuspended()){var b=rwt.remote.Connection.getInstance();var d=b.getRemoteObject(this);var a=parseInt(this._removeLeadingZero(this._hoursTextField.getText()),10);d.set("hours",a);var c=parseInt(this._removeLeadingZero(this._minutesTextField.getText()),10);d.set("minutes",c);var e=parseInt(this._removeLeadingZero(this._secondsTextField.getText()),10);d.set("seconds",e);if(d.isListening(_[12])){b.onNextSend(this._onSend,this);b.sendDelayed(200)}}},_onSend:function(){rwt.remote.EventUtil.notifySelected(this)},setHours:function(a){this._hoursTextField.setText(this._addLeadingZero(a));if(this._focusedTextField===this._hoursTextField){this._spinner.setValue(a)}},setMinutes:function(a){this._minutesTextField.setText(this._addLeadingZero(a));if(this._focusedTextField===this._minutesTextField){this._spinner.setValue(a)}},setSeconds:function(a){this._secondsTextField.setText(this._addLeadingZero(a));if(this._focusedTextField===this._secondsTextField){this._spinner.setValue(a)}},setMinimum:function(a){this._minimum=a===null?null:new Date(a);if(this._minimum){this._minimum.setYear(1970);this._minimum.setMonth(0);this._minimum.setDate(1)}this._applyLimitRestriction()},setMaximum:function(a){this._maximum=a===null?null:new Date(a);if(this._maximum){this._maximum.setYear(1970);this._maximum.setMonth(0);this._maximum.setDate(1)}this._applyLimitRestriction()},setBounds:function(c,b,f,d,a){var e;switch(c){case 7:e=this._spinner;break;case 8:e=this._hoursTextField;break;case 9:e=this._minutesTextField;break;case 10:e=this._secondsTextField;break;case 11:e=this._separator3;break;case 12:e=this._separator4;break}e.set({left:b,top:f,width:d,height:a})}}});
rwt.qx.Class.define(_[418],{extend:rwt.widgets.base.Parent,construct:function(f,e,b,d,g,c){arguments.callee.base.call(this);this.setOverflow(_[6]);this._short=rwt.util.Strings.contains(f,"short");this._medium=rwt.util.Strings.contains(f,"medium");this._long=rwt.util.Strings.contains(f,"long");this._drop_down=rwt.util.Strings.contains(f,"drop_down");this._internalDateChanged=false;this._weekday=b;this._monthname=e;this._datePattern=c;this.addEventListener(_[3],this._onKeyPress,this);this.addEventListener(_[33],this._onKeyUp,this);this.addEventListener(_[37],this._onMouseWheel,this);this.addEventListener(_[61],this._onFocusIn,this);this.addEventListener("blur",this._onFocusOut,this);this._datePane=new rwt.widgets.base.Parent();this._datePane.setLeft(0);this._datePane.setHeight("100%");this.add(this._datePane);this._weekdayTextField=new rwt.widgets.base.Label();this._weekdayTextField.setAppearance(_[142]);if(this._long){this._datePane.add(this._weekdayTextField)}this._separator0=new rwt.widgets.base.Label(",");this._separator0.setAppearance(_[215]);if(this._long){this._datePane.add(this._separator0)}this._monthTextField=new rwt.widgets.base.Label();this._monthTextField.setAppearance(_[142]);this._monthTextField.setTextAlign(this._medium?_[2]:_[15]);this._monthInt=1;if(this._medium){this._monthTextField.setText("1")}else{this._monthTextField.setText(this._monthname[this._monthInt-1])}this._monthTextField.addEventListener(_[0],this._onTextFieldMouseDown,this);this._datePane.add(this._monthTextField);this._separator1=new rwt.widgets.base.Label(g);this._separator1.setAppearance(_[215]);if(this._medium){this._datePane.add(this._separator1)}this._dayTextField=new rwt.widgets.base.Label("1");this._dayTextField.setAppearance(_[142]);this._dayTextField.setUserData(_[137],2);this._dayTextField.setTextAlign(_[2]);this._dayTextField.addEventListener(_[0],this._onTextFieldMouseDown,this);if(!this._short){this._datePane.add(this._dayTextField)}this._separator2=new rwt.widgets.base.Label(",");this._separator2.setAppearance(_[215]);if(this._medium){this._separator2.setText(g)}this._datePane.add(this._separator2);this._yearTextField=new rwt.widgets.base.Label("1970");this._yearTextField.setAppearance(_[142]);this._yearTextField.setUserData(_[137],4);this._yearTextField.setTextAlign(_[2]);this._lastValidYear=1970;this._yearTextField.addEventListener(_[0],this._onTextFieldMouseDown,this);this._datePane.add(this._yearTextField);this._spinner=this._createSpinner();this._spinner.setDisplay(!this._drop_down);this.add(this._spinner);this._dropped=false;this._dropDownButton=null;this._calendar=null;if(this._drop_down){var a=rwt.widgets.base.ClientDocument.getInstance();a.addEventListener(_[346],this._onWindowBlur,this);this.addEventListener(_[38],this._onAppear,this);this.addEventListener(_[261],this._onChangeVisibility,this);this.addEventListener(_[0],this._onMouseDown,this);this.addEventListener(_[23],this._onMouseClick,this);this.addEventListener(_[10],this._onMouseOver,this);this.addEventListener(_[16],this._onMouseOut,this);this._dropDownButton=new rwt.widgets.base.BasicButton("push",true);this._dropDownButton.setAppearance("datetime-drop-down-button");this._dropDownButton.setTabIndex(null);this._dropDownButton.setAllowStretchY(true);this.add(this._dropDownButton);rwt.widgets.base.Calendar.MONTH_NAMES=e;rwt.widgets.base.Calendar.WEEKDAY_NAMES=d;this._calendar=new rwt.widgets.base.Calendar();this._calendar.setAppearance("datetime-drop-down-calendar");this._calendar.setDate(new Date(70,0,1));this._calendar.setTabIndex(null);this._calendar.setVisibility(false);this._calendar.addEventListener(_[369],this._onCalendarDateChange,this);this._calendar._lastYearBt.setToolTipText(null);this._calendar._lastMonthBt.setToolTipText(null);this._calendar._nextMonthBt.setToolTipText(null);this._calendar._nextYearBt.setToolTipText(null)}this._focusedTextField=this._monthTextField;this._setWeekday();this.setAppearance("datetime-date")},destruct:function(){this._disposeObjects("_datePane","_weekdayTextField","_monthTextField","_dayTextField","_yearTextField",_[487],"_spinner","_separator0","_separator1","_separator2");if(this._drop_down){var a=rwt.widgets.base.ClientDocument.getInstance();a.removeEventListener(_[346],this._onWindowBlur,this);this._dropDownButton.dispose();this._dropDownButton=null;if(!rwt.qx.Object.inGlobalDispose()){this._calendar.setParent(null)}this._calendar.dispose();this._calendar=null}},members:{_getSubWidgets:function(){var a=[this._weekdayTextField,this._monthTextField,this._dayTextField,this._yearTextField,this._spinner,this._separator0,this._separator1,this._separator2];if(this._drop_down){a.push(this._dropDownButton,this._calendar)}return a},_applyDirection:function(a){arguments.callee.base.call(this,a);this.getLayoutImpl().setMirror(a==="rtl");this._spinner._upbutton.setDirection(a);this._spinner._downbutton.setDirection(a);if(this._drop_down){this._dropDownButton.setDirection(a);this._calendar.setDirection(a)}},_layoutX:function(){this._datePane.setWidth(this.getWidth()-this._spinner.getWidth())},_createSpinner:function(){var a=new rwt.widgets.base.Spinner();a.set({wrap:true,border:null,backgroundColor:null,selectTextOnInteract:false});a.setMin(1);a.setMax(12);a.setValue(this._monthInt);a.addEventListener(_[70],this._onSpinnerChange,this);a.addEventListener(_[52],this._layoutX,this);a._textfield.setTabIndex(null);a._textfield.setFocused=rwt.util.Functions.returnTrue;a._textfield.setDisplay(false);a._upbutton.setAppearance(_[523]);a._downbutton.setAppearance(_[472]);a.removeEventListener(_[3],a._onkeypress,a);a.removeEventListener(_[9],a._onkeydown,a);a.removeEventListener(_[33],a._onkeyup,a);a.removeEventListener(_[37],a._onmousewheel,a);return a},_applyFont:function(b,a){arguments.callee.base.call(this,b,a);this._weekdayTextField.setFont(b);this._dayTextField.setFont(b);this._monthTextField.setFont(b);this._yearTextField.setFont(b);this._separator0.setFont(b);this._separator1.setFont(b);this._separator2.setFont(b)},_onFocusIn:function(){this._focusedTextField.addState(_[27]);this._initialEditing=true},_onFocusOut:function(){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}this._focusedTextField.removeState(_[27]);this._hideCalendar()},_onTextFieldMouseDown:function(a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}this._setFocusedTextField(a.getTarget())},_setFocusedTextField:function(a){if(this._focusedTextField!==a){this._focusedTextField.removeState(_[27]);this._focusedTextField=null;this._applySpinnerValue(a);this._focusedTextField=a;this._focusedTextField.addState(_[27]);this._initialEditing=true}},_applySpinnerValue:function(a){if(a===this._dayTextField){var b=parseInt(this._removeLeadingZero(this._dayTextField.getText()),10);this._applyDaySpinnerValue(b)}else{if(a===this._monthTextField){this._applyMonthSpinnerValue(this._monthInt)}else{if(a===this._yearTextField){this._applyYearSpinnerValue(this._lastValidYear)}}}},_applyDaySpinnerValue:function(a){this._spinner.setMin(1);this._spinner.setMax(this._getDaysInMonth());if(this._minimum&&this._minimum.getFullYear()===this._lastValidYear&&this._minimum.getMonth()===this._monthInt-1){this._spinner.setMin(this._minimum.getDate())}if(this._maximum&&this._maximum.getFullYear()===this._lastValidYear&&this._maximum.getMonth()===this._monthInt-1){this._spinner.setMax(this._maximum.getDate())}this._spinner.setValue(a)},_applyMonthSpinnerValue:function(a){this._spinner.setMin(1);this._spinner.setMax(12);if(this._minimum&&this._minimum.getFullYear()===this._lastValidYear){this._spinner.setMin(this._minimum.getMonth()+1)}if(this._maximum&&this._maximum.getFullYear()===this._lastValidYear){this._spinner.setMax(this._maximum.getMonth()+1)}this._spinner.setValue(a)},_applyYearSpinnerValue:function(a){this._spinner.setMax(9999);this._spinner.setMin(1752);if(this._minimum){this._spinner.setMin(this._minimum.getFullYear())}if(this._maximum){this._spinner.setMax(this._maximum.getFullYear())}this._spinner.setValue(a)},_onSpinnerChange:function(){if(this._focusedTextField!=null){var a=this._focusedTextField.getText();if(this._focusedTextField===this._monthTextField){this._monthInt=this._spinner.getValue();if(this._medium){this._focusedTextField.setText(this._addLeadingZero(this._monthInt))}else{this._focusedTextField.setText(this._monthname[this._monthInt-1])}}else{if(this._focusedTextField===this._yearTextField){this._lastValidYear=this._spinner.getValue();this._focusedTextField.setText(""+this._spinner.getValue())}else{this._focusedTextField.setText(this._addLeadingZero(this._spinner.getValue()))}}if(this._focusedTextField==this._monthTextField||this._focusedTextField==this._yearTextField){var b=this._dayTextField.getText();if(b>this._getDaysInMonth()){this._dayTextField.setText(""+this._getDaysInMonth())}}this._setWeekday();var c=this._focusedTextField.getText();if(a!=c){this._sendChanges()}this._applyLimitRestriction()}},_applyLimitRestriction:function(){var a=parseInt(this._removeLeadingZero(this._dayTextField.getText()));var b=new Date(this._lastValidYear,this._monthInt-1,a);if(this._minimum&&b.getTime()this._maximum.getTime()){this.setYear(this._maximum.getFullYear());this.setMonth(this._maximum.getMonth());this.setDay(this._maximum.getDate())}},_onKeyPress:function(b){var a=b.getKeyIdentifier();if(this._drop_down&&(a==="Up"||a==="Down")&&b.isAltPressed()){this._toggleCalendarVisibility()}else{if(this._dropped){this._calendar._onkeypress(b);if(b.getModifiers()===0){if(a===_[32]){this._hideCalendar();this._handleKeyEnter(b)}else{if(a===_[107]||a===_[111]){this._hideCalendar()}}}}else{if(b.getModifiers()===0){switch(a){case _[32]:this._handleKeyEnter(b);break;case"Left":this._handleKeyLeft(b);break;case _[35]:this._handleKeyRight(b);break;case"Up":this._handleKeyUp(b);break;case"Down":this._handleKeyDown(b);break;case _[34]:case _[36]:case"Home":case"End":this._stopEvent(b);break}}}}},_onKeyUp:function(a){if(!this._dropped&&a.getModifiers()===0){switch(a.getKeyIdentifier()){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":this._handleKeyNumber(a);break;case"Home":this._handleKeyHome(a);break;case"End":this._handleKeyEnd(a);break}}},_handleKeyEnter:function(){rwt.remote.EventUtil.notifyDefaultSelected(this)},_handleKeyLeft:function(a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}if(this._datePattern=="MDY"){this._rollLeft(this._monthTextField,this._dayTextField,this._yearTextField)}else{if(this._datePattern=="DMY"){this._rollLeft(this._dayTextField,this._monthTextField,this._yearTextField)}else{if(this._medium){this._rollLeft(this._yearTextField,this._monthTextField,this._dayTextField)}else{this._rollLeft(this._monthTextField,this._dayTextField,this._yearTextField)}}}this._stopEvent(a)},_handleKeyRight:function(a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}if(this._datePattern=="MDY"){this._rollRight(this._monthTextField,this._dayTextField,this._yearTextField)}else{if(this._datePattern=="DMY"){this._rollRight(this._dayTextField,this._monthTextField,this._yearTextField)}else{if(this._medium){this._rollRight(this._yearTextField,this._monthTextField,this._dayTextField)}else{this._rollRight(this._monthTextField,this._dayTextField,this._yearTextField)}}}this._stopEvent(a)},_rollRight:function(c,b,a){if(this._focusedTextField===c){if(b.isSeeable()){this._setFocusedTextField(b)}else{this._setFocusedTextField(a)}}else{if(this._focusedTextField===b){if(a.isSeeable()){this._setFocusedTextField(a)}else{this._setFocusedTextField(c)}}else{if(this._focusedTextField===a){if(c.isSeeable()){this._setFocusedTextField(c)}else{this._setFocusedTextField(b)}}}}},_rollLeft:function(c,b,a){if(this._focusedTextField===c){if(a.isSeeable()){this._setFocusedTextField(a)}else{this._setFocusedTextField(b)}}else{if(this._focusedTextField===b){if(c.isSeeable()){this._setFocusedTextField(c)}else{this._setFocusedTextField(a)}}else{if(this._focusedTextField===a){if(b.isSeeable()){this._setFocusedTextField(b)}else{this._setFocusedTextField(c)}}}}},_handleKeyDown:function(a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}var b=this._spinner.getValue();if(b==this._spinner.getMin()){this._spinner.setValue(this._spinner.getMax())}else{this._spinner.setValue(b-1)}this._stopEvent(a)},_handleKeyUp:function(a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}var b=this._spinner.getValue();if(b==this._spinner.getMax()){this._spinner.setValue(this._spinner.getMin())}else{this._spinner.setValue(b+1)}this._stopEvent(a)},_handleKeyNumber:function(c){var a=c.getKeyIdentifier();var e=this._removeLeadingZero(this._focusedTextField.getText());var d=this._focusedTextField.getUserData(_[137]);if(this._focusedTextField===this._monthTextField){e=""+this._monthInt;d=2}var f=e.length=this._spinner.getMin()&&b<=this._spinner.getMax()){this._spinner.setValue(b)}else{b=parseInt(a,10);if(b>=this._spinner.getMin()&&b<=this._spinner.getMax()){this._spinner.setValue(b)}}}else{if(this._focusedTextField==this._yearTextField){this._focusedTextField.setText(f);if(f.length==4){this._checkAndApplyYearValue()}}}this._initialEditing=false;this._stopEvent(c)},_handleKeyHome:function(a){this._spinner.setValue(this._spinner.getMin());this._initialEditing=true;this._stopEvent(a)},_handleKeyEnd:function(a){this._spinner.setValue(this._spinner.getMax());this._initialEditing=true;this._stopEvent(a)},_onMouseWheel:function(a){if(this.getFocused()){this._stopEvent(a);if(!this._dropped){this._spinner._onmousewheel(a)}}},_stopEvent:function(a){a.preventDefault();a.stopPropagation()},_getDaysInMonth:function(){var a=31;var c=this._monthInt-1;var d=parseInt(this._yearTextField.getText(),10);var b=new Date(d,c,1);b.setDate(a);while(b.getMonth()!==c){a--;b=new Date(d,c,1);b.setDate(a)}return a},_setWeekday:function(){var b=this._monthInt-1;var d=parseInt(this._yearTextField.getText(),10);var c=parseInt(this._dayTextField.getText(),10);var a=new Date(d,b,c);this._weekdayTextField.setText(this._weekday[a.getDay()+1])},_checkAndApplyYearValue:function(){var a=this._lastValidYear;var b=parseInt(this._yearTextField.getText(),10);if(b>=0&&b<=29){this._lastValidYear=2000+b}else{if(b>=30&&b<=99){this._lastValidYear=1900+b}else{if(b>=1752){this._lastValidYear=b}}}this._yearTextField.setText(""+a);if(a!=this._lastValidYear){this._spinner.setValue(this._lastValidYear)}},_addLeadingZero:function(a){return a<10?"0"+a:""+a},_removeLeadingZero:function(c){var a=c;if(c.length==2){var b=c.substring(0,1);if(b=="0"){a=c.substring(1)}}return a},_sendChanges:function(){if(!rwt.remote.EventUtil.getSuspended()){var b=rwt.remote.Connection.getInstance();var c=b.getRemoteObject(this);var a=parseInt(this._removeLeadingZero(this._dayTextField.getText()),10);c.set("day",a);c.set("month",this._monthInt-1);c.set("year",this._lastValidYear);if(c.isListening(_[12])){b.onNextSend(this._onSend,this);b.sendDelayed(200)}}},_onSend:function(){rwt.remote.EventUtil.notifySelected(this)},setDate:function(b,c,a){this._setDate(new Date(b,c,a))},setMonth:function(a){this._monthInt=a+1;if(this._medium){this._monthTextField.setText(this._addLeadingZero(this._monthInt))}else{this._monthTextField.setText(this._monthname[this._monthInt-1])}if(this._focusedTextField===this._monthTextField){this._applyMonthSpinnerValue(this._monthInt)}this._setWeekday()},setDay:function(a){this._dayTextField.setText(this._addLeadingZero(a));if(this._focusedTextField===this._dayTextField){this._applyDaySpinnerValue(a)}this._setWeekday()},setYear:function(a){this._lastValidYear=a;this._yearTextField.setText(""+a);if(this._focusedTextField===this._yearTextField){this._applyYearSpinnerValue(this._lastValidYear)}this._setWeekday()},setMinimum:function(a){this._minimum=a===null?null:new Date(a);if(this._minimum){this._minimum.setHours(0,0,0,0)}this._applySpinnerValue(this._focusedTextField);this._applyLimitRestriction();if(this._calendar){this._calendar.setMinimum(this._minimum)}},setMaximum:function(a){this._maximum=a===null?null:new Date(a);if(this._maximum){this._maximum.setHours(0,0,0,0)}this._applySpinnerValue(this._focusedTextField);this._applyLimitRestriction();if(this._calendar){this._calendar.setMaximum(this._maximum)}},_setDate:function(a){this.setYear(a.getFullYear());this.setMonth(a.getMonth());this.setDay(a.getDate())},setBounds:function(c,b,f,d,a){var e;switch(c){case 0:e=this._weekdayTextField;break;case 1:e=this._dayTextField;break;case 2:e=this._monthTextField;break;case 3:e=this._yearTextField;break;case 4:e=this._separator0;break;case 5:e=this._separator1;break;case 6:e=this._separator2;break;case 7:e=this._spinner;break;case 13:e=this._dropDownButton;break}if(e){e.set({left:b,top:f,width:d,height:a})}},_onAppear:function(){if(this._drop_down){this.getTopLevelWidget().add(this._calendar);this._setCalendarLocation()}},_onWindowBlur:function(){this._hideCalendar()},_onChangeVisibility:function(a){var b=a.getValue();if(!b){this._hideCalendar()}},_onCalendarDateChange:function(){if(!this._internalDateChanged){var b=this._calendar.getDate().getTime();var c=this._minimum?this._minimum.getTime():-Number.MAX_VALUE;var a=this._maximum?this._maximum.getTime():Number.MAX_VALUE;if(b>=c&&b<=a){this._setDate(this._calendar.getDate());this._sendChanges()}}},_onMouseDown:function(a){var b=a.getTarget();if(b.getUserData(_[176])){a.stopPropagation()}else{if(b.getUserData(_[166])){a.stopPropagation()}else{if(this._dropped&&b!==this._dropDownButton){this._hideCalendar()}}}},_onMouseClick:function(a){if(a.isLeftButtonPressed()){var b=a.getTarget();if(b.getUserData(_[176])){if(!b.hasState(_[128])){this._calendar._onDayClicked(a);this._hideCalendar();this.setFocused(true)}}else{if(b.getUserData(_[166])){this._calendar._onNavButtonClicked(a)}else{if(b===this._dropDownButton){this._toggleCalendarVisibility()}}}}},_onMouseOver:function(a){var b=a.getTarget();if(b==this._dropDownButton){this._dropDownButton.addState("over")}else{if(b.getUserData(_[176])){this._calendar._onDayMouseOver(a)}}},_onMouseOut:function(a){var b=a.getTarget();if(b==this._dropDownButton){this._dropDownButton.removeState("over")}else{if(b.getUserData(_[176])){this._calendar._onDayMouseOut(a)}}},_toggleCalendarVisibility:function(){if(this._dropped){this._hideCalendar()}else{this._showCalendar()}},_showCalendar:function(){if(this._drop_down&&!this._dropped){this._dropped=true;this._calendar.setVisibility(true);this.setCapture(true);this._bringToFront();this._setCalendarLocation();var c=parseInt(this._yearTextField.getText(),10);var a=parseInt(this._dayTextField.getText(),10);var b=new Date(c,this._monthInt-1,a);this._internalDateChanged=true;this._calendar.setDate(b);this._internalDateChanged=false;this._focusedTextField.removeState(_[27])}},_hideCalendar:function(){if(this._drop_down&&this._dropped){this._dropped=false;this._calendar.setVisibility(false);this.setCapture(false);if(this.getFocused()){this._focusedTextField.addState(_[27])}}},_setCalendarLocation:function(){if(this.getElement()&&this._calendar!=null){var g=window.innerWidth;var d=window.innerHeight;var b=rwt.html.Location.get(this.getElement());var f=b.left;var e=b.top+this.getHeight();var c=this._calendar.getWidthValue();var a=this._calendar.getHeightValue();if(e+a>d&&b.top-a>0){e=b.top-a}if(f+c>g){f=Math.max(0,g-c)}this._calendar.setLocation(f,e)}},_bringToFront:function(){var a=this.getTopLevelWidget().getChildren();var b=this._calendar.getZIndex();for(var d in a){var c=a[d];if(c.getZIndex){if(bthis._calendar.getZIndex()){this._calendar.setZIndex(b+1)}}}});
rwt.qx.Class.define("rwt.widgets.DateTimeCalendar",{extend:rwt.widgets.base.Parent,construct:function(c,b,a){arguments.callee.base.call(this);this.setOverflow(_[6]);this.setAppearance("datetime-calendar");rwt.widgets.base.Calendar.MONTH_NAMES=b;rwt.widgets.base.Calendar.WEEKDAY_NAMES=a;this._calendar=new rwt.widgets.base.Calendar();this._calendar.setDate(new Date(74,5,6));this._calendar.setTabIndex(null);this._calendar.addEventListener(_[369],this._onChangeDate,this);this._calendar.addEventListener("select",this._onSelect,this);this.add(this._calendar);this.addEventListener(_[3],this._onKeyPress,this);this.addEventListener(_[37],this._onMouseWheel,this);this.addEventListener(_[61],this._onFocusChange,this);this.addEventListener("blur",this._onFocusChange,this);this._updateSelectedDayState()},destruct:function(){this._disposeObjects("_calendar")},members:{_getSubWidgets:function(){return[this._calendar]},_applyDirection:function(a){arguments.callee.base.call(this,a);this._calendar.setDirection(a)},_onKeyPress:function(a){this._calendar._onkeypress(a)},_onMouseWheel:function(a){a.preventDefault();a.stopPropagation()},_onFocusChange:function(){this._updateSelectedDayState()},_updateSelectedDayState:function(){for(var a=0;a<6*7;a++){this._calendar._dayLabelArr[a].toggleState(_[108],!this.getFocused())}},_onChangeDate:function(){if(!rwt.remote.EventUtil.getSuspended()){var a=rwt.remote.Connection.getInstance();var c=a.getRemoteObject(this);var b=this._calendar.getDate();c.set("day",b.getDate());c.set("month",b.getMonth());c.set("year",b.getFullYear());if(c.isListening(_[12])){a.onNextSend(this._onSend,this);a.sendDelayed(200)}}},_onSend:function(){rwt.remote.EventUtil.notifySelected(this)},_onSelect:function(){rwt.remote.EventUtil.notifyDefaultSelected(this)},setDate:function(b,c,a){this._calendar.setDate(new Date(b,c,a))},setMonth:function(b){var a=this._calendar.getDate();a.setMonth(b);this._calendar.setDate(a)},setDay:function(b){var a=this._calendar.getDate();a.setDate(b);this._calendar.setDate(a)},setYear:function(b){var a=this._calendar.getDate();a.setYear(b);this._calendar.setDate(a)},setMinimum:function(b){var a=b===null?null:new Date(b);if(a){a.setHours(0,0,0,0)}this._calendar.setMinimum(a)},setMaximum:function(a){var b=a===null?null:new Date(a);if(b){b.setHours(0,0,0,0)}this._calendar.setMaximum(b)},setFont:function(){}}});
rwt.remote.HandlerRegistry.add("rwt.widgets.DateTime",{factory:function(b){var a;var d=rwt.remote.HandlerUtil.createStyleMap(b.style);var c;if(d.SHORT){c="short"}else{if(d.LONG){c="long"}else{c="medium"}}if(d.DROP_DOWN){c+="|drop_down"}if(d.TIME){a=new rwt.widgets.DateTimeTime(c)}else{if(d.CALENDAR){rwt.widgets.base.Calendar.CELL_WIDTH=b.cellSize[0];rwt.widgets.base.Calendar.CELL_HEIGHT=b.cellSize[1];a=new rwt.widgets.DateTimeCalendar(c,b.monthNames,b.weekdayShortNames)}else{rwt.widgets.base.Calendar.CELL_WIDTH=b.cellSize[0];rwt.widgets.base.Calendar.CELL_HEIGHT=b.cellSize[1];a=new rwt.widgets.DateTimeDate(c,b.monthNames,b.weekdayNames,b.weekdayShortNames,b.dateSeparator,b.datePattern)}}rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["date","hours","minutes","seconds","subWidgetsBounds",_[216],_[188]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({date:function(b,a){b.setDate.apply(b,a)},subWidgetsBounds:function(c,b){for(var a=0;athis.getMaxLength()){var c=this.getValue();var a=this._getSelectionStart();if(c.length==(g.length-1)){this._inputElement.value=c;this._setSelectionStart(a-1);this._setSelectionLength(0)}else{if(g.length>=c.length&&g!=c){this._inputElement.value=g.slice(0,this.getMaxLength());this._setSelectionStart(Math.min(a,this.getMaxLength()));this._setSelectionLength(0)}}if(this._inputElement.value==c){d=false}}}if(d){this._oninput(f)}}catch(e){rwt.runtime.ErrorHandler.processJavaScriptError(e)}},_isTextArea:function(){return this._inputTag===_[229]},_syncFieldWidth:function(){if(this._inputElement){var a=this.getInnerWidth()-this._getIconOuterWidth(_[58])-this._getIconOuterWidth(_[59]);this._inputElement.style.width=Math.max(2,a)+"px"}},_syncFieldLeft:function(){if(this._inputElement){var a=this._inputElement.style;if(this.getDirection()==="rtl"){a.marginLeft="0";a.marginRight=this._getIconOuterWidth(_[58])+"px"}else{a.marginLeft=this._getIconOuterWidth(_[58])+"px";a.marginRight="0"}}},_updateAllIcons:function(){if(this._isCreated){this._updateIcon(_[58]);this._updateIcon(_[59])}},_updateIcon:function(b){var a=this._getIconElement(b);if(this._hasIcon(b)&&a==null){a=document.createElement("div");a.style.position=_[11];a.style.cursor="pointer";this._getTargetNode().insertBefore(a,this._inputElement);this._setIconElement(b,a)}if(a){var c=this._getIconImage(b);rwt.html.Style.setBackgroundImage(a,c?c[0]:null)}this._layoutIcon(b)},_layoutAllIcons:function(){this._layoutIcon(_[58]);this._layoutIcon(_[59])},_layoutIcon:function(c){var a=this._getIconElement(c);if(a){var b=a.style;var e=this._getIconImage(c);var f=e?e[1]:0;var g=e?e[2]:0;var d=this._getMessageStyle();b.width=f+"px";b.height=g+"px";b.top=Math.round(this.getInnerHeight()/2-g/2)+"px";if(this._getIconPosition(c)===_[2]){b.left="";b.right=d.paddingRight+"px"}else{b.left=d.paddingLeft+"px";b.right=""}}},_getIconElement:function(a){return a===_[58]?this._searchIconElement:this._cancelIconElement},_setIconElement:function(b,a){if(b===_[58]){this._searchIconElement=a}else{this._cancelIconElement=a}},_getIconOuterWidth:function(a){var b=this._getIconImage(a);if(this._hasIcon(a)&&b!=null){return b[1]+this._getIconSpacing(a)}return 0},_hasIcon:function(a){return this.hasState(a===_[58]?"rwt_ICON_SEARCH":"rwt_ICON_CANCEL")},_getIconImage:function(a){return this._hasIcon(a)?this._getIconStyle(a).icon:null},_getIconPosition:function(c){var d=this.getDirection()==="rtl";var b=d?_[2]:"left";var a=d?"left":_[2];return c===_[58]?b:a},_getIconSpacing:function(a){return this._hasIcon(a)?this._getIconStyle(a).spacing:0},_getIconStyle:function(c){var b=rwt.theme.AppearanceManager.getInstance();var a={};if(c===_[58]){a[_[58]]=true}if(this._customVariant!==null){a[this._customVariant]=true}return b.styleFrom("text-field-icon",a)},_reCreateInputField:function(){var a=this._getSelectionStart();var b=this._getSelectionLength();this._inputElement.parentNode.removeChild(this._inputElement);this._inputElement.onpropertychange=null;this._inputElement=null;this._firstInputFixApplied=false;this._textColor=null;this._applyElement(this.getElement(),null);this._afterAppear();this._postApply();this._applyFocused(this.getFocused());this._setSelectionStart(a);this._setSelectionLength(b)},_postApply:function(){arguments.callee.base.call(this);this._syncFieldLeft();this._layoutAllIcons();this._layoutMessageX()},_applyValue:function(b,a){arguments.callee.base.call(this,b,a);this._updateMessageVisibility();if(!rwt.remote.EventUtil.getSuspended()){this._handleModification()}},_applyFocused:function(b,a){arguments.callee.base.call(this,b,a);this._updateMessageVisibility();if(b&&(this.getValue()===""||this.getValue()==null)){this._forceFocus()}},_forceFocus:rwt.util.Variant.select(_[5],{"webkit|blink":function(){rwt.client.Timer.once(function(){if(this._inputElement){this._inputElement.focus()}},this,1)},"default":function(){}}),_applyCursor:function(b,a){arguments.callee.base.call(this,b,a);this._updateMessageCursor()},_applyFont:function(b,a){arguments.callee.base.call(this,b,a);this._updateMessageFont()},_applyDirection:function(a){arguments.callee.base.call(this,a);this._applyTextAlign();this._syncFieldLeft();this._layoutAllIcons();this._layoutMessageX()},_preventEnter:function(a){if(!this._isTextArea()){arguments.callee.base.call(this,a)}},_updateMessage:function(){if(this._isCreated){if(this._message!=null&&this._message!==""&&this._messageElement==null){this._messageElement=document.createElement("div");var a=this._messageElement.style;a.position=_[11];a.outline="none";a.overflow=_[6];a.whiteSpace=_[123];var b=this._getMessageStyle();a.color=b.textColor||"";rwt.html.Style.setTextShadow(this._messageElement,b.textShadow);this._getTargetNode().insertBefore(this._messageElement,this._inputElement)}if(this._messageElement){this._messageElement.innerHTML=this._message?this._message:""}this._updateMessageCursor();this._updateMessageVisibility();this._updateMessageFont();this._layoutMessageX()}},_centerFieldVertically:function(){arguments.callee.base.call(this);this._layoutMessageY()},_layoutMessageX:function(){if(this._messageElement){var d=this._getMessageStyle();var b=this._messageElement.style;var a=this.getBoxWidth()-this._cachedBorderLeft-this._cachedBorderRight-d.paddingLeft-d.paddingRight-this._getIconOuterWidth(_[58])-this._getIconOuterWidth(_[59]);b.width=Math.max(0,a)+"px";if(this._isTextArea()){b.left="3px"}else{var c=this.getDirection()==="rtl"?_[59]:_[58];b.left=(this._getIconOuterWidth(c)+d.paddingLeft)+"px"}}},_layoutMessageY:function(){if(this._messageElement){if(this._isTextArea()){this._messageElement.style.top="0px"}else{this._messageElement.style.top=this.getInputElement().style.top}}},_getMessageStyle:function(){var a=rwt.theme.AppearanceManager.getInstance();return a.styleFrom("text-field-message",{})},_updateMessageVisibility:function(){if(this._messageElement){var a=(this.getValue()==null||this.getValue()==="")&&!this.getFocused();this._messageElement.style.display=a?"":"none"}},_updateMessageFont:function(){if(this._messageElement){var a=this.getFont();a.renderElement(this._messageElement)}},_updateMessageCursor:function(){if(this._messageElement){var a=this._inputElement.style.cursor;if(a==null||a===""){a="text"}this._messageElement.style.cursor=a}}}})}());
rwt.remote.HandlerRegistry.add(_[182],{factory:function(b){var c=rwt.remote.HandlerUtil.createStyleMap(b.style);var a=new rwt.widgets.Text(c.MULTI);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(a,b.parent);if(c.RIGHT){a.setTextAlign(_[2])}else{if(c.CENTER){a.setTextAlign(_[15])}}a.setWrap(c.WRAP!==undefined);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["text","message","echoChar","editable",_[19],_[348]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({text:function(c,b){var a=rwt.util.Encoding;var d=a.truncateAtZero(b);if(!c.hasState(_[357])){d=a.replaceNewLines(d," ")}c.setValue(d)},echoChar:function(b,a){if(!b.hasState(_[357])){b.setPasswordMode(a!==null)}},editable:function(b,a){b.setReadOnly(!a)},textLimit:function(b,a){b.setMaxLength(a)}}),events:[_[48],_[105]],listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({}),methods:[_[86],_[91]],methodHandler:rwt.remote.HandlerUtil.extendListenerMethodHandler({}),scriptingMethods:rwt.remote.HandlerUtil.extendControlScriptingMethods({getText:function(){return this.getValue()},getSelection:function(){return this.getSelection()},getEditable:function(){return !this.getReadOnly()}})});
rwt.qx.Class.define(_[482],{extend:rwt.widgets.base.BoxLayout,construct:function(){arguments.callee.base.call(this);this._line=new rwt.widgets.base.Parent();this._line.setAnonymous(true);this._line.setAppearance("separator-line");this.add(this._line)},properties:{appearance:{refine:true,init:_[318]}},destruct:function(){this._line.dispose();this._line=null},members:{_getSubWidgets:function(){return[this._line]},setLineStyle:function(a){this._line.addState(a)},setLineOrientation:function(a){if(a==_[28]){this.setHorizontalChildrenAlign(_[15]);this._line.setHeight("100%")}else{this.setVerticalChildrenAlign(_[42]);this._line.setWidth("100%")}this._line.toggleState(_[120],a==_[28])}}});
rwt.remote.HandlerRegistry.add(_[482],{factory:function(c){var b=new rwt.widgets.Separator();rwt.remote.HandlerUtil.addStatesForStyles(b,c.style);b.setUserData(_[20],true);rwt.remote.HandlerUtil.setParent(b,c.parent);var d=rwt.remote.HandlerUtil.createStyleMap(c.style);b.setLineOrientation(d.VERTICAL?_[28]:_[39]);var a="rwt_SHADOW_NONE";if(d.SHADOW_IN){a="rwt_SHADOW_IN"}else{if(d.SHADOW_OUT){a="rwt_SHADOW_OUT"}}b.setLineStyle(a);return b},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties([]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})});
rwt.qx.Class.define(_[325],{extend:rwt.widgets.base.Image,construct:function(){arguments.callee.base.call(this);this.setZIndex(1000);this.setVisibility(false);this._showHover=true;this._text=null},members:{setMarkupEnabled:function(a){this.setUserData(_[54],a)},setText:function(a){this._text=a;this._updateToolTip()},setShowHover:function(a){this._showHover=a;this._updateToolTip()},_updateToolTip:function(){var a=rwt.remote.WidgetManager.getInstance();if(this._text===null||this._text===""||!this._showHover){a.setToolTip(this,null)}else{a.setToolTip(this,this._text)}},setHasSelectionListener:function(b){var a=rwt.remote.EventUtil;if(b){this.addEventListener(_[0],a.widgetSelected,this)}else{this.removeEventListener(_[0],a.widgetSelected,this)}},setHasDefaultSelectionListener:function(b){var a=rwt.remote.EventUtil;if(b){this.addEventListener(_[53],a.widgetDefaultSelected,this)}else{this.removeEventListener(_[53],a.widgetDefaultSelected,this)}}}});
rwt.remote.HandlerRegistry.add(_[325],{factory:function(b){var a=new rwt.widgets.ControlDecorator();rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);rwt.remote.HandlerUtil.setParent(a,b.parent);rwt.remote.HandlerUtil.callWithTarget(b.parent,function(c){rwt.remote.HandlerUtil.removeDestroyableChild(c,a);a.setUserData(_[71],null)});return a},destructor:rwt.remote.HandlerUtil.getWidgetDestructor(),properties:[_[89],"markupEnabled","text",_[17],_[145],"showHover"],propertyHandler:{bounds:function(b,a){b.setLeft(a[0]);b.setTop(a[1]);b.setWidth(a[2]);b.setHeight(a[3])},image:function(b,a){if(a===null){b.setSource(null)}else{b.setSource(a[0])}},visible:function(b,a){b.setVisibility(a)}},listeners:[_[12],_[48]]});
namespace(_[480]);rwt.runtime.MobileWebkitSupport={_draggableTypes:{"rwt.widgets.Shell":null,"rwt.widgets.Sash":null,"rwt.widgets.Scale":[_[394]],"rwt.widgets.Slider":[_[515]],"rwt.widgets.base.ScrollBar":null,"rwt.widgets.ScrolledComposite":[_[192]],"rwt.widgets.base.BasicButton":[_[192]],"rwt.widgets.base.Parent":[_[398]],"rwt.widgets.List":[_[192]],"rwt.widgets.Grid":["tree-column",_[46],_[17],_[192]]},_lastMouseOverTarget:null,_lastMouseClickTarget:null,_lastMouseClickTime:null,_mouseEnabled:true,_fullscreen:window.navigator.standalone,_touchListener:null,_gestureListener:null,_touchSession:null,_allowNativeScroll:false,_allowedMouseEvents:{INPUT:{mousedown:true,mouseup:true},TEXTAREA:{mousedown:true,mouseup:true},SELECT:{mousedown:true,mouseup:true},"*":{mousewheel:true}},init:function(){if(rwt.client.Client.supportsTouch()){this._configureToolTip();this._hideTabHighlight();this._bindListeners();this._registerListeners();this._registerFilter();this.setTouchScrolling(!rwt.client.Client.isAndroidBrowser())}},addDraggableType:function(a){var b=a in this._draggableTypes;if(!b){this._draggableTypes[a]=null}},setTouchListener:function(b,a){this._touchListener=[b,a]},setGestureListener:function(b,a){this._gestureListener=[b,a]},setTouchScrolling:function(a){this._allowNativeScroll=a},_isZoomed:function(){var a=window.orientation%180===0;var b=a?screen.width:screen.height;return window.innerWidth!==b},_configureToolTip:function(){var a=rwt.widgets.base.WidgetToolTip.getInstance();a.setMousePointerOffsetX(-35);a.setMousePointerOffsetY(-100);var b=rwt.widgets.util.ToolTipManager.getInstance();b.handleMouseEvent=function(d){var c=d.getType();if(c===_[0]){this._handleMouseOver(d)}else{if(c===_[4]){this.setCurrentToolTipTarget(null)}}}},_hideTabHighlight:function(){rwt.html.StyleSheet.createElement(" * { -webkit-tap-highlight-color: rgba(0,0,0,0); }")},_bindListeners:function(){this.__onTouchEvent=rwt.util.Functions.bind(this._onTouchEvent,this);this.__onGestureEvent=rwt.util.Functions.bind(this._onGestureEvent,this);this.__onOrientationEvent=rwt.util.Functions.bind(this._onOrientationEvent,this)},_registerListeners:function(){var a=document.body;if(rwt.client.Client.isGecko()){a.addEventListener(_[316],this.__onTouchEvent,false);a.addEventListener(_[320],this.__onTouchEvent,false);a.addEventListener(_[295],this.__onTouchEvent,false);a.addEventListener(_[496],this.__onTouchEvent,false);a.addEventListener(_[478],this.__onOrientationEvent,false)}else{a.ontouchstart=this.__onTouchEvent;a.ontouchmove=this.__onTouchEvent;a.ontouchend=this.__onTouchEvent;a.ontouchcancel=this.__onTouchEvent;a.addEventListener(_[297],this.__onGestureEvent);a.addEventListener(_[386],this.__onGestureEvent);a.addEventListener(_[304],this.__onGestureEvent);a.onorientationchange=this.__onOrientationEvent}},_removeListeners:function(){var a=document.body;if(rwt.client.Client.isGecko()){a.removeEventListener(_[316],this.__onTouchEvent,false);a.removeEventListener(_[320],this.__onTouchEvent,false);a.removeEventListener(_[295],this.__onTouchEvent,false);a.removeEventListener(_[496],this.__onTouchEvent,false);a.removeEventListener(_[478],this.__onOrientationEvent,false)}else{a.ontouchstart=null;a.ontouchmove=null;a.ontouchend=null;a.ontouchcancel=null;a.removeEventListener(_[297],this.__onGestureEvent);a.removeEventListener(_[386],this.__onGestureEvent);a.removeEventListener(_[304],this.__onGestureEvent);a.onorientationchange=null}},_registerFilter:function(){rwt.event.EventHandler.setMouseDomEventFilter(this._filterMouseEvents,this)},_filterMouseEvents:function(b){var c=this._allowedMouseEvents;var a=typeof b.originalEvent===_[55];if(!a){a=c["*"][b.type]===true}if(!a&&typeof c[b.target.tagName]===_[55]){a=c[b.target.tagName][b.type]===true}if(!a){b.preventDefault();b.returnValue=false}return a},_onTouchEvent:function(c){try{if(!rwt.remote.EventUtil.getSuspended()){var b=c.type;if(this._mouseEnabled){switch(b){case _[316]:this._handleTouchStart(c);break;case _[295]:this._handleTouchEnd(c);break;case _[320]:this._handleTouchMove(c);break}}else{if(this._touchListener!==null){this._touchListener[0].call(this._touchListener[1],c)}}}else{c.preventDefault()}}catch(a){alert("Error in touch event handling:"+a);if(typeof console===_[55]){console.log(a);if(a.stack){console.log(a.stack)}}}},_getTouch:function(a){var b=a.touches.item(0);if(b===null){b=a.changedTouches.item(0)}return b},_handleTouchStart:function(b){var e=this._getTouch(b);var c=b.target;var a=rwt.event.EventHandlerUtil.getOriginalTargetObject(c);var d=[e.clientX,e.clientY];this._touchSession={type:this._getSessionType(a),initialTarget:c,widgetTarget:a,initialPosition:d};if(!this._touchSession.type.scroll&&!this._touchSession.type.outerScroll&&!this._touchSession.type.focus&&!this._allowTouch(c)){b.preventDefault()}this._moveMouseTo(c,b);if(this._touchSession.type.click){this._fireMouseEvent(_[0],c,b,d)}if(this._touchSession.type.virtualScroll){this._initVirtualScroll(a)}},_handleTouchMove:function(b){if(this._touchSession!==null){var e=this._getTouch(b);var d=[e.clientX,e.clientY];if(this._touchSession.type.virtualScroll){this._handleVirtualScroll(d)}if(!this._touchSession.type.scroll){b.preventDefault()}if(this._touchSession.type.drag){b.preventDefault();var c=b.target;this._fireMouseEvent(_[31],c,b,d)}else{var a=this._touchSession.initialPosition;if(Math.abs(a[0]-d[0])>=15||Math.abs(a[1]-d[1])>=15){this._cancelMouseSession(b)}}}},_handleTouchEnd:function(b){if(!this._allowTouch(b.target)){b.preventDefault()}var e=this._getTouch(b);var d=[e.clientX,e.clientY];var c=b.target;if(this._touchSession!==null){var a=this._touchSession.type;if(a.delayedClick){this._fireMouseEvent(_[0],c,b,d)}if(a.click||a.delayedClick){this._fireMouseEvent(_[4],c,b,d)}if(this._touchSession.type.virtualScroll){this._finishVirtualScroll()}if((a.click||a.delayedClick)&&this._touchSession.initialTarget===c){this._fireMouseEvent(_[23],c,b,d);this._touchSession=null;if(this._isDoubleClick(b)){this._lastMouseClickTarget=null;this._lastMouseClickTime=null;this._fireMouseEvent(_[53],c,b,d)}else{this._lastMouseClickTarget=c;this._lastMouseClickTime=(new Date()).getTime()}}}},_getSessionType:function(c){var b={};if(this._isSelectableWidget(c)||this._isFocusable(c)){b.delayedClick=true}else{b.click=true}if(this._isDraggableWidget(c)){b.drag=true}else{if(this._isGridRowContainer(c)){b.virtualScroll=true;var a=this._isScrollableWidget(c)||this._isClientDocumentScrollingEnabled();b.outerScroll=this._allowNativeScroll&&a}else{if(this._allowNativeScroll&&this._isScrollableWidget(c)){b.scroll=true}else{if(this._isFocusable(c)){b.focus=true}else{if(this._allowNativeScroll&&this._isClientDocumentScrollingEnabled()){b.scroll=true}}}}}return b},_initVirtualScroll:function(c){var b;if(this._isGridRowContainer(c)){b=c.getParent()}else{b=this._findScrollable(c)}var d=b._vertScrollBar;var a=b._horzScrollBar;this._touchSession.scrollBarV=d;this._touchSession.initScrollY=this._getScrollYOffset(d);this._touchSession.scrollBarH=a;this._touchSession.initScrollX=a.getValue()},_handleVirtualScroll:function(i){var c=this._touchSession.initialPosition;var f=c[0]-i[0];var e=c[1]-i[1];var a=this._touchSession.initScrollX+f;var l=this._touchSession.initScrollY+e;var j=this._touchSession.scrollBarV.getMaximum()-this._touchSession.scrollBarV.getThumb();var b=this._adaptScrollYOffset(l);var d=l<0||b>j;if(this._touchSession.type.outerScroll&&d){var k=this._findScrollable(this._touchSession.widgetTarget);if(k==null){delete this._touchSession.type.virtualScroll;this._touchSession.type.scroll=true}else{var h=k._vertScrollBar.getValue();var g=k._vertScrollBar.getMaximum()-k._vertScrollBar.getThumb();if((l<0&&h>0)||(b>j&&h0&&!this._matchesWidthToHeightRatio(a)){b-=10;a=this._getTextSize(c,b)}}a.x=this._max(a.x,d.x);if(a.x>=this.getMaxWidth()){a=this._adjustMessageSizeToMaxWidth(c)}this._message.setWidth(a.x);this._message.setHeight(a.y)}else{var f=e-this.getPaddingLeft()-this.getPaddingRight();f-=this._image._computePreferredInnerWidth();f-=this._contentArea.getSpacing();this._message.setWidth(f);this._message.setHeight("auto")}},_adjustMessageSizeToMaxWidth:function(b){var a=Math.floor(this.getMaxWidth()*0.9);var c=a-this.getPaddingLeft()-this.getPaddingRight();c-=this._image._computePreferredInnerWidth();c-=this._contentArea.getSpacing();return this._getTextSize(b,c)},_matchesWidthToHeightRatio:function(a){return a.x/a.y<=6},_max:function(d,c){return d>c?d:c},_getTextSize:function(d,a){var c=[];c[0]="";c[1]=d;c[2]=this._messageFont.getFamily();c[3]=this._messageFont.getSize();c[4]=this._messageFont.getBold();c[5]=this._messageFont.getItalic();c[6]=a;var b=rwt.widgets.util.FontSizeCalculation._measureItem(c);return{x:b[0],y:b[1]}},_onClick:function(){this._hide();rwt.remote.EventUtil.notifySelected(this)},_hide:function(){if(this.getVisibility()){this.setVisible(false);rwt.widgets.base.Widget.flushGlobalQueues();rwt.remote.Connection.getInstance().getRemoteObject(this).set(_[145],false)}},_getMessageFont:function(){var a=new rwt.theme.ThemeValues({});return a.getCssFont("ToolTip-Message","font")}}});
rwt.remote.HandlerRegistry.add(_[385],{factory:function(b){var d=rwt.remote.HandlerUtil.createStyleMap(b.style);var c=null;if(d.ICON_ERROR){c=_[124]}else{if(d.ICON_WARNING){c="warning"}else{if(d.ICON_INFORMATION){c="information"}}}var a=new rwt.widgets.ToolTip(c);a.setMarkupEnabled(b.markupEnabled===true);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);rwt.remote.HandlerUtil.callWithTarget(b.parent,function(e){rwt.remote.HandlerUtil.addDestroyableChild(e,a);a.setUserData(_[71],e)});return a},destructor:rwt.remote.HandlerUtil.getWidgetDestructor(),properties:[_[72],_[342],_[76],"autoHide","text","message","location",_[145]],propertyHandler:{roundedBorder:rwt.remote.HandlerUtil.getRoundedBorderHandler(),backgroundGradient:rwt.remote.HandlerUtil.getBackgroundGradientHandler(),autoHide:function(b,a){b.setHideAfterTimeout(a)},location:function(b,a){b.setLocation(a[0],a[1])}},events:[_[12]]});
rwt.qx.Class.define("rwt.remote.WidgetManager",{extend:rwt.qx.Object,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.remote.WidgetManager)}},construct:function(){arguments.callee.base.call(this)},members:{dispose:function(b){var a=this.findWidgetById(b);if(a!=null){this.remove(a);if(!a.getDisposed()){this._removeToolTipPopup(a);a.destroy()}}},add:function(c,d,b,a){if(b===true){c.setUserData(_[20],true)}rwt.remote.ObjectRegistry.add(d,c,a)},remove:function(a){var b=this.findIdByWidget(a);rwt.remote.ObjectRegistry.remove(b)},findWidgetById:function(a){return rwt.remote.ObjectRegistry.getObject(a)},findIdByWidget:function(a){return rwt.remote.ObjectRegistry.getId(a)},isControl:function(b){var a=null;if(b!=null){a=b.getUserData(_[20])}return a===true},findControl:function(b){var a=b;while(a!=null&&!this.isControl(a)){a=a.getParent?a.getParent():null}return a},findEnabledControl:function(b){var a=b;while(a!=null&&!(this.isControl(a)&&a.getEnabled())){a=a.getParent?a.getParent():null}return a},setToolTip:function(b,a){rwt.widgets.base.WidgetToolTip.setToolTipText(b,a)},_removeToolTipPopup:function(a){a.setToolTipText(null)}}});
(function(){namespace(_[131]);var b=false;var a=null;rwt.remote.MessageProcessor={processMessage:function(e,g,c){var f=0;if(typeof c!==_[8]){f=c}if(f===0){rap._.notify("receive",e);this.processHead(e.head)}var d=e.operations||[];while(f0},createMessage:function(){if(this._disposed){throw new Error("Protocol message writer already disposed!")}var a={head:this._head,operations:this._operations};return JSON.stringify(a)},appendHead:function(b,a){this._head[b]=a},getHead:function(a){return this._head[a]||null},appendSet:function(a,d,c){var b=this._getPropertiesObjectFor(a);b[d]=c},appendNotify:function(b,a,c){this._currentSetOperation=null;this._operations.push(["notify",b,a,c])},appendCall:function(b,a,c){this._currentSetOperation=null;this._operations.push(["call",b,a,c])},_getPropertiesObjectFor:function(a){if(this._currentSetOperation===null||this._currentSetOperation[1]!==a){this._currentSetOperation=["set",a,{}];this._operations.push(this._currentSetOperation)}return this._currentSetOperation[2]}};
namespace(_[94]);rwt.client.ServerPush=function(){this._retryCount=0;this._active=false;this._running=false};rwt.client.ServerPush.getInstance=function(){return rwt.runtime.Singletons.get(rwt.client.ServerPush)};rwt.client.ServerPush.prototype={setActive:function(a){this._active=a},sendServerPushRequest:function(){if(this._active&&!this._running){this._running=true;this._createRequest().send()}},_createRequest:function(){var a=rwt.remote.Connection.getInstance();var b=new rwt.remote.Request(a.getUrl(),"GET","application/javascript");b.setSuccessHandler(this._handleSuccess,this);b.setRedirectHandler(this._handleRedirect,this);b.setErrorHandler(this._handleError,this);b.setData("servicehandler=org.eclipse.rap.serverpush&cid="+a.getConnectionId());return b},_handleSuccess:function(){this._running=false;this._retryCount=0;this._sendUIRequest()},_handleRedirect:function(a){rwt.widgets.Display.getCurrent().setExitConfirmation(null);document.location=a.responseHeaders.location},_sendUIRequest:function(){rwt.remote.Connection.getInstance().sendImmediate(true)},_handleError:function(b){this._running=false;if(rwt.remote.Connection.getInstance()._isConnectionError(b.status)){if(this._retryCount<3){var a=1000*this._retryCount++;rwt.client.Timer.once(this.sendServerPushRequest,this,a)}else{this._handleConnectionError()}}else{this._handleServerError(b)}},_handleConnectionError:function(){rwt.remote.Connection.getInstance().sendImmediate(true)},_handleServerError:function(a){var b=a.responseText;if(b&&b.length>0){rwt.runtime.ErrorHandler.showErrorBox(_[503],true,b)}else{rwt.runtime.ErrorHandler.showErrorBox(_[311])}}};
rwt.remote.HandlerRegistry.add("rwt.client.ServerPush",{factory:function(){return rwt.client.ServerPush.getInstance()},service:true,properties:[_[64]]});
(function(){var h=rwt.client.Client;var d=rwt.client.Timer;var c=rwt.remote.MessageProcessor;var b=rwt.runtime.ErrorHandler;var g=rwt.remote.EventUtil;var f=rwt.client.ServerPush;var a=rwt.widgets.base.ClientDocument;var e=rwt.widgets.base.Widget;rwt.qx.Class.define("rwt.remote.Connection",{extend:rwt.qx.Target,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.remote.Connection)}},construct:function(){arguments.callee.base.call(this);this._url="";this._writer=null;this._event=null;this._requestCounter=0;this._requestPending=false;this._currentCursor=null;this._connectionId=null;this._sendTimer=new d(60);this._sendTimer.addEventListener(_[26],function(){this.sendImmediate(true)},this);this._delayTimer=new d();this._delayTimer.addEventListener(_[26],function(){this._delayTimer.stop();this.send()},this);this._waitHintTimer=new d(1000);this._waitHintTimer.addEventListener(_[26],this._showWaitHint,this);this._retryHandler=null;this._sendListeners=[]},destruct:function(){this._retryHandler=null;this._sendTimer.dispose();this._sendTimer=null;this._waitHintTimer.dispose();this._waitHintTimer=null},members:{setUrl:function(i){this._url=i},getUrl:function(){return this._url},setConnectionId:function(i){this._connectionId=i},getConnectionId:function(){return this._connectionId},_flushEvent:function(){if(this._event){var i=this.getMessageWriter();this._event[1]=this._event[1].split(".").pop();i.appendNotify.apply(i,this._event);this._event=null}},sendDelayed:function(i){this._delayTimer.setInterval(i);this._delayTimer.start()},send:function(){this._sendTimer.start()},sendImmediate:function(i){this._delayTimer.stop();if(this._requestPending&&i){this._sendTimer.stop();this.send()}else{this._flushEvent();this.dispatchSimpleEvent("send");rap._.notify("send");this._flushEvent();this._sendTimer.stop();this.getMessageWriter().appendHead("requestCounter",this._requestCounter++);this._requestPending=true;this._currentCursor=a.getInstance().getGlobalCursor();this._startWaitHintTimer();var j=this._createRequest();j.setAsynchronous(i);j.setData(this.getMessageWriter().createMessage());this._writer.dispose();this._writer=null;j.send();this._removeSendListeners()}},sendBeacon:function(){var k="";if(this._connectionId){k=(this._url.indexOf("?")===-1?"?cid=":"&cid=")+this._connectionId}var i=this.getMessageWriter().createMessage();var j={type:_[196]};navigator.sendBeacon(this._url+k,new Blob([i],j))},getMessageWriter:function(){if(this._writer===null){this._writer=new rwt.remote.MessageWriter()}return this._writer},getRemoteObject:function(i){return rwt.remote.RemoteObjectFactory.getRemoteObject(i)},onNextSend:function(j,i){this._sendListeners.push([j,i]);this.addEventListener("send",j,i)},getWaitHintTimer:function(){return this._waitHintTimer},_startWaitHintTimer:function(){if(this._requestCounter!==0){this._waitHintTimer.start()}},_removeSendListeners:function(){for(var j=0;j0){if(this._isJsonResponse(j)){var i=JSON.parse(k);b.showErrorBox(i.head.error,true)}else{b.showErrorBox(_[503],true,k)}}else{b.showErrorBox(_[311])}}},_handleSuccess:function(l){try{var j=JSON.parse(l.responseText);rwt.remote.EventUtil.setSuspended(true);var k=this;c.processMessage(j,function(){k._requestPending=false;e.flushGlobalQueues();rap._.notify("render");g.setSuspended(false);f.getInstance().sendServerPushRequest();k.dispatchSimpleEvent(_[321]);k._hideWaitHint()})}catch(i){this._hideWaitHint();b.processJavaScriptErrorInResponse(l.responseText,i,l.target)}},_handleRedirect:function(i){c.processMessage({head:{redirect:i.responseHeaders.location}})},_handleConnectionError:function(i){a.getInstance().setGlobalCursor(null);rwt.runtime.ErrorHandler.showErrorBox(_[361],false);this._retryHandler=function(){var k=this._createRequest();var j=i.target;k.setAsynchronous(j.getAsynchronous());k.setData(j.getData());k.send()}},_retry:function(){try{b.hideErrorBox();this._showWaitHint();this._retryHandler()}catch(i){rwt.runtime.ErrorHandler.processJavaScriptError(i)}},_isConnectionError:rwt.util.Variant.select(_[5],{trident:function(i){return(i===12007||i===12029||i===12030||i===12031||i===12152||i===0)},gecko:function(j){var i;if(h.getMajor()*10+h.getMinor()>=19){i=(j===0)}else{i=(j===-1)}return i},"default":function(i){return i===0}}),_isJsonResponse:function(i){var j=i.responseHeaders["content-type"];return j.indexOf(_[196])!==-1},_showWaitHint:function(){this._waitHintTimer.stop();a.getInstance().setGlobalCursor(_[323]);b.showWaitHint()},_hideWaitHint:function(){this._waitHintTimer.stop();b.hideErrorBox();a.getInstance().setGlobalCursor(this._currentCursor)}}})}());rwt.remote.Connection.RESOURCE_PATH="./rwt-resources/resource/";
rwt.qx.Class.define(_[208],{extend:rwt.widgets.base.MultiCellWidget,construct:function(b,a){arguments.callee.base.call(this,[_[17],_[46],_[17]]);this._parent=b;if(b.hasState(_[277])){this.addState(_[277])}this.setAppearance("ctab-item");this.setVerticalChildrenAlign(rwt.widgets.util.Layout.ALIGN_MIDDLE);this.setHorizontalChildrenAlign(rwt.widgets.util.Layout.ALIGN_LEFT);this.setOverflow(_[6]);this.setTabIndex(null);this._selected=false;this._showClose=false;this._rawText=null;this._mnemonicIndex=null;this._canClose=a;this.updateForeground();this.updateBackground();this.updateBackgroundImage();this.updateBackgroundGradient();this.setTabPosition(b.getTabPosition());this.setDirection(b.getDirection());this.updateCloseButton(false);this.addEventListener(_[115],this._onElementOver,this);this.addEventListener(_[189],this._onElementOut,this);this.addEventListener(_[23],this._onClick,this);this.addEventListener(_[53],this._onDblClick,this);this.addEventListener(_[134],this._onChangeParent,this);this.addEventListener(_[365],this._onChangeLeft,this)},destruct:function(){this.setMnemonicIndex(null)},statics:{IMG_CLOSE:rwt.remote.Connection.RESOURCE_PATH+"widget/rap/ctabfolder/close.gif",IMG_CLOSE_HOVER:rwt.remote.Connection.RESOURCE_PATH+"widget/rap/ctabfolder/close_hover.gif"},members:{setText:function(a){this._rawText=a;this._mnemonicIndex=null;this._applyText(false);this.dispatchSimpleEvent(_[158])},setImage:function(a){if(a===null){this.setCellContent(0,null);this.setCellDimension(0,0,0)}else{this.setCellContent(0,a[0]);this.setCellDimension(0,a[1],a[2])}},setMnemonicIndex:function(b){this._mnemonicIndex=b;var a=rwt.widgets.util.MnemonicHandler.getInstance();if((typeof b===_[18])&&(b>=0)){a.add(this,this._onMnemonic)}else{a.remove(this)}},getMnemonicIndex:function(){return this._mnemonicIndex},_applyText:function(b){if(this._rawText){var a=b?this._mnemonicIndex:undefined;var c=rwt.util.Encoding.escapeText(this._rawText,a);this.setCellContent(1,c)}else{this.setCellContent(1,null)}},setTabPosition:function(a){this.toggleState("barTop",a==="top")},setSelected:function(a){if(this._selected!==a){this._selected=a;this.toggleState(_[27],a);this._updateNextSelected();this.updateForeground();this.updateBackground();this.updateBackgroundImage();this.updateBackgroundGradient();this.updateCloseButton(false)}},_onMnemonic:function(b){switch(b.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case _[97]:var a=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(b.charCode===a){this._parent._notifySelection(this);b.success=true}break}},_updateNextSelected:function(){var a=null;var c=this._parent.getChildren();for(var b=0;b0&&!this._keyEventRequestRunning){var a=this._bufferedEvents.shift();this._sendKeyEvent.apply(this,a)}},_sendKeyEvent:function(c,d,a,b){if(this._keyEventRequestRunning){this._bufferedEvents.push([c,d,a,b])}else{if(c==null||!c.isDisposed()){this._attachKeyEvent(c,d,a,b);this._keyEventRequestRunning=true;this._sendRequestAsync()}}},_sendRequestAsync:function(){window.setTimeout(function(){rwt.remote.Connection.getInstance().sendImmediate(true)},0)},_attachKeyEvent:function(e,h,a,d){var g=rwt.remote.Connection.getInstance();var c;if(e===null){c=g.getRemoteObject(rwt.widgets.Display.getCurrent())}else{c=g.getRemoteObject(e)}var f=this._getCharCode(h,a,d);var b={keyCode:h,charCode:f};rwt.remote.EventUtil.addModifierToProperties(b,d);if(this._shouldSendTraverse(h,a,d,e)){c.notify("Traverse",b,true)}if(this._shouldSendKeyDown(h,a,d,e)){c.notify(_[240],b,true)}},_shouldCancel:function(f,c,d,e){var a=this._isActive(this._cancelKeys,d,f,c);if(!a){var b=e?e.getUserData(_[228]):null;if(b&&!rwt.util.Objects.isEmpty(b)){a=this._isActive(b,d,f,c)}}return a},_getTargetControl:function(){var a=rwt.event.EventHandler.getCaptureWidget();if(!a){var b=rwt.event.EventHandler.getFocusRoot();a=b===null?null:b.getActiveChild()}var c=rwt.remote.WidgetManager.getInstance();while(a!==null&&!c.isControl(a)){a=a.getParent?a.getParent():null}return a},_isActive:function(f,d,e,b){var a=false;var c=this._getKeyBindingIdentifier(d,_[9],e,b);a=f[c]===true;if(!a){c=this._getKeyBindingIdentifier(d,_[3],e,b);a=f[c]===true}return a},_getKeyBindingIdentifier:function(d,c,e,b){var a=[];if(c===_[9]&&!isNaN(e)&&e>0){if(d.altKey){a.push("ALT")}if(d.ctrlKey){a.push("CTRL")}if(d.shiftKey){a.push("SHIFT")}a.push("#"+e.toString())}else{if(c===_[3]&&!isNaN(b)&&b>0){a.push(String.fromCharCode(b))}}return a.join("+")},_getCharCode:function(d,b,c){var a=b;if(a===0&&this._isAlphaNumeric(d)){if(c.shiftKey&&!this._isNumeric(d)){a=d}else{a=String.fromCharCode(d).toLowerCase().charCodeAt(0)}}return a},_isModifier:function(a){return a>=16&&a<=20&&a!==19},_isAlphaNumeric:function(a){return(a>=65&&a<=90)||this._isNumeric(a)},_isNumeric:function(a){return a>=48&&a<=57},_hasKeyListener:function(a){return a!==null&&a.getUserData(_[498])===true},_hasTraverseListener:function(a){return a!==null&&a.getUserData(_[481])===true},_isTraverseKey:function(b){var a=false;if(b===27||b===13||b===9){a=true}return a}}});rwt.remote.KeyEventSupport.getInstance();
namespace(_[94]);rwt.client.JavaScriptExecutor=function(){this.execute=function(code){eval(code)}};rwt.client.JavaScriptExecutor.getInstance=function(){return rwt.runtime.Singletons.get(rwt.client.JavaScriptExecutor)};
rwt.remote.HandlerRegistry.add("rwt.client.ConnectionMessages",{factory:function(){return rwt.remote.Connection.getInstance()},service:true,properties:["waitHintTimeout"],propertyHandler:{waitHintTimeout:function(b,a){b.getWaitHintTimer().setInterval(a)}}});
namespace(_[94]);rwt.client.ClientMessages=function(){this._messages={ServerError:"Server Error",ServerErrorDescription:_[444],ConnectionError:"Network Error",ConnectionErrorDescription:"The server seems to be temporarily unavailable.",SessionTimeout:"Session Timeout",SessionTimeoutDescription:"The server session timed out.",ClientError:"Client Error",ClientErrorDescription:_[444],Retry:"Retry",Restart:_[183],Details:"Details"}};rwt.client.ClientMessages.getInstance=function(){return rwt.runtime.Singletons.get(rwt.client.ClientMessages)};rwt.client.ClientMessages.prototype={setMessages:function(a){for(var b in a){this._messages[b]=a[b]}},getMessage:function(a){return this._messages[a]?this._messages[a]:""}};
rwt.remote.HandlerRegistry.add("rwt.client.ClientMessages",{factory:function(){return rwt.client.ClientMessages.getInstance()},service:true,properties:["messages"]});
rwt.remote.HandlerRegistry.add("rwt.client.JavaScriptExecutor",{factory:function(){return rwt.client.JavaScriptExecutor.getInstance()},service:true,destructor:rwt.util.Functions.returnTrue,methods:[_[99]],methodHandler:{execute:function(b,a){b.execute(a.content)}}});
namespace(_[94]);rwt.client.UrlLauncher=function(){this._window=window;var a=document.createElement(_[202]);a.style.visibility=_[6];a.style.position=_[11];a.style.left="-1000px";a.style.top="-1000px";a.src=rwt.remote.Connection.RESOURCE_PATH+_[289];document.body.appendChild(a);this._iframe=a};rwt.client.UrlLauncher.getInstance=function(){return rwt.runtime.Singletons.get(rwt.client.UrlLauncher)};rwt.client.UrlLauncher.prototype={openURL:function(a){var c=this.getProtocol(a);try{if(["http:","https:","ftp:","ftps:"].indexOf(c)!==-1){this._window.open(a,"_blank")}else{this._iframe.src=a}}catch(b){}},getProtocol:function(a){var b=a.indexOf(":")!==-1?a.split(":")[0]+":":location.protocol;return b.toLowerCase()}};
rwt.remote.HandlerRegistry.add("rwt.client.UrlLauncher",{factory:function(){return rwt.client.UrlLauncher.getInstance()},service:true,methods:["openURL"],methodHandler:{openURL:function(b,a){b.openURL(a.url)}}});
namespace(_[94]);rwt.client.JavaScriptLoader={load:function(a){if(a.files.length!==1){throw new Error("JavaScriptLoader does not support parallel script loading")}rwt.remote.MessageProcessor.pauseExecution();this._loadFile(a.files[0])},_loadFile:function(a){var b=document.createElement("script");b.type=_[460];b.src=a;this._attachLoadedCallback(b);document.getElementsByTagName("head")[0].appendChild(b)},_attachLoadedCallback:function(a){a.onload=function(){rwt.remote.MessageProcessor.continueExecution();a.onload=null}}};
rwt.remote.HandlerRegistry.add("rwt.client.JavaScriptLoader",{factory:function(){return rwt.client.JavaScriptLoader},service:true,methods:["load"]});
namespace(_[94]);(function(){rwt.client.ClientFileLoader={load:function(c){b(c.file,c.type)}};function b(c,e){rwt.remote.MessageProcessor.pauseExecution();var d=a(c,e);d.onload=function(){rwt.remote.MessageProcessor.continueExecution();d.onload=null};document.getElementsByTagName("head")[0].appendChild(d)}function a(c,e){var d;if(e==="css"){d=document.createElement("link");d.rel="stylesheet";d.type="text/css";d.href=c}else{d=document.createElement("script");d.type=_[460];d.src=c}return d}})();
rwt.remote.HandlerRegistry.add("rwt.client.ClientFileLoader",{factory:function(){return rwt.client.ClientFileLoader},service:true,methods:["load"]});
rwt.qx.Class.define("rwt.runtime.System",{extend:rwt.qx.Target,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.runtime.System)}},construct:function(){if(this.isSupported()){arguments.callee.base.call(this);this._startupTime=new Date().getTime();this._onloadWrapped=rwt.util.Functions.bind(this._onload,this);this._onbeforeunloadWrapped=rwt.util.Functions.bind(this._onbeforeunload,this);this._onunloadWrapped=rwt.util.Functions.bind(this._onunload,this);window.addEventListener("load",this._onloadWrapped,false);window.addEventListener(_[273],this._onbeforeunloadWrapped,false);window.addEventListener("unload",this._onunloadWrapped,false);rwt.event.EventHandler.setAllowContextMenu(rwt.widgets.Menu.getAllowContextMenu)}},members:{_autoDispose:false,_onloadDone:false,_uiReady:false,setUiReady:function(a){this._uiReady=a;if(a){this.createDispatchEvent("uiready")}},getUiReady:function(){return this._uiReady},isSupported:function(){return this._isBrowserSupported()&&this._isModeSupported()&&this._isXHRSupported()},getStartupTime:function(){return this._startupTime},getStartupParameters:function(){var a=window.location.search;if(a!==""){return this._parseQueryString(a.substr(1))}return null},_parseQueryString:function(b){var a={};b.replace(/\+/g,"%20").split("&").forEach(function(f){var e=f.split("=");var c=decodeURIComponent(e[0]);var d=e.length===1?"":decodeURIComponent(e[1]);if(a[c]){a[c].push(d)}else{a[c]=[d]}});return a},_onload:function(){try{if(!this._onloadDone){this._onloadDone=true;rwt.widgets.base.ClientDocument.getInstance();rwt.runtime.MobileWebkitSupport.init();rwt.client.Timer.once(this._preload,this,0)}}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_preload:function(){var a=rwt.html.ImageManager.getInstance().getVisibleImages();this.__preloader=new rwt.html.ImagePreloaderSystem(a,this._preloaderDone,this);this.__preloader.start()},_preloaderDone:function(){this.__preloader.dispose();this.__preloader=null;rwt.event.EventHandler.init();rwt.event.EventHandler.attachEvents();this.setUiReady(true);rwt.widgets.base.Widget.flushGlobalQueues();rwt.client.Timer.once(this._postload,this,100)},_postload:function(){var a=rwt.html.ImageManager.getInstance().getHiddenImages();this.__postloader=new rwt.html.ImagePreloaderSystem(a,this._postloaderDone,this);this.__postloader.start()},_postloaderDone:function(){this.__postloader.dispose();this.__postloader=null},_onbeforeunload:function(c){try{var b=new rwt.event.DomEvent(_[273],c,window,this);this.dispatchEvent(b,false);var d=b.getUserData(_[429]);b.dispose();return d!==null?d:undefined}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_onunload:function(){try{this.createDispatchEvent("unload");rwt.event.EventHandler.detachEvents();rwt.event.EventHandler.cleanUp();rwt.qx.Object.dispose(true)}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_isBrowserSupported:function(){var a=true;var c=rwt.client.Client.getEngine();var b=rwt.client.Client.getMajor();if(c===_[119]&&b<9){a=false}return a},_isModeSupported:function(){var a=true;var b=rwt.client.Client.getEngine();if(b===_[119]&&document.documentMode<9){a=false}return a},_isXHRSupported:function(){return typeof window.XMLHttpRequest!==_[8]}},destruct:function(){window.removeEventListener("load",this._onloadWrapped,false);window.removeEventListener(_[273],this._onbeforeunloadWrapped,false);window.removeEventListener("unload",this._onunloadWrapped,false)},defer:function(a){a.getInstance()}});
(function(){var b=rwt.event.EventHandlerUtil;var a=rwt.widgets.util.WidgetUtil;rwt.qx.Class.define("rwt.widgets.util.MnemonicHandler",{extend:rwt.qx.Object,statics:{getInstance:function(){return rwt.runtime.Singletons.get(rwt.widgets.util.MnemonicHandler)}},construct:function(){arguments.callee.base.call(this);this._map={};this._activator=null;this._active=null;this._activeMenu=null;this._allowMenuActivate=false},members:{add:function(f,e){var d=a.getShell(f);if(d!=null){this._registerFocusRoot(d);var c=this._map[d.toHashCode()];if(f instanceof rwt.widgets.MenuItem){c.menu[f.toHashCode()]=[f,e]}else{c.controls[f.toHashCode()]=[f,e]}}},remove:function(d){var e=d.toHashCode();if(d instanceof rwt.widgets.MenuItem){for(var c in this._map){if(this._map[c].menu[d.toHashCode()]){delete this._map[c].menu[e];return}}}else{for(var c in this._map){if(this._map[c].controls[d.toHashCode()]){delete this._map[c].controls[e];return}}}},setActivator:function(c){if(c){this._activator={};this._activator.ctrlKey=c.indexOf("CTRL")!==-1;this._activator.altKey=c.indexOf("ALT")!==-1;this._activator.shiftKey=c.indexOf("SHIFT")!==-1}else{this._activator=null}},isActive:function(){return this._active!=null},handleKeyEvent:function(e,g,d,f){var c=false;this._checkActiveMenu();if(e!==_[9]||rwt.event.EventHandlerUtil.isFirstKeyDown(g)){if(this._isActivation(e,g,d,f)){this.activate()}else{if(this._isDeactivation(e,g,d,f)){this.deactivate(this._allowMenuActivate||this._activeMenu)}else{if(this._isTrigger(e,g,d,f)){c=this.trigger(g);this._allowMenuActivate=false}else{if(this.isActive()&&!this._isActivatorCombo(f)){this._allowMenuActivate=false}}}}}return c},activate:function(){if(this._noMenuOpen()){var c=rwt.widgets.base.Window.getDefaultWindowManager().getActiveWindow();if(c==null){c=rwt.widgets.base.ClientDocument.getInstance()}this._active=c.toHashCode();this._allowMenuActivate=true;this._fire({type:"show"})}},deactivate:function(c){if(this._activeMenu&&c){this._activeMenu.setActive(false);this._activeMenu=null}if(this._active){this._fire({type:"hide"});if(c){this._activateMenuBar()}this._active=null}},trigger:function(c){var d={type:_[97],charCode:c,success:false};this._fire(d,true);return d.success},_registerFocusRoot:function(c){if(!this._map[c.toHashCode()]){this._map[c.toHashCode()]={menu:{},controls:{}};c.addEventListener(_[113],function(){this.deactivate();delete this._map[c.toHashCode()]},this);c.addEventListener(_[284],this._onRootChangeActive,this)}},_onRootChangeActive:function(c){if(c.getValue()===false){this.deactivate()}},_fire:function(d,c){if(this._map[this._active]){this._doFire(d,c,this._map[this._active].controls);if(!d.success){this._doFire(d,c,this._map[this._active].menu)}}},_doFire:function(h,f,c){for(var e in c){var g=c[e];if((!f||g[0].isSeeable())&&g[0].getEnabled()){try{g[1].call(g[0],h);if(h.success){break}}catch(d){var i="Could not handle mnemonic "+h.type+". ";if(g[0].isDisposed()){i+=g[0].classname+" is disposed. "}i+=d.message;throw new Error(i)}}}},_activateMenuBar:function(){if(this._map[this._active]){var c=this._map[this._active].menu;for(var d in c){var e=c[d][0].getParentMenu();e.setMnemonics(true);e.setActive(true);this._activeMenu=e;break}}},_checkActiveMenu:function(){if(this._activeMenu&&!this._activeMenu.getActive()){this._activeMenu=null}},_isActivation:function(d,f,c,e){return this._activator&&this._active==null&&this._activeMenu==null&&d===_[9]&&b.isModifier(f)&&this._isActivatorCombo(e)},_isDeactivation:function(d,f,c,e){return this._isGlobalDeactivation(d,f,c,e)||this._isMenuDeactivation(d,f,c,e)},_isMenuDeactivation:function(d,f,c,e){return this._activator!=null&&this._activeMenu!=null&&b.isModifier(f)&&this._isActivatorCombo(e)},_isGlobalDeactivation:function(d,f,c,e){return this._activator!=null&&this._active!=null&&d!=_[3]&&!this._isActivatorCombo(e)},_isActivatorCombo:function(c){return this._activator.ctrlKey===c.ctrlKey&&this._activator.altKey===c.altKey&&this._activator.shiftKey===c.shiftKey},_isTrigger:function(c,e){var d=!isNaN(e)&&rwt.event.EventHandlerUtil.isAlphaNumericKeyCode(e);return this._active!=null&&c===_[9]&&d},_noMenuOpen:function(){return rwt.util.Objects.isEmpty(rwt.widgets.util.MenuManager.getInstance().getAll())}}})}());
(function(){rap={registerTypeHandler:function(b,a){a.isPublic=true;rwt.remote.HandlerRegistry.add(b,a)},getObject:function(c){var b=rwt.remote.ObjectRegistry.getEntry(c);var a;if(b&&b.handler.isPublic){a=b.object}else{if(b){a=rwt.scripting.WidgetProxyFactory.getWidgetProxy(b.object)}}return a},getRemoteObject:function(a){return rwt.remote.Connection.getInstance().getRemoteObject(a)},getClient:function(){return rwt.client.Client},on:function(b,a){if(this._.events[b]){if(this._.events[b].indexOf(a)===-1){this._.events[b].push(a)}}else{throw new Error("Unknown type "+b)}},off:function(c,b){if(this._.events[c]){var a=this._.events[c].indexOf(b);if(a!==-1){rwt.util.Arrays.removeAt(this._.events[c],a)}}},_:{events:{send:[],render:[],receive:[],process:[]},notify:function(b){var c=this.events[b].concat();for(var a=0;a