blob: 628c24231f4ffec92298b08d674a39f88a685aa9 [file] [log] [blame]
(function($){if(typeof qxsettings===$[7]){qxsettings={};qxvariants={};qxvariants[$[25]]="off"};
qx={Class:{createNamespace:function(d,c){var g=d.split(".");var f=window;var b=g[0];for(var e=0,a=g.length-1;e<a;e++,b=g[e]){if(!f[b]){f=f[b]={}}else{f=f[b]}}f[b]=c;return b},define:function(b,a){if(!a){var a={statics:{}}}this.createNamespace(b,a.statics);if(a.defer){a.defer(a.statics)}qx.core.Bootstrap.__registry[b]=a.statics}}};qx.Class.define("qx.core.Bootstrap",{statics:{LOADSTART:new Date,time:function(){return new Date().getTime()},since:function(){return this.time()-this.LOADSTART},__registry:{}}});var namespace=function(a){qx.Class.createNamespace(a,{})};
qx.Class.define("qx.lang.Core");if(!Error.prototype.toString||Error.prototype.toString()=="[object Error]"){Error.prototype.toString=function(){return this.message}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(a,c){if(c==null){c=0}else{if(c<0){c=Math.max(0,this.length+c)}}for(var b=c;b<this.length;b++){if(this[b]===a){return b}}return -1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(a,c){if(c==null){c=this.length-1}else{if(c<0){c=Math.max(0,this.length+c)}}for(var b=c;b>=0;b--){if(this[b]===a){return b}}return -1}}if(!Array.prototype.forEach){Array.prototype.forEach=function(d,c){var a=this.length;for(var b=0;b<a;b++){d.call(c,this[b],b,this)}}}if(!Array.prototype.filter){Array.prototype.filter=function(e,d){var a=this.length;var c=[];for(var b=0;b<a;b++){if(e.call(d,this[b],b,this)){c.push(this[b])}}return c}}if(!Array.prototype.map){Array.prototype.map=function(e,d){var a=this.length;var c=[];for(var b=0;b<a;b++){c.push(e.call(d,this[b],b,this))}return c}}if(!Array.prototype.some){Array.prototype.some=function(d,c){var a=this.length;for(var b=0;b<a;b++){if(d.call(c,this[b],b,this)){return true}}return false}}if(!Array.prototype.every){Array.prototype.every=function(d,c){var a=this.length;for(var b=0;b<a;b++){if(!d.call(c,this[b],b,this)){return false}}return true}}if(!String.prototype.quote){String.prototype.quote=function(){return'"'+this.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"'}};
qx.Class.define("qx.lang.Array",{statics:{fromArguments:function(a){return Array.prototype.slice.call(a,0)},fromShortHand:function(c){var b=c.length;if(b>4||b==0){throw new Error("Invalid number of arguments!")}var a=qx.lang.Array.copy(c);switch(b){case 1:a[1]=a[2]=a[3]=a[0];break;case 2:a[2]=a[0];case 3:a[3]=a[1]}return a},copy:function(a){return a.concat()},getLast:function(a){return a[a.length-1]},getFirst:function(a){return a[0]},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}},contains:function(a,b){return a.indexOf(b)!=-1}}});
qx.Class.define("qx.core.Variant",{statics:{__variants:{},__cache:{},compilerIsSet:function(){return true},define:function(b,c,a){if(qx.core.Variant.compilerIsSet($[25],"on")){if(!this.__isValidArray(c)){throw new Error('Allowed values of variant "'+b+$[408])}if(a===undefined){throw new Error('Default value of variant "'+b+$[408])}}if(!this.__variants[b]){this.__variants[b]={}}else{if(qx.core.Variant.compilerIsSet($[25],"on")){if(this.__variants[b].defaultValue!==undefined){throw new Error($[342]+b+'" is already defined!')}}}this.__variants[b].allowedValues=c;this.__variants[b].defaultValue=a},get:function(a){var b=this.__variants[a];if(qx.core.Variant.compilerIsSet($[25],"on")){if(b===undefined){throw new Error($[342]+a+'" is not defined.')}}if(b.value!==undefined){return b.value}return b.defaultValue},__init:function(){if(window.qxvariants){for(var b in qxvariants){if(qx.core.Variant.compilerIsSet($[25],"on")){if((b.split(".")).length<2){throw new Error('Malformed settings key "'+b+'". Must be following the schema "namespace.key".')}}if(!this.__variants[b]){this.__variants[b]={}}this.__variants[b].value=qxvariants[b]}window.qxvariants=undefined;try{delete window.qxvariants}catch(a){}}},select:function(c,a){if(qx.core.Variant.compilerIsSet($[25],"on")){if(!this.__isValidObject(this.__variants[c])){throw new Error($[342]+c+'" is not defined')}if(!this.__isValidObject(a)){throw new Error("the second parameter must be a map!")}}for(var b in a){if(this.isSet(c,b)){return a[b]}}if(a[$[66]]!==undefined){return a[$[66]]}if(qx.core.Variant.compilerIsSet($[25],"on")){throw new Error('No match for variant "'+c+'" in variants ['+qx.lang.Object.getKeysAsString(a)+'] found, and no default ("default") given')}},isSet:function(f,d){var a=f+"$"+d;if(this.__cache[a]!==undefined){return this.__cache[a]}var c=false;if(d.indexOf("|")<0){c=this.get(f)===d}else{var g=d.split("|");for(var e=0,b=g.length;e<b;e++){if(this.get(f)===g[e]){c=true;break}}}this.__cache[a]=c;return c},__isValidArray:function(a){return typeof a===$[19]&&a!==null&&a instanceof Array},__isValidObject:function(a){return typeof a===$[19]&&a!==null&&!(a instanceof Array)},__arrayContains:function(a,d){for(var c=0,b=a.length;c<b;c++){if(a[c]==d){return true}}return false}},defer:function(a){a.define($[25],["on","off"],"on");a.define($[356],["on","off"],"on");a.define("qx.eventMonitorNoListeners",["on","off"],"off");a.define("qx.aspects",["on","off"],"off");a.define("qx.deprecationWarnings",["on","off"],"on");a.__init()}});
qx.Class.define("org.eclipse.rwt.Client",{statics:{__init:function(){this._engineName=null;this._browserName=null;this._engineVersion=null;this._engineVersionMajor=0;this._engineVersionMinor=0;this._engineVersionRevision=0;this._engineVersionBuild=0;this._browserPlatform=null;this._runsLocally=window.location.protocol==="file:";this._engineQuirksMode=document.compatMode!==$[120];this._defaultLocale="en";this._initOpera();this._initKonqueror();this._initWebkit();this._initGecko();this._initMshtml();this._initBoxSizing();this._initLocale();this._initPlatform()},getRunsLocally:function(){return this._runsLocally},getEngine:function(){return this._engineName},getBrowser:function(){return this._browserName},getVersion:function(){return this._engineVersion},getMajor:function(){return this._engineVersionMajor},getMinor:function(){return this._engineVersionMinor},getRevision:function(){return this._engineVersionRevision},getBuild:function(){return this._engineVersionBuild},isMshtml:function(){return this._engineName===$[118]},isNewMshtml:function(){return this._engineName===$[214]},isGecko:function(){return this._engineName===$[137]},isOpera:function(){return this._engineName==="opera"},isWebkit:function(){return this._engineName===$[113]},isInQuirksMode:function(){return this._engineQuirksMode},getLocale:function(){return this._browserLocale},getLanguage:function(){var a=this.getLocale();var c;var b=a.indexOf("_");if(b==-1){c=a}else{c=a.substring(0,b)}return c},getTerritory:function(){return this.getLocale().split("_")[1]||""},getDefaultLocale:function(){return this._defaultLocale},usesDefaultLocale:function(){return this._browserLocale===this._defaultLocale},getEngineBoxSizingAttributes:function(){return this._engineBoxSizingAttributes},getPlatform:function(){return this._browserPlatform},isMobileSafari:function(){return this.getPlatform()==="ios"&&this.getBrowser()==="safari"},isAndroidBrowser:function(){return this.getPlatform()===$[254]&&this.getBrowser()===$[254]},supportsVml:function(){return(this.getEngine()===$[118])&&(this.getVersion()>=5.5)},supportsTouch:function(){return this.isMobileSafari()||this.isAndroidBrowser()},supportsSvg:function(){var c=org.eclipse.rwt.Client.getEngine();var b=org.eclipse.rwt.Client.getVersion();var a=c===$[137]&&b>=1.8||c===$[113]&&b>=523||c==="opera"&&b>=9||c===$[214];if(this.isAndroidBrowser()){a=b>=534}return a},supportsCss3:function(){var c=org.eclipse.rwt.Client.getEngine();var b=org.eclipse.rwt.Client.getVersion();var a=c===$[113]&&b>=522||c===$[137]&&b>=2;return a},isZoomed:function(){var a=false;if(this._engineName===$[118]||this._engineName===$[214]){if(this._engineVersionMajor>=8){a=(screen.deviceXDPI/screen.logicalXDPI)!==1}else{var c=document.body.getBoundingClientRect();var b=(c.right-c.left)/document.body.offsetWidth;a=b!==1}}return a},_initOpera:function(){if(this._engineName===null){var b=window.opera&&/Opera[\s\/]([0-9\.]*)/.test(navigator.userAgent);if(b){this._browserName="opera";this._engineName="opera";var a=RegExp.$1;a=a.substring(0,3)+"."+a.substring(3);(/Version[\s\/]([0-9\.]*)/).test(navigator.userAgent);if(RegExp.$1){a=RegExp.$1}this._parseVersion(a)}}},_initKonqueror:function(){if(this._engineName===null){var b=navigator.vendor;var a=typeof b===$[9]&&b==="KDE"&&/KHTML\/([0-9\-\.]*)/.test(navigator.userAgent);if(a){this._engineName=$[113];this._browserName="konqueror";this._parseVersion("420")}}},_initWebkit:function(){if(this._engineName===null){var d=navigator.userAgent;var a=d.indexOf("AppleWebKit")!=-1&&/AppleWebKit\/([^ ]+)/.test(d);if(a){this._engineName=$[113];var b=RegExp.$1;var c=/[^\.0-9]/.exec(b);if(c){b=b.slice(0,c.index)}this._parseVersion(b);if(d.indexOf("Chrome")!=-1){this._browserName="chrome"}else{if(d.indexOf("Safari")!=-1){if(d.indexOf("Android")!=-1){this._browserName=$[254]}else{this._browserName="safari"}}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="safari"}else{this._browserName="other webkit"}}}}}}}}}},_initGecko:function(){if(this._engineName===null){var c=navigator.product;var b=navigator.userAgent;var a=window.controllers&&typeof c===$[9]&&c==="Gecko"&&/rv\:([^\);]+)(\)|;)/.test(b);if(a){this._engineName=$[137];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"}}}}}},_initMshtml:function(){if(this._engineName===null){var a=/MSIE\s+([^\);]+)(\)|;)/.test(navigator.userAgent);if(a){this._parseVersion(RegExp.$1);if(this._engineVersion>=9){this._engineName=$[214]}else{this._engineName=$[118]}this._browserName="explorer"}}},_parseVersion:function(a){if(typeof a===$[9]){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 $[137]:a.push("-moz-box-sizing");break;case $[113]:a.push("-khtml-box-sizing");a.push("-webkit-box-sizing");break;default:a.push("box-sizing")}this._engineBoxSizingAttributes=a},_initLocale:function(){var c=(this._engineName.indexOf($[118])!==-1)?navigator.userLanguage:navigator.language;var b=c.toLowerCase();var a=b.indexOf("-");if(a!=-1){b=b.substr(0,a)}this._browserLocale=b},_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=$[254]}else{this._browserPlatform="unix"}}else{if(a.indexOf("iPhone")!=-1||a.indexOf("iPod")!=-1||a.indexOf("iPad")!=-1){this._browserPlatform="ios"}else{this._browserPlatform=$[139]}}}}}},defer:function(c,a,b){c.__init();qx.core.Variant.define($[0],[$[137],$[118],"opera",$[113]],org.eclipse.rwt.Client.getEngine())}});
qx.Class.define("qx.lang.Object",{statics:{isEmpty:function(b){for(var a in b){return false}return true},hasMinLength:function(d,c){var b=0;for(var a in d){if((++b)>=c){return true}}return false},getLength:function(c){var b=0;for(var a in c){b++}return b},_shadowedKeys:["isPrototypeOf","hasOwnProperty","toLocaleString","toString","valueOf"],getKeys:qx.core.Variant.select($[0],{mshtml:function(g){var b=[];for(var f in g){b.push(f)}for(var e=0,d=this._shadowedKeys,c=d.length;e<c;e++){if(g.hasOwnProperty(d[e])){b.push(d[e])}}return b},"default":function(c){var a=[];for(var b in c){a.push(b)}return a}}),getKeysAsString:function(b){var a=qx.lang.Object.getKeys(b);if(a.length==0){return""}return'"'+a.join('", "')+'"'},getValues:function(c){var a=[];for(var b in c){a.push(c[b])}return a},mergeWith:function(d,c,a){if(a===undefined){a=true}for(var b in c){if(a||d[b]===undefined){d[b]=c[b]}}return d},carefullyMergeWith:function(b,a){return qx.lang.Object.mergeWith(b,a,false)},merge:function(d,b){var a=arguments.length;for(var c=1;c<a;c++){qx.lang.Object.mergeWith(d,arguments[c])}return d},copy:function(b){var c={};for(var a in b){c[a]=b[a]}return c},invert:function(c){var a={};for(var b in c){a[c[b].toString()]=b}return a},getKeyFromValue:function(c,b){for(var a in c){if(c[a]===b){return a}}return null},select:function(a,b){return b[a]},fromArray:function(d){var c={};for(var b=0,a=d.length;b<a;b++){c[d[b].toString()]=true}return c}}});
qx.Class.define("qx.Class",{statics:{_normalizeConfig:function(a){if(!a){var a={}}if(a.include&&!(a.include instanceof Array)){a.include=[a.include]}if(a.implement&&!(a.implement instanceof Array)){a.implement=[a.implement]}if(!a.hasOwnProperty("extend")&&!a.type){a.type=$[121]}return a},define:function(c,e){if(this._stopLoading){throw new Error("Stop loading "+c)}try{e=this._normalizeConfig(e);this.__validateConfig(c,e);var k;if(!e.extend){k=e.statics||{}}else{if(!e.construct){e.construct=this.__createDefaultConstructor()}k=this.__wrapConstructor(e.construct,c,e.type);if(e.statics){var p;for(var g=0,o=qx.lang.Object.getKeys(e.statics),f=o.length;g<f;g++){p=o[g];k[p]=e.statics[p]}}}var n=this.createNamespace(c,k,false);k.name=k.classname=c;k.basename=n;this.__registry[c]=k;if(!k.hasOwnProperty("toString")){k.toString=this.genericToString}if(e.extend){var b=e.extend.prototype;var d=this.__createEmptyFunction();d.prototype=b;var h=new d;k.prototype=h;h.name=h.classname=c;h.basename=n;e.construct.base=k.superclass=e.extend;e.construct.self=k.constructor=h.constructor=k;if(e.destruct){k.$$destructor=e.destruct}var j=this;k.$$initializer=function(){if(e.properties){j.__addProperties(k,e.properties,true)}if(e.members){j.__addMembers(k,e.members,true,true,false)}if(e.events){j.__addEvents(k,e.events,true)}if(e.include){for(var q=0,a=e.include.length;q<a;q++){j.__addMixin(k,e.include[q],false)}}}}if(e.variants){for(var p in e.variants){qx.core.Variant.define(p,e.variants[p].allowedValues,e.variants[p].defaultValue)}}if(e.defer){this.__initializeClass(k);e.defer.self=k;e.defer(k,k.prototype,{add:function(i,a){var l={};l[i]=a;qx.Class.__addProperties(k,l,true)}})}}catch(m){alert("Error loading class "+c+": "+m);this._stopLoading=true;throw m}},createNamespace:function(d,c){var g=d.split(".");var f=window;var b=g[0];for(var e=0,a=g.length-1;e<a;e++,b=g[e]){if(!f[b]){f=f[b]={}}else{f=f[b]}}if(f[b]===undefined){f[b]=c}return b},isDefined:function(a){return this.getByName(a)!==undefined},getTotalNumber:function(){return qx.lang.Object.getLength(this.__registry)},getByName:function(a){return this.__registry[a]},include:function(b,a){qx.Class.__addMixin(b,a,false)},patch:function(b,a){qx.Class.__addMixin(b,a,true)},isSubClassOf:function(a,b){if(!a){return false}if(a==b){return true}if(a.prototype instanceof b){return true}return false},getPropertyDefinition:function(b,a){while(b){if(b.$$properties&&b.$$properties[a]){return b.$$properties[a]}b=b.superclass}return null},getByProperty:function(b,a){while(b){if(b.$$properties&&b.$$properties[a]){return b}b=b.superclass}return null},hasProperty:function(b,a){return !!this.getPropertyDefinition(b,a)},getEventType:function(b,a){var b=b.constructor;while(b.superclass){if(b.$$events&&b.$$events[a]!==undefined){return b.$$events[a]}b=b.superclass}return null},supportsEvent:function(b,a){return !!this.getEventType(b,a)},hasOwnMixin:function(b,a){return b.$$includes&&b.$$includes.indexOf(a)!==-1},getByMixin:function(c,b){var e,d,a;while(c){if(c.$$includes){e=c.$$flatIncludes;for(d=0,a=e.length;d<a;d++){if(e[d]===b){return c}}}c=c.superclass}return null},getMixins:function(a){var b=[];while(a){if(a.$$includes){b.push.apply(b,a.$$flatIncludes)}a=a.superclass}return b},hasMixin:function(b,a){return !!this.getByMixin(b,a)},hasOwnInterface:function(a,b){return a.$$implements&&a.$$implements.indexOf(b)!==-1},getByInterface:function(b,e){var d,c,a;while(b){if(b.$$implements){d=b.$$flatImplements;for(c=0,a=d.length;c<a;c++){if(d[c]===e){return b}}}b=b.superclass}return null},getInterfaces:function(a){var b=[];while(a){if(a.$$implements){b.push.apply(b,a.$$flatImplements)}a=a.superclass}return b},hasInterface:function(a,b){return !!this.getByInterface(a,b)},implementsInterface:function(a,b){return false},getInstance:function(){if(!this.$$instance){this.$$allowconstruct=true;this.$$instance=new this;delete this.$$allowconstruct}return this.$$instance},genericToString:function(){return"[Class "+this.classname+"]"},__registry:qx.core.Bootstrap.__registry,__allowedKeys:qx.core.Variant.select($[25],{on:{type:$[9],extend:$[45],implement:$[19],include:$[19],construct:$[45],statics:$[19],properties:$[19],members:$[19],settings:$[19],variants:$[19],events:$[19],defer:$[45],destruct:$[45]},"default":null}),__staticAllowedKeys:qx.core.Variant.select($[25],{on:{type:$[9],statics:$[19],settings:$[19],variants:$[19],defer:$[45]},"default":null}),__validateConfig:qx.core.Variant.select($[25],{on:function(b,c){if(c.type&&!(c.type===$[121]||c.type===$[101]||c.type===$[37])){throw new Error('Invalid type "'+c.type+'" definition for class "'+b+'"!')}var h=c.type===$[121]?this.__staticAllowedKeys:this.__allowedKeys;for(var k in c){if(!h[k]){throw new Error($[312]+k+$[112]+b+$[301])}if(c[k]==null){throw new Error($[197]+k+$[112]+b+$[498])}if(typeof c[k]!==h[k]){throw new Error($[299]+k+$[112]+b+$[313]+h[k]+'"!')}}var g=["statics","properties","members","settings","variants","events"];for(var e=0,d=g.length;e<d;e++){var k=g[e];if(c[k]!==undefined&&(c[k] instanceof Array||c[k] instanceof RegExp||c[k] instanceof Date||c[k].classname!==undefined)){throw new Error($[197]+k+$[112]+b+$[486])}}if(c.include){if(c.include instanceof Array){for(var e=0,j=c.include,d=j.length;e<d;e++){if(j[e]==null||j[e].$$type!=="Mixin"){throw new Error('The include definition in class "'+b+'" contains an invalid mixin at position '+e+": "+j[e])}}}else{throw new Error('Invalid include definition in class "'+b+'"! Only mixins and arrays of mixins are allowed!')}}if(c.implement){if(c.implement instanceof Array){for(var e=0,j=c.implement,d=j.length;e<d;e++){if(j[e]==null||j[e].$$type!=="Interface"){throw new Error('The implement definition in class "'+b+'" contains an invalid interface at position '+e+": "+j[e])}}}else{throw new Error('Invalid implement definition in class "'+b+'"! Only interfaces and arrays of interfaces are allowed!')}}if(c.include){try{qx.Mixin.checkCompatibility(c.include)}catch(f){throw new Error('Error in include definition of class "'+b+'"! '+f.message)}}if(c.variants){for(var k in c.variants){if(k.substr(0,k.indexOf("."))!=b.substr(0,b.indexOf("."))){throw new Error('Forbidden variant "'+k+'" found in "'+b+'". It is forbidden to define a variant for an external namespace!')}}}},"default":function(){}}),__addEvents:function(a,c,d){if(a.$$events){for(var b in c){a.$$events[b]=c[b]}}else{a.$$events=c}},__addProperties:function(d,e,g){var c;if(g===undefined){g=false}var a=!!d.$$propertiesAttached;for(var b in e){c=e[b];c.name=b;if(!c.refine){if(d.$$properties===undefined){d.$$properties={}}d.$$properties[b]=c}if(c.init!==undefined){d.prototype["__init$"+b]=c.init}if(c.event!==undefined){var f={};f[c.event]=$[441];this.__addEvents(d,f,g)}if(c.inheritable){qx.core.Property.$$inheritable[b]=true}if(a){qx.core.Property.attachMethods(d,b,c)}if(c._fast){qx.core.LegacyProperty.addFastProperty(c,d.prototype)}else{if(c._cached){qx.core.LegacyProperty.addCachedProperty(c,d.prototype)}else{if(c._legacy){qx.core.LegacyProperty.addProperty(c,d.prototype)}}}}},__validateProperty:qx.core.Variant.select($[25],{on:function(d,a,c,b){var g=this.hasProperty(d,a);var h=c._legacy||c._fast||c._cached;if(g){var i=this.getPropertyDefinition(d,a);var j=i._legacy||i._fast||i._cached;if(h!=j){throw new Error("Could not redefine existing property '"+a+$[464]+d.classname+"'.")}if(c.refine&&i.init===undefined){throw new Error("Could not refine a init value if there was previously no init value defined. Property '"+a+$[464]+d.classname+"'.")}}if(!g&&c.refine){throw new Error("Could not refine non-existent property: "+a+"!")}if(g&&!b){throw new Error("Class "+d.classname+" already has a property: "+a+"!")}if(g&&b&&!h){if(!c.refine){throw new Error('Could not refine property "'+a+'" without a "refine" flag in the property definition! This class: '+d.classname+", original class: "+this.getByProperty(d,a).classname+".")}for(var f in c){if(f!=="init"&&f!=="refine"){throw new Error("Class "+d.classname+" could not refine property: "+a+"! Key: "+f+" could not be refined!")}}}if(h){return}var e=c.group?qx.core.Property.$$allowedGroupKeys:qx.core.Property.$$allowedKeys;for(var f in c){if(e[f]===undefined){throw new Error($[312]+f+$[339]+a+$[112]+d.classname+$[301])}if(c[f]===undefined){throw new Error($[197]+f+$[339]+a+$[112]+d.classname+'"! The value is undefined: '+c[f])}if(e[f]!==null&&typeof c[f]!==e[f]){throw new Error($[299]+f+$[339]+a+$[112]+d.classname+$[313]+e[f]+'"!')}}if(c.transform!=null){if(!(typeof c.transform==$[9])){throw new Error('Invalid transform definition of property "'+a+$[112]+d.classname+'"! Needs to be a String.')}}if(c.check!=null){if(!(typeof c.check==$[9]||c.check instanceof Array||c.check instanceof Function)){throw new Error('Invalid check definition of property "'+a+$[112]+d.classname+'"! Needs to be a String, Array or Function.')}}if(c.event!=null&&!this.isSubClassOf(d,qx.core.Target)){throw new Error("Invalid property '"+a+"' in class '"+d.classname+"': Properties defining an event can only be defined in sub classes of 'qx.core.Target'!")}},"default":null}),__addMembers:function(k,f,d,b,c){var j=k.prototype;var n,h;for(var g=0,m=qx.lang.Object.getKeys(f),e=m.length;g<e;g++){n=m[g];h=f[n];if(b!==false&&h instanceof Function){if(c==true){h=this.__mixinMemberWrapper(h,j[n])}else{if(j[n]){h.base=j[n]}h.self=k}}j[n]=h}},__mixinMemberWrapper:function(b,a){if(a){return function(){var d=b.base;b.base=a;var c=b.apply(this,arguments);b.base=d;return c}}else{return b}},__addMixin:function(c,b,g){var f=qx.Mixin.flatten([b]);var e;for(var d=0,a=f.length;d<a;d++){e=f[d];if(e.$$events){this.__addEvents(c,e.$$events,g)}if(e.$$properties){this.__addProperties(c,e.$$properties,g)}if(e.$$members){this.__addMembers(c,e.$$members,g,g,g)}}if(c.$$includes){c.$$includes.push(b);c.$$flatIncludes.push.apply(c.$$flatIncludes,f)}else{c.$$includes=[b];c.$$flatIncludes=f}},__createDefaultConstructor:function(){function a(){arguments.callee.base.apply(this,arguments)}return a},__createEmptyFunction:function(){return function(){}},__initializeClass:function(a){if(a.$$initializer){var b=[];var c=a;while(c.$$initializer){b.push(c);c=c.superclass}while(b.length>0){c=b.pop();c.$$initializer();delete c.$$initializer}}},__wrapConstructor:function(a,b,c){var d=this.__initializeClass;var e=function(){var j=arguments.callee.constructor;d(j);if(!j.$$propertiesAttached){qx.core.Property.attach(j)}var h=j.$$original.apply(this,arguments);if(j.$$includes){var g=j.$$flatIncludes;for(var k=0,f=g.length;k<f;k++){if(g[k].$$constructor){g[k].$$constructor.apply(this,arguments)}}}if(this.classname===", name, ".classname){this.$$initialized=true}return h};if(c===$[37]){e.getInstance=this.getInstance}e.$$original=a;a.wrapper=e;return e}}});
qx.Class.define("qx.Mixin",{statics:{define:function(c,b){if(b){if(b.include&&!(b.include instanceof Array)){b.include=[b.include]}var a=b.statics?b.statics:{};for(var d in a){a[d].mixin=a}if(b.construct){a.$$constructor=b.construct}if(b.include){a.$$includes=b.include}if(b.properties){a.$$properties=b.properties}if(b.members){a.$$members=b.members}for(var d in a.$$members){if(a.$$members[d] instanceof Function){a.$$members[d].mixin=a}}if(b.events){a.$$events=b.events}if(b.destruct){a.$$destructor=b.destruct}}else{var a={}}a.$$type="Mixin";a.name=c;a.toString=this.genericToString;a.basename=qx.Class.createNamespace(c,a);this.__registry[c]=a;return a},checkCompatibility:function(c){var e=this.flatten(c);var d=e.length;if(d<2){return true}var f={};var a={};var j={};var h;for(var b=0;b<d;b++){h=e[b];for(var g in h.events){if(j[g]){throw new Error($[317]+h.name+'" and "'+j[g]+$[397]+g+'"!')}j[g]=h.name}for(var g in h.properties){if(f[g]){throw new Error($[317]+h.name+'" and "'+f[g]+'" in property "'+g+'"!')}f[g]=h.name}for(var g in h.members){if(a[g]){throw new Error($[317]+h.name+'" and "'+a[g]+$[397]+g+'"!')}a[g]=h.name}}return true},isCompatible:function(a,b){var c=qx.Class.getMixins(b);c.push(a);return qx.Mixin.checkCompatibility(c)},getByName:function(a){return this.__registry[a]},isDefined:function(a){return this.getByName(a)!==undefined},getTotalNumber:function(){return qx.lang.Object.getLength(this.__registry)},flatten:function(b){if(!b){return[]}var d=b.concat();for(var c=0,a=b.length;c<a;c++){if(b[c].$$includes){d.push.apply(d,this.flatten(b[c].$$includes))}}return d},genericToString:function(){return"[Mixin "+this.name+"]"},__registry:{},__allowedKeys:qx.core.Variant.select($[25],{on:{include:$[19],statics:$[19],members:$[19],properties:$[19],events:$[19],destruct:$[45],construct:$[45]},"default":null}),__validateConfig:qx.core.Variant.select($[25],{on:function(e,d){var j=this.__allowedKeys;for(var g in d){if(!j[g]){throw new Error($[312]+g+$[266]+e+$[301])}if(d[g]==null){throw new Error($[197]+g+$[266]+e+$[498])}if(j[g]!==null&&typeof d[g]!==j[g]){throw new Error($[299]+g+$[266]+e+$[313]+j[g]+'"!')}}var h=["statics","members","properties","events"];for(var f=0,c=h.length;f<c;f++){var g=h[f];if(d[g]!==undefined&&(d[g] instanceof Array||d[g] instanceof RegExp||d[g] instanceof Date||d[g].classname!==undefined)){throw new Error($[197]+g+$[266]+e+$[486])}}if(d.include){for(var f=0,b=d.include,c=b.length;f<c;f++){if(b[f]==null){throw new Error($[422]+(f+1)+$[436]+e+"'is undefined/null!")}if(b[f].$$type!=="Mixin"){throw new Error($[422]+(f+1)+$[436]+e+"'is not a mixin!")}}this.checkCompatibility(d.include)}},"default":function(){}})}});
qx.Mixin.define("qx.core.MUserData",{members:{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}},destruct:function(){this._disposeFields("__userData")}});
qx.Class.define("qx.core.LegacyProperty",{statics:{getSetterName:function(a){return qx.core.Property.$$method.set[a]},getGetterName:function(a){return qx.core.Property.$$method.get[a]},getResetterName:function(a){return qx.core.Property.$$method.reset[a]},addFastProperty:function(b,d){var c=b.name;var g=qx.lang.String.toFirstUp(c);var h="_value"+g;var f="get"+g;var e="set"+g;var a="_compute"+g;d[h]=typeof b.defaultValue!==$[7]?b.defaultValue:null;if(b.noCompute){d[f]=function(){return this[h]}}else{d[f]=function(){return this[h]==null?this[h]=this[a]():this[h]}}d[f].self=d.constructor;if(b.setOnlyOnce){d[e]=function(i){this[h]=i;this[e]=null;return i}}else{d[e]=function(i){return this[h]=i}}d[e].self=d.constructor;if(!b.noCompute){d[a]=function(){return null};d[a].self=d.constructor}},addCachedProperty:function(c,e){var d=c.name;var f=qx.lang.String.toFirstUp(d);var g="_cached"+f;var a="_compute"+f;var b="_change"+f;if(typeof c.defaultValue!==$[7]){e[g]=c.defaultValue}e["get"+f]=function(){if(this[g]==null){this[g]=this[a]()}return this[g]};e[$[497]+f]=function(){if(this[g]!=null){this[g]=null;if(c.addToQueueRuntime){this.addToQueueRuntime(c.name)}}};e["_recompute"+f]=function(){var h=this[g];var i=this[a]();if(i!=h){this[g]=i;this[b](i,h);return true}return false};e[b]=function(i,h){};e[a]=function(){return null};e["get"+f].self=e.constructor;e[$[497]+f].self=e.constructor;e["_recompute"+f].self=e.constructor},addProperty:function(c,f){if(typeof c!==$[19]){throw new Error("AddProperty: Param should be an object!")}if(typeof c.name!==$[9]){throw new Error("AddProperty: Malformed input parameters: name needed!")}if(c.dispose===undefined&&(c.type==$[45]||c.type==$[19])){c.dispose=true}c.method=qx.lang.String.toFirstUp(c.name);c.implMethod=c.impl?qx.lang.String.toFirstUp(c.impl):c.method;if(c.defaultValue==undefined){c.defaultValue=null}c.allowNull=c.allowNull!==false;c.allowMultipleArguments=c.allowMultipleArguments===true;if(typeof c.type===$[9]){c.hasType=true}else{if(typeof c.type!==$[7]){throw new Error("AddProperty: Invalid type definition for property "+c.name+": "+c.type)}else{c.hasType=false}}if(typeof c.instance===$[9]){c.hasInstance=true}else{if(typeof c.instance!==$[7]){throw new Error("AddProperty: Invalid instance definition for property "+c.name+": "+c.instance)}else{c.hasInstance=false}}if(typeof c.classname===$[9]){c.hasClassName=true}else{if(typeof c.classname!==$[7]){throw new Error("AddProperty: Invalid classname definition for property "+c.name+": "+c.classname)}else{c.hasClassName=false}}c.hasConvert=c.convert!=null;c.hasPossibleValues=c.possibleValues!=null;c.addToQueue=c.addToQueue||false;c.addToQueueRuntime=c.addToQueueRuntime||false;c.up=c.name.toUpperCase();var e=qx.core.Property.$$store.user[c.name]="__user$"+c.name;var a=$[67]+c.method;var d="_modify"+c.implMethod;var b="_check"+c.implMethod;var g=qx.core.Property.$$method;if(!g.set[c.name]){g.set[c.name]="set"+c.method;g.get[c.name]="get"+c.method;g.reset[c.name]=$[125]+c.method}f[e]=c.defaultValue;f["get"+c.method]=function(){return this[e]};f["force"+c.method]=function(h){return this[e]=h};f[$[125]+c.method]=function(){return this["set"+c.method](c.defaultValue)};if(c.type===$[128]){f[$[205]+c.method]=function(h){return this["set"+c.method](!this[e])}}if(c.allowMultipleArguments||c.hasConvert||c.hasInstance||c.hasClassName||c.hasPossibleValues||c.hasUnitDetection||c.addToQueue||c.addToQueueRuntime||c.addToStateQueue){f["set"+c.method]=function(j){if(c.allowMultipleArguments&&arguments.length>1){j=qx.lang.Array.fromArguments(arguments)}if(c.hasConvert){try{j=c.convert.call(this,j,c)}catch(i){throw new Error("Attention! Could not convert new value for "+c.name+": "+j+": "+i)}}var h=this[e];if(j===h){return j}if(!(c.allowNull&&j==null)){if(c.hasType&&typeof j!==c.type){throw new Error($[225]+j+$[196]+c.name+$[382]+c.type+$[490]+typeof j+'"!')}if(qx.Class.getByName(c.instance)){if(c.hasInstance&&!(j instanceof qx.Class.getByName(c.instance))){throw new Error($[225]+j+$[196]+c.name+$[478]+c.instance+'"!')}}else{if(qx.core.Variant.isSet($[356],"on")){if(c.hasInstance&&!(j instanceof qx.OO.classes[c.instance])){throw new Error($[225]+j+$[196]+c.name+$[478]+c.instance+'"!')}}}if(c.hasClassName&&j.classname!=c.classname){throw new Error($[225]+j+$[196]+c.name+'" which must be an object with the classname "'+c.classname+'"!')}if(c.hasPossibleValues&&j!=null&&!qx.lang.Array.contains(c.possibleValues,j)){throw new Error("Failed to save value for "+c.name+". '"+j+"' is not a possible value!")}}if(this[b]){try{j=this[b](j,c);if(j===h){return j}}catch(i){throw new Error($[506]+c.name+" "+i)}}this[e]=j;if(this[d]){try{this[d](j,h,c)}catch(i){throw new Error('Modification of property "'+c.name+$[470]+i)}}if(c.addToQueue){this.addToQueue(c.name)}if(c.addToQueueRuntime){this.addToQueueRuntime(c.name)}if(c.addToStateQueue){this.addToStateQueue()}if(this.hasEventListeners&&this.hasEventListeners(a)){try{this.createDispatchDataEvent(a,j)}catch(i){throw new Error("Property "+c.name+$[471]+i)}}return j}}else{f["set"+c.method]=function(l){var i=this[e];if(l===i){return l}if(!(c.allowNull&&l==null)){if(c.hasType&&typeof l!==c.type){throw new Error($[225]+l+$[196]+c.name+$[382]+c.type+$[490]+typeof l+'"!')}}if(this[b]){try{l=this[b](l,c);if(l===i){return l}}catch(j){throw new Error($[506]+c.name+" "+j)}}this[e]=l;if(this[d]){try{this[d](l,i,c)}catch(j){var h=new String(l).substring(0,50);throw new Error('Setting property "'+c.name+'" to "'+h+$[470]+j)}}if(this.hasEventListeners&&this.hasEventListeners(a)){var k=new qx.event.type.DataEvent(a,l,i,false);k.setTarget(this);try{this.dispatchEvent(k,true)}catch(j){throw new Error("Property "+c.name+$[471]+j)}}return l}}f["set"+c.method].self=f.constructor;if(typeof c.getAlias===$[9]){f[c.getAlias]=f["get"+c.method]}if(typeof c.setAlias===$[9]){f[c.setAlias]=f["set"+c.method]}}}});
qx.Class.define("qx.core.Property",{statics:{__checks:{Boolean:'typeof value === "boolean"',String:'typeof value === "string"',NonEmptyString:'typeof value === "string" && value.length > 0',Number:$[295],Integer:'typeof value === "number" && isFinite(value) && value%1 === 0',Float:$[295],Double:$[295],Error:"value instanceof Error",RegExp:"value instanceof RegExp",Object:'value !== null && typeof value === "object"',Array:"value instanceof Array",Map:'value !== null && typeof value === "object" && !(value instanceof Array) && !(value instanceof qx.core.Object)',Function:"value instanceof Function",Date:"value instanceof Date",Node:"value !== null && value.nodeType !== undefined",Element:"value !== null && value.nodeType === 1 && value.attributes",Document:"value !== null && value.nodeType === 9 && value.documentElement",Window:"value !== null && window.document",Event:"value !== null && value.type !== undefined",Class:'value !== null && value.$$type === "Class"',Mixin:'value !== null && value.$$type === "Mixin"',Interface:'value !== null && value.$$type === "Interface"',Theme:'value !== null && value.$$type === "Theme"',Color:'typeof value === "string" && qx.util.ColorUtil.isValid(value)',Border:$[425],Font:$[425],Label:'value !== null && typeof value === "string"'},__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:$[182],$$idcounter:0,$$store:{user:{},theme:{},inherit:{},init:{},useinit:{}},$$method:{get:{},set:{},reset:{},init:{},refresh:{},style:{},unstyle:{}},$$allowedKeys:{name:$[9],dispose:$[128],inheritable:$[128],nullable:$[128],themeable:$[128],refine:$[128],init:null,apply:$[9],event:$[9],check:null,transform:$[9],deferredInit:$[128]},$$allowedGroupKeys:{name:$[9],group:$[19],mode:$[9],themeable:$[128]},$$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._legacy||a._fast||a._cached){return}var d,e;if(b.charAt(0)==="_"){if(b.charAt(1)==="_"){d="__";e=qx.lang.String.toFirstUp(b.substring(2))}else{d="_";e=qx.lang.String.toFirstUp(b.substring(1))}}else{d="";e=qx.lang.String.toFirstUp(b)}if(a.group){this.__attachGroupMethods(c,a,d,e)}else{this.__attachPropertyMethods(c,a,d,e)}},__attachGroupMethods:function(n,e,k,r){var h=n.prototype;var b=e.name;var d=e.themeable===true;var g=[];var o=[];if(d){var s=[];var m=[]}var c="var a=arguments[0] instanceof Array?arguments[0]:arguments;";g.push(c);if(d){s.push(c)}if(e.mode==$[227]){var p="a=qx.lang.Array.fromShortHand(qx.lang.Array.fromArguments(a));";g.push(p);if(d){s.push(p)}}for(var j=0,q=e.group,f=q.length;j<f;j++){if(qx.core.Variant.isSet($[25],"on")){if(!this.$$method.set[q[j]]||!this.$$method.reset[q[j]]){throw new Error("Cannot create property group '"+b+"' including non-existing property '"+q[j]+"'!")}}g.push($[57],this.$$method.set[q[j]],"(a[",j,"]);");o.push($[57],this.$$method.reset[q[j]],"();");if(d){if(qx.core.Variant.isSet($[25],"on")){if(!this.$$method.style[q[j]]){throw new Error("Cannot add the non themable property '"+q[j]+"' to the themable property group '"+b+"'")}}s.push($[57],this.$$method.style[q[j]],"(a[",j,"]);");m.push($[57],this.$$method.unstyle[q[j]],"();")}}this.$$method.set[b]=k+"set"+r;h[this.$$method.set[b]]=new Function(g.join(""));this.$$method.reset[b]=k+$[125]+r;h[this.$$method.reset[b]]=new Function(o.join(""));if(d){this.$$method.style[b]=k+$[73]+r;h[this.$$method.style[b]]=new Function(s.join(""));this.$$method.unstyle[b]=k+$[135]+r;h[this.$$method.unstyle[b]]=new Function(m.join(""))}},__attachPropertyMethods:function(e,d,f,h){var b=e.prototype;var c=d.name;if(d.dispose===undefined&&typeof d.check===$[9]){d.dispose=this.__dispose[d.check]||qx.Class.isDefined(d.check)}var g=this.$$method;var a=this.$$store;a.user[c]="__user$"+c;a.theme[c]="__theme$"+c;a.init[c]="__init$"+c;a.inherit[c]="__inherit$"+c;a.useinit[c]="__useinit$"+c;g.get[c]=f+"get"+h;b[g.get[c]]=function(){return qx.core.Property.executeOptimizedGetter(this,e,c,"get")};g.set[c]=f+"set"+h;b[g.set[c]]=function(i){return qx.core.Property.executeOptimizedSetter(this,e,c,"set",arguments)};g.reset[c]=f+$[125]+h;b[g.reset[c]]=function(){return qx.core.Property.executeOptimizedSetter(this,e,c,$[125])};if(d.inheritable||d.apply||d.event||d.deferredInit){g.init[c]=f+"init"+h;b[g.init[c]]=function(i){return qx.core.Property.executeOptimizedSetter(this,e,c,"init",arguments)}}if(d.inheritable){g.refresh[c]=f+$[153]+h;b[g.refresh[c]]=function(i){return qx.core.Property.executeOptimizedSetter(this,e,c,$[153],arguments)}}if(d.themeable){g.style[c]=f+$[73]+h;b[g.style[c]]=function(i){return qx.core.Property.executeOptimizedSetter(this,e,c,$[73],arguments)};g.unstyle[c]=f+$[135]+h;b[g.unstyle[c]]=function(){return qx.core.Property.executeOptimizedSetter(this,e,c,$[135])}}if(d.check===$[2]){b[f+$[205]+h]=new Function($[148]+g.set[c]+"(!this."+g.get[c]+"())");b[f+"is"+h]=new Function($[148]+g.get[c]+"()")}},__errors:{0:"Could not change or apply init value after constructing phase!",1:"Requires exactly one argument!",2:"Undefined value is not allowed!",3:"Does not allow any arguments!",4:"Null value is not allowed!",5:"Is invalid!"},error:function(e,g,c,a,b){var d=e.constructor.classname;var f="Error in property "+c+" of class "+d+" in method "+this.$$method[a][c]+" with incoming value '"+b+"': ";throw new Error(f+(this.__errors[g]||"Unknown reason: "+g))},__unwrapFunctionFromCode:function(a,c,e,g,h,d){var b=this.$$method[g][e];if(qx.core.Variant.isSet($[25],"on")){try{c[b]=new Function("value",h.join(""))}catch(f){throw new Error("Malformed generated code to unwrap method: "+this.$$method[g][e]+"\n"+h.join(""))}}else{c[b]=new Function("value",h.join(""))}if(d===undefined){return a[b]()}else{if(qx.core.Variant.isSet($[25],"on")){return a[b].apply(a,d)}else{return a[b](d[0])}}},executeOptimizedGetter:function(a,e,d,f){var c=e.$$properties[d];var b=e.prototype;var g=[];if(c.inheritable){g.push($[115],this.$$store.inherit[d],$[144]);g.push($[148],this.$$store.inherit[d],";");g.push("else ")}g.push($[115],this.$$store.user[d],$[144]);g.push($[148],this.$$store.user[d],";");if(c.themeable){g.push($[216],this.$$store.theme[d],$[144]);g.push($[148],this.$$store.theme[d],";")}if(c.deferredInit&&c.init===undefined){g.push($[216],this.$$store.init[d],$[144]);g.push($[148],this.$$store.init[d],";")}g.push("else ");if(c.init!==undefined){g.push($[148],this.$$store.init[d],";")}else{if(c.inheritable||c.nullable){g.push("return null;")}else{g.push('throw new Error("Property ',d," of an instance of ",e.classname,' is not (yet) ready!");')}}return this.__unwrapFunctionFromCode(a,b,d,f,g)},executeOptimizedSetter:function(k,g,a,e,h){var d=g.$$properties[a];var f=g.prototype;var b=[];var i=e==="set"||e===$[73]||(e==="init"&&d.init===undefined);var l=e===$[125]||e===$[135];var c=d.apply||d.event||d.inheritable;if(e===$[73]||e===$[135]){var j=this.$$store.theme[a]}else{if(e==="init"){var j=this.$$store.init[a]}else{var j=this.$$store.user[a]}}if(qx.core.Variant.isSet($[25],"on")){b.push($[405]);if(e==="init"){b.push('if(this.$$initialized)prop.error(this,0,"'+a+'","'+e+$[157])}if(e===$[153]){}else{if(i){b.push('if(arguments.length!==1)prop.error(this,1,"'+a+'","'+e+$[157]);b.push($[417]+a+'","'+e+$[157])}else{b.push('if(arguments.length!==0)prop.error(this,3,"'+a+'","'+e+$[157])}}}else{if(!d.nullable||d.check||d.inheritable){b.push($[405])}if(qx.core.Variant.isSet($[25],"on")&&e==="set"){b.push($[417]+a+'","'+e+$[157])}}if(i){if(d.transform){b.push("value=this.",d.transform,"(value);")}}if(c){if(i){b.push($[115],j,"===value)return value;")}else{if(l){b.push($[115],j,"===undefined)return;")}}}if(d.inheritable){b.push("var inherit=prop.$$inherit;")}if(i&&qx.core.Variant.isSet($[25],"on")){if(!d.nullable){b.push('if(value===null)prop.error(this,4,"'+a+'","'+e+$[157])}if(d.check!==undefined){if(d.nullable){b.push("if(value!==null)")}if(d.inheritable){b.push("if(value!==inherit)")}b.push("if(");if(this.__checks[d.check]!==undefined){b.push("!(",this.__checks[d.check],")")}else{if(qx.Class.isDefined(d.check)){b.push("!(value instanceof ",d.check,")")}else{if(typeof d.check===$[45]){b.push("!",g.classname,$[444],a);b.push(".check.call(this, value)")}else{if(typeof d.check===$[9]){b.push("!(",d.check,")")}else{if(d.check instanceof Array){d.checkMap=qx.lang.Object.fromArray(d.check);b.push(g.classname,$[444],a);b.push(".checkMap[value]===undefined")}else{throw new Error("Could not add check to property "+a+" of class "+g.classname)}}}}}b.push(')prop.error(this,5,"'+a+'","'+e+$[157])}}if(!c){if(e==="set"){b.push($[57],this.$$store.user[a],$[70])}else{if(e===$[125]){b.push($[115],this.$$store.user[a],$[144]);b.push($[132],this.$$store.user[a],";")}else{if(e===$[73]){b.push($[57],this.$$store.theme[a],$[70])}else{if(e===$[135]){b.push($[115],this.$$store.theme[a],$[144]);b.push($[132],this.$$store.theme[a],";")}else{if(e==="init"&&i){b.push($[57],this.$$store.init[a],$[70])}}}}}}else{if(d.inheritable){b.push("var computed, old=this.",this.$$store.inherit[a],";")}else{b.push("var computed, old;")}b.push($[115],this.$$store.user[a],$[259]);if(e==="set"){if(!d.inheritable){b.push($[248],this.$$store.user[a],";")}b.push($[50],this.$$store.user[a],$[70])}else{if(e===$[125]){if(!d.inheritable){b.push($[248],this.$$store.user[a],";")}b.push($[132],this.$$store.user[a],";");b.push($[115],this.$$store.theme[a],$[144]);b.push($[50],this.$$store.theme[a],";");b.push($[216],this.$$store.init[a],$[259]);b.push($[50],this.$$store.init[a],";");b.push($[57],this.$$store.useinit[a],"=true;");b.push("}")}else{if(d.inheritable){b.push($[50],this.$$store.user[a],";")}else{b.push("old=computed=this.",this.$$store.user[a],";")}if(e===$[73]){b.push($[57],this.$$store.theme[a],$[70])}else{if(e===$[135]){b.push($[132],this.$$store.theme[a],";")}else{if(e==="init"&&i){b.push($[57],this.$$store.init[a],$[70])}}}}}b.push("}");if(d.themeable){b.push($[216],this.$$store.theme[a],$[259]);if(!d.inheritable){b.push($[248],this.$$store.theme[a],";")}if(e==="set"){b.push($[50],this.$$store.user[a],$[70])}else{if(e===$[73]){b.push($[50],this.$$store.theme[a],$[70])}else{if(e===$[135]){b.push($[132],this.$$store.theme[a],";");b.push($[115],this.$$store.init[a],$[259]);b.push($[50],this.$$store.init[a],";");b.push($[57],this.$$store.useinit[a],"=true;");b.push("}")}else{if(e==="init"){if(i){b.push($[57],this.$$store.init[a],$[70])}b.push($[50],this.$$store.theme[a],";")}else{if(e===$[153]){b.push($[50],this.$$store.theme[a],";")}}}}}b.push("}")}b.push($[216],this.$$store.useinit[a],"){");if(!d.inheritable){b.push($[248],this.$$store.init[a],";")}if(e==="init"){if(i){b.push($[50],this.$$store.init[a],$[70])}else{b.push($[50],this.$$store.init[a],";")}}else{if(e==="set"||e===$[73]||e===$[153]){b.push($[132],this.$$store.useinit[a],";");if(e==="set"){b.push($[50],this.$$store.user[a],$[70])}else{if(e===$[73]){b.push($[50],this.$$store.theme[a],$[70])}else{if(e===$[153]){b.push($[50],this.$$store.init[a],";")}}}}}b.push("}");if(e==="set"||e===$[73]||e==="init"){b.push("else{");if(e==="set"){b.push($[50],this.$$store.user[a],$[70])}else{if(e===$[73]){b.push($[50],this.$$store.theme[a],$[70])}else{if(e==="init"){if(i){b.push($[50],this.$$store.init[a],$[70])}else{b.push($[50],this.$$store.init[a],";")}b.push($[57],this.$$store.useinit[a],"=true;")}}}b.push("}")}}if(d.inheritable){b.push("if(computed===undefined||computed===inherit){");if(e===$[153]){b.push("computed=value;")}else{b.push("var pa=this.getParent();if(pa)computed=pa.",this.$$store.inherit[a],";")}b.push("if((computed===undefined||computed===inherit)&&");b.push($[57],this.$$store.init[a],"!==undefined&&");b.push($[57],this.$$store.init[a],"!==inherit){");b.push($[50],this.$$store.init[a],";");b.push($[57],this.$$store.useinit[a],"=true;");b.push("}else{");b.push($[132],this.$$store.useinit[a],";}");b.push("}");b.push($[466]);b.push("if(computed===inherit){");b.push("computed=undefined;delete this.",this.$$store.inherit[a],";");b.push("}");b.push("else if(computed===undefined)");b.push($[132],this.$$store.inherit[a],";");b.push("else this.",this.$$store.inherit[a],"=computed;");b.push("var backup=computed;");b.push($[488]);b.push($[360])}else{if(c){if(e!=="set"&&e!==$[73]){b.push($[488])}b.push($[466]);b.push($[360])}}if(c){if(d.apply){b.push($[57],d.apply,"(computed, old);")}if(d.event){b.push('this.createDispatchChangeEvent("',d.event,'", computed, old);')}if(d.inheritable&&f.getChildren){b.push("var a=this.getChildren();if(a)for(var i=0,l=a.length;i<l;i++){");b.push("if(a[i].",this.$$method.refresh[a],")a[i].",this.$$method.refresh[a],"(backup);");b.push("}")}}if(i){b.push("return value;")}return this.__unwrapFunctionFromCode(k,f,a,e,b,h)}}});
qx.Class.define("qx.lang.String",{statics:{trim:function(a){return a.replace(/^\s+|\s+$/g,"")},pad:function(f,e,d,c){if(typeof d===$[7]){d="0"}var a="";for(var b=f.length;b<e;b++){a+=d}if(c==true){return f+a}else{return a+f}},toFirstUp:function(a){return a.charAt(0).toUpperCase()+a.substr(1)},contains:function(b,a){return b.indexOf(a)!=-1},format:function(c,a){var d=c;for(var b=0;b<a.length;b++){d=d.replace(new RegExp("%"+(b+1),"g"),a[b])}return d},escapeRegexpChars:function(a){return a.replace(/([\\\.\(\)\[\]\{\}\^\$\?\+\*])/g,"\\$1")}}});
qx.Class.define($[416],{extend:Object,include:[qx.core.MUserData],construct:function(){this._hashCode=qx.core.Object.__availableHashCode++;if(this._autoDispose){this.__dbKey=qx.core.Object.__freeAvailableDbKeys.pop();if(!this.__dbKey){this.__dbKey=qx.core.Object.__db.length;qx.core.Object.__db.push(this)}else{qx.core.Object.__db[this.__dbKey]=this}}},statics:{__availableHashCode:0,__freeAvailableDbKeys:[],__db:[],__disposeAll:false,$$type:$[106],toHashCode:function(a){if(a._hashCode!=null){return a._hashCode}return a._hashCode=this.__availableHashCode++},getDb:function(){return this.__db},dispose:function(a){if(this.__disposed){return}this.__disposed=true;this.__unload=a||false;var c,d=this.__db;for(var b=d.length-1;b>=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,toHashCode:function(){return this._hashCode},toString:function(){if(this.classname){return"[object "+this.classname+"]"}return"[object Object]"},base:function(b,a){if(arguments.length===1){return b.callee.base.call(this)}else{return b.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=qx.core.Property.$$method.set;if(typeof b===$[9]){return this[d[b]](a)}else{for(var c in b){this[d[c]](b[c])}return this}},get:function(b){var a=qx.core.Property.$$method.get;return this[a[b]]()},reset:function(b){var a=qx.core.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.$$flatIncludes;for(var d=0,a=b.length;d<a;d++){if(b[d].$$destructor){b[d].$$destructor.call(this)}}}c=c.superclass}},debug:qx.core.Variant.select($[25],{on:function(a){if(window.console&&typeof console.log===$[45]){console.log(a)}},"default":function(a){}}),info:function(a){this.debug("INFO: "+a)},warn:function(a){this.debug("WARN: "+a)},error:function(a){this.debug("ERROR: "+a)},printStackTrace:qx.core.Variant.select($[25],{on:function(){if(console&&typeof console.trace===$[45]){this.debug("Current stack trace:");console.trace()}},"default":function(){}}),_disposeFields:function(b){var c;for(var d=0,a=arguments.length;d<a;d++){var c=arguments[d];if(this[c]==null){continue}if(!this.hasOwnProperty(c)){continue}this[c]=null}},_disposeObjects:function(b){var c;for(var d=0,a=arguments.length;d<a;d++){var c=arguments[d];if(this[c]==null){continue}if(!this.hasOwnProperty(c)){continue}if(!this[c].dispose){throw new Error(this.classname+"."+c+" is not a qooxdoo object. Use _disposeFields instead of _disposeObjects.")}this[c].dispose();this[c]=null}},_disposeObjectDeep:function(b,a){var b;if(this[b]==null){return}if(!this.hasOwnProperty(b)){return}this.__disposeObjectsDeepRecurser(this[b],a||0);this[b]=null},__disposeObjectsDeepRecurser:function(f,b){if(f instanceof qx.core.Object){f.dispose()}else{if(f instanceof Array){for(var d=0,a=f.length;d<a;d++){var e=f[d];if(e==null){continue}if(typeof e==$[19]){if(b>0){this.__disposeObjectsDeepRecurser(e,b-1)}f[d]=null}else{if(typeof e==$[45]){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==$[19]){if(b>0){this.__disposeObjectsDeepRecurser(e,b-1)}f[c]=null}else{if(typeof e==$[45]){f[c]=null}}}}}}}},destruct:function(){var d=this.constructor;var f;var h=qx.core.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]]=this[e[a]]=this[b[a]]=this[g[a]]=this[c[a]]=undefined}}}d=d.superclass}if(this.__dbKey!=null){if(qx.core.Object.__disposeAll){qx.core.Object.__db[this.__dbKey]=null}else{delete qx.core.Object.__db[this.__dbKey]}qx.core.Object.__freeAvailableDbKeys.push(this.__dbKey)}}});
qx.Class.define("qx.lang.Function",{statics:{returnTrue:function(){return true},returnFalse:function(){return false},returnNull:function(){return null},returnThis:function(){return this},returnZero:function(){return 0},returnNegativeIndex:function(){return -1},bind:function(e,b,a){if(arguments.length>2){var c=Array.prototype.slice.call(arguments,2);var d=function(){e.context=b;var f=e.apply(b,c.concat(qx.lang.Array.fromArguments(arguments)));e.context=null;return f}}else{var d=function(){e.context=b;var f=e.apply(b,arguments);e.context=null;return f}}d.self=e.self?e.self.constructor:b;return d},bindEvent:function(c,a){var b=function(e){c.context=a;var d=c.call(a,e||window.event);c.context=null;return d};b.self=c.self?c.self.constructor:a;return b},getCaller:function(a){return a.caller?a.caller.callee:a.callee.caller}}});
qx.Class.define("qx.bom.Viewport",{statics:{getWidth:qx.core.Variant.select($[0],{opera:function(a){return(a||window).document.body.clientWidth},webkit:function(a){return(a||window).innerWidth},"default":function(b){var a=(b||window).document;return a.compatMode===$[120]?a.documentElement.clientWidth:a.body.clientWidth}}),getHeight:qx.core.Variant.select($[0],{opera:function(a){return(a||window).document.body.clientHeight},webkit:function(a){return(a||window).innerHeight},"default":function(b){var a=(b||window).document;return a.compatMode===$[120]?a.documentElement.clientHeight:a.body.clientHeight}}),getScrollLeft:qx.core.Variant.select($[0],{mshtml:function(b){var a=(b||window).document;return a.documentElement.scrollLeft||a.body.scrollLeft},"default":function(a){return(a||window).pageXOffset}}),getScrollTop:qx.core.Variant.select($[0],{mshtml:function(b){var a=(b||window).document;return a.documentElement.scrollTop||a.body.scrollTop},"default":function(a){return(a||window).pageYOffset}})}});
qx.Class.define("qx.core.Target",{extend:qx.core.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"+qx.core.Object.toHashCode(c)+(d?"$"+qx.core.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!==$[45]){throw new Error("qx.core.Target: removeEventListener("+c+"): '"+d+"' is not a function!")}var a="event"+qx.core.Object.toHashCode(d)+(e?"$"+qx.core.Object.toHashCode(e):"");delete this.__listeners[c][a]},hasEventListeners:function(a){return this.__listeners&&this.__listeners[a]!==undefined&&!qx.lang.Object.isEmpty(this.__listeners[a])},createDispatchEvent:function(a){if(this.hasEventListeners(a)){this.dispatchEvent(new qx.event.type.Event(a),true)}},createDispatchDataEvent:function(a,b){if(this.hasEventListeners(a)){this.dispatchEvent(new qx.event.type.DataEvent(a,b),true)}},createDispatchChangeEvent:function(b,c,a){if(this.hasEventListeners(b)){this.dispatchEvent(new qx.event.type.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();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)===$[45]){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){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)==$[45]){var c=this.getParent();if(c&&!c.getDisposed()&&c.getEnabled()){c._dispatchEvent(b)}}}},destruct:function(){this._disposeObjectDeep("__listeners",2)}});
qx.Class.define($[3],{extend:qx.core.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")}});
qx.Class.define($[48],{extend:qx.event.type.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")}});
qx.Class.define($[441],{extend:qx.event.type.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")}});
qx.Class.define("qx.client.Timer",{extend:qx.core.Target,construct:function(a){arguments.callee.base.call(this);this.setEnabled(false);if(a!=null){this.setInterval(a)}this.__oninterval=qx.lang.Function.bind(this._oninterval,this);this.__event=new qx.event.type.Event($[26])},events:{interval:$[3]},statics:{once:function(a,c,b){var d=new qx.client.Timer(b);d.addEventListener($[26],function(f){d.dispose();a.call(c,f);c=null},c);d.start()}},properties:{enabled:{init:true,check:$[2],apply:$[334]},interval:{check:$[14],init:1000,apply:"_applyInterval"}},members:{__intervalHandler:null,_applyInterval:function(b,a){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){org.eclipse.rwt.ErrorHandler.processJavaScriptError(a)}}},destruct:function(){if(this.__intervalHandler){window.clearInterval(this.__intervalHandler)}this._disposeFields("__intervalHandler","__oninterval","__event")}});
qx.Class.define("qx.html.String",{statics:{escape:function(a){return qx.dom.String.escapeEntities(a,qx.html.Entity.FROM_CHARCODE)},unescape:function(a){return qx.dom.String.unescapeEntities(a,qx.html.Entity.TO_CHARCODE)},fromText:function(a){return qx.html.String.escape(a).replace(/( |\n)/g,function(b){var c={" ":" &nbsp;","\n":"<br>"};return c[b]||b})},toText:function(a){return qx.html.String.unescape(a.replace(/\s+|<([^>])+>/gi,function(b){if(/\s+/.test(b)){return" "}else{if(/^<BR|^<br/gi.test(b)){return"\n"}else{return""}}}))}}});
qx.Class.define("qx.dom.String",{statics:{escapeEntities:qx.core.Variant.select($[0],{mshtml:function(h,d){var c,a=[];for(var e=0,b=h.length;e<b;e++){var f=h.charAt(e);var g=f.charCodeAt(0);if(d[g]){c="&"+d[g]+";"}else{if(g>127){c="&#"+g+";"}else{c=f}}a[a.length]=c}return a.join("")},"default":function(h,d){var c,a="";for(var e=0,b=h.length;e<b;e++){var f=h.charAt(e);var g=f.charCodeAt(0);if(d[g]){c="&"+d[g]+";"}else{if(g>127){c="&#"+g+";"}else{c=f}}a+=c}return a}}),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("0x"+e))}}else{e=c.substring(1);if(e.match(/^\d+$/gi)){d=String.fromCharCode(parseInt(e))}}}}return d})},stripTags:function(a){return a.replace(/<\/?[^>]+>/gi,"")}}});
qx.Class.define("qx.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}},defer:function(c,a,b){c.FROM_CHARCODE=qx.lang.Object.invert(c.TO_CHARCODE)}});
qx.Class.define("qx.html.EventRegistration",{statics:{addEventListener:qx.core.Variant.select($[0],{mshtml:function(a,b,c){a.attachEvent("on"+b,c)},"default":function(a,b,c){a.addEventListener(b,c,false)}}),removeEventListener:qx.core.Variant.select($[0],{mshtml:function(a,b,c){a.detachEvent("on"+b,c)},"default":function(a,b,c){a.removeEventListener(b,c,false)}})}});
qx.Class.define("org.eclipse.rwt.EventHandlerUtil",{type:$[121],statics:{_lastUpDownType:{},_lastKeyCode:null,cleanUp:function(){delete this.__onKeyEvent;delete this._lastUpDownType;delete this._lastKeyCode},applyBrowserFixes:qx.core.Variant.select($[0],{gecko:function(){var b=qx.ui.core.ClientDocument.getInstance();b.getElement().setAttribute("ondrop","event.preventDefault();");var a=document.documentElement;this._ffMouseFixListener=function(d){var c=null;try{c=d.originalTarget.tagName}catch(f){}if(d.button===0&&c!=null&&c!="INPUT"){d.preventDefault()}};qx.html.EventRegistration.addEventListener(a,$[1],this._ffMouseFixListener)},"default":function(){}}),getDomEvent:qx.core.Variant.select($[0],{mshtml:function(a){return a.length>0?a[0]:window.event},"default":function(a){return a[0]}}),getDomTarget:qx.core.Variant.select($[0],{mshtml:function(a){return a.target||a.srcElement},webkit:function(a){var b=a.target||a.srcElement;if(b&&(b.nodeType==qx.dom.Node.TEXT)){b=b.parentNode}return b},"default":function(a){return a.target}}),stopDomEvent:function(a){a._prevented=true;if(a.preventDefault){a.preventDefault()}try{a.keyCode=0}catch(b){}a.returnValue=false},wasStopped:function(a){return a._prevented?true:false},blockUserDomEvents:function(c,d){var a=qx.html.EventRegistration;if(d){for(var b=0;b<this._userEventTypes.length;b++){a.addEventListener(c,this._userEventTypes[b],this._domEventBlocker)}}else{for(var b=0;b<this._userEventTypes.length;b++){a.removeEventListener(c,this._userEventTypes[b],this._domEventBlocker)}}},_userEventTypes:[$[6],$[34],$[8],$[1],$[5],$[16],$[51],$[49],(org.eclipse.rwt.Client.isGecko()?$[291]:$[47]),$[10],$[4],$[40]],_domEventBlocker:function(a){org.eclipse.rwt.EventHandlerUtil.stopDomEvent(a);a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}},getOriginalTargetObject:function(b){if(b==document.documentElement){b=document.body}try{while(b!=null&&b.qx_Widget==null){b=b.parentNode}}catch(a){b=null}return b?b.qx_Widget:null},getOriginalTargetObjectFromEvent:function(a,c){var b=this.getDomTarget(a);if(c){var d=c.document;if(b==c||b==d||b==d.documentElement||b==d.body){return d.body.qx_Widget}}return this.getOriginalTargetObject(b)},getRelatedTargetObjectFromEvent:function(b){var a=org.eclipse.rwt.EventHandlerUtil;var c=b.relatedTarget;if(!c){if(b.type==$[6]){c=b.fromElement}else{c=b.toElement}}return a.getTargetObject(c)},getTargetObject:function(b,a,c){if(!a){var a=this.getOriginalTargetObject(b);if(!a){return null}}while(a){if(!c&&!a.getEnabled()){return null}if(!a.getAnonymous()){break}a=a.getParent()}return a},getKeyCode:qx.core.Variant.select($[0],{gecko:function(a){return a.keyCode},opera:function(b){var a;if(b.type===$[4]){if(this._lastKeyCode===b.keyCode){a=b.keyCode}else{a=0}}else{a=b.keyCode}return a},"default":function(b){var a=b.type!==$[4]||b.keyCode===13||b.keyCode===27;return a?b.keyCode:0}}),getCharCode:qx.core.Variant.select($[0],{"default":function(a){var b=a.type===$[4]&&a.keyCode!==13&&a.keyCode!==27;return b?a.charCode:0},"mshtml|newmshtml":function(a){var b=a.type===$[4]&&a.keyCode!==13&&a.keyCode!==27;return b?a.keyCode:0},opera:function(b){var a;if(b.type===$[4]){if(this._lastKeyCode!==b.keyCode){a=b.keyCode}else{a=0}}else{a=0}return a}}),_isFirstKeyDown:function(a){return this._lastUpDownType[a]!==$[10]},getEventPseudoTypes:qx.core.Variant.select($[0],{"default":function(c,d,b){var a;if(c.type===$[10]){var e=!this.isNonPrintableKeyCode(d);if(this._isFirstKeyDown(d)){a=e?[$[10]]:[$[10],$[4]]}else{a=e?[]:[$[4]]}}else{a=[c.type]}return a},gecko:function(c,d,b){var a;if(c.type===$[10]&&this.isModifier(d)){if(this._isFirstKeyDown(d)){a=[$[10],$[4]]}else{a=[$[4]]}}else{if(c.type===$[10]&&!this._isFirstKeyDown(d)){a=[]}else{a=[c.type]}}return a},opera:function(b,c,a){return[b.type]}}),mustRestoreKeypress:qx.core.Variant.select($[0],{"default":function(b,c){var a=false;if(this.wasStopped(b)){a=(c.length===1&&c[0]===$[10])||c.length===0}return a},gecko:function(a,b){return false}}),saveData:function(b,c,a){if(b.type!==$[4]){this._lastUpDownType[c]=b.type;this._lastKeyCode=c}},keyCodeToIdentifier:function(b){var a="Unidentified";if(this._numpadToCharCode[b]!==undefined){a=String.fromCharCode(this._numpadToCharCode[b])}else{if(this._keyCodeToIdentifierMap[b]!==undefined){a=this._keyCodeToIdentifierMap[b]}else{if(this._specialCharCodeMap[b]!==undefined){a=this._specialCharCodeMap[b]}else{if(this._isAlphaNumericKeyCode(b)){a=String.fromCharCode(b)}}}}return a},charCodeToIdentifier:function(b){var a;if(this._specialCharCodeMap[b]!==undefined){a=this._specialCharCodeMap[b]}else{a=String.fromCharCode(b).toUpperCase()}return a},isNonPrintableKeyCode:qx.core.Variant.select($[0],{"default":function(a){return this._keyCodeToIdentifierMap[a]?true:false},webkit:function(a){return(this._keyCodeToIdentifierMap[a]||a===27)?true:false}}),isSpecialKeyCode:function(a){return this._specialCharCodeMap[a]?true:false},isModifier:function(a){return a>=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},_specialCharCodeMap:{13:$[54],27:$[103],32:$[83]},_keyCodeToIdentifierMap:{8:$[311],9:"Tab",16:"Shift",17:$[239],18:"Alt",20:"CapsLock",224:"Meta",37:"Left",38:"Up",39:$[39],40:"Down",33:$[42],34:$[43],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)}});
qx.Mixin.define("qx.util.manager.MConnectedObject",{members:{hasConnectionTo:function(a){if(!this._valueManager){this._valueManager={}}this._valueManager[a.toHashCode()]=a}},destruct:function(){for(var a in this._valueManager){var b=this._valueManager[a];b.disconnect(this)}this._disposeFields("_valueManager")}});
qx.Class.define("org.eclipse.rwt.HtmlUtil",{statics:{BROWSER_PREFIX:qx.core.Variant.select($[0],{gecko:"-moz-",webkit:"-webkit-","default":""}),setBackgroundImage:(function(){var a;if(org.eclipse.rwt.Client.isMshtml()&&org.eclipse.rwt.Client.getVersion()<7){a=function(d,c,b){if(b!=null&&b<1){this.removeCssFilter(d);this._setCssBackgroundImage(d,c);this.setOpacity(d,b)}else{this._setCssBackgroundImage(d,null);this._setCssFilterImage(d,c)}}}else{a=function(d,c,b){this._setCssBackgroundImage(d,c);if(b!=null){this.setOpacity(d,b)}}}return a})(),setOpacity:qx.core.Variant.select($[0],{mshtml:function(c,b){if(b==null||b>=1||b<0){this.removeCssFilter(c)}else{var a=$[475]+Math.round(b*100)+")";this.setStyleProperty(c,$[138],a)}},gecko:function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[281]);this.removeStyleProperty(c,$[76])}else{var a=qx.lang.Number.limit(b,0,1);this.setStyleProperty(c,$[281],a);this.setStyleProperty(c,$[76],a)}},"default":function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[76])}else{var a=qx.lang.Number.limit(b,0,1);this.setStyleProperty(c,$[76],a)}}}),setBackgroundGradient:qx.core.Variant.select($[0],{webkit:function(g,f){if(f){var d=["linear","left top"];if(f.horizontal===true){d.push("right top")}else{d.push("left bottom")}for(var e=0;e<f.length;e++){var a=f[e][0];var b=f[e][1];d.push("color-stop("+a+","+b+")")}var c=this.BROWSER_PREFIX+"gradient( "+d.join()+")";this.setStyleProperty(g,$[146],c)}else{this.removeStyleProperty(g,$[146])}},"default":function(g,f){if(f){var d=[f.horizontal===true?"0deg":"-90deg"];for(var e=0;e<f.length;e++){var a=(f[e][0]*100)+"%";var b=f[e][1];d.push(b+" "+a)}var c=this.BROWSER_PREFIX+"linear-gradient( "+d.join()+")";this.setStyleProperty(g,$[146],c)}else{this.removeStyleProperty(g,$[146])}}}),setBoxShadow:function(e,c){var d;if(org.eclipse.rwt.Client.isWebkit()){d=this.BROWSER_PREFIX+"box-shadow"}else{d="boxShadow"}if(c){var a=c[0]?"inset ":"";a+=c.slice(1,4).join("px ")+"px";var b=qx.util.ColorUtil.stringToRgb(c[5]);b.push(c[6]);a+=" rgba("+b.join()+")";this.setStyleProperty(e,d,a)}else{this.removeStyleProperty(e,d)}},setTextShadow:qx.core.Variant.select($[0],{"default":function(e,c){var d="textShadow";if(c){var a=c.slice(1,4).join("px ")+"px";var b=qx.util.ColorUtil.stringToRgb(c[5]);b.push(c[6]);a+=" rgba("+b.join()+")";this.setStyleProperty(e,d,a)}else{this.removeStyleProperty(e,d)}},mshtml:function(){}}),setPointerEvents:function(e,d){var a=org.eclipse.rwt.Client.getVersion();var b=org.eclipse.rwt.Client.getEngine()===$[137]&&a>=1.9;var c=org.eclipse.rwt.Client.getBrowser()==="safari"&&a>=530;if(b||c){this.setStyleProperty(e,$[412],d);e.setAttribute($[412],d)}else{this._passEventsThrough(e,d)}},setStyleProperty:function(c,b,a){if(c instanceof qx.ui.core.Widget){c.setStyleProperty(b,a)}else{c.style[b]=a}},removeStyleProperty:function(b,a){if(b instanceof qx.ui.core.Widget){b.removeStyleProperty(a)}else{b.style[a]=""}},removeCssFilter:function(c){var a=null;if(c instanceof qx.ui.core.Widget){if(c.isCreated()){a=c.getElement()}else{c.removeStyleProperty($[138])}}else{a=c}if(a!==null){var b=a.style.cssText;b=b.replace(/FILTER:[^;]*(;|$)/,"");a.style.cssText=b}},_setCssBackgroundImage:function(c,b){var a=b?"URL("+b+")":"none";this.setStyleProperty(c,$[93],a);this.setStyleProperty(c,$[308],$[253]);this.setStyleProperty(c,$[335],$[30])},_setCssFilterImage:function(c,b){if(b){var a=$[391]+b+$[367];this.setStyleProperty(c,$[138],a)}else{this.removeCssFilter(c)}},_passEventsThrough:function(e,d){var f=qx.html.EventRegistration;var b=org.eclipse.rwt.EventHandler._mouseEventTypes;var c=this._passEventThroughHandler;if(d==="none"){this.setStyleProperty(e,$[170],$[66]);for(var a=0;a<b.length;a++){f.addEventListener(e,b[a],c)}}else{}},_passEventThroughHandler:function(){var a=org.eclipse.rwt.EventHandlerUtil;var c=a.getDomEvent(arguments);var d=a.getDomTarget(c);var b=c.type;d.style.display="none";var e=document.elementFromPoint(c.clientX,c.clientY);c.cancelBubble=true;a.stopDomEvent(c);if(e&&b!==$[34]&&b!==$[6]&&b!==$[8]){if(b===$[1]){org.eclipse.rwt.HtmlUtil._refireEvent(e,$[6],c)}org.eclipse.rwt.HtmlUtil._refireEvent(e,b,c);if(b===$[5]){org.eclipse.rwt.HtmlUtil._refireEvent(e,$[8],c)}}d.style.display=""},_refireEvent:qx.core.Variant.select($[0],{mshtml:function(d,b,a){var c=document.createEventObject(a);d.fireEvent("on"+b,c)},"default":function(d,b,a){var c=document.createEvent("MouseEvents");c.initMouseEvent(b,true,true,a.view,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget);d.dispatchEvent(c)}})}});
namespace($[187]);org.eclipse.rwt.protocol.AdapterRegistry={_registry:{},add:function(b,a){this._registry[b]=a},remove:function(a){delete this._registry[a]},getAdapter:function(b){var a=this._registry[b];if(a===undefined){throw new Error("No Adapter for type "+b)}return a}};
namespace($[187]);org.eclipse.rwt.protocol.ObjectManager={_map:{},_callbacks:{},add:function(d,b,a){this._map[d]={object:b,adapter:a};b._rwtId=d;if(typeof b.applyObjectId===$[45]){b.applyObjectId(d)}if(this._callbacks[d]){for(var c=0;c<this._callbacks[d].length;c++){this._callbacks[d][c](b)}delete this._callbacks[d]}},remove:function(a){if(a!=null){delete this._map[a]}},getId:function(b){var a=null;if(b!=null&&b._rwtId!=null){a=b._rwtId}return a},getObject:function(a){return this._map[a]?this._map[a].object:undefined},getEntry:function(a){return this._map[a]},addRegistrationCallback:function(b,a){if(!this._callbacks[b]){this._callbacks[b]=[]}this._callbacks[b].push(a)}};
namespace($[187]);org.eclipse.rwt.protocol.AdapterUtil={_controlDestructor:function(b){var a=org.eclipse.rwt.protocol.AdapterUtil.getShell(b);if(a){a.removeActivateListenerWidget(b)}org.eclipse.rwt.protocol.AdapterUtil._widgetDestructor(b)},_widgetDestructor:function(a){a.setToolTip(null);a.setUserData($[161],null);a.destroy()},_controlProperties:["children",$[331],$[110],$[151],$[241],$[296],$[146],$[93],$[170],$[98],$[117],"font","menu",$[234],$[276]],_controlPropertyHandler:{children:function(d,c){if(c!==null){var b=c.length;for(var a=0;a<b;a++){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(c[a],function(f){var e=c.indexOf(org.eclipse.rwt.protocol.ObjectManager.getId(f));f.setZIndex(b-e)})}}},foreground:function(b,a){if(a===null){b.resetTextColor()}else{b.setTextColor(qx.util.ColorUtil.rgbToRgbString(a))}},background:function(c,b){if(b===null){c.resetBackgroundColor();if(c.__user$backgroundGradient==null){c.resetBackgroundGradient()}}else{if(c.__user$backgroundGradient==null){c.setBackgroundGradient(null)}var a=b[3]===0?$[82]:qx.util.ColorUtil.rgbToRgbString(b);c.setBackgroundColor(a)}},backgroundImage:function(b,a){if(a===null){b.resetBackgroundImage();b.setUserData($[173],null)}else{b.setUserData($[173],a.slice(1));b.setBackgroundImage(a[0])}},cursor:function(b,a){if(a===null){b.resetCursor()}else{b.setCursor(a)}},bounds:function(c,b){var a=b;if(c.getUserData("tabFolder")!==null){a[0]=0;a[1]=0}if(c.getUserData($[401])===null){c.setLeft(a[0]);c.setTop(a[1])}c.setWidth(a[2]);c.setHeight(a[3])},toolTip:function(d,c){if(c!=null&&c!=""){var b=org.eclipse.rwt.protocol.EncodingUtil;var e=b.escapeText(c,false);e=b.replaceNewLines(e,$[107]);d.setUserData($[161],e);var a=org.eclipse.rwt.widgets.WidgetToolTip.getInstance();d.setToolTip(a);if(a.getParent()!=null){if(a.getBoundToWidget()==d){a.updateText(d)}}}else{d.setToolTip(null);d.setUserData($[161],null)}},font:function(c,d){if(c.setFont){if(d===null){c.resetFont()}else{var b=org.eclipse.swt.WidgetManager.getInstance();var a=b._createFont.apply(b,d);c.setFont(a)}}},menu:function(b,a){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(a,function(e){b.setContextMenu(e);var c=org.eclipse.rwt.widgets.Menu.menuDetectedByKey;var d=org.eclipse.rwt.widgets.Menu.menuDetectedByMouse;if(e==null){b.removeEventListener($[10],c);b.removeEventListener($[5],d)}else{b.addEventListener($[10],c);b.addEventListener($[5],d)}})},activeKeys:function(b,a){var c=qx.lang.Object.fromArray(a);b.setUserData($[234],c)},cancelKeys:function(b,a){var c=qx.lang.Object.fromArray(a);b.setUserData($[276],c)}},_controlListeners:[$[64],"mouse","key","traverse","menuDetect","help","activate"],_controlListenerHandler:{key:function(b,a){b.setUserData($[395],a?true:null)},traverse:function(b,a){b.setUserData($[442],a?true:null)},focus:function(d,c){var a=org.eclipse.swt.EventUtil;var b=org.eclipse.swt.EventUtil.focusGained;var e=org.eclipse.swt.EventUtil.focusLost;if(c){d.addEventListener($[126],b,a);d.addEventListener($[104],e,a)}else{d.removeEventListener($[126],b,a);d.removeEventListener($[104],e,a)}},mouse:function(e,d){var c=undefined;var b=org.eclipse.swt.EventUtil.mouseDown;var a=org.eclipse.swt.EventUtil.mouseUp;if(d){e.addEventListener($[1],b,c);e.addEventListener($[5],a,c)}else{e.removeEventListener($[1],b,c);e.removeEventListener($[5],a,c)}},menuDetect:function(e,d){var c=undefined;var a=org.eclipse.swt.EventUtil.menuDetectedByKey;var b=org.eclipse.swt.EventUtil.menuDetectedByMouse;if(d){e.addEventListener($[10],a,c);e.addEventListener($[5],b,c)}else{e.removeEventListener($[10],a,c);e.removeEventListener($[5],b,c)}},help:function(d,c){var b=undefined;var a=org.eclipse.swt.EventUtil.helpRequested;if(c){d.addEventListener($[10],a,b)}else{d.removeEventListener($[10],a,b)}},activate:function(c,b){var a=org.eclipse.rwt.protocol.AdapterUtil.getShell(c);if(a){if(b){a.addActivateListenerWidget(c)}else{a.removeActivateListenerWidget(c)}}}},_specialHandler:{backgroundGradient:function(f,e){var g=null;if(e){var b=e[0];var a=e[1];var c=e[2];g=[];for(var d=0;d<b.length;d++){g[d]=[a[d]/100,qx.util.ColorUtil.rgbToRgbString(b[d])]}g.horizontal=!c}f.setBackgroundGradient(g)},roundedBorder:function(e,d){if(d){var c=d[0];var a=qx.util.ColorUtil.rgbToRgbString(d[1]);var f=d.slice(-4);var b=new org.eclipse.rwt.Border(c,$[77],a,f);e.setBorder(b)}else{e.resetBorder()}}},getWidgetDestructor:function(){return this._widgetDestructor},getControlDestructor:function(){return this._controlDestructor},extendControlProperties:function(a){return a.concat(this._controlProperties)},extendControlPropertyHandler:function(a){return qx.lang.Object.mergeWith(a,this._controlPropertyHandler,false)},extendControlListeners:function(a){return a.concat(this._controlListeners)},extendControlListenerHandler:function(a){return qx.lang.Object.mergeWith(a,this._controlListenerHandler,false)},getBackgroundGradientHandler:function(){return this._specialHandler.backgroundGradient},getRoundedBorderHandler:function(){return this._specialHandler.roundedBorder},getControlPropertyHandler:function(a){return this._controlPropertyHandler[a]},getControlListenerHandler:function(a){return this._controlListenerHandler[a]},addStatesForStyles:function(a,c){for(var b=0;b<c.length;b++){a.addState("rwt_"+c[b])}a._renderAppearance();delete a._isInGlobalStateQueue},createStyleMap:function(c){var a={};for(var b=0;b<c.length;b++){a[c[b]]=true}return a},setParent:function(b,c){var a=this._setParentImplementation;this.callWithTarget(c,function(d){a(b,d)})},_setParentImplementation:function(b,a){if(a instanceof org.eclipse.swt.custom.ScrolledComposite){b.setUserData($[401],a)}else{if(a instanceof qx.ui.pageview.tabview.TabView){b.setUserData("tabFolder",a)}else{if(a instanceof org.eclipse.swt.widgets.ExpandBar){a.addWidget(b)}else{b.setParent(a)}}}},callWithTarget:function(c,a){if(c==null){a(null)}else{var b=org.eclipse.rwt.protocol.ObjectManager.getObject(c);if(b){a(b)}else{org.eclipse.rwt.protocol.ObjectManager.addRegistrationCallback(c,a)}}},getShell:function(b){var a=b;while(a&&!(a instanceof org.eclipse.swt.widgets.Shell)){a=a.getParent()}return a}};
namespace($[187]);org.eclipse.rwt.protocol.EncodingUtil={_escapeRegExp:/(&|<|>|\")/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:{"<":"&lt;",">":"&gt;",'"':"&quot;","&&":"&amp;","&":"&amp;"},escapeText:function(c,b){if(c===null){throw new Error("escapeText with parameter null not allowed")}var a;this._mnemonicFound=false;if(b){a=c.replace(this._escapeRegExpMnemonics,this._getEscapeResolverMnemonics())}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)},_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,"&nbsp;")},_whitespaceResolver:function(a){return a.slice(1).replace(/ /g,"&nbsp;")+" "}};
namespace($[217]);org.eclipse.rwt.Display=function(){this._document=qx.ui.core.ClientDocument.getInstance();this._request=org.eclipse.swt.Request.getInstance();this._exitConfirmation=null;if(org.eclipse.rwt.Display._current!==undefined){throw new Error("Display can not be created twice")}else{org.eclipse.rwt.Display._current=this}};org.eclipse.rwt.Display.getCurrent=function(){return org.eclipse.rwt.Display._current};org.eclipse.rwt.Display.prototype={init:function(a){this._request.setUrl(a.url);this._request.setUIRootId(a.rootId);this._request.addParameter("rwt_initialize","true");this._appendWindowSize();this._appendSystemDPI();this._appendColorDepth();this._appendInitialHistoryEvent();this._attachListener();this._request._sendImmediate(true)},probe:function(a){org.eclipse.swt.FontSizeCalculation.probe(a.fonts)},measureStrings:function(a){org.eclipse.swt.FontSizeCalculation.measureStringItems(a.strings)},allowEvent:function(){org.eclipse.rwt.KeyEventSupport.getInstance().allowEvent()},cancelEvent:function(){org.eclipse.rwt.KeyEventSupport.getInstance().cancelEvent()},beep:function(){},setExitConfirmation:function(a){this._exitConfirmation=a},setFocusControl:function(a){org.eclipse.swt.WidgetManager.getInstance().focus(a)},setCurrentTheme:function(a){org.eclipse.swt.theme.ThemeStore.getInstance().setCurrentTheme(a)},setEnableUiTests:function(a){qx.ui.core.Widget._renderHtmlIds=a},_attachListener:function(){this._document.addEventListener($[244],this._onResize,this);this._document.addEventListener($[4],this._onKeyPress,this);this._request.addEventListener("send",this._onSend,this);org.eclipse.rwt.KeyEventSupport.getInstance();org.eclipse.rwt.System.getInstance().addEventListener($[245],this._onBeforeUnload,this);org.eclipse.rwt.System.getInstance().addEventListener("unload",this._onUnload,this)},_onResize:function(a){this._appendWindowSize();if(this._request.getRequestCounter()!=null){this._request.send()}},_onKeyPress:function(a){if(a.getKeyIdentifier()==$[103]){a.preventDefault()}},_onSend:function(a){var c=qx.event.type.MouseEvent.getPageX();var b=qx.event.type.MouseEvent.getPageY();var d=this._request.getUIRootId();this._request.addParameter(d+".cursorLocation.x",String(c));this._request.addParameter(d+".cursorLocation.y",String(b))},_onBeforeUnload:function(a){if(this._exitConfirmation!==null&&this._exitConfirmation!==""){a.getDomEvent().returnValue=this._exitConfirmation;a.setUserData($[385],this._exitConfirmation)}},_onUnload:function(){this._document.removeEventListener($[244],this._onResize,this);this._document.removeEventListener($[4],this._onKeyPress,this);this._request.removeEventListener("send",this._onSend,this)},_appendWindowSize:function(){var b=qx.html.Window.getInnerWidth(window);var a=qx.html.Window.getInnerHeight(window);var c=this._request.getUIRootId();this._request.addParameter(c+$[267],String(b));this._request.addParameter(c+$[278],String(a))},_appendSystemDPI:function(){var a=[0,0];if(typeof screen.systemXDPI==$[62]){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)}this._request.addParameter("w1.dpi.x",String(a[0]));this._request.addParameter("w1.dpi.y",String(a[1]))},_appendColorDepth:function(){var a=16;if(typeof screen.colorDepth==$[62]){a=parseInt(screen.colorDepth,10)}if(org.eclipse.rwt.Client.isGecko()){a=a==24?32:a}this._request.addParameter("w1.colorDepth",String(a))},_appendInitialHistoryEvent:function(){var b=org.eclipse.swt.Request.getInstance();var a=window.location.hash;if(a!==""){b.addParameter($[426],"true");b.addParameter($[472],a.substr(1))}}};
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.Display",{factory:function(a){return new org.eclipse.rwt.Display()},destructor:null,properties:["exitConfirmation","focusControl","currentTheme","enableUiTests",$[234],$[276]],listeners:[],methods:["init","probe","measureStrings","allowEvent","cancelEvent","beep"],propertyHandler:{activeKeys:function(a,b){var c=qx.lang.Object.fromArray(b);org.eclipse.rwt.KeyEventSupport.getInstance().setKeyBindings(c)},cancelKeys:function(a,b){var c=qx.lang.Object.fromArray(b);org.eclipse.rwt.KeyEventSupport.getInstance().setCancelKeys(c)}}});
qx.Class.define($[124],{extend:qx.core.Target,include:qx.util.manager.MConnectedObject,type:$[101],construct:function(){arguments.callee.base.call(this);this._layoutChanges={};this.initHideFocus();this._usesComplexBorder=false},events:{beforeAppear:$[3],appear:$[3],beforeDisappear:$[3],disappear:$[3],insertDom:$[3],create:$[3],execute:$[3],flush:$[48],mouseover:$[81],mousemove:$[81],mouseout:$[81],mousedown:$[81],mouseup:$[81],mousewheel:$[81],click:$[81],dblclick:$[81],contextmenu:$[81],elementOver:$[81],elementOut:$[81],keydown:$[270],keypress:$[270],keyup:$[270],focusout:$[215],focusin:$[215],blur:$[215],focus:$[215],dragdrop:$[149],dragout:$[149],dragover:$[149],dragmove:$[149],dragstart:$[149],dragend:$[149]},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(qx.ui.core.Widget._autoFlushTimeout==null){if(!qx.ui.core.Widget._inFlushGlobalQueues||a<qx.ui.core.Widget._flushGlobalQueuesPhase){qx.ui.core.Widget._autoFlushTimeout=window.setTimeout(qx.ui.core.Widget._autoFlushHelper,0)}}},_removeAutoFlush:function(){if(qx.ui.core.Widget._autoFlushTimeout!=null){window.clearTimeout(qx.ui.core.Widget._autoFlushTimeout);qx.ui.core.Widget._autoFlushTimeout=null}},_autoFlushHelper:function(){try{qx.ui.core.Widget._autoFlushTimeout=null;if(!qx.core.Object.inGlobalDispose()){qx.ui.core.Widget.flushGlobalQueues()}}catch(a){org.eclipse.rwt.ErrorHandler.processJavaScriptError(a)}},flushGlobalQueues:function(){if(qx.ui.core.Widget._autoFlushTimeout!=null){qx.ui.core.Widget._removeAutoFlush()}if(qx.ui.core.Widget._inFlushGlobalQueues){return}if(!org.eclipse.rwt.System.getInstance().getUiReady()){return}qx.ui.core.Widget._inFlushGlobalQueues=true;qx.ui.core.Widget.flushGlobalWidgetQueue();qx.ui.core.Widget.flushGlobalStateQueue();qx.ui.core.Widget.flushGlobalElementQueue();qx.ui.core.Widget.flushGlobalJobQueue();qx.ui.core.Widget.flushGlobalLayoutQueue();qx.ui.core.Widget.flushGlobalDisplayQueue();qx.ui.core.Widget.flushGlobalDisposeQueue();qx.ui.core.Widget._flushGlobalQueuesPhase=qx.ui.core.Widget._FLUSH_PHASE_IDLE;delete qx.ui.core.Widget._inFlushGlobalQueues},addToGlobalWidgetQueue:function(a){if(!a._isInGlobalWidgetQueue&&a._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush(qx.ui.core.Widget._FLUSH_PHASE_WIDGET)}qx.ui.core.Widget._globalWidgetQueue.push(a);a._isInGlobalWidgetQueue=true}},removeFromGlobalWidgetQueue:function(a){if(a._isInGlobalWidgetQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalWidgetQueue,a);delete a._isInGlobalWidgetQueue}},flushGlobalWidgetQueue:function(){qx.ui.core.Widget._flushGlobalQueuesPhase=qx.ui.core.Widget._FLUSH_PHASE_WIDGET;var a=qx.ui.core.Widget._globalWidgetQueue,c,d;while((c=a.length)>0){for(var b=0;b<c;b++){d=a[b];d.flushWidgetQueue();delete d._isInGlobalWidgetQueue}a.splice(0,c)}qx.ui.core.Widget._globalWidgetQueue=[]},addToGlobalElementQueue:function(a){if(!a._isInGlobalElementQueue&&a._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush(qx.ui.core.Widget._FLUSH_PHASE_ELEMENT)}qx.ui.core.Widget._globalElementQueue.push(a);a._isInGlobalElementQueue=true}},removeFromGlobalElementQueue:function(a){if(a._isInGlobalElementQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalElementQueue,a);delete a._isInGlobalElementQueue}},flushGlobalElementQueue:function(){qx.ui.core.Widget._flushGlobalQueuesPhase=qx.ui.core.Widget._FLUSH_PHASE_ELEMENT;var a=qx.ui.core.Widget._globalElementQueue,c,d;while((c=a.length)>0){for(var b=0;b<c;b++){d=a[b];d._createElementImpl();delete d._isInGlobalElementQueue}a.splice(0,c)}qx.ui.core.Widget._globalElementQueue=[]},addToGlobalStateQueue:function(a){if(!a._isInGlobalStateQueue&&a._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush(qx.ui.core.Widget._FLUSH_PHASE_STATE)}qx.ui.core.Widget._globalStateQueue.push(a);a._isInGlobalStateQueue=true}},removeFromGlobalStateQueue:function(a){if(a._isInGlobalStateQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalStateQueue,a);delete a._isInGlobalStateQueue}},flushGlobalStateQueue:function(){qx.ui.core.Widget._flushGlobalQueuesPhase=qx.ui.core.Widget._FLUSH_PHASE_STATE;var d=qx.ui.core.Widget;while(d._globalStateQueue.length>0){var a=qx.lang.Array.copy(d._globalStateQueue);d._globalStateQueue=[];for(var c=0,b=a.length;c<b;c++){var e=a[c];if(e._isInGlobalStateQueue){e._renderAppearance();delete e._isInGlobalStateQueue}}}},addToGlobalJobQueue:function(a){if(!a._isInGlobalJobQueue&&a._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush(qx.ui.core.Widget._FLUSH_PHASE_JOB)}qx.ui.core.Widget._globalJobQueue.push(a);a._isInGlobalJobQueue=true}},removeFromGlobalJobQueue:function(a){if(a._isInGlobalJobQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalJobQueue,a);delete a._isInGlobalJobQueue}},flushGlobalJobQueue:function(){qx.ui.core.Widget._flushGlobalQueuesPhase=qx.ui.core.Widget._FLUSH_PHASE_JOB;var a=qx.ui.core.Widget._globalJobQueue,c,d;while((c=a.length)>0){for(var b=0;b<c;b++){d=a[b];d._flushJobQueue(d._jobQueue);delete d._isInGlobalJobQueue}a.splice(0,c)}qx.ui.core.Widget._globalJobQueue=[]},addToGlobalLayoutQueue:function(a){if(!a._isInGlobalLayoutQueue&&a._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush(qx.ui.core.Widget._FLUSH_PHASE_LAYOUT)}qx.ui.core.Widget._globalLayoutQueue.push(a);a._isInGlobalLayoutQueue=true}},removeFromGlobalLayoutQueue:function(a){if(a._isInGlobalLayoutQueue){qx.lang.Array.remove(qx.ui.core.Widget._globalLayoutQueue,a);delete a._isInGlobalLayoutQueue}},flushGlobalLayoutQueue:function(){qx.ui.core.Widget._flushGlobalQueuesPhase=qx.ui.core.Widget._FLUSH_PHASE_LAYOUT;var a=qx.ui.core.Widget._globalLayoutQueue,d,c;while((d=a.length)>0){for(var b=0;b<d;b++){c=a[b];c._flushChildrenQueue();delete c._isInGlobalLayoutQueue}a.splice(0,d)}qx.ui.core.Widget._globalLayoutQueue=[]},addToGlobalDisplayQueue:function(b){if(!b._isInGlobalDisplayQueue&&b._isDisplayable){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush(qx.ui.core.Widget._FLUSH_PHASE_DISPLAY)}var a=b.getParent();if(a.isSeeable()){var c=a.toHashCode();if(qx.ui.core.Widget._lazyGlobalDisplayQueues[c]){qx.ui.core.Widget._lazyGlobalDisplayQueues[c].push(b)}else{qx.ui.core.Widget._lazyGlobalDisplayQueues[c]=[b]}}else{qx.ui.core.Widget._fastGlobalDisplayQueue.push(b)}b._isInGlobalDisplayQueue=true}},removeFromGlobalDisplayQueue:function(a){},flushGlobalDisplayQueue:function(){qx.ui.core.Widget._flushGlobalQueuesPhase=qx.ui.core.Widget._FLUSH_PHASE_DISPLAY;var e,h,d,g;var f=qx.ui.core.Widget._fastGlobalDisplayQueue;var c=qx.ui.core.Widget._lazyGlobalDisplayQueues;for(var b=0,a=f.length;b<a;b++){d=f[b];d.getParent()._getTargetNode().appendChild(d.getElement())}for(e in c){h=c[e];if(document.createDocumentFragment&&h.length>=3){g=document.createDocumentFragment();for(var b=0,a=h.length;b<a;b++){d=h[b];g.appendChild(d.getElement())}h[0].getParent()._getTargetNode().appendChild(g);for(var b=0,a=h.length;b<a;b++){d=h[b];d._afterInsertDom()}}else{for(var b=0,a=h.length;b<a;b++){d=h[b];d.getParent()._getTargetNode().appendChild(d.getElement());d._afterInsertDom()}}}for(e in c){h=c[e];for(var b=0,a=h.length;b<a;b++){d=h[b];if(d.getVisibility()){d._afterAppear()}delete d._isInGlobalDisplayQueue}delete c[e]}if(qx.lang.Object.isEmpty(c)){qx.ui.core.Widget._lazyGlobalDisplayQueues={}}for(var b=0,a=f.length;b<a;b++){delete f[b]._isInGlobalDisplayQueue}qx.ui.core.Widget._fastGlobalDisplayQueue=[]},addToGlobalDisposeQueue:function(a){if(!a._isInGlobalDisposeQueue&&!a.isDisposed()){if(qx.ui.core.Widget._autoFlushTimeout==null){qx.ui.core.Widget._initAutoFlush(qx.ui.core.Widget._FLUSH_PHASE_DISPOSE)}qx.ui.core.Widget._globalDisposeQueue.push(a);a._markInDispose()}},flushGlobalDisposeQueue:function(){qx.ui.core.Widget._flushGlobalQueuesPhase=qx.ui.core.Widget._FLUSH_PHASE_DISPOSE;var a=qx.ui.core.Widget._globalDisposeQueue,c,d;while((c=a.length)>0){for(var b=0;b<c;b++){d=a[b];d.dispose();delete d._isInGlobalDisposeQueue}a.splice(0,c)}qx.ui.core.Widget._globalDisposeQueue=[]},getActiveSiblingHelperIgnore:function(b,c){for(var a=0;a<b.length;a++){if(c instanceof b[a]){return true}}return false},getActiveSiblingHelper:function(c,d,b,a,h){if(!a){a=[]}var f=d.getChildren();var g=h==null?f.indexOf(c)+b:h==="first"?0:f.length-1;var e=f[g];while(e&&(!e.getEnabled()||qx.ui.core.Widget.getActiveSiblingHelperIgnore(a,e))){g+=b;e=f[g];if(!e){return null}}return e},TYPE_NULL:0,TYPE_PIXEL:1,TYPE_PERCENT:2,TYPE_AUTO:3,TYPE_FLEX:4,__initApplyMethods:function(d){var g="_renderRuntime";var k="_resetRuntime";var b="this._style.";var f="=((v==null)?0:v)+'px'";var m="v";var h=["left",$[15],"top",$[31],$[28],$[23],$[91],$[90],$[99],$[94]];var p=["Left",$[39],"Top","Bottom","Width","Height","MinWidth","MaxWidth","MinHeight","MaxHeight"];var n=g+"Margin";var j=k+"Margin";var l=b+"margin";for(var e=0;e<4;e++){d[n+p[e]]=new Function(m,l+p[e]+f);d[j+p[e]]=new Function(l+p[e]+"=''")}var o=g+"Padding";var a=k+"Padding";var c=b+$[176];for(var e=0;e<4;e++){d[o+p[e]]=new Function(m,"this.setStyleProperty('padding"+p[e]+"', ((v==null)?0:v)+'px')");d[a+p[e]]=new Function("this.removeStyleProperty('padding"+p[e]+"')")}for(var e=0;e<h.length;e++){d[g+p[e]]=new Function(m,b+h[e]+f);d[k+p[e]]=new Function(b+h[e]+"=''")}},layoutPropertyTypes:{},__initLayoutProperties:function(j){var e=[$[28],$[23],$[91],$[90],$[99],$[94],"left",$[15],"top",$[31]];for(var g=0,d=e.length,h,c,f;g<d;g++){h=e[g];c="_computed"+qx.lang.String.toFirstUp(h);f=c+"Type";j.layoutPropertyTypes[h]={dataType:f,dataParsed:c+"Parsed",dataValue:c+"Value",typePixel:f+"Pixel",typePercent:f+"Percent",typeAuto:f+"Auto",typeFlex:f+"Flex",typeNull:f+"Null"}}},disableScrolling:function(b){var a=b._getTargetNode();if(a){qx.html.Scroll.disableScrolling(a)}else{b.addEventListener($[44],this._blockScrollingOnAppear,b)}},enableScrolling:function(b){var a=b._getTargetNode();if(a){qx.html.Scroll.enableScrolling(a)}else{b.removeEventListener($[44],this._blockScrollingOnAppear,b)}},_blockScrollingOnAppear:function(){var a=qx.ui.core.Widget._blockScrollingOnAppear;this.removeEventListener($[44],a,this);qx.ui.core.Widget.disableScrolling(this)}},properties:{enabled:{init:$[182],check:$[2],inheritable:true,apply:$[334],event:$[180]},parent:{check:$[423],nullable:true,event:$[171],apply:"_applyParent"},element:{check:"Element",nullable:true,apply:"_applyElement",event:$[344]},visibility:{check:$[2],init:true,apply:$[507],event:$[174]},display:{check:$[2],init:true,apply:"_applyDisplay",event:"changeDisplay"},anonymous:{check:$[2],init:false,event:"changeAnonymous"},horizontalAlign:{check:["left",$[30],$[15]],themeable:true,nullable:true},verticalAlign:{check:["top",$[46],$[31]],themeable:true,nullable:true},allowStretchX:{check:$[2],init:true},allowStretchY:{check:$[2],init:true},zIndex:{check:$[59],apply:"_applyZIndex",event:"changeZIndex",themeable:true,nullable:true,init:null},backgroundColor:{nullable:true,init:null,check:"Color",apply:$[480],event:$[172],themeable:true},backgroundGradient:{check:"Array",nullable:true,init:null,apply:$[319],event:$[326],themeable:true},shadow:{check:"Array",nullable:true,init:null,apply:"_applyShadow",event:"changeShadow",themeable:true},textShadow:{check:"Array",nullable:true,init:null,apply:"_applyTextShadow",event:"changeTextShadow",themeable:true},textColor:{nullable:true,init:$[182],check:"Color",apply:"_applyTextColor",event:$[310],themeable:true,inheritable:true},border:{nullable:true,init:null,apply:"_applyBorder",event:"changeBorder",check:"Border",themeable:true},font:{nullable:true,init:$[182],apply:"_applyFont",check:"Font",event:$[102],themeable:true,inheritable:true},opacity:{check:$[59],apply:$[333],themeable:true,nullable:true,init:null},cursor:{check:$[21],apply:"_applyCursor",themeable:true,nullable:true,init:null},backgroundImage:{check:$[21],nullable:true,apply:"_applyBackgroundImage",themeable:true},backgroundRepeat:{check:$[21],nullable:true,apply:"_applyBackgroundRepeat",themeable:true},overflow:{check:[$[13],"auto",$[12],$[86],$[85]],nullable:true,apply:"_applyOverflow",event:"changeOverflow",themeable:true,init:null},containerOverflow:{check:$[2],nullable:false,apply:"_applyContainerOverflow",themeable:true,init:true},clipLeft:{check:$[14],apply:$[265],themeable:true,nullable:true},clipTop:{check:$[14],apply:$[265],themeable:true,nullable:true},clipWidth:{check:$[14],apply:$[265],themeable:true,nullable:true},clipHeight:{check:$[14],apply:$[265],themeable:true,nullable:true},tabIndex:{check:$[14],nullable:true,init:null,apply:"_applyTabIndex",event:"changeTabIndex"},hideFocus:{check:$[2],init:true,apply:"_applyHideFocus",themeable:true},enableElementFocus:{check:$[2],init:true},focused:{check:$[2],init:false,apply:"_applyFocused",event:$[262]},selectable:{check:$[2],init:null,nullable:true,apply:"_applySelectable"},toolTip:{check:$[240],nullable:true,event:"changeToolTip"},contextMenu:{nullable:true,event:"changeContextMenu"},capture:{check:$[2],init:false,apply:"_applyCapture",event:"changeCapture"},dropDataTypes:{nullable:true,dispose:true},command:{check:"qx.client.Command",nullable:true,apply:"_applyCommand"},appearance:{check:$[21],init:"widget",apply:"_applyAppearance",event:"changeAppearance"},supportsDropMethod:{check:"Function",nullable:true,init:null},marginTop:{check:$[59],apply:"_applyMarginTop",nullable:true,themeable:true},marginRight:{check:$[59],apply:"_applyMarginRight",nullable:true,themeable:true},marginBottom:{check:$[59],apply:"_applyMarginBottom",nullable:true,themeable:true},marginLeft:{check:$[59],apply:"_applyMarginLeft",nullable:true,themeable:true},paddingTop:{check:$[59],apply:"_applyPaddingTop",nullable:true,themeable:true},paddingRight:{check:$[59],apply:"_applyPaddingRight",nullable:true,themeable:true},paddingBottom:{check:$[59],apply:"_applyPaddingBottom",nullable:true,themeable:true},paddingLeft:{check:$[59],apply:"_applyPaddingLeft",nullable:true,themeable:true},left:{apply:"_applyLeft",event:$[150],nullable:true,themeable:true,init:null},right:{apply:"_applyRight",event:"changeRight",nullable:true,themeable:true,init:null},width:{apply:"_applyWidth",event:$[63],nullable:true,themeable:true,init:null},minWidth:{apply:"_applyMinWidth",event:"changeMinWidth",nullable:true,themeable:true,init:null},maxWidth:{apply:"_applyMaxWidth",event:"changeMaxWidth",nullable:true,themeable:true,init:null},top:{apply:"_applyTop",event:$[336],nullable:true,themeable:true,init:null},bottom:{apply:"_applyBottom",event:"changeBottom",nullable:true,themeable:true,init:null},height:{apply:$[394],event:$[71],nullable:true,themeable:true,init:null},minHeight:{apply:"_applyMinHeight",event:"changeMinHeight",nullable:true,themeable:true,init:null},maxHeight:{apply:"_applyMaxHeight",event:"changeMaxHeight",nullable:true,themeable:true,init:null},location:{group:["left","top"],themeable:true},dimension:{group:[$[28],$[23]],themeable:true},space:{group:["left",$[28],"top",$[23]],themeable:true},edge:{group:["top",$[15],$[31],"left"],themeable:true,mode:$[227]},padding:{group:[$[181],$[191],$[208],$[213]],mode:$[227],themeable:true},margin:{group:[$[178],$[236],$[275],$[179]],mode:$[227],themeable:true},heights:{group:[$[99],$[23],$[94]],themeable:true},widths:{group:[$[91],$[28],$[90]],themeable:true},align:{group:["horizontalAlign","verticalAlign"],themeable:true},clipLocation:{group:["clipLeft","clipTop"]},clipDimension:{group:["clipWidth","clipHeight"]},clip:{group:["clipLeft","clipTop","clipWidth","clipHeight"]},innerWidth:{_cached:true,defaultValue:null},innerHeight:{_cached:true,defaultValue:null},boxWidth:{_cached:true,defaultValue:null},boxHeight:{_cached:true,defaultValue:null},outerWidth:{_cached:true,defaultValue:null},outerHeight:{_cached:true,defaultValue:null},frameWidth:{_cached:true,defaultValue:null,addToQueueRuntime:true},frameHeight:{_cached:true,defaultValue:null,addToQueueRuntime:true},preferredInnerWidth:{_cached:true,defaultValue:null,addToQueueRuntime:true},preferredInnerHeight:{_cached:true,defaultValue:null,addToQueueRuntime:true},preferredBoxWidth:{_cached:true,defaultValue:null},preferredBoxHeight:{_cached:true,defaultValue:null},hasPercentX:{_cached:true,defaultValue:false},hasPercentY:{_cached:true,defaultValue:false},hasAutoX:{_cached:true,defaultValue:false},hasAutoY:{_cached:true,defaultValue:false},hasFlexX:{_cached:true,defaultValue:false},hasFlexY:{_cached:true,defaultValue:false}},members:{_computedLeftValue:null,_computedLeftParsed:null,_computedLeftType:null,_computedLeftTypeNull:true,_computedLeftTypePixel:false,_computedLeftTypePercent:false,_computedLeftTypeAuto:false,_computedLeftTypeFlex:false,_computedRightValue:null,_computedRightParsed:null,_computedRightType:null,_computedRightTypeNull:true,_computedRightTypePixel:false,_computedRightTypePercent:false,_computedRightTypeAuto:false,_computedRightTypeFlex:false,_computedTopValue:null,_computedTopParsed:null,_computedTopType:null,_computedTopTypeNull:true,_computedTopTypePixel:false,_computedTopTypePercent:false,_computedTopTypeAuto:false,_computedTopTypeFlex:false,_computedBottomValue:null,_computedBottomParsed:null,_computedBottomType:null,_computedBottomTypeNull:true,_computedBottomTypePixel:false,_computedBottomTypePercent:false,_computedBottomTypeAuto:false,_computedBottomTypeFlex:false,_computedWidthValue:null,_computedWidthParsed:null,_computedWidthType:null,_computedWidthTypeNull:true,_computedWidthTypePixel:false,_computedWidthTypePercent:false,_computedWidthTypeAuto:false,_computedWidthTypeFlex:false,_computedMinWidthValue:null,_computedMinWidthParsed:null,_computedMinWidthType:null,_computedMinWidthTypeNull:true,_computedMinWidthTypePixel:false,_computedMinWidthTypePercent:false,_computedMinWidthTypeAuto:false,_computedMinWidthTypeFlex:false,_computedMaxWidthValue:null,_computedMaxWidthParsed:null,_computedMaxWidthType:null,_computedMaxWidthTypeNull:true,_computedMaxWidthTypePixel:false,_computedMaxWidthTypePercent:false,_computedMaxWidthTypeAuto:false,_computedMaxWidthTypeFlex:false,_computedHeightValue:null,_computedHeightParsed:null,_computedHeightType:null,_computedHeightTypeNull:true,_computedHeightTypePixel:false,_computedHeightTypePercent:false,_computedHeightTypeAuto:false,_computedHeightTypeFlex:false,_computedMinHeightValue:null,_computedMinHeightParsed:null,_computedMinHeightType:null,_computedMinHeightTypeNull:true,_computedMinHeightTypePixel:false,_computedMinHeightTypePercent:false,_computedMinHeightTypeAuto:false,_computedMinHeightTypeFlex:false,_computedMaxHeightValue:null,_computedMaxHeightParsed:null,_computedMaxHeightType:null,_computedMaxHeightTypeNull:true,_computedMaxHeightTypePixel:false,_computedMaxHeightTypePercent:false,_computedMaxHeightTypeAuto:false,_computedMaxHeightTypeFlex:false,_customVariant:null,_applyLeft:function(b,a){this._unitDetectionPixelPercent("left",b);this.addToQueue("left")},_applyRight:function(b,a){this._unitDetectionPixelPercent($[15],b);this.addToQueue($[15])},_applyTop:function(b,a){this._unitDetectionPixelPercent("top",b);this.addToQueue("top")},_applyBottom:function(b,a){this._unitDetectionPixelPercent($[31],b);this.addToQueue($[31])},_applyWidth:function(b,a){this._unitDetectionPixelPercentAutoFlex($[28],b);this.addToQueue($[28])},_applyMinWidth:function(b,a){this._unitDetectionPixelPercentAuto($[91],b);this.addToQueue($[91])},_applyMaxWidth:function(b,a){this._unitDetectionPixelPercentAuto($[90],b);this.addToQueue($[90])},_applyHeight:function(b,a){this._unitDetectionPixelPercentAutoFlex($[23],b);this.addToQueue($[23])},_applyMinHeight:function(b,a){this._unitDetectionPixelPercentAuto($[99],b);this.addToQueue($[99])},_applyMaxHeight:function(b,a){this._unitDetectionPixelPercentAuto($[94],b);this.addToQueue($[94])},getChildren:qx.lang.Function.returnNull,getChildrenLength:qx.lang.Function.returnZero,hasChildren:qx.lang.Function.returnFalse,isEmpty:qx.lang.Function.returnTrue,indexOf:qx.lang.Function.returnNegativeIndex,contains:qx.lang.Function.returnFalse,getVisibleChildren:qx.lang.Function.returnNull,getVisibleChildrenLength:qx.lang.Function.returnZero,hasVisibleChildren:qx.lang.Function.returnFalse,isVisibleEmpty:qx.lang.Function.returnTrue,_hasParent:false,_isDisplayable:false,isDisplayable:function(){return this._isDisplayable},_checkParent:function(b,a){if(this.contains(b)){throw new Error("Could not insert myself into a child "+b+"!")}return b},_applyParent:function(c,a){if(a){var b=a.getChildren().indexOf(this);this._computedWidthValue=null;this._computedMinWidthValue=null;this._computedMaxWidthValue=null;this._computedLeftValue=null;this._computedRightValue=null;this._computedHeightValue=null;this._computedMinHeightValue=null;this._computedMaxHeightValue=null;this._computedTopValue=null;this._computedBottomValue=null;this._cachedBoxWidth=null;this._cachedInnerWidth=null;this._cachedOuterWidth=null;this._cachedBoxHeight=null;this._cachedInnerHeight=null;this._cachedOuterHeight=null;qx.lang.Array.removeAt(a.getChildren(),b);a._invalidateVisibleChildren();a._removeChildFromChildrenQueue(this);a.getLayoutImpl().updateChildrenOnRemoveChild(this,b);a.addToJobQueue($[403]);a._invalidatePreferredInnerDimensions();this._oldParent=a}if(c){this._hasParent=true;if(typeof this._insertIndex==$[62]){qx.lang.Array.insertAt(c.getChildren(),this,this._insertIndex);delete this._insertIndex}else{c.getChildren().push(this)}}else{this._hasParent=false}qx.core.Property.refresh(this);return this._handleDisplayable("parent")},_applyDisplay:function(b,a){return this._handleDisplayable($[160])},_handleDisplayable:function(g){var f=this._computeDisplayable();if(this._isDisplayable==f&&!(f&&g=="parent")){return true}this._isDisplayable=f;var e=this.getParent();if(e){e._invalidateVisibleChildren();e._invalidatePreferredInnerDimensions()}if(g&&this._oldParent&&this._oldParent._initialLayoutDone){var d=this.getElement();if(d){if(this.getVisibility()){this._beforeDisappear()}try{this._oldParent._getTargetNode().removeChild(d)}catch(c){}this._afterRemoveDom();if(this.getVisibility()){this._afterDisappear()}}delete this._oldParent}if(f){if(e._initialLayoutDone){var b=e.getChildren().indexOf(this);e.getLayoutImpl().updateChildrenOnAddChild(this,b);e.addToJobQueue("addChild")}this.addToLayoutChanges("initial");this.addToCustomQueues(g);if(this.getVisibility()){this._beforeAppear()}if(!this._isCreated){qx.ui.core.Widget.addToGlobalElementQueue(this)}qx.ui.core.Widget.addToGlobalStateQueue(this);if(!qx.lang.Object.isEmpty(this._jobQueue)){qx.ui.core.Widget.addToGlobalJobQueue(this)}if(!qx.lang.Object.isEmpty(this._childrenQueue)){qx.ui.core.Widget.addToGlobalLayoutQueue(this)}}else{qx.ui.core.Widget.removeFromGlobalElementQueue(this);qx.ui.core.Widget.removeFromGlobalStateQueue(this);qx.ui.core.Widget.removeFromGlobalJobQueue(this);qx.ui.core.Widget.removeFromGlobalLayoutQueue(this);this.removeFromCustomQueues(g);if(e&&g){if(this.getVisibility()){this._beforeDisappear()}if(e._initialLayoutDone&&this._initialLayoutDone){var b=e.getChildren().indexOf(this);e.getLayoutImpl().updateChildrenOnRemoveChild(this,b);e.addToJobQueue($[403]);var a=org.eclipse.rwt.Client.isMshtml()?this.getElement().parentElement:this.getElement().parentNode;if(a){a.removeChild(this.getElement());this._afterRemoveDom()}}e._removeChildFromChildrenQueue(this);if(this.getVisibility()){this._afterDisappear()}}}this._handleDisplayableCustom(f,e,g);return true},addToCustomQueues:qx.lang.Function.returnTrue,removeFromCustomQueues:qx.lang.Function.returnTrue,_handleDisplayableCustom:qx.lang.Function.returnTrue,_computeDisplayable:function(){return this.getDisplay()&&this.getParent()&&this.getParent()._isDisplayable?true:false},_beforeAppear:function(){this.dispatchSimpleEvent("beforeAppear")},_afterAppear:function(){this._isSeeable=true;this.dispatchSimpleEvent($[44])},_ieFixLayoutOnAppear:qx.core.Variant.select($[0],{mshtml:function(){var b=this._style.width;var a=this._style.height;this._style.width="0px";this._style.height="0px";this._style.width=b;this._style.height=a;if(this._innerStyle){b=this._innerStyle.width;a=this._innerStyle.height;this._innerStyle.width="0px";this._innerStyle.height="0px";this._innerStyle.width=b;this._innerStyle.height=a}},"default":qx.lang.Function.returnTrue}),_beforeDisappear:function(){this.removeState("over");if(qx.Class.isDefined($[346])){this.removeState($[11]);this.removeState($[33])}this.dispatchSimpleEvent("beforeDisappear")},_afterDisappear:function(){this._isSeeable=false;this.dispatchSimpleEvent($[355])},_isSeeable:false,_isInDom:false,isSeeable:function(){return this._isSeeable},isInDom:function(){return this._isInDom},isAppearRelevant:function(){return this.getVisibility()&&this._isDisplayable},_afterInsertDom:function(){this._isInDom=true;this.dispatchSimpleEvent($[143])},_afterRemoveDom:function(){this._isInDom=false},_applyVisibility:function(b,a){if(b){if(this._isDisplayable&&(this._isCreated||this._isInGlobalElementQueue)){this._beforeAppear()}this.removeStyleProperty($[160]);if(this._isDisplayable&&this._isCreated){this._afterAppear();this._ieFixLayoutOnAppear()}}else{if(this._isDisplayable&&this._isCreated){this._beforeDisappear()}this.setStyleProperty($[160],"none");if(this._isDisplayable&&this._isCreated){this._afterDisappear()}}},show:function(){this.setVisibility(true);this.setDisplay(true)},hide:function(){this.setVisibility(false)},destroy:function(){if(this.getParent()===null||!this.getParent()._isInGlobalDisposeQueue){if(this.dispatchSimpleEvent($[228])){this.setParent(null);qx.ui.core.Widget.addToGlobalDisposeQueue(this)}}},_markInDispose:function(){this._isInGlobalDisposeQueue=true},_isCreated:false,_element:null,_targetNode:null,_style:null,_innerStyle:null,_getTargetNode:function(){return this._targetNode||this._element},addToDocument:function(){qx.ui.core.ClientDocument.getInstance().add(this)},isCreated:function(){return this._isCreated},_createElementImpl:function(){this.setElement(this.getTopLevelWidget().getDocumentElement().createElement("div"))},_applyElement:function(b,a){this._isCreated=b!=null;if(a){a.qx_Widget=null}if(b){b.qx_Widget=this;b.style.position=$[17];this._element=b;this._style=b.style;if(this._targetNodeEnabled){this.prepareEnhancedBorder(true)}this.initBackgroundColor();this._applyStyleProperties(b);this._applyHtmlProperties(b);this._applyHtmlAttributes(b);this._applyElementData(b);this.dispatchSimpleEvent($[84]);this.addToStateQueue()}else{this._element=this._style=null}},addToJobQueue:function(a){if(this._hasParent){qx.ui.core.Widget.addToGlobalJobQueue(this)}if(!this._jobQueue){this._jobQueue={}}this._jobQueue[a]=true;return true},_flushJobQueue:function(e){var k=this._jobQueue;var p=this.getParent();if(!p||qx.lang.Object.isEmpty(k)){return}var n=this instanceof qx.ui.core.Parent?this.getLayoutImpl():null;if(n){n.updateSelfOnJobQueueFlush(k)}var b=false;var g=k.marginLeft||k.marginRight;var h=k.marginTop||k.marginBottom;var c=k.frameWidth;var l=k.frameHeight;var f=(k.frameWidth||k.preferredInnerWidth)&&this._recomputePreferredBoxWidth();var o=(k.frameHeight||k.preferredInnerHeight)&&this._recomputePreferredBoxHeight();if(f){var d=this.getPreferredBoxWidth();if(this._computedWidthTypeAuto){this._computedWidthValue=d;k.width=true}if(this._computedMinWidthTypeAuto){this._computedMinWidthValue=d;k.minWidth=true}if(this._computedMaxWidthTypeAuto){this._computedMaxWidthValue=d;k.maxWidth=true}}if(o){var d=this.getPreferredBoxHeight();if(this._computedHeightTypeAuto){this._computedHeightValue=d;k.height=true}if(this._computedMinHeightTypeAuto){this._computedMinHeightValue=d;k.minHeight=true}if(this._computedMaxHeightTypeAuto){this._computedMaxHeightValue=d;k.maxHeight=true}}if((k.width||k.minWidth||k.maxWidth||k.left||k.right)&&this._recomputeBoxWidth()){g=c=true}if((k.height||k.minHeight||k.maxHeight||k.top||k.bottom)&&this._recomputeBoxHeight()){h=l=true}if((g&&this._recomputeOuterWidth())||f){p._invalidatePreferredInnerWidth();p.getLayoutImpl().updateSelfOnChildOuterWidthChange(this);b=true}if((h&&this._recomputeOuterHeight())||o){p._invalidatePreferredInnerHeight();p.getLayoutImpl().updateSelfOnChildOuterHeightChange(this);b=true}if(b){p._flushJobQueue()}p._addChildToChildrenQueue(this);for(var j in k){this._layoutChanges[j]=true}if(this instanceof qx.ui.core.Parent&&(k.paddingLeft||k.paddingRight||k.paddingTop||k.paddingBottom)){var a=this.getChildren(),m=a.length;if(k.paddingLeft){for(var j=0;j<m;j++){a[j].addToLayoutChanges("parentPaddingLeft")}}if(k.paddingRight){for(var j=0;j<m;j++){a[j].addToLayoutChanges("parentPaddingRight")}}if(k.paddingTop){for(var j=0;j<m;j++){a[j].addToLayoutChanges("parentPaddingTop")}}if(k.paddingBottom){for(var j=0;j<m;j++){a[j].addToLayoutChanges("parentPaddingBottom")}}}if(c){this._recomputeInnerWidth()}if(l){this._recomputeInnerHeight()}if(this._initialLayoutDone){if(n){n.updateChildrenOnJobQueueFlush(k)}}delete this._jobQueue},_isWidthEssential:qx.lang.Function.returnTrue,_isHeightEssential:qx.lang.Function.returnTrue,_computeBoxWidthFallback:function(){return 0},_computeBoxHeightFallback:function(){return 0},_computeBoxWidth:function(){var a=this.getParent().getLayoutImpl();return Math.max(0,qx.lang.Number.limit(a.computeChildBoxWidth(this),this.getMinWidthValue(),this.getMaxWidthValue()))},_computeBoxHeight:function(){var a=this.getParent().getLayoutImpl();return Math.max(0,qx.lang.Number.limit(a.computeChildBoxHeight(this),this.getMinHeightValue(),this.getMaxHeightValue()))},_computeOuterWidth:function(){return Math.max(0,(this.getMarginLeft()+this.getBoxWidth()+this.getMarginRight()))},_computeOuterHeight:function(){return Math.max(0,(this.getMarginTop()+this.getBoxHeight()+this.getMarginBottom()))},_computeInnerWidth:function(){return Math.max(0,this.getBoxWidth()-this.getFrameWidth())},_computeInnerHeight:function(){return Math.max(0,this.getBoxHeight()-this.getFrameHeight())},getNeededWidth:function(){var a=this.getParent().getLayoutImpl();return Math.max(0,a.computeChildNeededWidth(this))},getNeededHeight:function(){var a=this.getParent().getLayoutImpl();return Math.max(0,a.computeChildNeededHeight(this))},_recomputeFlexX:function(){if(!this.getHasFlexX()){return false}if(this._computedWidthTypeFlex){this._computedWidthValue=null;this.addToLayoutChanges($[28])}return true},_recomputeFlexY:function(){if(!this.getHasFlexY()){return false}if(this._computedHeightTypeFlex){this._computedHeightValue=null;this.addToLayoutChanges($[23])}return true},_recomputePercentX:function(){if(!this.getHasPercentX()){return false}if(this._computedWidthTypePercent){this._computedWidthValue=null;this.addToLayoutChanges($[28])}if(this._computedMinWidthTypePercent){this._computedMinWidthValue=null;this.addToLayoutChanges($[91])}if(this._computedMaxWidthTypePercent){this._computedMaxWidthValue=null;this.addToLayoutChanges($[90])}if(this._computedLeftTypePercent){this._computedLeftValue=null;this.addToLayoutChanges("left")}if(this._computedRightTypePercent){this._computedRightValue=null;this.addToLayoutChanges($[15])}return true},_recomputePercentY:function(){if(!this.getHasPercentY()){return false}if(this._computedHeightTypePercent){this._computedHeightValue=null;this.addToLayoutChanges($[23])}if(this._computedMinHeightTypePercent){this._computedMinHeightValue=null;this.addToLayoutChanges($[99])}if(this._computedMaxHeightTypePercent){this._computedMaxHeightValue=null;this.addToLayoutChanges($[94])}if(this._computedTopTypePercent){this._computedTopValue=null;this.addToLayoutChanges("top")}if(this._computedBottomTypePercent){this._computedBottomValue=null;this.addToLayoutChanges($[31])}return true},_recomputeRangeX:qx.core.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this._computedLeftTypeNull||this._computedRightTypeNull){return false}this.addToLayoutChanges($[28]);return true},"default":function(){return !(this._computedLeftTypeNull||this._computedRightTypeNull)}}),_recomputeRangeY:qx.core.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this._computedTopTypeNull||this._computedBottomTypeNull){return false}this.addToLayoutChanges($[23]);return true},"default":function(){return !(this._computedTopTypeNull||this._computedBottomTypeNull)}}),_recomputeStretchingX:qx.core.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){this._computedWidthValue=null;this.addToLayoutChanges($[28]);return true}return false},"default":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){return true}return false}}),_recomputeStretchingY:qx.core.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){this._computedHeightValue=null;this.addToLayoutChanges($[23]);return true}return false},"default":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){return true}return false}}),_computeValuePixel:function(a){return Math.round(a)},_computeValuePixelLimit:function(a){return Math.max(0,this._computeValuePixel(a))},_computeValuePercentX:function(a){return Math.round(this.getParent().getInnerWidthForChild(this)*a*0.01)},_computeValuePercentXLimit:function(a){return Math.max(0,this._computeValuePercentX(a))},_computeValuePercentY:function(a){return Math.round(this.getParent().getInnerHeightForChild(this)*a*0.01)},_computeValuePercentYLimit:function(a){return Math.max(0,this._computeValuePercentY(a))},getWidthValue:function(){if(this._computedWidthValue!=null){return this._computedWidthValue}switch(this._computedWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedWidthParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedWidthParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedWidthValue=this.getPreferredBoxWidth();case qx.ui.core.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexWidth===undefined){throw new Error("Widget "+this+": having horizontal flex size (width="+this.getWidth()+$[491]+this.getParent()+$[371])}this.getParent().getLayoutImpl().computeChildrenFlexWidth();return this._computedWidthValue=this._computedWidthFlexValue}return null},getMinWidthValue:function(){if(this._computedMinWidthValue!=null){return this._computedMinWidthValue}switch(this._computedMinWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMinWidthParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMinWidthParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMinWidthValue=this.getPreferredBoxWidth()}return null},getMaxWidthValue:function(){if(this._computedMaxWidthValue!=null){return this._computedMaxWidthValue}switch(this._computedMaxWidthType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMaxWidthParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMaxWidthParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMaxWidthValue=this.getPreferredBoxWidth()}return null},getLeftValue:function(){if(this._computedLeftValue!=null){return this._computedLeftValue}switch(this._computedLeftType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedLeftValue=this._computeValuePixel(this._computedLeftParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedLeftValue=this._computeValuePercentX(this._computedLeftParsed)}return null},getRightValue:function(){if(this._computedRightValue!=null){return this._computedRightValue}switch(this._computedRightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedRightValue=this._computeValuePixel(this._computedRightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedRightValue=this._computeValuePercentX(this._computedRightParsed)}return null},getHeightValue:function(){if(this._computedHeightValue!=null){return this._computedHeightValue}switch(this._computedHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedHeightValue=this._computeValuePixelLimit(this._computedHeightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedHeightValue=this._computeValuePercentYLimit(this._computedHeightParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedHeightValue=this.getPreferredBoxHeight();case qx.ui.core.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexHeight===undefined){throw new Error("Widget "+this+": having vertical flex size (height="+this.getHeight()+$[491]+this.getParent()+$[371])}this.getParent().getLayoutImpl().computeChildrenFlexHeight();return this._computedHeightValue=this._computedHeightFlexValue}return null},getMinHeightValue:function(){if(this._computedMinHeightValue!=null){return this._computedMinHeightValue}switch(this._computedMinHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedMinHeightValue=this._computeValuePixelLimit(this._computedMinHeightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedMinHeightValue=this._computeValuePercentYLimit(this._computedMinHeightParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMinHeightValue=this.getPreferredBoxHeight()}return null},getMaxHeightValue:function(){if(this._computedMaxHeightValue!=null){return this._computedMaxHeightValue}switch(this._computedMaxHeightType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedMaxHeightValue=this._computeValuePixelLimit(this._computedMaxHeightParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedMaxHeightValue=this._computeValuePercentYLimit(this._computedMaxHeightParsed);case qx.ui.core.Widget.TYPE_AUTO:return this._computedMaxHeightValue=this.getPreferredBoxHeight()}return null},getTopValue:function(){if(this._computedTopValue!=null){return this._computedTopValue}switch(this._computedTopType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedTopValue=this._computeValuePixel(this._computedTopParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedTopValue=this._computeValuePercentY(this._computedTopParsed)}return null},getBottomValue:function(){if(this._computedBottomValue!=null){return this._computedBottomValue}switch(this._computedBottomType){case qx.ui.core.Widget.TYPE_PIXEL:return this._computedBottomValue=this._computeValuePixel(this._computedBottomParsed);case qx.ui.core.Widget.TYPE_PERCENT:return this._computedBottomValue=this._computeValuePercentY(this._computedBottomParsed)}return null},_computeFrameWidth:function(){var a=this._cachedBorderLeft+this.getPaddingLeft()+this.getPaddingRight()+this._cachedBorderRight;return a},_computeFrameHeight:function(){var a=this._cachedBorderTop+this.getPaddingTop()+this.getPaddingBottom()+this._cachedBorderBottom;return a},_invalidateFrameDimensions:function(){this._invalidateFrameWidth();this._invalidateFrameHeight()},_invalidatePreferredInnerDimensions:function(){this._invalidatePreferredInnerWidth();this._invalidatePreferredInnerHeight()},_computePreferredBoxWidth:function(){return Math.max(0,this.getPreferredInnerWidth()+this.getFrameWidth())},_computePreferredBoxHeight:function(){return Math.max(0,this.getPreferredInnerHeight()+this.getFrameHeight())},_initialLayoutDone:false,addToLayoutChanges:function(a){if(this._isDisplayable){this.getParent()._addChildToChildrenQueue(this)}return this._layoutChanges[a]=true},addToQueue:function(a){this._initialLayoutDone?this.addToJobQueue(a):this.addToLayoutChanges(a)},addToQueueRuntime:function(a){return !this._initialLayoutDone||this.addToJobQueue(a)},_computeHasPercentX:function(){return(this._computedLeftTypePercent||this._computedWidthTypePercent||this._computedMinWidthTypePercent||this._computedMaxWidthTypePercent||this._computedRightTypePercent)},_computeHasPercentY:function(){return(this._computedTopTypePercent||this._computedHeightTypePercent||this._computedMinHeightTypePercent||this._computedMaxHeightTypePercent||this._computedBottomTypePercent)},_computeHasAutoX:function(){return(this._computedWidthTypeAuto||this._computedMinWidthTypeAuto||this._computedMaxWidthTypeAuto)},_computeHasAutoY:function(){return(this._computedHeightTypeAuto||this._computedMinHeightTypeAuto||this._computedMaxHeightTypeAuto)},_computeHasFlexX:function(){return this._computedWidthTypeFlex},_computeHasFlexY:function(){return this._computedHeightTypeFlex},_evalUnitsPixelPercentAutoFlex:function(a){switch(a){case"auto":return qx.ui.core.Widget.TYPE_AUTO;case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL}switch(typeof a){case $[62]:return isNaN(a)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;case $[9]:return a.indexOf("%")!=-1?qx.ui.core.Widget.TYPE_PERCENT:a.indexOf("*")!=-1?qx.ui.core.Widget.TYPE_FLEX:qx.ui.core.Widget.TYPE_NULL}return qx.ui.core.Widget.TYPE_NULL},_evalUnitsPixelPercentAuto:function(a){switch(a){case"auto":return qx.ui.core.Widget.TYPE_AUTO;case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL}switch(typeof a){case $[62]:return isNaN(a)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;case $[9]:return a.indexOf("%")!=-1?qx.ui.core.Widget.TYPE_PERCENT:qx.ui.core.Widget.TYPE_NULL}return qx.ui.core.Widget.TYPE_NULL},_evalUnitsPixelPercent:function(a){switch(a){case Infinity:case -Infinity:return qx.ui.core.Widget.TYPE_NULL}switch(typeof a){case $[62]:return isNaN(a)?qx.ui.core.Widget.TYPE_NULL:qx.ui.core.Widget.TYPE_PIXEL;case $[9]:return a.indexOf("%")!=-1?qx.ui.core.Widget.TYPE_PERCENT:qx.ui.core.Widget.TYPE_NULL}return qx.ui.core.Widget.TYPE_NULL},_unitDetectionPixelPercentAutoFlex:function(b,j){var a=qx.ui.core.Widget.layoutPropertyTypes[b];var n=a.dataType;var c=a.dataParsed;var m=a.dataValue;var l=a.typePixel;var k=a.typePercent;var i=a.typeAuto;var h=a.typeFlex;var g=a.typeNull;var e=this[k];var f=this[i];var d=this[h];switch(this[n]=this._evalUnitsPixelPercentAutoFlex(j)){case qx.ui.core.Widget.TYPE_PIXEL:this[l]=true;this[k]=this[i]=this[h]=this[g]=false;this[c]=this[m]=Math.round(j);break;case qx.ui.core.Widget.TYPE_PERCENT:this[k]=true;this[l]=this[i]=this[h]=this[g]=false;this[c]=parseFloat(j);this[m]=null;break;case qx.ui.core.Widget.TYPE_AUTO:this[i]=true;this[l]=this[k]=this[h]=this[g]=false;this[c]=this[m]=null;break;case qx.ui.core.Widget.TYPE_FLEX:this[h]=true;this[l]=this[k]=this[i]=this[g]=false;this[c]=parseFloat(j);this[m]=null;break;default:this[g]=true;this[l]=this[k]=this[i]=this[h]=false;this[c]=this[m]=null;break}if(e!=this[k]){switch(b){case $[91]:case $[90]:case $[28]:case"left":case $[15]:this._invalidateHasPercentX();break;case $[94]:case $[99]:case $[23]:case"top":case $[31]:this._invalidateHasPercentY();break}}if(f!=this[i]){switch(b){case $[91]:case $[90]:case $[28]:this._invalidateHasAutoX();break;case $[99]:case $[94]:case $[23]:this._invalidateHasAutoY();break}}if(d!=this[h]){switch(b){case $[28]:this._invalidateHasFlexX();break;case $[23]:this._invalidateHasFlexY();break}}},_unitDetectionPixelPercentAuto:function(b,h){var a=qx.ui.core.Widget.layoutPropertyTypes[b];var l=a.dataType;var c=a.dataParsed;var k=a.dataValue;var j=a.typePixel;var i=a.typePercent;var g=a.typeAuto;var f=a.typeNull;var d=this[i];var e=this[g];switch(this[l]=this._evalUnitsPixelPercentAuto(h)){case qx.ui.core.Widget.TYPE_PIXEL:this[j]=true;this[i]=this[g]=this[f]=false;this[c]=this[k]=Math.round(h);break;case qx.ui.core.Widget.TYPE_PERCENT:this[i]=true;this[j]=this[g]=this[f]=false;this[c]=parseFloat(h);this[k]=null;break;case qx.ui.core.Widget.TYPE_AUTO:this[g]=true;this[j]=this[i]=this[f]=false;this[c]=this[k]=null;break;default:this[f]=true;this[j]=this[i]=this[g]=false;this[c]=this[k]=null;break}if(d!=this[i]){switch(b){case $[91]:case $[90]:case $[28]:case"left":case $[15]:this._invalidateHasPercentX();break;case $[99]:case $[94]:case $[23]:case"top":case $[31]:this._invalidateHasPercentY();break}}if(e!=this[g]){switch(b){case $[91]:case $[90]:case $[28]:this._invalidateHasAutoX();break;case $[99]:case $[94]:case $[23]:this._invalidateHasAutoY();break}}},_unitDetectionPixelPercent:function(b,f){var a=qx.ui.core.Widget.layoutPropertyTypes[b];var j=a.dataType;var c=a.dataParsed;var i=a.dataValue;var h=a.typePixel;var g=a.typePercent;var e=a.typeNull;var d=this[g];switch(this[j]=this._evalUnitsPixelPercent(f)){case qx.ui.core.Widget.TYPE_PIXEL:this[h]=true;this[g]=this[e]=false;this[c]=this[i]=Math.round(f);break;case qx.ui.core.Widget.TYPE_PERCENT:this[g]=true;this[h]=this[e]=false;this[c]=parseFloat(f);this[i]=null;break;default:this[e]=true;this[h]=this[g]=false;this[c]=this[i]=null;break}if(d!=this[g]){switch(b){case $[91]:case $[90]:case $[28]:case"left":case $[15]:this._invalidateHasPercentX();break;case $[99]:case $[94]:case $[23]:case"top":case $[31]:this._invalidateHasPercentY();break}}},getTopLevelWidget:function(){return this._hasParent?this.getParent().getTopLevelWidget():null},moveSelfToBegin:function(){this.getParent().addAtBegin(this)},moveSelfToEnd:function(){this.getParent().addAtEnd(this)},getPreviousSibling:function(){var b=this.getParent();if(b==null){return null}var a=b.getChildren();return a[a.indexOf(this)-1]},getNextSibling:function(){var b=this.getParent();if(b==null){return null}var a=b.getChildren();return a[a.indexOf(this)+1]},getPreviousVisibleSibling:function(){if(!this._hasParent){return null}var a=this.getParent().getVisibleChildren();return a[a.indexOf(this)-1]},getNextVisibleSibling:function(){if(!this._hasParent){return null}var a=this.getParent().getVisibleChildren();return a[a.indexOf(this)+1]},getPreviousActiveSibling:function(a){var b=qx.ui.core.Widget.getActiveSiblingHelper(this,this.getParent(),-1,a,null);return b?b:this.getParent().getLastActiveChild()},getNextActiveSibling:function(a){var b=qx.ui.core.Widget.getActiveSiblingHelper(this,this.getParent(),1,a,null);return b?b:this.getParent().getFirstActiveChild()},isFirstChild:function(){return this._hasParent&&this.getParent().getFirstChild()==this},isLastChild:function(){return this._hasParent&&this.getParent().getLastChild()==this},isFirstVisibleChild:function(){return this._hasParent&&this.getParent().getFirstVisibleChild()==this},isLastVisibleChild:function(){return this._hasParent&&this.getParent().getLastVisibleChild()==this},setCustomVariant:function(a){if(this._customVariant!==null){this.removeState(this._customVariant)}this._customVariant=a;if(this._customVariant!==null){this.addState(this._customVariant)}},hasState:function(a){return this.__states&&this.__states[a]?true:false},addState:function(a){if(!this.__states){this.__states={}}if(!this.__states[a]){this.__states[a]=true;if(this._hasParent){qx.ui.core.Widget.addToGlobalStateQueue(this)}}},removeState:function(a){if(this.__states&&this.__states[a]){delete this.__states[a];if(this._hasParent){qx.ui.core.Widget.addToGlobalStateQueue(this)}}},_styleFromMap:function(c){this._prepareStyleMap(c);var b=qx.core.Property.$$method.style;var d=qx.core.Property.$$method.unstyle;var a;for(var e in c){a=c[e];a===$[7]?this[d[e]]():this[b[e]](a)}},_unstyleFromArray:function(c){var d=qx.core.Property.$$method.unstyle;for(var b=0,a=c.length;b<a;b++){this[d[c[b]]]()}},_prepareStyleMap:qx.core.Variant.select($[0],{mshtml:function(c){if(c.shadow&&c.border&&c.border.getStyle()!==$[77]){var b=c.border.getWidthTop();var a=c.border.getColorTop();var d=[0,0,0,0];c.border=new org.eclipse.rwt.Border(b,$[77],a,d)}},"default":function(a){return a}}),_renderAppearance:function(){if(!this.__states){this.__states={}}this._applyStateStyleFocus(this.__states);var b=this.getAppearance();if(b){var a=qx.theme.manager.Appearance.getInstance().styleFrom(b,this.__states);if(a){this._styleFromMap(a)}}},_resetAppearanceThemeWrapper:function(a,e){var f=this.getAppearance();if(f){var c=qx.theme.manager.Appearance.getInstance();var d=c.styleFromTheme(e,f,this.__states);var b=c.styleFromTheme(a,f,this.__states);var g=[];for(var h in d){if(b[h]===undefined){g.push(h)}}this._unstyleFromArray(g);this._styleFromMap(b)}},_applyStateStyleFocus:qx.core.Variant.select($[0],{mshtml:function(a){},"default":function(a){if(a.focused){if(!qx.event.handler.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty($[222],"1px dotted")}}else{this.setStyleProperty($[222],"none")}}}),addToStateQueue:function(){qx.ui.core.Widget.addToGlobalStateQueue(this)},recursiveAddToStateQueue:function(){this.addToStateQueue()},_applyAppearance:function(e,a){if(!this.__states){this.__states={}}var c=qx.theme.manager.Appearance.getInstance();if(e){var b=c.styleFrom(e,this.__states)||{}}if(a){var d=c.styleFrom(a,this.__states)||{};var f=[];for(var g in d){if(!b||!(g in b)){f.push(g)}}}if(f){this._unstyleFromArray(f)}if(b){this._styleFromMap(b)}},_recursiveAppearanceThemeUpdate:function(a,b){this._resetAppearanceThemeWrapper(a,b)},_applyElementData:function(a){},setHtmlProperty:function(b,a){if(!this._htmlProperties){this._htmlProperties={}}this._htmlProperties[b]=a;if(this._isCreated&&this.getElement()[b]!=a){this.getElement()[b]=a}return true},removeHtmlProperty:qx.core.Variant.select($[0],{mshtml:function(a){if(!this._htmlProperties){return}delete this._htmlProperties[a];if(this._isCreated){this.getElement().removeAttribute(a)}return true},"default":function(a){if(!this._htmlProperties){return}delete this._htmlProperties[a];if(this._isCreated){this.getElement().removeAttribute(a);delete this.getElement()[a]}return true}}),getHtmlProperty:function(a){if(!this._htmlProperties){return""}return this._htmlProperties[a]||""},_applyHtmlProperties:function(a){var c=this._htmlProperties;if(c){var b;for(b in c){a[b]=c[b]}}},setHtmlAttribute:function(b,a){if(!this._htmlAttributes){this._htmlAttributes={}}this._htmlAttributes[b]=a;if(this._isCreated){this.getElement().setAttribute(b,a)}return true},removeHtmlAttribute:function(a){if(!this._htmlAttributes){return}delete this._htmlAttributes[a];if(this._isCreated){this.getElement().removeAttribute(a)}return true},getHtmlAttribute:function(a){if(!this._htmlAttributes){return""}return this._htmlAttributes[a]||""},_applyHtmlAttributes:function(b){var a=this._htmlAttributes;if(a){var c;for(c in a){b.setAttribute(c,a[c])}}},getStyleProperty:function(a){if(!this._styleProperties){return""}return this._styleProperties[a]||""},__outerElementStyleProperties:{cursor:true,zIndex:true,filter:true,display:true,visibility:true,outline:true,boxShadow:true,filter:true,opacity:true,MozOpacity:true},setStyleProperty:function(c,b){if(!this._styleProperties){this._styleProperties={}}this._styleProperties[c]=b;if(this._isCreated){var a=this.__outerElementStyleProperties[c]?this.getElement():this._getTargetNode();if(a){a.style[c]=(b==null)?"":b}}},removeStyleProperty:function(b){if(!this._styleProperties){return}delete this._styleProperties[b];if(this._isCreated){var a=this.__outerElementStyleProperties[b]?this.getElement():this._getTargetNode();if(a){a.style[b]=""}}},_applyStyleProperties:function(b){var e=this._styleProperties;if(!e){return}var d;var f=b;var a=this._getTargetNode();var b;var c;for(d in e){b=this.__outerElementStyleProperties[d]?f:a;c=e[d];b.style[d]=(c==null)?"":c}},_applyEnabled:function(b,a){if(b===false){this.addState("disabled");this.removeState("over");if(qx.Class.isDefined($[346])){this.removeState($[33]);this.removeState($[11])}if(this.getFocused()){this.setFocused(false)}}else{this.removeState("disabled")}},isFocusable:function(){return this.getEnabled()&&this.isSeeable()&&this.getTabIndex()!=null},isFocusRoot:function(){return false},getFocusRoot:function(){if(this._hasParent){return this.getParent().getFocusRoot()}return null},getActiveChild:function(){var a=this.getFocusRoot();if(a){return a.getActiveChild()}return null},_ontabfocus:qx.lang.Function.returnTrue,_applyFocused:function(c,b){if(!this.isCreated()){return}var a=this.getFocusRoot();if(a){if(c){a.setFocusedChild(this);this._visualizeFocus()}else{if(a.getFocusedChild()==this){a.setFocusedChild(null)}this._visualizeBlur()}}},_applyHideFocus:qx.core.Variant.select($[0],{mshtml:function(b,a){this.setHtmlProperty("hideFocus",b)},"default":qx.lang.Function.returnTrue}),_visualizeBlur:function(){if(this.getEnableElementFocus()&&(!this.getFocusRoot().getFocusedChild()||(this.getFocusRoot().getFocusedChild()&&this.getFocusRoot().getFocusedChild().getEnableElementFocus()))){try{this.getElement().blur()}catch(a){}}this.removeState($[75])},_visualizeFocus:function(){var a=qx.event.handler.FocusHandler;if(!a.mouseFocus&&!a.blockFocus&&this.getEnableElementFocus()){try{this.getElement().focus()}catch(b){}}this.addState($[75])},focus:function(){delete qx.event.handler.FocusHandler.mouseFocus;this.setFocused(true)},blur:function(){delete qx.event.handler.FocusHandler.mouseFocus;this.setFocused(false)},_applyCapture:function(c,b){var a=org.eclipse.rwt.EventHandler;if(b){a.setCaptureWidget(null)}if(c){a.setCaptureWidget(this)}},_applyZIndex:function(b,a){if(b==null){this.removeStyleProperty("zIndex")}else{this.setStyleProperty("zIndex",b)}},_applyTabIndex:qx.core.Variant.select($[0],{mshtml:function(b,a){this.setHtmlProperty($[331],b<0?-1:1)},"default":function(b,a){this.setStyleProperty("userFocus",(b<0?"ignore":$[61]));this.setHtmlProperty($[331],b<0?-1:1)}}),_applySelectable:qx.core.Variant.select($[0],{mshtml:function(b,a){},gecko:function(b,a){if(b){this.removeStyleProperty($[454])}else{this.setStyleProperty($[454],"none")}},webkit:function(b,a){if(b){this.removeStyleProperty($[439]);this.removeStyleProperty($[495])}else{this.setStyleProperty($[439],"none");this.setStyleProperty($[495],"none")}},"default":function(b,a){if(b){return this.removeStyleProperty("userSelect")}else{this.setStyleProperty("userSelect","none")}}}),_applyOpacity:function(b,a){org.eclipse.rwt.HtmlUtil.setOpacity(this,b)},__cursorMap:qx.core.Variant.select($[0],{mshtml:{"default":$[66],wait:"wait",crosshair:$[305],help:"help",move:"move",text:"text",pointer:$[133],"e-resize":$[145],"n-resize":$[169],"w-resize":$[323],"s-resize":$[338],"ne-resize":$[189],"se-resize":$[307],"nw-resize":$[190],"sw-resize":$[324],"col-resize":$[345],"row-resize":"row-resize",progress:$[192],"not-allowed":$[329],"no-drop":"no-drop",cursor:"hand","ew-resize":$[145],"ns-resize":$[169],"nesw-resize":$[189],"nwse-resize":$[190]},opera:{"default":$[66],wait:"wait",crosshair:$[305],help:"help",move:"move",text:"text",pointer:$[133],"e-resize":$[145],"n-resize":$[169],"w-resize":$[323],"s-resize":$[338],"ne-resize":$[189],"se-resize":$[307],"nw-resize":$[190],"sw-resize":$[324],progress:$[192],"not-allowed":$[329],"no-drop":"no-drop","col-resize":$[145],"row-resize":$[169],"ew-resize":$[145],"ns-resize":$[169],"nesw-resize":$[189],"nwse-resize":$[190]},"default":{"default":$[66],wait:"wait",crosshair:$[305],help:"help",move:"move",text:"text",pointer:$[133],"e-resize":$[145],"n-resize":$[169],"w-resize":$[323],"s-resize":$[338],"ne-resize":$[189],"se-resize":$[307],"nw-resize":$[190],"sw-resize":$[324],"col-resize":$[345],"row-resize":"row-resize",progress:$[192],"not-allowed":$[329],"no-drop":"no-drop"}}),_applyCursor:function(c,a){if(c){var b="url( "+qx.io.Alias.getInstance().resolve(c)+" ), default";this.setStyleProperty($[170],this.__cursorMap[c]||b)}else{this.removeStyleProperty($[170])}},_applyCommand:function(b,a){},_applyBackgroundImage:function(c,a){var b=qx.io.image.Manager.getInstance();var d=qx.io.Alias.getInstance();if(a){b.hide(a)}if(c){b.show(c)}d.connect(this._styleBackgroundImage,this,c)},_styleBackgroundImage:function(a){a?this.setStyleProperty($[93],"url("+a+")"):this.removeStyleProperty($[93])},_applyBackgroundRepeat:function(b,a){b?this.setStyleProperty($[308],b):this.removeStyleProperty($[308])},_applyClip:function(b,a){return this._compileClipString()},_compileClipString:function(){var f=this.getClipLeft();var b=this.getClipTop();var e=this.getClipWidth();var a=this.getClipHeight();var d,c;if(f==null){d=(e==null?"auto":e+"px");f="auto"}else{d=(e==null?"auto":f+e+"px");f=f+"px"}if(b==null){c=(a==null?"auto":a+"px");b="auto"}else{c=(a==null?"auto":b+a+"px");b=b+"px"}return this.setStyleProperty("clip",("rect("+b+","+d+","+c+","+f+")"))},_applyOverflow:qx.core.Variant.select($[0],{"default":function(g,c){var f=g;var d=$[58];switch(g){case $[86]:d=$[96];f=$[12];break;case $[85]:d=$[97];f=$[12];break}var b=[$[58],$[96],$[97]];for(var e=0;e<b.length;e++){if(b[e]!=d){this.removeStyleProperty(b[e])}}switch(g){case $[86]:this.setStyleProperty($[97],$[13]);break;case $[85]:this.setStyleProperty($[96],$[13]);break}this._renderOverflow(d,f,g,c);this.addToQueue($[58])},gecko:function(d,a){var c=d;var b=$[58];switch(c){case $[13]:c=$[256];break;case $[86]:c=$[277];break;case $[85]:c=$[231];break}this._renderOverflow(b,c,d,a);this.addToQueue($[58])},opera:function(g,c){var f=g;var d=$[58];if(org.eclipse.rwt.Client.getVersion()<9.8){switch(f){case $[86]:case $[85]:f=$[12];break}}else{switch(f){case $[86]:d=$[96];f=$[12];break;case $[85]:d=$[97];f=$[12];break}var b=[$[58],$[96],$[97]];for(var e=0;e<b.length;e++){if(b[e]!=d){this.removeStyleProperty(b[e])}}switch(g){case $[86]:this.setStyleProperty($[97],$[13]);break;case $[85]:this.setStyleProperty($[96],$[13]);break}}this._renderOverflow(d,f,g,c);this.addToQueue($[58])}}),_renderOverflow:function(b,c,d,a){this.setStyleProperty(b,c||"");this._invalidateFrameWidth();this._invalidateFrameHeight()},getOverflowX:function(){var a=this.getOverflow();return a==$[85]?$[13]:a},getOverflowY:function(){var a=this.getOverflow();return a==$[86]?$[13]:a},_applyContainerOverflow:function(b,a){if(this._innerStyle){this._style.overflow=b?"":$[13]}},_applyBackgroundColor:function(b,a){this._styleBackgroundColor(b)},_applyBackgroundGradient:function(b,a){org.eclipse.rwt.HtmlUtil.setBackgroundGradient(this,b);if(b===null){this.setStyleProperty($[93],this.getStyleProperty($[93]));this.setStyleProperty($[60],this.getStyleProperty($[60]))}},_applyShadow:function(b,a){org.eclipse.rwt.HtmlUtil.setBoxShadow(this,b)},_applyTextShadow:function(b,a){org.eclipse.rwt.HtmlUtil.setTextShadow(this,b)},_styleBackgroundColor:function(a){if(a==null||a===$[82]){this._removeBackgroundColor()}else{this.setStyleProperty($[60],a)}},_removeBackgroundColor:qx.core.Variant.select($[0],{"default":function(){this.removeStyleProperty($[60])},newmshtml:function(){this.setStyleProperty($[60],"rgba( 0, 0, 0, 0 )")}}),_applyTextColor:function(b,a){},_applyFont:function(b,a){},_cachedBorderTop:0,_cachedBorderRight:0,_cachedBorderBottom:0,_cachedBorderLeft:0,_usesComplexBorder:false,_targetNodeEnabled:false,_applyBorder:function(b,a){this._queueBorder(b);if(b&&b.getStyle()===$[77]){this._prepareGraphicsSupport()}},_prepareGraphicsSupport:(function(){var a;if(org.eclipse.rwt.Client.supportsCss3()){a=qx.lang.Function.returnTrue}else{a=function(){if(!this._targetNodeEnabled&&!this._isCreated){this._targetNodeEnabled=true}}}return a})(),_queueBorder:function(a){this.addToQueue($[127]);this.__reflowBorderX(a);this.__reflowBorderY(a);this.__borderObject=a},__reflowBorderX:function(b){var a=this._cachedBorderLeft;var c=this._cachedBorderRight;this._cachedBorderLeft=b?b.getWidthLeft():0;this._cachedBorderRight=b?b.getWidthRight():0;if((a+c)!=(this._cachedBorderLeft+this._cachedBorderRight)){this._invalidateFrameWidth()}},__reflowBorderY:function(c){var a=this._cachedBorderTop;var b=this._cachedBorderBottom;this._cachedBorderTop=c?c.getWidthTop():0;this._cachedBorderBottom=c?c.getWidthBottom():0;if((a+b)!=(this._cachedBorderTop+this._cachedBorderBottom)){this._invalidateFrameHeight()}},renderBorder:function(a){var b=this.__borderObject;if(b){b.renderWidget(this)}else{org.eclipse.rwt.Border.resetWidget(this)}this._usesComplexBorder=this._computeUsesComplexBorder()},_computeUsesComplexBorder:function(){return this.__borderObject&&this.__borderObject.getStyle()===$[175]},prepareEnhancedBorder:function(b){if(!this._innerStyle){this._targetNode=document.createElement("div");this._innerStyle=this._targetNode.style;this._targetNodeEnabled=true;if(org.eclipse.rwt.Client.isMshtml()){this.addToQueue($[28]);this.addToQueue($[23])}else{this._innerStyle.width="100%";this._innerStyle.height="100%"}this._innerStyle.position=$[17];if(!b){for(var a in this._styleProperties){switch(a){case"zIndex":case $[138]:case $[76]:case $[281]:case $[160]:case $[170]:case"boxShadow":break;default:this._innerStyle[a]=this._styleProperties[a];this._style[a]=""}}}this._style.outline="none";this._applyContainerOverflow(this.getContainerOverflow());if(!b){for(var a in this._htmlProperties){switch(a){case $[362]:this._targetNode.unselectable=this._htmlProperties[a]}}}while(this._element.firstChild){this._targetNode.appendChild(this._element.firstChild)}this._element.appendChild(this._targetNode);if(this.isInDom()){this._afterRemoveDom();this._afterInsertDom()}}},_applyPaddingTop:function(b,a){this.addToQueue($[181]);this._invalidateFrameHeight()},_applyPaddingRight:function(b,a){this.addToQueue($[191]);this._invalidateFrameWidth()},_applyPaddingBottom:function(b,a){this.addToQueue($[208]);this._invalidateFrameHeight()},_applyPaddingLeft:function(b,a){this.addToQueue($[213]);this._invalidateFrameWidth()},renderPadding:function(a){},_applyMarginLeft:function(b,a){this.addToQueue($[179])},_applyMarginRight:function(b,a){this.addToQueue($[236])},_applyMarginTop:function(b,a){this.addToQueue($[178])},_applyMarginBottom:function(b,a){this.addToQueue($[275])},execute:function(){var a=this.getCommand();if(a){a.execute(this)}this.createDispatchEvent($[108])},_visualPropertyCheck:function(){if(!this.isCreated()){throw new Error(this.classname+": Element must be created previously!")}},setScrollLeft:function(a){this._visualPropertyCheck();this._getTargetNode().scrollLeft=a},setScrollTop:function(a){this._visualPropertyCheck();this._getTargetNode().scrollTop=a},getOffsetLeft:function(){this._visualPropertyCheck();return qx.html.Offset.getLeft(this.getElement())},getOffsetTop:function(){this._visualPropertyCheck();return qx.html.Offset.getTop(this.getElement())},getScrollLeft:function(){this._visualPropertyCheck();return this._getTargetNode().scrollLeft},getScrollTop:function(){this._visualPropertyCheck();return this._getTargetNode().scrollTop},getClientWidth:function(){this._visualPropertyCheck();return this._getTargetNode().clientWidth},getClientHeight:function(){this._visualPropertyCheck();return this._getTargetNode().clientHeight},getOffsetWidth:function(){this._visualPropertyCheck();return this.getElement().offsetWidth},getOffsetHeight:function(){this._visualPropertyCheck();return this.getElement().offsetHeight},getScrollWidth:function(){this._visualPropertyCheck();return this._getTargetNode().scrollWidth},getScrollHeight:function(){this._visualPropertyCheck();return this._getTargetNode().scrollHeight},scrollIntoView:function(a){this.scrollIntoViewX(a);this.scrollIntoViewY(a)},scrollIntoViewX:function(a){if(!this._isCreated||!this._isDisplayable){return false}return qx.html.ScrollIntoView.scrollX(this.getElement(),a)},scrollIntoViewY:function(a){if(!this._isCreated||!this._isDisplayable){return false}return qx.html.ScrollIntoView.scrollY(this.getElement(),a)},supportsDrop:function(a){var b=this.getSupportsDropMethod();if(b!==null){return b.call(this,a)}return(this!=a.sourceWidget)},getAdapter:function(b){if(this._adapters===undefined){this._adapters={}}var c=b.classname;var a=this._adapters[c];if(a==null){new b(this);a=this._adapters[c]}return a},applyObjectId:function(a){if(qx.ui.core.Widget._renderHtmlIds){this.setHtmlAttribute("id",a)}}},defer:function(b,a){b.__initApplyMethods(a);if(org.eclipse.rwt.Client.isMshtml()){a._renderRuntimeWidth=function(d){this._style.pixelWidth=(d==null)?0:d;if(this._targetNodeEnabled){var c=this._usesComplexBorder&&d!=null?d-2:d;this._innerStyle.pixelWidth=c==null?0:c}};a._renderRuntimeHeight=function(d){this._style.pixelHeight=(d==null)?0:d;if(this._targetNodeEnabled){var c=this._usesComplexBorder&&d!=null?d-2:d;this._innerStyle.pixelHeight=c==null?0:c}};a._resetRuntimeWidth=function(){this._style.width="";if(this._targetNodeEnabled){this._innerStyle.width=""}};a._resetRuntimeHeight=function(){this._style.height="";if(this._targetNodeEnabled){this._innerStyle.height=""}}}b.__initLayoutProperties(b)},destruct:function(){var b=this.getElement();if(b){b.qx_Widget=null;try{if(b.parentNode){b.parentNode.removeChild(b)}}catch(a){}try{if(this._targetNode&&this._targetNode.parentNode){this._targetNode.parentNode.removeChild(this._targetNode)}}catch(a){}}this._disposeObjectDeep("_adapters",1);this._disposeFields("_isCreated","_inlineEvents","_element","_style","_targetNode","_innerStyle","_oldParent","_styleProperties","_htmlProperties","_htmlAttributes","__states","_jobQueue","_layoutChanges","__borderObject")}});
qx.Class.define("org.eclipse.rwt.WidgetRenderAdapter",{extend:qx.core.Target,construct:function(b){this._autoDispose=false;arguments.callee.base.call(this);this._widget=b;var a=this.classname;if(b._adapters[a]!=null){throw new Error("Never create WidgetRenderAdapter directly!")}b._adapters[a]=this},destruct:function(){this._widget=null},events:{visibility:$[48],height:$[48],top:$[48],left:$[48],opacity:$[48],backgroundColor:$[48],backgroundGradient:$[48]},members:{addRenderListener:function(c,e,b){var a=this._renderFunctionNames[c];if(!this.hasEventListeners(c)){var d=this;this._widget[a]=function(){var f=d.dispatchSimpleEvent(c,arguments,false);if(f){this.constructor.prototype[a].apply(this,arguments)}}}this.addEventListener(c,e,b)},removeRenderListener:function(c,d,b){this.removeEventListener(c,d,b);if(!this.hasEventListeners(c)){var a=this._renderFunctionNames[c];delete this._widget[a]}},forceRender:function(a,b){this.getOriginalRenderer(a).call(this._widget,b)},getOriginalRenderer:function(b){var a=this._renderFunctionNames[b];var c=this._widget.constructor.prototype;return c[a]},_renderFunctionNames:{visibility:$[507],height:"_renderRuntimeHeight",top:"_renderRuntimeTop",left:"_renderRuntimeLeft",opacity:$[333],backgroundColor:"_styleBackgroundColor",backgroundGradient:$[319]}}});
qx.Class.define("org.eclipse.rwt.AnimationRenderer",{extend:qx.core.Object,construct:function(a){this._autoDispose=false;arguments.callee.base.call(this);this._animation=a;this._animation._addRenderer(this);this._converterFunction=null;this._renderFunction=null;this._context=null;this._startValue=null;this._endValue=null;this._lastValue=null;this._setupFunction=null;this._cloneFrom=null;this._active=true;this._activeOnce=false;this._invisibilityGetter=qx.lang.Function.returnZero;this._fullVisibilityValue=null;this._autoStartEnabled=true;this._renderType=null;this._renderAdapter=null;this._animationType=0;this._autoCheck=true},destruct:function(){this.clearAnimation();this._animation._removeRenderer(this);this._animation=null;this._startValue=null;this._endValue=null;this._invisibilityGetter=null;this._lastValue=null;this._setupFunction=null;this._converterFunction=null;this._renderFunction=null;this._context=null;this._cloneFrom=null},members:{setConverter:function(a){if(typeof a==$[9]){this._converterFunction=org.eclipse.rwt.AnimationRenderer.converter[a]}else{this._converterFunction=a}},setRenderFunction:function(b,a){if(this._renderType==null){this._renderFunction=b;this._context=a}},renderValue:function(a){this._renderFunction.call(this._context,a);this._lastValue=a},setStartValue:function(a){this._startValue=a},setEndValue:function(a){this._endValue=a},setSetupFunction:function(a){this._setupFunction=a},setCloneFrom:function(a){this._cloneFrom=a},getAnimation:function(){return this._animation},getContext:function(){return this._context},getStartValue:function(a){return this._startValue},getEndValue:function(a){return this._endValue},getLastValue:function(){return this._lastValue},setActive:function(a){if(this._active!==a){if(this._animation.isRunning()){throw'AnimationRenderer: Can not change "active" while running!'}this._active=a;if(this._renderType!==null){this._handleAnimationType()}}},isActive:function(){return this._active},activateOnce:function(){if(!this._activeOnce){this.setActive(true);this._activeOnce=true}},cancelActivateOnce:function(){if(this._activeOnce){this._activeOnce=false;this.setActive(false)}},_setup:function(a){if(this._active){if(this._context instanceof qx.ui.core.Widget&&this._context._isCreated!==true){if(this._context._isInGlobalElementQueue){qx.ui.core.Widget.flushGlobalQueues()}else{throw new Error("AnimationRenderer setup failed: Widget not ready.")}}if(this._setupFunction!=null){this._setupFunction.call(this._context,a,this)}this._startValue=this._prepareValue(this._startValue);this._endValue=this._prepareValue(this._endValue);if(this._renderFunction==null||this._converterFunction==null){throw new Error("renderFunction or converterFunction missing")}}},_render:function(b){if(this._active){var a=this._cloneFrom!=null?this._cloneFrom.getLastValue():b;try{var c=this._converterFunction(a,this._startValue,this._endValue);this.renderValue(c)}catch(d){throw"AnimationRenderer failed: "+(d.message?d.message:d)}}},_finish:function(a){if(this._active&&a==$[355]){this._updateWidgetVisibility();this._forceWidgetRenderer()}this.cancelActivateOnce()},_prepareValue:function(c){var a=c;switch(this._renderType){case $[60]:if(typeof c==$[9]){if(c==$[82]||c===""||c.slice(0,4)==="rgba"){a=null}else{a=qx.util.ColorUtil.cssStringToRgb(c)}}break;case $[134]:if(c){var a=[];for(var b=0;b<c.length;b++){a[b]=[c[b][0],qx.util.ColorUtil.cssStringToRgb(c[b][1])]}}break;case $[76]:a=(c==null||c>1||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(org.eclipse.rwt.WidgetRenderAdapter);this._renderType=a;this._animationType=b;this._renderFunction=this._renderAdapter.getOriginalRenderer(this._renderType);var d=org.eclipse.rwt.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===$[7]||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 $[76]:a=this._context.getOpacity();break;case $[23]: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 $[60]:var c=$[60];var b=this._context;if(b.getGfxProperty&&b.getGfxProperty(c)){a=b.getGfxProperty(c)}else{if(b.getStyleProperty(c)){a=b.getStyleProperty(c)}else{a=null}}break;case $[134]: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 $[134]:case $[60]: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($[151],this._onVisibilityChange,this);this._context.addEventListener($[84],this._onCreate,this)}else{this._renderAdapter.removeRenderListener($[151],this._onVisibilityChange,this);this._context.removeEventListener($[84],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=org.eclipse.rwt.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=org.eclipse.rwt.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==$[67]||d==$[44]){this.setEndValue(g)}if(b!=this._endValue){if(this._animation.isRunning()){this.setStartValue(this.getLastValue())}if(!this._animation.restart()){c=true;this.cancelActivateOnce()}}}else{var a=org.eclipse.rwt.AnimationRenderer.ANIMATION_CHANGE;if(this.isAnimated(a)&&this._context.isSeeable()){this.setStartValue(typeof e!==$[7]?e:this.getValueFromWidget());this.setEndValue(g);if(!this._autoStart(a)&&this._autoStartEnabled){c=true}}else{c=true}}return c},_forceWidgetRenderer:function(){var a=org.eclipse.rwt.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 org.eclipse.rwt.AnimationRenderer.ANIMATION_APPEAR:a=$[44];break;case org.eclipse.rwt.AnimationRenderer.ANIMATION_DISAPPEAR:a=$[355];break;case org.eclipse.rwt.AnimationRenderer.ANIMATION_CHANGE:a=$[67];break}return a},_updateWidgetVisibility:function(){var a=this._context.getVisibility();this._renderAdapter.forceRender($[151],a)}},statics:{ANIMATION_APPEAR:1,ANIMATION_DISAPPEAR:2,ANIMATION_CHANGE:4,applyFunctionNames:{height:$[394],opacity:$[333],backgroundColor:$[480],backgroundGradient:$[319],top:"_applyTop",left:"_applyLeft"},converterByRenderType:{height:"numericPositiveRound",top:$[451],left:$[451],opacity:"factor",backgroundColor:$[65],backgroundGradient:$[114]},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 qx.util.ColorUtil.rgbToRgbString(a)},gradient:function(f,c,b){var g=org.eclipse.rwt.AnimationRenderer.converter.color;var h=org.eclipse.rwt.AnimationRenderer.converter.factor;var a=[];var e=Math.min(b.length,c.length);for(var d=0;d<e;d++){a[d]=[h(f,c[d][0],b[d][0]),g(f,c[d][1],b[d][1])]}return a}}}});
qx.Class.define("org.eclipse.rwt.Animation",{extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._renderer=[];this._duration=1000;this._transitionFunction=org.eclipse.rwt.Animation.transitions.linear;this._startOn=null;this._finishOn=null;this._totalTime=null;this._config=null;this._defaultRenderer=null;this._isRunning=false;this._inQueue=false;this._exclusive=false},destruct:function(){if(this.isRunning()){this.skip()}else{this.cancel()}try{for(var b=0;b<this._renderer.length;b++){this._renderer[b].dispose()}}catch(a){throw"Could not Dispose AnimationRenderer: "+a}this._renderer=null},events:{init:$[48],finish:$[48],cancel:$[48]},members:{setDuration:function(a){this._duration=a},getDuration:function(a){return this._duration},setTransition:function(a){this._transitionFunction=org.eclipse.rwt.Animation.transitions[a]},setProperties:function(a){this.setDuration(a[0]);this.setTransition(a[1])},getRenderer:function(a){return this._renderer[a]},getDefaultRenderer:function(a){if(this._defaultRenderer==null||this._defaultRenderer.isDisposed()){this._defaultRenderer=new org.eclipse.rwt.AnimationRenderer(this)}if(typeof a!=$[7]){this._defaultRenderer.setActive(a)}return this._defaultRenderer},getRendererLength:function(){return this._renderer.length},getRendererIndex:function(a){return this._renderer.indexOf(a)},getConfig:function(){return this._config},setExclusive:function(a){this._exclusive=a},getExclusive:function(){return this._exclusive},start:function(b){var a=false;if(!this.isStarted()){org.eclipse.rwt.Animation._addToQueue(this);this._inQueue=true;this._config=b;this._init();a=this.isStarted()}return a},restart:function(){var a=false;if(this.isStarted()){var b=this._config;this.cancel();a=this.start(b)}return a},cancel:function(){if(this.isStarted()){this._inQueue=false;this._isRunning=false;this.createDispatchDataEvent($[183],this._config);this._config=null;org.eclipse.rwt.Animation._removeFromLoop(this)}},skip:function(){if(this.isStarted()){if(!this.isRunning()){this._render(0)}this._finish()}},setRendererActive:function(b){for(var a=0;a<this._renderer.length;a++){this._renderer[a].setActive(b)}},activateRendererOnce:function(){for(var a=0;a<this._renderer.length;a++){this._renderer[a].activateOnce()}},isStarted:function(){return this._inQueue},isRunning:function(){return this._isRunning},_addRenderer:function(a){this._renderer.push(a)},_removeRenderer:function(a){if(this.isStarted()){throw"Cannot remove AnimationRenderer: Animation already started!"}qx.lang.Array.remove(this._renderer,a)},_init:function(){this.createDispatchDataEvent("init",this._config);this._startOn=null;this._numberRenderer=this._renderer.length},_loop:function(b){if(this._startOn===null){this._startOn=new Date().getTime();this._finishOn=this._startOn+(this._duration);this._totalTime=this._duration}if(b>=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;b<this._numberRenderer;b++){this._renderer[b]._setup(this._config)}this._isRunning=true}var c=this._transitionFunction(a);for(var b=0;b<this._numberRenderer;b++){this._renderer[b]._render(c)}},_finish:function(){this._render(1);var a=this._config;this.cancel();for(var b=0;b<this._numberRenderer;b++){this._renderer[b]._finish(a)}this.createDispatchDataEvent("finish",a)}},statics:{FPS:60,_queue:[],_interval:null,_exclusive:null,_addToQueue:function(a){if(a.getExclusive()){this._exclusive=a}else{this._queue.push(a)}if(this._interval==null){this._startLoop()}},_removeFromLoop:function(a){if(a===this._exclusive){this._exclusive=null}else{qx.lang.Array.remove(this._queue,a)}if(this._exclusive===null&&this._queue.length===0){this._stopLoop()}},_startLoop:function(){this._interval=setInterval(this._mainLoop,Math.round(1000/this.FPS))},_stopLoop:function(){window.clearInterval(this._interval);this._interval=null},_mainLoop:function(){try{if(!org.eclipse.swt.EventUtil.getSuspended()){var g=new Date().getTime();var d=org.eclipse.rwt.Animation;try{if(d._exclusive!==null){d._exclusive._loop(g)}else{for(var c=0,a=d._queue.length;c<a;c++){if(d._queue[c]){d._queue[c]._loop(g)}}}}catch(f){org.eclipse.rwt.Animation._stopLoop();throw"Animation aborted: "+f}}}catch(b){org.eclipse.rwt.ErrorHandler.processJavaScriptError(b)}},blockGlobalFlushs:function(a){qx.ui.core.Widget._inFlushGlobalQueues=a;if(!a){qx.ui.core.Widget._initAutoFlush(0)}},transitions:{linear:function(a){return a},ease:function(a){var b=-Math.pow(a-1,2)+1;return(-Math.cos(b*Math.PI)/2)+0.5},easeIn:function(a){return Math.pow(a,2)},easeOut:function(a){return -Math.pow(a-1,2)+1},easeInOut:function(a){return(-Math.cos(a*Math.PI)/2)+0.5}}}});
(function(){var c=org.eclipse.rwt.Animation;var b=org.eclipse.rwt.AnimationRenderer;var a=org.eclipse.rwt.EventHandlerUtil;qx.Mixin.define("org.eclipse.rwt.VisibilityAnimationMixin",{properties:{animation:{check:$[106],nullable:false,init:null,apply:$[410],themeable:true}},construct:function(){this.hide();this.addEventListener($[174],this._blockUserEvents,this);this.addEventListener($[228],this._onDestroyAnim,this);if(this instanceof org.eclipse.swt.widgets.Composite){this.show()}},destruct:function(){if(this._appearAnimation!=null){this._appearAnimation.dispose()}this._appearAnimation=null;if(this._disappearAnimation!=null){this._disappearAnimation.dispose()}this._disappearAnimation=null},members:{_appearAnimation:null,_disappearAnimation:null,_animateDestroy:false,_applyAnimation:function(e,d){this._configureAppearAnimation(e);this._configureDisappearAnimation(e)},_configureAppearAnimation:function(d){if(this._appearAnimation!==null){this._appearAnimation.getDefaultRenderer().setActive(false)}for(var e in d){switch(e){case"fadeIn":this._configureFadeIn(d[e]);break;case"slideIn":this._configureSlideIn(d[e]);break;case"flyInTop":case"flyInLeft":case"flyInRight":case $[400]:this._configureFlyIn(d[e],e);break}}},_configureFadeIn:function(d){var e=this._getAppearAnimation();e.setProperties(d);e.getDefaultRenderer().animate(this,$[76],b.ANIMATION_APPEAR)},_configureSlideIn:function(d){var g=this._getAppearAnimation();g.setProperties(d);var f=g.getDefaultRenderer();var e=b.ANIMATION_APPEAR|b.ANIMATION_CHANGE;f.animate(this,$[23],e);g.addEventListener("init",this._initSlideAnimation,this);g.addEventListener($[183],this._finishSlideAnimation,this)},_configureFlyIn:function(e,d){var h=this._getAppearAnimation();h.setProperties(e);var g=h.getDefaultRenderer();var f=b.ANIMATION_APPEAR;switch(d){case"flyInTop":g.animate(this,"top",f);g.setInvisibilityGetter(org.eclipse.rwt.VisibilityAnimationMixin.hideTop);break;case $[400]:g.animate(this,"top",f);g.setInvisibilityGetter(org.eclipse.rwt.VisibilityAnimationMixin.hideBottom);break;case"flyInLeft":g.animate(this,"left",f);g.setInvisibilityGetter(org.eclipse.rwt.VisibilityAnimationMixin.hideLeft);break;case"flyInRight":g.animate(this,"left",f);g.setInvisibilityGetter(org.eclipse.rwt.VisibilityAnimationMixin.hideRight);break}},_getAppearAnimation:function(){if(this._appearAnimation===null){this._appearAnimation=new c();if(org.eclipse.rwt.Client.isMshtml()&&this instanceof org.eclipse.swt.widgets.Shell){this._appearAnimation.setExclusive(true)}}this._appearAnimation.getDefaultRenderer().setActive(true);return this._appearAnimation},_onDestroyAnim:function(){var d=true;if(this._animateDestroy){d=false;this._markInDispose();this.hide();this._disappearAnimation.addEventListener($[183],this._finishDestroyAnimation,this)}return d},_finishDestroyAnimation:function(){this._animateDestroy=false;delete this._isInGlobalDisposeQueue;this.destroy()},_configureDisappearAnimation:function(d){if(this._disappearAnimation!==null){this._disappearAnimation.getDefaultRenderer().setActive(false);this._animateDestroy=false}for(var e in d){switch(e){case"fadeOut":this._configureFadeOut(d[e]);break;case"slideOut":this._configureSlideOut(d[e]);break;case"flyOutTop":case"flyOutLeft":case $[492]:case $[378]:this._configureFlyOut(d[e],e);break}}},_configureFadeOut:function(d){var f=this._getDisappearAnimation();var e=f.getDefaultRenderer();e.animate(this,$[76],b.ANIMATION_DISAPPEAR);f.setProperties(d)},_configureSlideOut:function(d){var f=this._getDisappearAnimation();var e=f.getDefaultRenderer();e.animate(this,$[23],b.ANIMATION_DISAPPEAR);f.addEventListener("init",this._initSlideAnimation,this);f.addEventListener($[183],this._finishSlideAnimation,this);f.setProperties(d)},_configureFlyOut:function(e,d){var h=this._getDisappearAnimation();h.setProperties(e);var g=h.getDefaultRenderer();var f=b.ANIMATION_DISAPPEAR;switch(d){case"flyOutTop":g.animate(this,"top",f);g.setInvisibilityGetter(org.eclipse.rwt.VisibilityAnimationMixin.hideTop);break;case $[378]:g.animate(this,"top",f);g.setInvisibilityGetter(org.eclipse.rwt.VisibilityAnimationMixin.hideBottom);break;case"flyOutLeft":g.animate(this,"left",f);g.setInvisibilityGetter(org.eclipse.rwt.VisibilityAnimationMixin.hideLeft);break;case $[492]:g.animate(this,"left",f);g.setInvisibilityGetter(org.eclipse.rwt.VisibilityAnimationMixin.hideRight);break}},_getDisappearAnimation:function(){if(this._disappearAnimation===null){this._disappearAnimation=new c();if(this instanceof org.eclipse.swt.widgets.Shell){this._disappearAnimation.addEventListener("init",this._lockActiveState,this);this._disappearAnimation.addEventListener($[183],this._unlockActiveState,this);if(org.eclipse.rwt.Client.isMshtml()){this._disappearAnimation.setExclusive(true)}}}this._disappearAnimation.getDefaultRenderer().setActive(true);this._animateDestroy=true;return this._disappearAnimation},_initSlideAnimation:function(d){this.setContainerOverflow(false)},_finishSlideAnimation:function(d){this.setContainerOverflow(true)},_blockUserEvents:function(e){var d=this.getElement();if(d){a.blockUserDomEvents(d,!e.getValue())}},_lockActiveState:function(){this.getWindowManager().blockActiveState=true},_unlockActiveState:function(){var d=qx.ui.window.Window.getDefaultWindowManager();d.blockActiveState=false;if(!this.isDisposed()&&!this._isInGlobalDisposeQueue){this._setActiveState(this.getActive())}var e=d.getActiveWindow();if(e&&e!==this){e._setActiveState(true)}}},statics:{hideTop:function(d){return parseInt(d.getHeightValue(),10)*-1},hideBottom:function(d){return d.getParent().getInnerHeight()},hideLeft:function(d){return parseInt(d.getWidthValue(),10)*-1},hideRight:function(d){return d.getParent().getInnerWidth()}}})}());
qx.Class.define("qx.html.Dimension",{statics:{getBoxWidth:function(a){return a.offsetWidth},getBoxHeight:function(a){return a.offsetHeight},getAreaWidth:qx.core.Variant.select($[0],{gecko:function(a){if(a.clientWidth!=0&&a.clientWidth!=(qx.html.Style.getBorderLeft(a)+qx.html.Style.getBorderRight(a))){return a.clientWidth}else{return qx.html.Dimension.getBoxWidth(a)-qx.html.Dimension.getInsetLeft(a)-qx.html.Dimension.getInsetRight(a)}},"default":function(a){return a.clientWidth!=0?a.clientWidth:(qx.html.Dimension.getBoxWidth(a)-qx.html.Dimension.getInsetLeft(a)-qx.html.Dimension.getInsetRight(a))}}),getAreaHeight:qx.core.Variant.select($[0],{gecko:function(a){if(a.clientHeight!=0&&a.clientHeight!=(qx.html.Style.getBorderTop(a)+qx.html.Style.getBorderBottom(a))){return a.clientHeight}else{return qx.html.Dimension.getBoxHeight(a)-qx.html.Dimension.getInsetTop(a)-qx.html.Dimension.getInsetBottom(a)}},"default":function(a){return a.clientHeight!=0?a.clientHeight:(qx.html.Dimension.getBoxHeight(a)-qx.html.Dimension.getInsetTop(a)-qx.html.Dimension.getInsetBottom(a))}}),getInsetLeft:qx.core.Variant.select($[0],{mshtml:function(a){return a.clientLeft},"default":function(a){return qx.html.Style.getBorderLeft(a)}}),getInsetTop:qx.core.Variant.select($[0],{mshtml:function(a){return a.clientTop},"default":function(a){return qx.html.Style.getBorderTop(a)}}),getInsetRight:qx.core.Variant.select($[0],{mshtml:function(a){if(qx.html.Style.getStyleProperty(a,$[97])==$[13]||a.clientWidth==0){return qx.html.Style.getBorderRight(a)}return Math.max(0,a.offsetWidth-a.clientLeft-a.clientWidth)},"default":function(c){if(c.clientWidth==0){var b=qx.html.Style.getStyleProperty(c,$[58]);var a=b==$[12]||b==$[231]?16:0;return Math.max(0,qx.html.Style.getBorderRight(c)+a)}return Math.max(0,c.offsetWidth-c.clientWidth-qx.html.Style.getBorderLeft(c))}}),getInsetBottom:qx.core.Variant.select($[0],{mshtml:function(a){if(qx.html.Style.getStyleProperty(a,$[96])==$[13]||a.clientHeight==0){return qx.html.Style.getBorderBottom(a)}return Math.max(0,a.offsetHeight-a.clientTop-a.clientHeight)},"default":function(c){if(c.clientHeight==0){var b=qx.html.Style.getStyleProperty(c,$[58]);var a=b==$[12]||b==$[277]?16:0;return Math.max(0,qx.html.Style.getBorderBottom(c)+a)}return Math.max(0,c.offsetHeight-c.clientHeight-qx.html.Style.getBorderTop(c))}}),getScrollBarSizeRight:function(a){return qx.html.Dimension.getInsetRight(a)-qx.html.Style.getBorderRight(a)},getScrollBarSizeBottom:function(a){return qx.html.Dimension.getInsetBottom(a)-qx.html.Style.getBorderBottom(a)}}});
qx.Class.define("qx.html.Style",{statics:{getStylePropertySure:qx.lang.Object.select((document.defaultView&&document.defaultView.getComputedStyle)?$[381]:"noComputed",{hasComputed:function(a,b){return !a?null:a.ownerDocument?a.ownerDocument.defaultView.getComputedStyle(a,"")[b]:a.style[b]},noComputed:qx.core.Variant.select($[0],{mshtml:function(b,d){try{if(!b){return null}if(b.parentNode&&b.currentStyle){return b.currentStyle[d]}else{var c=b.runtimeStyle[d];if(c!=null&&typeof c!=$[7]&&c!=""){return c}return b.style[d]}}catch(a){throw new Error($[269]+b+"["+d+"]: "+a)}},"default":function(a,b){return !a?null:a.style[b]}})}),getStyleProperty:qx.lang.Object.select((document.defaultView&&document.defaultView.getComputedStyle)?$[381]:"noComputed",{hasComputed:function(b,c){try{return b.ownerDocument.defaultView.getComputedStyle(b,"")[c]}catch(a){throw new Error($[269]+b+"["+c+"]: "+a)}},noComputed:qx.core.Variant.select($[0],{mshtml:function(b,c){try{return b.currentStyle[c]}catch(a){throw new Error($[269]+b+"["+c+"]: "+a)}},"default":function(b,c){try{return b.style[c]}catch(a){throw new Error($[269]+b+"["+c+"]")}}})}),getStyleSize:function(a,b){return parseInt(qx.html.Style.getStyleProperty(a,b))||0},getMarginLeft:function(a){return qx.html.Style.getStyleSize(a,$[179])},getMarginTop:function(a){return qx.html.Style.getStyleSize(a,$[178])},getMarginRight:function(a){return qx.html.Style.getStyleSize(a,$[236])},getMarginBottom:function(a){return qx.html.Style.getStyleSize(a,$[275])},getPaddingLeft:function(a){return qx.html.Style.getStyleSize(a,$[213])},getPaddingTop:function(a){return qx.html.Style.getStyleSize(a,$[181])},getPaddingRight:function(a){return qx.html.Style.getStyleSize(a,$[191])},getPaddingBottom:function(a){return qx.html.Style.getStyleSize(a,$[208])},getBorderLeft:function(a){return qx.html.Style.getStyleProperty(a,$[404])=="none"?0:qx.html.Style.getStyleSize(a,$[80])},getBorderTop:function(a){return qx.html.Style.getStyleProperty(a,$[508])=="none"?0:qx.html.Style.getStyleSize(a,$[87])},getBorderRight:function(a){return qx.html.Style.getStyleProperty(a,$[489])=="none"?0:qx.html.Style.getStyleSize(a,$[264])},getBorderBottom:function(a){return qx.html.Style.getStyleProperty(a,$[384])=="none"?0:qx.html.Style.getStyleSize(a,$[263])}}});
qx.Class.define("qx.html.Scroll",{statics:{disableScrolling:function(a){this.enableScrolling(a);a.scrollLeft=0;a.scrollTop=0;qx.html.EventRegistration.addEventListener(a,$[12],this._onscroll)},enableScrolling:function(a){qx.html.EventRegistration.removeEventListener(a,$[12],this._onscroll)},_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}}}});
qx.Class.define("qx.html.StyleSheet",{statics:{createElement:qx.lang.Object.select(document.createStyleSheet?"ie4+":$[139],{"ie4+":function(a){var b=document.createStyleSheet();if(a){b.cssText=a}return b},other:function(b){var a=document.createElement($[73]);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:qx.lang.Object.select(document.createStyleSheet?"ie4+":$[139],{"ie4+":function(a,c,b){a.addRule(c,b)},other:function(a,c,b){a.insertRule(c+"{"+b+"}",a.cssRules.length)}}),removeRule:qx.lang.Object.select(document.createStyleSheet?"ie4+":$[139],{"ie4+":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)}}},other: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:qx.lang.Object.select(document.createStyleSheet?"ie4+":$[139],{"ie4+":function(b){var d=b.rules;var c=d.length;for(var a=c-1;a>=0;a--){b.removeRule(a)}},other:function(b){var d=b.cssRules;var c=d.length;for(var a=c-1;a>=0;a--){b.deleteRule(a)}}})}});
qx.Class.define($[423],{extend:qx.ui.core.Widget,type:$[101],construct:function(){arguments.callee.base.call(this);this._children=[];this._layoutImpl=this._createLayoutImpl()},properties:{focusHandler:{check:$[435],apply:"_applyFocusHandler",nullable:true},activeChild:{check:$[124],event:$[351],nullable:true},focusedChild:{check:$[124],apply:"_applyFocusedChild",event:$[194],nullable:true},visibleChildren:{_cached:true,defaultValue:null}},members:{isFocusRoot:function(){return this.getFocusHandler()!=null},getFocusRoot:function(){if(this.isFocusRoot()){return this}if(this._hasParent){return this.getParent().getFocusRoot()}return null},activateFocusRoot:function(){if(this._focusHandler){return}this._focusHandler=new qx.event.handler.FocusHandler(this);this.setFocusHandler(this._focusHandler)},_onfocuskeyevent:function(a){this.getFocusHandler()._onkeyevent(this,a)},_applyFocusHandler:function(b,a){if(b){this.addEventListener($[4],this._onfocuskeyevent);if(this.getTabIndex()<1){this.setTabIndex(1)}this.setHideFocus(true);this.setActiveChild(this)}else{this.removeEventListener($[10],this._onfocuskeyevent);this.removeEventListener($[4],this._onfocuskeyevent);this.setTabIndex(null);this.setHideFocus(false)}},_applyFocusedChild:function(f,c){var d=f!=null;var a=c!=null;if(qx.Class.isDefined($[288])&&d){var b=qx.ui.popup.PopupManager.getInstance();if(b){b.update(f)}}if(a){if(c.hasEventListeners($[104])){var e=new qx.event.type.FocusEvent($[104],c);if(d){e.setRelatedTarget(f)}c.dispatchEvent(e);e.dispose()}}if(d){if(f.hasEventListeners($[126])){var e=new qx.event.type.FocusEvent($[126],f);if(a){e.setRelatedTarget(c)}f.dispatchEvent(e);e.dispose()}}if(a){if(this.getActiveChild()==c&&!d){this.setActiveChild(null)}c.setFocused(false);var e=new qx.event.type.FocusEvent("blur",c);if(d){e.setRelatedTarget(f)}c.dispatchEvent(e);var b=qx.ui.popup.ToolTipManager.getInstance();if(b){b.handleBlur(e)}e.dispose()}if(d){this.setActiveChild(f);f.setFocused(true);org.eclipse.rwt.EventHandler.setFocusRoot(this);var e=new qx.event.type.FocusEvent($[64],f);if(a){e.setRelatedTarget(c)}f.dispatchEvent(e);var b=qx.ui.popup.ToolTipManager.getInstance();if(b){b.handleFocus(e)}e.dispose()}},_layoutImpl:null,_createLayoutImpl:function(){return null},getLayoutImpl:function(){return this._layoutImpl},getChildren:function(){return this._children},getChildrenLength:function(){return this.getChildren().length},hasChildren:function(){return this.getChildrenLength()>0},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;b<d;b++){var e=a[b];if(e._isDisplayable){c.push(e)}}return c},getVisibleChildrenLength:function(){return this.getVisibleChildren().length},hasVisibleChildren:function(){return this.getVisibleChildrenLength()>0},isVisibleEmpty:function(){return this.getVisibleChildrenLength()==0},add:function(b){var d;for(var c=0,a=arguments.length;c<a;c++){d=arguments[c];d.setParent(this)}return this},addAt:function(d,b){if(b==null||b<0){throw new Error("Not a valid index for addAt(): "+b)}if(d.getParent()==this){var a=this.getChildren();var c=a.indexOf(d);if(c!=b){if(c!=-1){qx.lang.Array.removeAt(a,c)}qx.lang.Array.insertAt(a,d,b);if(this._initialLayoutDone){this._invalidateVisibleChildren();this.getLayoutImpl().updateChildrenOnMoveChild(d,b,c)}}}else{d._insertIndex=b;d.setParent(this)}},addAtBegin:function(a){return this.addAt(a,0)},addAtEnd:function(b){var a=this.getChildrenLength();return this.addAt(b,b.getParent()==this?a-1:a)},addBefore:function(e,d){var a=this.getChildren();var c=a.indexOf(d);if(c==-1){throw new Error("Child to add before: "+d+$[411])}var b=a.indexOf(e);if(b==-1||b>c){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+$[411])}var b=a.indexOf(e);if(b!=-1&&b<c){c--}return this.addAt(e,Math.min(a.length,c+1))},remove:function(b){var d;for(var c=0,a=arguments.length;c<a;c++){d=arguments[c];if(!(d instanceof qx.ui.core.Parent)&&!(d instanceof qx.ui.basic.Terminator)){throw new Error("Invalid Widget: "+d)}else{if(d.getParent()==this){d.setParent(null)}}}},removeAt:function(a){var b=this.getChildren()[a];if(b){delete b._insertIndex;b.setParent(null)}},removeAll:function(){var a=this.getChildren();var b=a[0];while(b){this.remove(b);b=a[0]}},getFirstChild:function(){return qx.lang.Array.getFirst(this.getChildren())||null},getFirstVisibleChild:function(){return qx.lang.Array.getFirst(this.getVisibleChildren())||null},getFirstActiveChild:function(a){return qx.ui.core.Widget.getActiveSiblingHelper(null,this,1,a,"first")||null},getLastChild:function(){return qx.lang.Array.getLast(this.getChildren())||null},getLastVisibleChild:function(){return qx.lang.Array.getLast(this.getVisibleChildren())||null},getLastActiveChild:function(a){return qx.ui.core.Widget.getActiveSiblingHelper(null,this,-1,a,"last")||null},forEachChild:function(c){var b=this.getChildren(),d,a=-1;if(!b){return}while(d=b[++a]){c.call(d,a)}},forEachVisibleChild:function(c){var b=this.getVisibleChildren(),d,a=-1;if(!b){return}while(d=b[++a]){c.call(d,a)}},_markInDispose:function(){this._isInGlobalDisposeQueue=true;if(this.forEachChild){this.forEachChild(arguments.callee)}},_beforeAppear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeAppear()}})},_afterAppear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterAppear()}})},_ieFixLayoutOnAppear:qx.core.Variant.select($[0],{mshtml:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this._isCreated){this._ieFixLayoutOnAppear()}})},"default":qx.lang.Function.returnTrue}),_beforeDisappear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._beforeDisappear()}})},_afterDisappear:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isAppearRelevant()){this._afterDisappear()}})},_afterInsertDom:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.getElement().parentNode===this.getParent()._getTargetNode()){this._afterInsertDom()}})},_afterRemoveDom:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this.isInDom()){this._afterRemoveDom()}})},_handleDisplayableCustom:function(c,a,b){this.forEachChild(function(){this._handleDisplayable()})},_addChildrenToStateQueue:function(){this.forEachVisibleChild(function(){this.addToStateQueue()})},recursiveAddToStateQueue:function(){this.addToStateQueue();this.forEachVisibleChild(function(){this.recursiveAddToStateQueue()})},_recursiveAppearanceThemeUpdate:function(a,b){arguments.callee.base.call(this,a,b);this.forEachVisibleChild(function(){this._recursiveAppearanceThemeUpdate(a,b)})},_addChildToChildrenQueue:function(a){if(!a._isInParentChildrenQueue&&a._isDisplayable){qx.ui.core.Widget.addToGlobalLayoutQueue(this);if(!this._childrenQueue){this._childrenQueue={}}this._childrenQueue[a.toHashCode()]=a}},_removeChildFromChildrenQueue:function(a){if(this._childrenQueue&&a._isInParentChildrenQueue){delete this._childrenQueue[a.toHashCode()];if(qx.lang.Object.isEmpty(this._childrenQueue)){this._childrenQueue={};qx.ui.core.Widget.removeFromGlobalLayoutQueue(this)}}},_flushChildrenQueue:function(){if(!qx.lang.Object.isEmpty(this._childrenQueue)){this.getLayoutImpl().flushChildrenQueue(this._childrenQueue);delete this._childrenQueue}},_addChildrenToLayoutQueue:function(a){this.forEachChild(function(){this.addToLayoutChanges(a)})},_layoutChild:function(b){if(!b._isDisplayable){return}var a=b._layoutChanges;if(b.renderBorder&&a.border){b.renderBorder(a)}if(b.renderPadding){if(a.paddingLeft||a.paddingRight||a.paddingTop||a.paddingBottom){b.renderPadding(a)}}this.getLayoutImpl().layoutChild(b,a);b._layoutPost(a);if(a.initial){b._initialLayoutDone=true;qx.ui.core.Widget.addToGlobalDisplayQueue(b)}b._layoutChanges={};delete b._isInParentLayoutQueue;delete this._childrenQueue[b.toHashCode()]},_layoutPost:function(a){this.createDispatchDataEvent("flush",a)},_computePreferredInnerWidth:function(){return this.getLayoutImpl().computeChildrenNeededWidth()},_computePreferredInnerHeight:function(){return this.getLayoutImpl().computeChildrenNeededHeight()},_changeInnerWidth:function(c,a){var b=this.getLayoutImpl();if(b.invalidateChildrenFlexWidth){b.invalidateChildrenFlexWidth()}this.forEachVisibleChild(function(){if(b.updateChildOnInnerWidthChange(this)&&this._recomputeBoxWidth()){this._recomputeOuterWidth();this._recomputeInnerWidth()}})},_changeInnerHeight:function(c,a){var b=this.getLayoutImpl();if(b.invalidateChildrenFlexHeight){b.invalidateChildrenFlexHeight()}this.forEachVisibleChild(function(){if(b.updateChildOnInnerHeightChange(this)&&this._recomputeBoxHeight()){this._recomputeOuterHeight();this._recomputeInnerHeight()}})},getInnerWidthForChild:function(a){return this.getInnerWidth()},getInnerHeightForChild:function(a){return this.getInnerHeight()},_remappingChildTable:["add",$[221],"addAt","addAtBegin","addAtEnd","removeAt","addBefore","addAfter","removeAll"],_remapStart:"return this._remappingChildTarget.",_remapStop:".apply(this._remappingChildTarget, arguments)",remapChildrenHandlingTo:function(e){var c=this._remappingChildTable;this._remappingChildTarget=e;for(var b=0,a=c.length,d;b<a;b++){d=c[b];this[d]=new Function(qx.ui.core.Parent.prototype._remapStart+d+qx.ui.core.Parent.prototype._remapStop)}}},defer:function(c,a,b){if(org.eclipse.rwt.Client.isOpera()){a._layoutChildOrig=a._layoutChild;a._layoutChild=function(g){if(!g._initialLayoutDone||!g._layoutChanges.border){return this._layoutChildOrig(g)}var d=g.getElement().style;var f=d.display;d.display="none";var e=this._layoutChildOrig(g);d.display=f;return e}}},destruct:function(){this._disposeObjectDeep("_children",1);this._disposeObjects("_layoutImpl","_focusHandler");this._disposeFields($[485],$[485],"_remappingChildTable","_remappingChildTarget","_cachedVisibleChildren")}});
qx.Class.define($[215],{extend:qx.event.type.Event,construct:function(a,b){arguments.callee.base.call(this,a);this.setTarget(b);switch(a){case $[126]:case $[104]:this.setBubbles(true);this.setPropagationStopped(false)}}});
qx.Class.define("org.eclipse.rwt.EventHandler",{type:$[121],statics:{_filter:{},_allowContextMenu:qx.lang.Function.returnFalse,_captureWidget:null,_focusRoot:null,_menuManager:null,_focused:false,_lastMouseEventType:null,_lastMouseDown:false,_lastMouseEventDate:0,_mouseIsDown:false,init:function(){var a=qx.lang.Function;this.__onmouseevent=a.bind(this._onmouseevent,this);this.__ondragevent=a.bind(this._ondragevent,this);this.__onselectevent=a.bind(this._onselectevent,this);this.__onwindowblur=a.bind(this._onwindowblur,this);this.__onwindowfocus=a.bind(this._onwindowfocus,this);this.__onwindowresize=a.bind(this._onwindowresize,this);this.__onKeyEvent=qx.lang.Function.bind(this._onKeyEvent,this);org.eclipse.rwt.EventHandlerUtil.applyBrowserFixes()},cleanUp:function(){delete this.__onmouseevent;delete this.__ondragevent;delete this.__onselectevent;delete this.__onwindowblur;delete this.__onwindowfocus;delete this.__onwindowresize;delete this.__onKeyEvent;delete this._lastMouseEventType;delete this._lastMouseDown;delete this._lastMouseEventDate;delete this._lastMouseDownDomTarget;delete this._lastMouseDownDispatchTarget;org.eclipse.rwt.EventHandlerUtil.cleanUp()},attachEvents:function(){var a=qx.html.EventRegistration;this.attachEventTypes(this._mouseEventTypes,this.__onmouseevent);this.attachEventTypes(this._dragEventTypes,this.__ondragevent);this.attachEventTypes(this._keyEventTypes,this.__onKeyEvent);a.addEventListener(window,"blur",this.__onwindowblur);a.addEventListener(window,$[64],this.__onwindowfocus);a.addEventListener(window,"resize",this.__onwindowresize);document.body.onselect=this.__onselectevent;document.onselectstart=this.__onselectevent;document.onselectionchange=this.__onselectevent},detachEvents:function(){var a=qx.html.EventRegistration;this.detachEventTypes(this._mouseEventTypes,this.__onmouseevent);this.detachEventTypes(this._dragEventTypes,this.__ondragevent);this.detachEventTypes(this._keyEventTypes,this.__onKeyEvent);a.removeEventListener(window,"blur",this.__onwindowblur);a.removeEventListener(window,$[64],this.__onwindowfocus);a.removeEventListener(window,"resize",this.__onwindowresize);document.body.onselect=null;document.onselectstart=null;document.onselectionchange=null},setCaptureWidget:function(a){if(this._captureWidget!==a){if(this._captureWidget!==null){this._captureWidget.setCapture(false)}this._captureWidget=a;if(a!=null){a.setCapture(true)}}},getCaptureWidget:function(){return this._captureWidget},setFocusRoot:function(a){if(a!==this._focusRoot){if(this._focusRoot!==null){this._focusRoot.setFocusedChild(null)}this._focusRoot=a;if(a!==null&&a.getFocusedChild()===null){a.setFocusedChild(a)}}},getFocusRoot:function(){return this._focusRoot},setAllowContextMenu:function(a){this._allowContextMenu=a},setMenuManager:function(a){this._menuManager=a},getMenuManager:function(a){return this._menuManager},setMouseEventFilter:function(b,a){this._filter[$[233]]=[b,a]},setKeyEventFilter:function(b,a){this._filter[$[230]]=[b,a]},setKeyDomEventFilter:function(b,a){this._filter[$[249]]=[b,a]},_onKeyEvent:function(){try{var e=org.eclipse.rwt.EventHandlerUtil;var a=e.getDomEvent(arguments);var j=e.getKeyCode(a);var h=e.getCharCode(a);if(typeof this._filter[$[249]]!==$[7]){var b=this._filter[$[249]][1];var d=this._filter[$[249]][0];d.call(b,a.type,j,h,a)}var c=e.getEventPseudoTypes(a,j,h);for(var f=0;f<c.length;f++){this._onkeyevent_post(a,c[f],j,h)}if(e.mustRestoreKeypress(a,c)){this._onkeyevent_post(a,$[4],j,h)}e.saveData(a,j,h)}catch(g){org.eclipse.rwt.ErrorHandler.processJavaScriptError(g)}},_onkeyevent_post:function(a,e,d,g){var f=true;if(typeof this._filter[$[230]]!==$[7]){var b=this._filter[$[230]][1];var c=this._filter[$[230]][0];f=c.call(b,e,d,g,a)}if(f){this._processKeyEvent(a,e,d,g)}},_processKeyEvent:function(b,g,d,f){var a=org.eclipse.rwt.EventHandlerUtil;var c;if(!isNaN(d)&&d!==0){c=a.keyCodeToIdentifier(d)}else{c=a.charCodeToIdentifier(f)}var i=a.getDomTarget(b);var e=this._getKeyEventTarget();var h=new qx.event.type.KeyEvent(g,b,i,e,null,d,f,c);if(e!=null&&e.getEnabled()){switch(c){case $[103]:case"Tab":if(this._menuManager!=null){this._menuManager.update(e,g)}break}if(b.ctrlKey&&c=="A"){switch(i.tagName.toLowerCase()){case $[89]:case $[116]:case"iframe":break;default:a.stopDomEvent(b);break}}e.dispatchEvent(h);if(qx.Class.isDefined($[250])){qx.event.handler.DragAndDropHandler.getInstance().handleKeyEvent(h)}}h.dispose()},_onmouseevent:function(c){try{var d=true;if(typeof this._filter[$[233]]!==$[7]){var b=this._filter[$[233]][1];d=this._filter[$[233]][0].call(b,c)}if(d){this._processMouseEvent(c)}}catch(a){org.eclipse.rwt.ErrorHandler.processJavaScriptError(a)}},_processMouseEvent:qx.core.Variant.select($[0],{mshtml:function(){var a=org.eclipse.rwt.EventHandlerUtil;var b=a.getDomEvent(arguments);var c=a.getDomTarget(b);var d=b.type;if(d==$[34]){if(this._mouseIsDown&&b.button==0){this._onmouseevent_post(b,$[5],c);this._mouseIsDown=false}}else{if(d==$[1]){this._mouseIsDown=true}else{if(d==$[5]){this._mouseIsDown=false}}if(d==$[5]&&!this._lastMouseDown&&((new Date()).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post(b,$[1],c)}else{if(d==$[51]&&this._lastMouseEventType==$[5]&&((new Date()).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post(b,$[16],c)}}switch(d){case $[1]:case $[5]:case $[16]:case $[51]:case $[49]:this._lastMouseEventType=d;this._lastMouseEventDate=(new Date()).valueOf();this._lastMouseDown=d==$[1];break}}this._onmouseevent_post(b,d,c)},"default":function(b){var a=org.eclipse.rwt.EventHandlerUtil;var c=a.getDomTarget(b);var d=b.type;switch(d){case $[291]:d=$[47];break;case $[16]:case $[51]:if(b.which!==1){return}}this._onmouseevent_post(b,d,c)}}),_onmouseevent_post:function(e,l,n){var h=false;var b=org.eclipse.rwt.EventHandlerUtil;var k=this.getCaptureWidget();var c=b.getOriginalTargetObject(n);var j=b.getTargetObject(null,c,true);if(!j){return}var g=k?k:j;var p=this._onmouseevent_click_fix(n,l,g);if(l==$[49]){if(this._allowContextMenu(c,n)){h=true}else{b.stopDomEvent(e)}}if(g.getEnabled()&&!(g instanceof qx.ui.core.ClientDocument)&&l==$[1]){qx.event.handler.FocusHandler.mouseFocus=true;var m=g.getFocusRoot();if(m){this.setFocusRoot(m);var i=g;while(!i.isFocusable()&&i!=m){i=i.getParent()}m.setFocusedChild(i);m.setActiveChild(g)}}if(l==$[6]||l==$[8]){var d=b.getRelatedTargetObjectFromEvent(e);var o=l==$[6]?$[237]:"elementOut";this._fireElementHoverEvents(o,e,n,j,c,d,g);if(d==j){return}}var a=new qx.event.type.MouseEvent(l,e,n,j,c,d);qx.event.type.MouseEvent.storeEventState(a);if(g.getEnabled()&&!h){g.dispatchEvent(a);this._onmouseevent_special_post(l,j,c,g,a,e)}else{if(l==$[6]){var f=qx.ui.popup.ToolTipManager.getInstance();f.handleMouseEvent(a)}}a.dispose();qx.ui.core.Widget.flushGlobalQueues();if(p){this._onmouseevent_post(e,$[16],this._lastMouseDownDomTarget);this._lastMouseDownDomTarget=null;this._lastMouseDownDispatchTarget=null}},_fireElementHoverEvents:function(e,d,f,g,c,b,h){if(h.getEnabled()){var a=new qx.event.type.MouseEvent(e,d,f,g,c,b);h.dispatchEvent(a)}},_onmouseevent_special_post:function(d,f,b,c,e,a){switch(d){case $[1]:qx.ui.popup.PopupManager.getInstance().update(f);if(this._menuManager!=null){this._menuManager.update(f,d)}qx.ui.embed.IframeManager.getInstance().handleMouseDown(e);break;case $[5]:if(this._menuManager!=null){this._menuManager.update(f,d)}if(qx.Class.isDefined($[453])){qx.ui.embed.IframeManager.getInstance().handleMouseUp(e)}break}qx.ui.popup.ToolTipManager.getInstance().handleMouseEvent(e);this._ignoreWindowBlur=d===$[1];if(qx.Class.isDefined($[250])&&f){qx.event.handler.DragAndDropHandler.getInstance().handleMouseEvent(e)}},_ondragevent:function(c){try{var a=org.eclipse.rwt.EventHandlerUtil;if(!c){c=window.event}a.stopDomEvent(c)}catch(b){org.eclipse.rwt.ErrorHandler.processJavaScriptError(b)}},_onselectevent:function(){try{var a=org.eclipse.rwt.EventHandlerUtil;var d=a.getDomEvent(arguments);var c=a.getOriginalTargetObjectFromEvent(d);while(c){if(c.getSelectable()!=null){if(!c.getSelectable()){a.stopDomEvent(d)}break}c=c.getParent()}}catch(b){org.eclipse.rwt.ErrorHandler.processJavaScriptError(b)}},_onwindowblur:function(b){try{if(!this._focused||this._ignoreWindowBlur||b.originalTarget!=window){return}this._focused=false;this.setCaptureWidget(null);if(qx.Class.isDefined($[288])){qx.ui.popup.PopupManager.getInstance().update()}if(this._menuManager){this._menuManager.update()}if(qx.Class.isDefined($[250])){qx.event.handler.DragAndDropHandler.getInstance().globalCancelDrag()}qx.ui.core.ClientDocument.getInstance().createDispatchEvent($[224])}catch(a){org.eclipse.rwt.ErrorHandler.processJavaScriptError(a)}},_onwindowfocus:function(b){try{if(this._focused){return}this._focused=true;qx.ui.core.ClientDocument.getInstance().createDispatchEvent("windowfocus")}catch(a){org.eclipse.rwt.ErrorHandler.processJavaScriptError(a)}},_onwindowresize:function(g){try{var f=qx.ui.core.ClientDocument.getInstance();var b=f.getInnerWidth();var h=f.getInnerHeight();var d=f._computeInnerWidth();var a=f._computeInnerHeight();if(d!==b||a!==h){qx.ui.core.ClientDocument.getInstance().createDispatchEvent($[244])}}catch(c){org.eclipse.rwt.ErrorHandler.processJavaScriptError(c)}},_mouseEventTypes:[$[6],$[34],$[8],$[1],$[5],$[16],$[51],$[49],org.eclipse.rwt.Client.isGecko()?$[291]:$[47]],_keyEventTypes:[$[10],$[4],$[40]],_dragEventTypes:qx.core.Variant.select($[0],{gecko:[$[199],$[136],$[279],"dragexit",$[476]],mshtml:[$[258],$[136],$[79],"drag",$[279],"dragleave"],"default":[$[79],$[199],$[136],"drag","dragleave",$[279],"dragexit",$[476]]}),_getKeyEventTarget:function(){var a=this.getFocusRoot();return this.getCaptureWidget()||(a==null?null:a.getActiveChild())},attachEventTypes:function(f,e){try{var d=org.eclipse.rwt.Client.isGecko()?window:document.body;for(var c=0,a=f.length;c<a;c++){qx.html.EventRegistration.addEventListener(d,f[c],e)}}catch(b){throw new Error("EventHandler: Failed to attach window event types: "+f+": "+b)}},detachEventTypes:function(f,e){try{var d=org.eclipse.rwt.Client.isGecko()?window:document.body;for(var c=0,a=f.length;c<a;c++){qx.html.EventRegistration.removeEventListener(d,f[c],e)}}catch(b){throw new Error("EventHandler: Failed to detach window event types: "+f+": "+b)}},_onmouseevent_click_fix:qx.core.Variant.select($[0],{gecko:function(a,d,c){var b=false;switch(d){case $[1]:this._lastMouseDownDomTarget=a;this._lastMouseDownDispatchTarget=c;break;case $[5]:if(this._lastMouseDownDispatchTarget===c&&a!==this._lastMouseDownDomTarget){b=true}else{this._lastMouseDownDomTarget=null;this._lastMouseDownDispatchTarget=null}break}return b},"default":function(){return false}})}});
qx.Class.define("qx.dom.Node",{statics:{ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12,isDocument:function(a){return !!(a&&a.nodeType===qx.dom.Node.DOCUMENT)},getDocument:function(a){if(this.isDocument(a)){return a}return a.ownerDocument||a.document||null},getWindow:qx.core.Variant.select($[0],{mshtml:function(a){return this.getDocument(a).parentWindow},"default":function(a){return this.getDocument(a).defaultView}})}});
qx.Class.define($[482],{extend:qx.event.type.Event,construct:function(d,b,c,e,a){arguments.callee.base.call(this,d);this.setDomEvent(b);this.setDomTarget(c);this.setTarget(e);this.setOriginalTarget(a)},statics:{SHIFT_MASK:1,CTRL_MASK:2,ALT_MASK:4,META_MASK:8},properties:{bubbles:{_fast:true,defaultValue:true,noCompute:true},propagationStopped:{_fast:true,defaultValue:false,noCompute:true},domEvent:{_fast:true,setOnlyOnce:true,noCompute:true},domTarget:{_fast:true,setOnlyOnce:true,noCompute:true},modifiers:{_cached:true,defaultValue:null}},members:{_computeModifiers:function(){var b=0;var a=this.getDomEvent();if(a.shiftKey){b|=qx.event.type.DomEvent.SHIFT_MASK}if(a.ctrlKey){b|=qx.event.type.DomEvent.CTRL_MASK}if(a.altKey){b|=qx.event.type.DomEvent.ALT_MASK}if(a.metaKey){b|=qx.event.type.DomEvent.META_MASK}return b},isCtrlPressed:function(){return this.getDomEvent().ctrlKey},isShiftPressed:function(){return this.getDomEvent().shiftKey},isAltPressed:function(){return this.getDomEvent().altKey},isMetaPressed:function(){return this.getDomEvent().metaKey},isCtrlOrCommandPressed:function(){if(org.eclipse.rwt.Client.getPlatform()==="mac"){return this.getDomEvent().metaKey}else{return this.getDomEvent().ctrlKey}},setDefaultPrevented:function(a){if(!a){throw new Error("It is not possible to set preventDefault to false if it was true before!")}org.eclipse.rwt.EventHandlerUtil.stopDomEvent(this.getDomEvent());arguments.callee.base.call(this,a)}},destruct:function(){this._disposeFields("_valueDomEvent","_valueDomTarget")}});
qx.Class.define($[270],{extend:qx.event.type.DomEvent,construct:function(f,c,d,g,b,e,h,a){arguments.callee.base.call(this,f,c,d,g,b);this._keyCode=e;this.setCharCode(h);this.setKeyIdentifier(a)},statics:{keys:{esc:27,enter:13,tab:9,space:32,up:38,down:40,left:37,right:39,shift:16,ctrl:17,alt:18,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,print:124,del:46,backspace:8,insert:45,home:36,end:35,pageup:33,pagedown:34,numlock:144,numpad_0:96,numpad_1:97,numpad_2:98,numpad_3:99,numpad_4:100,numpad_5:101,numpad_6:102,numpad_7:103,numpad_8:104,numpad_9:105,numpad_divide:111,numpad_multiply:106,numpad_minus:109,numpad_plus:107},codes:{}},properties:{charCode:{_fast:true,setOnlyOnce:true,noCompute:true},keyIdentifier:{_fast:true,setOnlyOnce:true,noCompute:true}},members:{getKeyCode:function(){return this._keyCode}},defer:function(b){for(var a in b.keys){b.codes[b.keys[a]]=a}}});
qx.Class.define($[81],{extend:qx.event.type.DomEvent,construct:function(e,b,d,f,a,c){arguments.callee.base.call(this,e,b,d,f,a);if(c){this.setRelatedTarget(c)}},statics:{C_BUTTON_LEFT:"left",C_BUTTON_MIDDLE:$[46],C_BUTTON_RIGHT:$[15],C_BUTTON_NONE:"none",_screenX:0,_screenY:0,_clientX:0,_clientY:0,_pageX:0,_pageY:0,_button:null,buttons:qx.core.Variant.select($[0],{mshtml:{left:1,right:2,middle:4},"default":{left:0,right:2,middle:1}}),storeEventState:function(a){this._screenX=a.getScreenX();this._screenY=a.getScreenY();this._clientX=a.getClientX();this._clientY=a.getClientY();this._pageX=a.getPageX();this._pageY=a.getPageY();this._button=a.getButton()},getScreenX:function(){return this._screenX},getScreenY:function(){return this._screenY},getClientX:function(){return this._clientX},getClientY:function(){return this._clientY},getPageX:function(){return this._pageX},getPageY:function(){return this._pageY},getButton:function(){return this._button}},properties:{button:{_fast:true,readOnly:true},wheelDelta:{_fast:true,readOnly:true}},members:{getPageX:qx.core.Variant.select($[0],{mshtml:function(){return this.getDomEvent().clientX+qx.bom.Viewport.getScrollLeft(window)},"default":function(){return this.getDomEvent().pageX}}),getPageY:qx.core.Variant.select($[0],{mshtml:function(){return this.getDomEvent().clientY+qx.bom.Viewport.getScrollTop(window)},"default":function(){return this.getDomEvent().pageY}}),getClientX:function(){return this.getDomEvent().clientX},getClientY:function(){return this.getDomEvent().clientY},getScreenX:function(){return this.getDomEvent().screenX},getScreenY:function(){return this.getDomEvent().screenY},isLeftButtonPressed:qx.core.Variant.select($[0],{mshtml:function(){if(this.getType()==$[16]){return true}else{return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_LEFT}},"default":function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_LEFT}}),isMiddleButtonPressed:function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_MIDDLE},isRightButtonPressed:function(){return this.getButton()===qx.event.type.MouseEvent.C_BUTTON_RIGHT},__buttons:qx.core.Variant.select($[0],{mshtml:{1:"left",2:$[15],4:$[46]},"default":{0:"left",2:$[15],1:$[46]}}),_computeButton:function(){switch(this.getDomEvent().type){case $[16]:case $[51]:return"left";case $[49]:return $[15];default:return this.__buttons[this.getDomEvent().button]||"none"}},_computeWheelDelta:qx.core.Variant.select($[0],{"default":function(){return this.getDomEvent().wheelDelta/120},gecko:function(){return -(this.getDomEvent().detail/3)}})}});
qx.Class.define("qx.util.manager.Object",{extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._objects={}},members:{add:function(a){if(this.getDisposed()){return}this._objects[a.toHashCode()]=a},remove:function(a){if(this.getDisposed()){return false}delete this._objects[a.toHashCode()]},has:function(a){return this._objects[a.toHashCode()]!=null},get:function(a){return this._objects[a.toHashCode()]},getAll:function(){return this._objects},enableAll:function(){for(var a in this._objects){this._objects[a].setEnabled(true)}},disableAll:function(){for(var a in this._objects){this._objects[a].setEnabled(false)}}},destruct:function(){this._disposeObjectDeep("_objects")}});
qx.Class.define($[453],{type:$[37],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);this._blocked={}},members:{handleMouseDown:function(a){var c=this._blockData=qx.lang.Object.copy(this.getAll());for(var b in c){c[b].block()}},handleMouseUp:function(a){var c=this._blockData;for(var b in c){c[b].release()}}},destruct:function(){this._disposeFields("_blocked","_blockData")}});
qx.Class.define("qx.ui.layout.CanvasLayout",{extend:qx.ui.core.Parent,construct:function(){arguments.callee.base.call(this)},members:{_createLayoutImpl:function(){return new qx.ui.layout.impl.CanvasLayoutImpl(this)}}});
qx.Class.define("org.eclipse.swt.widgets.CoolBar",{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this._locked=false},members:{setLocked:function(d){this._locked=d;var b=this.getChildren();var c=org.eclipse.swt.widgets.CoolItem;for(var a=0;a<b.length;a++){if(b[a] instanceof c){b[a].setLocked(d)}}},getLocked:function(){return this._locked}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.CoolBar",{factory:function(b){var a=new org.eclipse.swt.widgets.CoolBar();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);a.setOverflow($[13]);a.setAppearance("coolbar");return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["locked"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("qx.ui.layout.impl.LayoutImpl",{extend:qx.core.Object,construct:function(a){arguments.callee.base.call(this);this._widget=a},members:{getWidget:function(){return this._widget},computeChildBoxWidth:function(a){return a.getWidthValue()||a._computeBoxWidthFallback()},computeChildBoxHeight:function(a){return a.getHeightValue()||a._computeBoxHeightFallback()},computeChildNeededWidth:function(d){var c=d._computedMinWidthTypePercent?null:d.getMinWidthValue();var b=d._computedMaxWidthTypePercent?null:d.getMaxWidthValue();var a=(d._computedWidthTypePercent||d._computedWidthTypeFlex?null:d.getWidthValue())||d.getPreferredBoxWidth()||0;return qx.lang.Number.limit(a,c,b)+d.getMarginLeft()+d.getMarginRight()},computeChildNeededHeight:function(d){var c=d._computedMinHeightTypePercent?null:d.getMinHeightValue();var b=d._computedMaxHeightTypePercent?null:d.getMaxHeightValue();var a=(d._computedHeightTypePercent||d._computedHeightTypeFlex?null:d.getHeightValue())||d.getPreferredBoxHeight()||0;return qx.lang.Number.limit(a,c,b)+d.getMarginTop()+d.getMarginBottom()},computeChildrenNeededWidth_max:function(){for(var c=0,d=this.getWidget().getVisibleChildren(),b=d.length,a=0;c<b;c++){a=Math.max(a,d[c].getNeededWidth())}return a},computeChildrenNeededHeight_max:function(){for(var c=0,d=this.getWidget().getVisibleChildren(),b=d.length,a=0;c<b;c++){a=Math.max(a,d[c].getNeededHeight())}return a},computeChildrenNeededWidth_sum:function(){for(var c=0,d=this.getWidget().getVisibleChildren(),a=d.length,b=0;c<a;c++){b+=d[c].getNeededWidth()}return b},computeChildrenNeededHeight_sum:function(){for(var c=0,d=this.getWidget().getVisibleChildren(),a=d.length,b=0;c<a;c++){b+=d[c].getNeededHeight()}return b},computeChildrenNeededWidth:null,computeChildrenNeededHeight:null,updateSelfOnChildOuterWidthChange:function(a){},updateSelfOnChildOuterHeightChange:function(a){},updateChildOnInnerWidthChange:function(a){},updateChildOnInnerHeightChange:function(a){},updateSelfOnJobQueueFlush:function(a){},updateChildrenOnJobQueueFlush:function(a){},updateChildrenOnAddChild:function(b,a){},updateChildrenOnRemoveChild:function(b,a){},updateChildrenOnMoveChild:function(c,a,b){},flushChildrenQueue:function(a){var b=this.getWidget();for(var c in a){b._layoutChild(a[c])}},layoutChild:function(b,a){},layoutChild_sizeLimitX:qx.core.Variant.select($[0],{mshtml:qx.lang.Function.returnTrue,"default":function(b,a){if(a.minWidth){b._computedMinWidthTypeNull?b._resetRuntimeMinWidth():b._renderRuntimeMinWidth(b.getMinWidthValue())}else{if(a.initial&&!b._computedMinWidthTypeNull){b._renderRuntimeMinWidth(b.getMinWidthValue())}}if(a.maxWidth){b._computedMaxWidthTypeNull?b._resetRuntimeMaxWidth():b._renderRuntimeMaxWidth(b.getMaxWidthValue())}else{if(a.initial&&!b._computedMaxWidthTypeNull){b._renderRuntimeMaxWidth(b.getMaxWidthValue())}}}}),layoutChild_sizeLimitY:qx.core.Variant.select($[0],{mshtml:qx.lang.Function.returnTrue,"default":function(b,a){if(a.minHeight){b._computedMinHeightTypeNull?b._resetRuntimeMinHeight():b._renderRuntimeMinHeight(b.getMinHeightValue())}else{if(a.initial&&!b._computedMinHeightTypeNull){b._renderRuntimeMinHeight(b.getMinHeightValue())}}if(a.maxHeight){b._computedMaxHeightTypeNull?b._resetRuntimeMaxHeight():b._renderRuntimeMaxHeight(b.getMaxHeightValue())}else{if(a.initial&&!b._computedMaxHeightTypeNull){b._renderRuntimeMaxHeight(b.getMaxHeightValue())}}}}),layoutChild_marginX:function(d,a){if(a.marginLeft||a.initial){var c=d.getMarginLeft();c!=null?d._renderRuntimeMarginLeft(c):d._resetRuntimeMarginLeft()}if(a.marginRight||a.initial){var b=d.getMarginRight();b!=null?d._renderRuntimeMarginRight(b):d._resetRuntimeMarginRight()}},layoutChild_marginY:function(d,a){if(a.marginTop||a.initial){var c=d.getMarginTop();c!=null?d._renderRuntimeMarginTop(c):d._resetRuntimeMarginTop()}if(a.marginBottom||a.initial){var b=d.getMarginBottom();b!=null?d._renderRuntimeMarginBottom(b):d._resetRuntimeMarginBottom()}},layoutChild_sizeX_essentialWrapper:function(b,a){return b._isWidthEssential()?this.layoutChild_sizeX(b,a):b._resetRuntimeWidth()},layoutChild_sizeY_essentialWrapper:function(b,a){return b._isHeightEssential()?this.layoutChild_sizeY(b,a):b._resetRuntimeHeight()}},defer:function(b,a){a.computeChildrenNeededWidth=a.computeChildrenNeededWidth_max;a.computeChildrenNeededHeight=a.computeChildrenNeededHeight_max},destruct:function(){this._disposeFields("_widget")}});
qx.Class.define("qx.lang.Number",{statics:{isInRange:function(b,a,c){return b>=a&&b<=c},isBetweenRange:function(b,a,c){return b>a&&b<c},limit:function(b,a,c){if(typeof c===$[62]&&b>c){return c}else{if(typeof a===$[62]&&b<a){return a}else{return b}}}}});
qx.Class.define("qx.ui.layout.impl.CanvasLayoutImpl",{extend:qx.ui.layout.impl.LayoutImpl,construct:function(a){arguments.callee.base.call(this,a)},members:{computeChildBoxWidth:function(b){var a=null;if(b._computedLeftTypeNull||b._computedRightTypeNull){a=b.getWidthValue()}else{if(b._hasParent){a=this.getWidget().getInnerWidth()-b.getLeftValue()-b.getRightValue()}}return a||b._computeBoxWidthFallback()},computeChildBoxHeight:function(b){var a=null;if(b._computedTopTypeNull||b._computedBottomTypeNull){a=b.getHeightValue()}else{if(b._hasParent){a=this.getWidget().getInnerHeight()-b.getTopValue()-b.getBottomValue()}}return a||b._computeBoxHeightFallback()},computeChildNeededWidth:function(f){var e=f._computedLeftTypePercent?null:f.getLeftValue();var b=f._computedRightTypePercent?null:f.getRightValue();var d=f._computedMinWidthTypePercent?null:f.getMinWidthValue();var c=f._computedMaxWidthTypePercent?null:f.getMaxWidthValue();if(e!=null&&b!=null){var a=f.getPreferredBoxWidth()||0}else{var a=(f._computedWidthTypePercent?null:f.getWidthValue())||f.getPreferredBoxWidth()||0}return qx.lang.Number.limit(a,d,c)+e+b+f.getMarginLeft()+f.getMarginRight()},computeChildNeededHeight:function(f){var b=f._computedTopTypePercent?null:f.getTopValue();var c=f._computedBottomTypePercent?null:f.getBottomValue();var e=f._computedMinHeightTypePercent?null:f.getMinHeightValue();var d=f._computedMaxHeightTypePercent?null:f.getMaxHeightValue();if(b!=null&&c!=null){var a=f.getPreferredBoxHeight()||0}else{var a=(f._computedHeightTypePercent?null:f.getHeightValue())||f.getPreferredBoxHeight()||0}return qx.lang.Number.limit(a,e,d)+b+c+f.getMarginTop()+f.getMarginBottom()},updateChildOnInnerWidthChange:function(c){var a=c._recomputePercentX();var b=c._recomputeRangeX();return a||b},updateChildOnInnerHeightChange:function(c){var a=c._recomputePercentY();var b=c._recomputeRangeY();return a||b},layoutChild:function(b,a){this.layoutChild_sizeX_essentialWrapper(b,a);this.layoutChild_sizeY_essentialWrapper(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:qx.core.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(b,a){if(a.initial||a.width||a.minWidth||a.maxWidth||a.left||a.right){if(b._computedMinWidthTypeNull&&b._computedWidthTypeNull&&b._computedMaxWidthTypeNull&&!(!b._computedLeftTypeNull&&!b._computedRightTypeNull)){b._resetRuntimeWidth()}else{b._renderRuntimeWidth(b.getBoxWidth())}}},"default":function(b,a){if(a.initial||a.width){b._computedWidthTypeNull?b._resetRuntimeWidth():b._renderRuntimeWidth(b.getWidthValue())}}}),layoutChild_sizeY:qx.core.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(b,a){if(a.initial||a.height||a.minHeight||a.maxHeight||a.top||a.bottom){if(b._computedMinHeightTypeNull&&b._computedHeightTypeNull&&b._computedMaxHeightTypeNull&&!(!b._computedTopTypeNull&&!b._computedBottomTypeNull)){b._resetRuntimeHeight()}else{b._renderRuntimeHeight(b.getBoxHeight())}}},"default":function(b,a){if(a.initial||a.height){b._computedHeightTypeNull?b._resetRuntimeHeight():b._renderRuntimeHeight(b.getHeightValue())}}}),layoutChild_locationX:function(c,a){var b=this.getWidget();if(a.initial||a.left||a.parentPaddingLeft){c._computedLeftTypeNull?c._computedRightTypeNull&&b.getPaddingLeft()>0?c._renderRuntimeLeft(b.getPaddingLeft()):c._resetRuntimeLeft():c._renderRuntimeLeft(c.getLeftValue()+b.getPaddingLeft())}if(a.initial||a.right||a.parentPaddingRight){c._computedRightTypeNull?c._computedLeftTypeNull&&b.getPaddingRight()>0?c._renderRuntimeRight(b.getPaddingRight()):c._resetRuntimeRight():c._renderRuntimeRight(c.getRightValue()+b.getPaddingRight())}},layoutChild_locationY:function(c,a){var b=this.getWidget();if(a.initial||a.top||a.parentPaddingTop){c._computedTopTypeNull?c._computedBottomTypeNull&&b.getPaddingTop()>0?c._renderRuntimeTop(b.getPaddingTop()):c._resetRuntimeTop():c._renderRuntimeTop(c.getTopValue()+b.getPaddingTop())}if(a.initial||a.bottom||a.parentPaddingBottom){c._computedBottomTypeNull?c._computedTopTypeNull&&b.getPaddingBottom()>0?c._renderRuntimeBottom(b.getPaddingBottom()):c._resetRuntimeBottom():c._renderRuntimeBottom(c.getBottomValue()+b.getPaddingBottom())}}}});
qx.Class.define("qx.ui.core.ClientDocument",{type:$[37],extend:qx.ui.layout.CanvasLayout,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($[244],this._onwindowresize);this._modalWidgets=[];this._modalNativeWindow=null;this.activateFocusRoot();this.initHideFocus();this.initSelectable();org.eclipse.rwt.EventHandler.setFocusRoot(this);if(org.eclipse.rwt.Client.isGecko()){this.getElement().style.position=$[17];this.setSelectable(true)}},events:{focus:$[3],windowblur:$[3],windowfocus:$[3],windowresize:$[3]},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:$[21],nullable:true,themeable:true,apply:"_applyGlobalCursor",event:"changeGlobalCursor"}},members:{_applyParent:qx.lang.Function.returnTrue,getTopLevelWidget:qx.lang.Function.returnThis,getWindowElement:function(){return this._window},getDocumentElement:function(){return this._document},getParent:qx.lang.Function.returnNull,getToolTip:qx.lang.Function.returnNull,isSeeable:qx.lang.Function.returnTrue,_isDisplayable:true,_hasParent:false,_initialLayoutDone:true,_isInDom:true,_getBlocker:function(){if(!this._blocker){this._blocker=new qx.ui.core.ClientDocumentBlocker;this._blocker.addEventListener($[1],this.blockHelper,this);this._blocker.addEventListener($[5],this.blockHelper,this);this.add(this._blocker)}return this._blocker},blockHelper:function(a){if(this._modalNativeWindow){if(!this._modalNativeWindow.isClosed()){this._modalNativeWindow.focus()}else{this.release(this._modalNativeWindow)}}},block:function(a){this._getBlocker().show();if(qx.Class.isDefined($[379])&&a instanceof qx.ui.window.Window){this._modalWidgets.push(a);var b=a.getZIndex();this._getBlocker().setZIndex(b);a.setZIndex(b+1)}else{if(qx.Class.isDefined($[364])&&a instanceof qx.client.NativeWindow){this._modalNativeWindow=a;this._getBlocker().setZIndex(10000000)}}},release:function(b){if(b){if(qx.Class.isDefined($[364])&&b instanceof qx.client.NativeWindow){this._modalNativeWindow=null}else{qx.lang.Array.remove(this._modalWidgets,b)}}var a=this._modalWidgets.length;if(a==0){this._getBlocker().hide()}else{var c=this._modalWidgets[a-1];var d=c.getZIndex();this._getBlocker().setZIndex(d);c.setZIndex(d+1)}},createStyleElement:function(a){return qx.html.StyleSheet.createElement(a)},addCssRule:function(a,c,b){return qx.html.StyleSheet.addRule(a,c,b)},removeCssRule:function(a,b){return qx.html.StyleSheet.removeRule(a,b)},removeAllCssRules:function(a){return qx.html.StyleSheet.removeAllRules(a)},_applyGlobalCursor:qx.core.Variant.select($[0],{mshtml:function(g,b){if(g==$[133]){g="hand"}if(b==$[133]){b="hand"}var e,h;var f=this._cursorElements;if(f){for(var c=0,a=f.length;c<a;c++){e=f[c];if(e.style.cursor==b){e.style.cursor=e._oldCursor;e._oldCursor=null}}}var d=document.all;var f=this._cursorElements=[];if(g!=null&&g!=""&&g!="auto"){for(var c=0,a=d.length;c<a;c++){e=d[c];h=e.style.cursor;if(h!=null&&h!=""&&h!="auto"){e._oldCursor=h;e.style.cursor=g;f.push(e)}}document.body.style.cursor=g}else{document.body.style.cursor=""}},"default":function(b,a){if(!this._globalCursorStyleSheet){this._globalCursorStyleSheet=this.createStyleElement()}this.removeCssRule(this._globalCursorStyleSheet,"*");if(b){this.addCssRule(this._globalCursorStyleSheet,"*","cursor:"+b+" !important")}}}),_onwindowresize:function(a){qx.ui.popup.PopupManager.getInstance().update();this._recomputeInnerWidth();this._recomputeInnerHeight();qx.ui.core.Widget.flushGlobalQueues()},_computeInnerWidth:function(){return this._document.body.offsetWidth},_computeInnerHeight:function(){return this._document.body.offsetHeight}},settings:{"qx.enableApplicationLayout":true,"qx.boxModelCorrection":true},defer:function(){var b=org.eclipse.rwt.Client.getEngineBoxSizingAttributes();var a=b.join($[414])+$[414];var c=b.join($[374])+$[374];qx.html.StyleSheet.createElement("html,body { margin:0;border:0;padding:0; } html { border:0 none; } *{"+a+"} img{"+c+"}");qx.html.StyleSheet.createElement("html,body{width:100%;height:100%;overflow:hidden;}")},destruct:function(){this._disposeObjects("_blocker");this._disposeFields("_window","_document","_modalWidgets","_modalNativeWindow","_globalCursorStyleSheet")}});
qx.Class.define("qx.ui.basic.Terminator",{extend:qx.ui.core.Widget,members:{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:qx.lang.Function.returnTrue,_computeBoxWidthFallback:function(){return this.getPreferredBoxWidth()},_computeBoxHeightFallback:function(){return this.getPreferredBoxHeight()},_computePreferredInnerWidth:qx.lang.Function.returnZero,_computePreferredInnerHeight:qx.lang.Function.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}}});
qx.Class.define("qx.ui.core.ClientDocumentBlocker",{extend:qx.ui.basic.Terminator,include:org.eclipse.rwt.VisibilityAnimationMixin,construct:function(){arguments.callee.base.call(this);this.initTop();this.initLeft();this.initWidth();this.initHeight();this.initZIndex()},properties:{appearance:{refine:true,init:$[460]},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}}});
qx.Class.define("qx.theme.manager.Appearance",{type:$[37],extend:qx.util.manager.Object,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(org.eclipse.rwt.System.getInstance().getUiReady()){qx.ui.core.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(qx.core.Variant.isSet($[25],"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")}});
qx.Class.define("qx.util.manager.Value",{type:$[101],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._registry={};this._dynamic={};this._connectedObjects={}},members:{disconnect:function(e){if(this.isDisposed()){return}var c=e.toHashCode();var b=this._connectedObjects;var d=this._registry;var a=b[c];while(a.length){delete d[a.pop()]}delete b[c]},connect:function(f,e,d){var b=e.toHashCode();var a="v"+b+"$"+qx.core.Object.toHashCode(f);var c=this._registry;if(d!==null&&this._preprocess){d=this._preprocess(d)}if(this.isDynamic(d)){c[a]={callback:f,object:e,value:d};if(!this._connectedObjects[b]){this._connectedObjects[b]=[]}this._connectedObjects[b].push(a);e.hasConnectionTo(this)}else{if(c[a]){delete c[a]}}f.call(e,this.resolveDynamic(d)||d)},resolveDynamic:function(a){return this._dynamic[a]},isDynamic:function(a){return this._dynamic[a]!==undefined},_updateObjects:function(){var b=this._registry;var c;for(var a in b){c=b[a];c.callback.call(c.object,this.resolveDynamic(c.value))}}},destruct:function(){this._disposeFields("_registry","_dynamic","_connectedObjects")}});
qx.Class.define("qx.util.ColorUtil",{statics:{REGEXP:{hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,rgb:/^rgb\(\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*\)$/},SYSTEM:{activeborder:true,activecaption:true,appworkspace:true,background:true,buttonface:true,buttonhighlight:true,buttonshadow:true,buttontext:true,captiontext:true,graytext:true,highlight:true,highlighttext:true,inactiveborder:true,inactivecaption:true,inactivecaptiontext:true,infobackground:true,infotext:true,menu:true,menutext:true,scrollbar:true,threeddarkshadow:true,threedface:true,threedhighlight:true,threedlightshadow:true,threedshadow:true,window:true,windowframe:true,windowtext:true},NAMED:{black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:[-1,-1,-1],grey:[128,128,128],magenta:[255,0,255],orange:[255,165,0],brown:[165,42,42]},isNamedColor:function(a){return this.NAMED[a]!==undefined},isSystemColor:function(a){return this.SYSTEM[a]!==undefined},stringToRgb:function(a){if(this.isNamedColor(a)){return this.NAMED[a]}else{if(this.isSystemColor(a)){throw new Error($[473]+a)}else{if(this.isRgbString(a)){return this.__rgbStringToRgb()}else{if(this.isHex3String(a)){return this.__hex3StringToRgb()}else{if(this.isHex6String(a)){return this.__hex6StringToRgb()}}}}}throw new Error($[433]+a)},cssStringToRgb:function(a){if(this.isNamedColor(a)){return this.NAMED[a]}else{if(this.isSystemColor(a)){throw new Error($[473]+a)}else{if(this.isRgbString(a)){return this.__rgbStringToRgb()}else{if(this.isHex3String(a)){return this.__hex3StringToRgb()}else{if(this.isHex6String(a)){return this.__hex6StringToRgb()}}}}}throw new Error($[433]+a)},stringToRgbString:function(a){return this.rgbToRgbString(this.stringToRgb(a))},rgbToRgbString:function(a){return"rgb("+a[0]+","+a[1]+","+a[2]+")"},rgbToHexString:function(a){return(qx.lang.String.pad(a[0].toString(16).toUpperCase(),2)+qx.lang.String.pad(a[1].toString(16).toUpperCase(),2)+qx.lang.String.pad(a[2].toString(16).toUpperCase(),2))},isValid:function(a){return this.isCssString(a)},isCssString:function(a){return this.isSystemColor(a)||this.isNamedColor(a)||this.isHex3String(a)||this.isHex6String(a)||this.isRgbString(a)},isHex3String:function(a){return this.REGEXP.hex3.test(a)},isHex6String:function(a){return this.REGEXP.hex6.test(a)},isRgbString:function(a){return this.REGEXP.rgb.test(a)},__rgbStringToRgb:function(){var c=parseInt(RegExp.$1);var b=parseInt(RegExp.$2);var a=parseInt(RegExp.$3);return[c,b,a]},__hex3StringToRgb:function(){var c=parseInt(RegExp.$1,16)*17;var b=parseInt(RegExp.$2,16)*17;var a=parseInt(RegExp.$3,16)*17;return[c,b,a]},__hex6StringToRgb:function(){var c=(parseInt(RegExp.$1,16)*16)+parseInt(RegExp.$2,16);var b=(parseInt(RegExp.$3,16)*16)+parseInt(RegExp.$4,16);var a=(parseInt(RegExp.$5,16)*16)+parseInt(RegExp.$6,16);return[c,b,a]},hex3StringToRgb:function(a){if(this.isHex3String(a)){return this.__hex3StringToRgb(a)}throw new Error("Invalid hex3 value: "+a)},hex6StringToRgb:function(a){if(this.isHex6String(a)){return this.__hex6StringToRgb(a)}throw new Error("Invalid hex6 value: "+a)},hexStringToRgb:function(a){if(this.isHex3String(a)){return this.__hex3StringToRgb(a)}if(this.isHex6String(a)){return this.__hex6StringToRgb(a)}throw new Error("Invalid hex value: "+a)}}});
qx.Class.define("org.eclipse.rwt.Border",{extend:qx.core.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=[null,null,null,null];this._singleColor=null;this._singleStyle=null;this._setWidth(c);this._setStyle(b?b:"none");this._setColor(a?a:"");if(b===$[175]){if(d===undefined){throw new Error("Missing innerColors")}this._setInnerColor(d)}else{if(b===$[77]){if(d===undefined||this.getColor()===null){throw new Error("Invalid arguments for border style rounded")}this._setRadii(d)}else{if(d!==undefined){throw new Error("colorsOrRadii set for style "+this.getStyle())}}}},statics:{_EDGEWIDTH:[$[87],$[264],$[263],$[80]],_EDGECOLOR:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],_EDGESTYLE:[$[508],$[489],$[384],$[404]],_EDGEMOZCOLORS:["MozBorderTopColors","MozBorderRightColors","MozBorderBottomColors","MozBorderLeftColors"],_BORDERRADII:qx.core.Variant.select($[0],{webkit:["-webkit-border-top-left-radius","-webkit-border-top-right-radius","-webkit-border-bottom-right-radius","-webkit-border-bottom-left-radius"],"gecko|newmshtml":["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:qx.core.Variant.select($[0],{gecko:function(c){var d=org.eclipse.rwt.Border;var b=c._style;for(var a=0;a<4;a++){b[d._EDGEMOZCOLORS[a]]=""}},"default":function(c){var d=org.eclipse.rwt.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===$[9]){this._singleColor=a}this._colors=this._normalizeValue(a)},_setWidth:function(a){this._widths=this._normalizeValue(a)},_setStyle:function(a){if(typeof a===$[9]){this._singleStyle=a;if(a===$[175]||a===$[77]){this._styles=this._normalizeValue($[72])}else{this._styles=this._normalizeValue(a)}}else{this._styles=this._normalizeValue(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()===$[175]){this._renderComplexBorder(a)}else{if(this.getStyle()===$[77]){this._renderRoundedBorder(a)}else{this._renderSimpleBorder(a)}}},renderElement:function(a){if(this.getStyle()===$[175]||this.getStyle()===$[77]){throw new Error("Rendering complex or rounded border on elements currently unsupported")}this._renderSimpleBorderStyle(a.style)},_renderSimpleBorder:function(a){org.eclipse.rwt.Border._resetComplexBorder(a);org.eclipse.rwt.Border._resetRadii(a);this._renderSimpleBorderStyle(a._style)},_renderSimpleBorderStyle:function(b){var c=org.eclipse.rwt.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:qx.core.Variant.select($[0],{gecko:function(c){var d=org.eclipse.rwt.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]]=$[72];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=org.eclipse.rwt.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]]=$[72];c[e._EDGECOLOR[b]]=this._colors[b]||"";a[e._EDGEWIDTH[b]]="1px";a[e._EDGESTYLE[b]]=$[72];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(c){var d=org.eclipse.rwt.Border;this._renderSimpleBorder(c);var b=c._style;for(var a=0;a<4;a++){b[d._BORDERRADII[a]]=this._radii[a]+"px"}}}});
qx.Class.define("qx.ui.core.Font",{extend:qx.core.Object,construct:function(a,b){arguments.callee.base.call(this);if(a!==undefined){this.setSize(a)}if(b!==undefined){this.setFamily(b)}},statics:{fromString:function(g){var b=new qx.ui.core.Font;var f=g.split(/\s+/);var d=[];var c;for(var e=0;e<f.length;e++){switch(c=f[e]){case"bold":b.setBold(true);break;case"italic":b.setItalic(true);break;case $[294]:b.setDecoration($[294]);break;default:var a=parseInt(c);if(a==c||qx.lang.String.contains(c,"px")){b.setSize(a)}else{d.push(c)}break}}if(d.length>0){b.setFamily(d)}return b},fromConfig:function(b){var a=new qx.ui.core.Font;a.set(b);return a},reset:function(a){a.removeStyleProperty("fontFamily");a.removeStyleProperty($[165]);a.removeStyleProperty("fontWeight");a.removeStyleProperty("fontStyle");a.removeStyleProperty($[477])},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:$[14],nullable:true,apply:"_applySize"},family:{check:"Array",nullable:true,apply:"_applyFamily"},bold:{check:$[2],nullable:true,apply:"_applyBold"},italic:{check:$[2],nullable:true,apply:"_applyItalic"},decoration:{check:[$[294],"line-through","overline"],nullable:true,apply:"_applyDecoration"}},members:{__size:null,__family:null,__bold:null,__italic:null,__decoration:null,_applySize:function(b,a){this.__size=b===null?null:b+"px"},_applyFamily:function(e,b){var d="";for(var c=0,a=e.length;c<a;c++){if(e[c].indexOf(" ")>0){d+='"'+e[c]+'"'}else{d+=e[c]}if(c!=a-1){d+=","}}this.__family=d},_applyBold:function(b,a){this.__bold=b===null?null:b?"bold":$[61]},_applyItalic:function(b,a){this.__italic=b===null?null:b?"italic":$[61]},_applyDecoration:function(b,a){this.__decoration=b===null?null:b},render:function(a){a.setStyleProperty("fontFamily",this.__family);a.setStyleProperty($[165],this.__size);a.setStyleProperty("fontWeight",this.__bold);a.setStyleProperty("fontStyle",this.__italic);a.setStyleProperty($[477],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||""},generateStyle:function(){return(this.__family?"font-family:"+this.__family.replace(/\"/g,"'")+";":"")+(this.__size?"font-size:"+this.__size+";":"")+(this.__weight?"font-weight:"+this.__weight+";":"")+(this.__style?"font-style:"+this.__style+";":"")+(this.__decoration?"text-decoration:"+this.__decoration+";":"")},toCss:function(){return(this.getItalic()?"italic ":"")+(this.getBold()?"bold ":"")+(this.__size?this.getSize()+"px ":"")+(this.__family?this.__family.replace(/\"/g,"'"):"")}}});
qx.Class.define("qx.io.Alias",{type:$[37],extend:qx.util.manager.Value,construct:function(){arguments.callee.base.call(this);this._aliases={}},members:{_preprocess:function(f){var d=this._dynamic;if(d[f]===false){return f}else{if(d[f]===undefined){if(f.indexOf("http://")===0||f.indexOf("https://")===0||f.indexOf("file://")===0){d[f]=false;return f}var e=f.substring(0,f.indexOf("/"));var c=this._aliases[e];if(c===undefined){if(org.eclipse.rwt.Client.isMshtml()){if(window.location.protocol==="https:"){var b=f.match(/^[\.\/]/);var a=f.match(/^\w/);if(b!=null||a!=null){if(a!=null&&b==null){f="./"+f}return this.__rewriteUrl(f)}}}return f}else{if(org.eclipse.rwt.Client.isMshtml()){if(window.location.protocol==="https:"){c=this.__rewriteUrl(c)}}d[f]=c+f.substring(e.length)}}}return f},__rewriteUrl:function(b){var a="";if(b.match(/^\/\//)!=null){a=window.location.protocol}else{if(b.match(/^\//)){a=window.location.protocol+"//"+window.location.host}else{if(b.match(/^http/)!=null){}else{a=window.location.href.substring(0,window.location.href.lastIndexOf("/")+1)}}}return a+b},add:function(c,f){this._aliases[c]=f;var a=this._dynamic;var d=this._registry;var e;var h={};for(var g in a){if(g.substring(0,g.indexOf("/"))===c){a[g]=f+g.substring(c.length);h[g]=true}}for(var b in d){e=d[b];if(h[e.value]){e.callback.call(e.object,a[e.value])}}},remove:function(a){delete this._aliases[a]},resolve:function(a){if(a!==null){a=this._preprocess(a)}return this._dynamic[a]||a}},destruct:function(){this._disposeFields("_aliases")}});
qx.Class.define($[435],{extend:qx.core.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();qx.event.handler.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=qx.bom.element.Location.getTop(f.getElement());var i=qx.bom.element.Location.getTop(d.getElement());if(j!=i){return j-i}var b=qx.bom.element.Location.getLeft(f.getElement());var a=qx.bom.element.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;c<a;c++){g=d[c];if(g.isDisposed()||!(g instanceof qx.ui.core.Parent)&&!(g instanceof qx.ui.basic.Terminator)){continue}if(g.isFocusable()&&g.getTabIndex()>0&&this.compareTabOrder(f,g)<0){b.push(d[c])}if(!g.isFocusRoot()&&g instanceof qx.ui.core.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;c<a;c++){g=d[c];if(!(g instanceof qx.ui.core.Parent)&&!(g instanceof qx.ui.basic.Terminator)){continue}if(g.isFocusable()&&g.getTabIndex()>0&&this.compareTabOrder(f,g)>0){b.push(g)}if(!g.isFocusRoot()&&g instanceof qx.ui.core.Parent){this._getAllBefore(g,f,b)}}},_getFirst:function(d,f){var c=d.getChildren();var e;var a=c.length;for(var b=0;b<a;b++){e=c[b];if(!(e instanceof qx.ui.core.Parent)&&!(e instanceof qx.ui.basic.Terminator)){continue}if(e.isFocusable()&&e.getTabIndex()>0){if(f==null||this.compareTabOrder(e,f)<0){f=e}}if(!e.isFocusRoot()&&e instanceof qx.ui.core.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;c<a;c++){f=d[c];if(!(f instanceof qx.ui.core.Parent)&&!(f instanceof qx.ui.basic.Terminator)){continue}if(f.isFocusable()&&f.getTabIndex()>0){if(b==null||this.compareTabOrder(f,b)>0){b=f}}if(!f.isFocusRoot()&&f instanceof qx.ui.core.Parent){b=this._getLast(f,b)}}return b}},destruct:function(){this._disposeFields("_attachedWidget")}});
qx.Class.define("qx.bom.element.Location",{statics:{__style:function(b,a){return qx.bom.element.Style.get(b,a,qx.bom.element.Style.COMPUTED_MODE,false)},__num:function(b,a){return parseInt(qx.bom.element.Style.get(b,a,qx.bom.element.Style.COMPUTED_MODE,false),10)||0},__computeScroll:function(b){var e=0,d=0;if(b.getBoundingClientRect){var c=qx.dom.Node.getWindow(b);if(!org.eclipse.rwt.Client.isMobileSafari()){e-=qx.bom.Viewport.getScrollLeft(c);d-=qx.bom.Viewport.getScrollTop(c)}}else{var a=qx.dom.Node.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:qx.core.Variant.select($[0],{mshtml:function(b){var e=qx.dom.Node.getDocument(b);var a=e.body;var d=a.offsetLeft;var c=a.offsetTop;d-=this.__num(a,$[80]);c-=this.__num(a,$[87]);if(e.compatMode===$[120]){d+=this.__num(a,$[179]);c+=this.__num(a,$[178])}return{left:Math.ceil(d),top:Math.ceil(c)}},webkit:function(b){var e=qx.dom.Node.getDocument(b);var a=e.body;var d=a.offsetLeft;var c=a.offsetTop;d+=this.__num(a,$[80]);c+=this.__num(a,$[87]);if(e.compatMode===$[120]){d+=this.__num(a,$[179]);c+=this.__num(a,$[178])}return{left:Math.ceil(d),top:Math.ceil(c)}},gecko:function(b){var a=qx.dom.Node.getDocument(b).body;var d=a.offsetLeft;var c=a.offsetTop;if(qx.bom.element.BoxSizing.get(a)!==$[246]){d+=this.__num(a,$[80]);c+=this.__num(a,$[87]);if(!b.getBoundingClientRect){var e;while(b){if(this.__style(b,$[131])===$[17]||this.__style(b,$[131])===$[123]){e=true;break}b=b.offsetParent}if(!e){d+=this.__num(a,$[80]);c+=this.__num(a,$[87])}}}return{left:Math.ceil(d),top:Math.ceil(c)}},"default":function(b){var a=qx.dom.Node.getDocument(b).body;var d=a.offsetLeft;var c=a.offsetTop;return{left:Math.ceil(d),top:Math.ceil(c)}}}),__computeOffset:qx.core.Variant.select($[0],{"mshtml|newmshtml|webkit":function(c){var f=qx.dom.Node.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,$[80]);d+=this.__num(c,$[87]);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=qx.dom.Node.getDocument(d).body;var b=qx.bom.element.BoxSizing;if(b.get(d)!==$[246]){f-=this.__num(d,$[80]);e-=this.__num(d,$[87])}while(d&&d!==a){f+=d.offsetLeft;e+=d.offsetTop;if(b.get(d)!==$[246]){f+=this.__num(d,$[80]);e+=this.__num(d,$[87])}if(d.parentNode&&this.__style(d.parentNode,$[58])!=$[209]){f+=this.__num(d.parentNode,$[80]);e+=this.__num(d.parentNode,$[87])}d=d.offsetParent}}return{left:Math.ceil(f),top:Math.ceil(e)}},"default":function(b){var d=0;var c=0;var a=qx.dom.Node.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(d,f){var g=this.__computeBody(d);if(d.tagName=="BODY"){var c=g.left;var h=g.top}else{var e=this.__computeOffset(d);var i=this.__computeScroll(d);var c=e.left+g.left-i.left;var h=e.top+g.top-i.top}var j=c+d.offsetWidth;var b=h+d.offsetHeight;if(f){if(f==$[176]||f==$[12]){var a=qx.bom.element.Overflow.getX(d);if(a==$[12]||a=="auto"){j+=d.scrollWidth-d.offsetWidth+this.__num(d,$[80])+this.__num(d,$[264])}var k=qx.bom.element.Overflow.getY(d);if(k==$[12]||k=="auto"){b+=d.scrollHeight-d.offsetHeight+this.__num(d,$[87])+this.__num(d,$[263])}}switch(f){case $[176]:c+=this.__num(d,$[213]);h+=this.__num(d,$[181]);j-=this.__num(d,$[191]);b-=this.__num(d,$[208]);case $[12]:c-=d.scrollLeft;h-=d.scrollTop;j-=d.scrollLeft;b-=d.scrollTop;case $[127]:c+=this.__num(d,$[80]);h+=this.__num(d,$[87]);j-=this.__num(d,$[264]);b-=this.__num(d,$[263]);break;case"margin":c-=this.__num(d,$[179]);h-=this.__num(d,$[178]);j+=this.__num(d,$[236]);b+=this.__num(d,$[275]);break}}return{left:c,top:h,right:j,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}}}});
qx.Class.define("qx.bom.element.Style",{statics:{__hints:{names:{"float":org.eclipse.rwt.Client.isMshtml()?"styleFloat":"cssFloat",boxSizing:org.eclipse.rwt.Client.isGecko()?"mozBoxSizing":$[252]},mshtmlPixel:{width:"pixelWidth",height:"pixelHeight",left:"pixelLeft",right:"pixelRight",top:"pixelTop",bottom:"pixelBottom"}},COMPUTED_MODE:1,CASCADED_MODE:2,LOCAL_MODE:3,get:qx.core.Variant.select($[0],{mshtml:function(f,a,g,i){var b=this.__hints;a=b.names[a]||a;switch(g){case this.LOCAL_MODE:return f.style[a]||"";case this.CASCADED_MODE:return f.currentStyle[a];default:var c=f.currentStyle[a];if(/^-?[\.\d]+(px)?$/i.test(c)){return c}var d=b.mshtmlPixel[a];if(d){var e=f.style[a];f.style[a]=c||0;var h=f.style[d]+"px";f.style[a]=e;return h}if(/^-?[\.\d]+(em|pt|%)?$/i.test(c)){throw new Error("Untranslated computed property value: "+a+". Only pixel values work well across different clients.")}return c}},"default":function(b,a,g,f){var d=this.__hints;a=d.names[a]||a;switch(g){case this.LOCAL_MODE:return b.style[a];case this.CASCADED_MODE:if(b.currentStyle){return b.currentStyle[a]}throw new Error("Cascaded styles are not supported in this browser!");default:var e=qx.dom.Node.getDocument(b);var c=e.defaultView.getComputedStyle(b,null);return c?c[a]:null}}})}});
qx.Class.define("qx.bom.element.BoxSizing",{statics:{__styleProperties:qx.core.Variant.select($[0],{"mshtml|newmshtml":null,webkit:[$[252],"KhtmlBoxSizing","WebkitBoxSizing"],gecko:["MozBoxSizing",$[252]],opera:[$[252]]}),__nativeBorderBox:{tags:{button:true,select:true},types:{search:true,button:true,submit:true,reset:true,checkbox:true,radio:true}},__usesNativeBorderBox:function(a){var b=this.__nativeBorderBox;return b.tags[a.tagName.toLowerCase()]||b.types[a.type]},get:qx.core.Variant.select($[0],{mshtml:function(a){if(qx.bom.Document.isStandardMode(qx.dom.Node.getDocument(a))){if(!this.__usesNativeBorderBox(a)){return"content-box"}}return $[246]},"default":function(c){var d=this.__styleProperties;var e;if(d){for(var b=0,a=d.length;b<a;b++){e=qx.bom.element.Style.get(c,d[b],null,false);if(e!=null&&e!==""){return e}}}}})}});
qx.Class.define("qx.bom.Document",{statics:{isQuirksMode:function(a){return(a||window).document.compatMode!==$[120]},isStandardMode:function(a){return(a||window).document.compatMode===$[120]},getWidth:function(d){var c=(d||window).document;var b=qx.bom.Viewport.getWidth(d);var a=c.compatMode===$[120]?c.documentElement.scrollWidth:c.body.scrollWidth;return Math.max(a,b)},getHeight:function(d){var c=(d||window).document;var b=qx.bom.Viewport.getHeight(d);var a=c.compatMode===$[120]?c.documentElement.scrollHeight:c.body.scrollHeight;return Math.max(a,b)}}});
qx.Class.define("qx.bom.element.Overflow",{statics:{getX:qx.core.Variant.select($[0],{gecko:org.eclipse.rwt.Client.getVersion()<1.8?function(a,b){var c=qx.bom.element.Style.get(a,$[58],b,false);if(c===$[256]){c=$[13]}return c}:function(a,b){return qx.bom.element.Style.get(a,$[96],b,false)},opera:org.eclipse.rwt.Client.getVersion()<9.5?function(a,b){return qx.bom.element.Style.get(a,$[58],b,false)}:function(a,b){return qx.bom.element.Style.get(a,$[96],b,false)},"default":function(a,b){return qx.bom.element.Style.get(a,$[96],b,false)}}),getY:qx.core.Variant.select($[0],{gecko:org.eclipse.rwt.Client.getVersion()<1.8?function(a,b){var c=qx.bom.element.Style.get(a,$[58],b,false);if(c===$[256]){c=$[13]}return c}:function(a,b){return qx.bom.element.Style.get(a,$[97],b,false)},opera:org.eclipse.rwt.Client.getVersion()<9.5?function(a,b){return qx.bom.element.Style.get(a,$[58],b,false)}:function(a,b){return qx.bom.element.Style.get(a,$[97],b,false)},"default":function(a,b){return qx.bom.element.Style.get(a,$[97],b,false)}})}});
qx.Class.define("qx.io.image.Manager",{type:$[37],extend:qx.core.Target,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")}});
qx.Class.define("qx.html.Offset",{statics:{getLeft:qx.core.Variant.select($[0],{gecko:function(c){var f=c.offsetLeft;var b=c.parentNode;var e=qx.html.Style.getStyleProperty(c,$[131]);var d=qx.html.Style.getStyleProperty(b,$[131]);if(e!=$[17]&&e!=$[123]){f-=qx.html.Style.getBorderLeft(b)}if(d!=$[17]&&d!=$[123]){while(b){b=b.parentNode;if(!b||typeof b.tagName!==$[9]){break}var a=qx.html.Style.getStyleProperty(b,$[131]);if(a==$[17]||a==$[123]){f-=qx.html.Style.getBorderLeft(b)+qx.html.Style.getPaddingLeft(b);break}}}return f},"default":function(a){return a.offsetLeft}}),getTop:qx.core.Variant.select($[0],{gecko:function(c){var f=c.offsetTop;var b=c.parentNode;var e=qx.html.Style.getStyleProperty(c,$[131]);var d=qx.html.Style.getStyleProperty(b,$[131]);if(e!=$[17]&&e!=$[123]){f-=qx.html.Style.getBorderTop(b)}if(d!=$[17]&&d!=$[123]){while(b){b=b.parentNode;if(!b||typeof b.tagName!==$[9]){break}var a=qx.html.Style.getStyleProperty(b,$[131]);if(a==$[17]||a==$[123]){f-=qx.html.Style.getBorderTop(b)+qx.html.Style.getPaddingTop(b);break}}}return f},"default":function(a){return a.offsetTop}})}});
qx.Class.define("qx.html.ScrollIntoView",{statics:{scrollX:function(b,c){var a,f,e,d;var g=b.parentNode;var h=b.offsetLeft;var e=b.offsetWidth;while(g){switch(qx.html.Style.getStyleProperty(g,$[58])){case $[12]:case"auto":case $[277]:d=true;break;default:switch(qx.html.Style.getStyleProperty(g,$[96])){case $[12]:case"auto":d=true;break;default:d=false}}if(d){a=g.clientWidth;f=g.scrollLeft;if(c){g.scrollLeft=h}else{if(c==false){g.scrollLeft=h+e-a}else{if(e>a||h<f){g.scrollLeft=h}else{if((h+e)>(f+a)){g.scrollLeft=h+e-a}}}}h=g.offsetLeft;e=g.offsetWidth}else{h+=g.offsetLeft}if(g.tagName.toLowerCase()=="body"){break}g=g.offsetParent}return true},scrollY:function(b,d){var g,a,c,e;var f=b.parentNode;var h=b.offsetTop;var c=b.offsetHeight;while(f){switch(qx.html.Style.getStyleProperty(f,$[58])){case $[12]:case"auto":case $[231]:e=true;break;default:switch(qx.html.Style.getStyleProperty(f,$[97])){case $[12]:case"auto":e=true;break;default:e=false}}if(e){g=f.clientHeight;a=f.scrollTop;if(d){f.scrollTop=h}else{if(d==false){f.scrollTop=h+c-g}else{if(c>g||h<a){f.scrollTop=h}else{if((h+c)>(a+g)){f.scrollTop=h+c-g}}}}h=f.offsetTop;c=f.offsetHeight}else{h+=f.offsetTop}if(f.tagName.toLowerCase()=="body"){break}f=f.offsetParent}return true}}});
qx.Class.define("qx.ui.layout.BoxLayout",{extend:qx.ui.core.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:[$[41],$[32]],init:$[41],apply:$[386],event:"changeOrientation"},spacing:{check:$[14],init:0,themeable:true,apply:$[494],event:$[479]},horizontalChildrenAlign:{check:["left",$[30],$[15]],init:"left",themeable:true,apply:$[455]},verticalChildrenAlign:{check:["top",$[46],$[31]],init:"top",themeable:true,apply:$[493]},reverseChildrenOrder:{check:$[2],init:false,apply:"_applyReverseChildrenOrder"},stretchChildrenOrthogonalAxis:{check:$[2],init:true,apply:"_applyStretchChildrenOrthogonalAxis"},useAdvancedFlexAllocation:{check:$[2],init:false,apply:"_applyUseAdvancedFlexAllocation"},accumulatedChildrenOuterWidth:{_cached:true,defaultValue:null},accumulatedChildrenOuterHeight:{_cached:true,defaultValue:null}},members:{_createLayoutImpl:function(){return this.getOrientation()==$[32]?new qx.ui.layout.impl.VerticalBoxLayoutImpl(this):new qx.ui.layout.impl.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+=qx.ui.layout.BoxLayout.STR_REVERSED}},_invalidateLayoutMode:function(){this._layoutMode=null},_applyOrientation:function(b,a){this._layoutHorizontal=b==$[41];this._layoutVertical=b==$[32];if(this._layoutImpl){this._layoutImpl.dispose();this._layoutImpl=null}if(b){this._layoutImpl=this._createLayoutImpl()}this._doLayoutOrder(b,a);this.addToQueueRuntime("orientation")},_applySpacing:function(b,a){this._doLayout();this.addToQueueRuntime("spacing")},_applyHorizontalChildrenAlign:function(b,a){this._doLayoutOrder();this.addToQueueRuntime("horizontalChildrenAlign")},_applyVerticalChildrenAlign:function(b,a){this._doLayoutOrder();this.addToQueueRuntime("verticalChildrenAlign")},_applyReverseChildrenOrder:function(b,a){this._doLayoutOrder();this.addToQueueRuntime("reverseChildrenOrder")},_applyStretchChildrenOrthogonalAxis:function(b,a){this.addToQueueRuntime("stretchChildrenOrthogonalAxis")},_applyUseAdvancedFlexAllocation:function(b,a){this.addToQueueRuntime("useAdvancedFlexAllocation")},_doLayoutOrder:function(){this._invalidateLayoutMode();this._doLayout()},_doLayout:function(){this._invalidatePreferredInnerDimensions();this._invalidateAccumulatedChildrenOuterWidth();this._invalidateAccumulatedChildrenOuterHeight()},_computeAccumulatedChildrenOuterWidth:function(){var c=this.getVisibleChildren(),e,a=-1,d=this.getSpacing(),b=-d;while(e=c[++a]){b+=e.getOuterWidth()+d}return b},_computeAccumulatedChildrenOuterHeight:function(){var c=this.getVisibleChildren(),e,a=-1,d=this.getSpacing(),b=-d;while(e=c[++a]){b+=e.getOuterHeight()+d}return b},_recomputeChildrenStretchingX:function(){var b=this.getVisibleChildren(),c,a=-1;while(c=b[++a]){if(c._recomputeStretchingX()&&c._recomputeBoxWidth()){c._recomputeOuterWidth()}}},_recomputeChildrenStretchingY:function(){var b=this.getVisibleChildren(),c,a=-1;while(c=b[++a]){if(c._recomputeStretchingY()&&c._recomputeBoxHeight()){c._recomputeOuterHeight()}}}}});
qx.Class.define("qx.ui.layout.impl.VerticalBoxLayoutImpl",{extend:qx.ui.layout.impl.LayoutImpl,properties:{enableFlexSupport:{check:$[2],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;q<g;q++){m=i[q];if(m._computedHeightTypeFlex){e.push(m);if(j._computedHeightTypeAuto){n+=m.getPreferredBoxHeight()}}else{n+=m.getOuterHeight()}}var d=s-n;var c=e.length;var f=0;for(q=0;q<c;q++){f+=e[q]._computedHeightParsed}var h=d/f;if(!j.getUseAdvancedFlexAllocation()){for(q=0;q<c;q++){m=e[q];m._computedHeightFlexValue=Math.round(m._computedHeightParsed*h);n+=m._computedHeightFlexValue}}else{var b=0;var k,c,a,p,l,r;for(q=0;q<c;q++){m=e[q];r=m._computedHeightFlexValue=m._computedHeightParsed*h;b+=r-qx.lang.Number.limit(r,m.getMinHeightValue(),m.getMaxHeightValue())}b=Math.round(b);if(b==0){for(q=0;q<c;q++){m=e[q];m._computedHeightFlexValue=Math.round(m._computedHeightFlexValue);n+=m._computedHeightFlexValue}}else{var o=b>0;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{qx.lang.Array.removeAt(e,q);m._computedHeightFlexValue=Math.round(m._computedHeightFlexValue);n+=Math.round(m._computedHeightFlexValue+a)}}else{a=qx.util.Validation.isValidNumber(m.getMinHeightValue())?m._computedHeightFlexValue-m.getMinHeightValue():m._computedHeightFlexValue;if(a>0){m._allocationLoops=Math.floor(a/m._computedHeightParsed)}else{qx.lang.Array.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<c;q++){k=Math.min(k,e[q]._allocationLoops);l+=e[q]._computedHeightParsed}p=Math.min(l*k,b);b-=p;for(q=c-1;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;qx.lang.Array.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 qx.ui.layout.impl.LayoutImpl.prototype.computeChildrenNeededHeight_sum.call(this)+((a.getVisibleChildrenLength()-1)*a.getSpacing())},updateSelfOnChildOuterHeightChange:function(a){this.getWidget()._invalidateAccumulatedChildrenOuterHeight()},updateChildOnInnerWidthChange:function(c){var a=c._recomputePercentX();var b=c._recomputeStretchingX();if((c.getHorizontalAlign()||this.getWidget().getHorizontalChildrenAlign())==$[30]){c.addToLayoutChanges($[129])}return a||b},updateChildOnInnerHeightChange:function(c){if(this.getWidget().getVerticalChildrenAlign()==$[46]){c.addToLayoutChanges($[130])}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($[130])}if(a.horizontalChildrenAlign){c._addChildrenToLayoutQueue($[129])}if(a.stretchChildrenOrthogonalAxis){d=true}if(d){c._recomputeChildrenStretchingX();c._addChildrenToLayoutQueue($[28])}if(b){c._recomputeChildrenStretchingY();c._addChildrenToLayoutQueue($[23])}return true},updateChildrenOnRemoveChild:function(g,c){var b=this.getWidget(),e=b.getVisibleChildren(),a=e.length,f,d=-1;if(this.getEnableFlexSupport()){for(var d=0;d<a;d++){f=e[d];if(f.getHasFlexY()){c=Math.min(c,d);break}}d=-1}switch(b.getLayoutMode()){case $[31]:case $[212]:while((f=e[++d])&&d<c){f.addToLayoutChanges($[130])}break;case $[46]:case $[226]:while(f=e[++d]){f.addToLayoutChanges($[130])}break;default:d+=c;while(f=e[++d]){f.addToLayoutChanges($[130])}}},updateChildrenOnMoveChild:function(g,b,e){var a=this.getWidget().getVisibleChildren();var f=Math.min(b,e);var d=Math.max(b,e)+1;d=Math.min(a.length,d);for(var c=f;c<d;c++){a[c].addToLayoutChanges($[130])}},flushChildrenQueue:function(d){var b=this.getWidget(),f=b.getVisibleChildren(),a=f.length,h,e;if(this.getEnableFlexSupport()){this.invalidateChildrenFlexHeight();for(e=0;e<a;e++){h=f[e];if(h.getHasFlexY()){h._computedHeightValue=null;if(h._recomputeBoxHeight()){h._recomputeOuterHeight();h._recomputeInnerHeight()}d[h.toHashCode()]=h;h._layoutChanges.height=true}}}switch(b.getLayoutMode()){case $[31]:case $[212]:for(var e=a-1;e>=0&&!d[f[e].toHashCode()];e--){}for(var c=0;c<=e;c++){b._layoutChild(h=f[c])}break;case $[46]:case $[226]:e=-1;while(h=f[++e]){b._layoutChild(h)}break;default:e=-1;var g=false;while(h=f[++e]){if(g||d[h.toHashCode()]){b._layoutChild(h);g=true}}}},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:qx.core.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":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:qx.core.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":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(e,a){var d=this.getWidget();if(d.getFirstVisibleChild()==e){switch(d.getLayoutMode()){case $[31]:case $[212]:var b=d.getPaddingBottom()+d.getAccumulatedChildrenOuterHeight()-e.getOuterHeight();break;case $[46]:case $[226]:var b=d.getPaddingTop()+Math.round((d.getInnerHeight()-d.getAccumulatedChildrenOuterHeight())/2);break;default:var b=d.getPaddingTop()}}else{var c=e.getPreviousVisibleSibling();switch(d.getLayoutMode()){case $[31]:case $[212]:var b=c._cachedLocationVertical-e.getOuterHeight()-d.getSpacing();break;default:var b=c._cachedLocationVertical+c.getOuterHeight()+d.getSpacing()}}e._cachedLocationVertical=b;switch(this.getWidget().getLayoutMode()){case $[31]:case $[438]:case $[226]:b+=!e._computedBottomTypeNull?e.getBottomValue():!e._computedTopTypeNull?-(e.getTopValue()):0;e._resetRuntimeTop();e._renderRuntimeBottom(b);break;default:b+=!e._computedTopTypeNull?e.getTopValue():!e._computedBottomTypeNull?-(e.getBottomValue()):0;e._resetRuntimeBottom();e._renderRuntimeTop(b)}},layoutChild_locationX:function(e,a){var c=this.getWidget();if(org.eclipse.rwt.Client.isGecko()){if(e.getAllowStretchX()&&c.getStretchChildrenOrthogonalAxis()&&e._computedWidthTypeNull){e._renderRuntimeLeft(c.getPaddingLeft()||0);e._renderRuntimeRight(c.getPaddingRight()||0);return}}var d=e.getHorizontalAlign()||c.getHorizontalChildrenAlign();var b=d==$[30]?Math.round((c.getInnerWidth()-e.getOuterWidth())/2):0;if(d==$[15]){b+=c.getPaddingRight();if(!e._computedRightTypeNull){b+=e.getRightValue()}else{if(!e._computedLeftTypeNull){b-=e.getLeftValue()}}e._resetRuntimeLeft();e._renderRuntimeRight(b)}else{b+=c.getPaddingLeft();if(!e._computedLeftTypeNull){b+=e.getLeftValue()}else{if(!e._computedRightTypeNull){b-=e.getRightValue()}}e._resetRuntimeRight();e._renderRuntimeLeft(b)}}}});
qx.Class.define("qx.util.Validation",{statics:{isValidNumber:function(a){return typeof a===$[62]&&!isNaN(a)},isValidString:function(a){return typeof a===$[9]&&a!==""}}});
qx.Class.define("qx.ui.layout.impl.HorizontalBoxLayoutImpl",{extend:qx.ui.layout.impl.LayoutImpl,properties:{enableFlexSupport:{check:$[2],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;s<g;s++){n=i[s];if(n._computedWidthTypeFlex){e.push(n);if(j._computedWidthTypeAuto){o+=n.getPreferredBoxWidth()}}else{o+=n.getOuterWidth()}}var l=d-o;var c=e.length;var f=0;for(s=0;s<c;s++){f+=e[s]._computedWidthParsed}var h=l/f;if(!j.getUseAdvancedFlexAllocation()){for(s=0;s<c;s++){n=e[s];n._computedWidthFlexValue=Math.round(n._computedWidthParsed*h);o+=n._computedWidthFlexValue}}else{var b=0;var k,c,a,r,m,p;for(s=0;s<c;s++){n=e[s];p=n._computedWidthFlexValue=n._computedWidthParsed*h;b+=p-qx.lang.Number.limit(p,n.getMinWidthValue(),n.getMaxWidthValue())}b=Math.round(b);if(b==0){for(s=0;s<c;s++){n=e[s];n._computedWidthFlexValue=Math.round(n._computedWidthFlexValue);o+=n._computedWidthFlexValue}}else{var q=b>0;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{qx.lang.Array.removeAt(e,s);n._computedWidthFlexValue=Math.round(n._computedWidthFlexValue);o+=Math.round(n._computedWidthFlexValue+a)}}else{a=qx.util.Validation.isValidNumber(n.getMinWidthValue())?n._computedWidthFlexValue-n.getMinWidthValue():n._computedWidthFlexValue;if(a>0){n._allocationLoops=Math.floor(a/n._computedWidthParsed)}else{qx.lang.Array.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<c;s++){k=Math.min(k,e[s]._allocationLoops);m+=e[s]._computedWidthParsed}r=Math.min(m*k,b);b-=r;for(s=c-1;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;qx.lang.Array.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 qx.ui.layout.impl.LayoutImpl.prototype.computeChildrenNeededWidth_sum.call(this)+((a.getVisibleChildrenLength()-1)*a.getSpacing())},updateSelfOnChildOuterWidthChange:function(a){this.getWidget()._invalidateAccumulatedChildrenOuterWidth()},updateChildOnInnerWidthChange:function(c){if(this.getWidget().getHorizontalChildrenAlign()==$[30]){c.addToLayoutChanges($[129])}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())==$[46]){c.addToLayoutChanges($[130])}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($[129])}if(a.verticalChildrenAlign){c._addChildrenToLayoutQueue($[130])}if(a.stretchChildrenOrthogonalAxis){b=true}if(d){c._recomputeChildrenStretchingX();c._addChildrenToLayoutQueue($[28])}if(b){c._recomputeChildrenStretchingY();c._addChildrenToLayoutQueue($[23])}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<a;d++){f=e[d];if(f.getHasFlexX()){c=Math.min(c,d);break}}d=-1}switch(b.getLayoutMode()){case $[15]:case $[207]:while((f=e[++d])&&d<c){f.addToLayoutChanges($[129])}break;case $[30]:case $[223]:while(f=e[++d]){f.addToLayoutChanges($[129])}break;default:d+=c;while(f=e[++d]){f.addToLayoutChanges($[129])}}},updateChildrenOnMoveChild:function(g,b,e){var a=this.getWidget().getVisibleChildren();var f=Math.min(b,e);var d=Math.max(b,e)+1;d=Math.min(a.length,d);for(var c=f;c<d;c++){a[c].addToLayoutChanges($[129])}},flushChildrenQueue:function(d){var b=this.getWidget(),f=b.getVisibleChildren(),a=f.length,h,e;if(this.getEnableFlexSupport()){this.invalidateChildrenFlexWidth();for(e=0;e<a;e++){h=f[e];if(h.getHasFlexX()){h._computedWidthValue=null;if(h._recomputeBoxWidth()){h._recomputeOuterWidth();h._recomputeInnerWidth()}d[h.toHashCode()]=h;h._layoutChanges.width=true}}}switch(b.getLayoutMode()){case $[15]:case $[207]:for(var e=a-1;e>=0&&!d[f[e].toHashCode()];e--){}for(var c=0;c<=e;c++){b._layoutChild(h=f[c])}break;case $[30]:case $[223]:e=-1;while(h=f[++e]){b._layoutChild(h)}break;default:e=-1;var g=false;while(h=f[++e]){if(g||d[h.toHashCode()]){b._layoutChild(h);g=true}}}},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:qx.core.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":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:qx.core.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":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(e,a){var d=this.getWidget();if(d.getFirstVisibleChild()==e){switch(d.getLayoutMode()){case $[15]:case $[207]:var b=d.getPaddingRight()+d.getAccumulatedChildrenOuterWidth()-e.getOuterWidth();break;case $[30]:case $[223]:var b=d.getPaddingLeft()+Math.round((d.getInnerWidth()-d.getAccumulatedChildrenOuterWidth())/2);break;default:var b=d.getPaddingLeft()}}else{var c=e.getPreviousVisibleSibling();switch(d.getLayoutMode()){case $[15]:case $[207]:var b=c._cachedLocationHorizontal-e.getOuterWidth()-d.getSpacing();break;default:var b=c._cachedLocationHorizontal+c.getOuterWidth()+d.getSpacing()}}e._cachedLocationHorizontal=b;switch(d.getLayoutMode()){case $[15]:case $[420]:case $[223]:b+=!e._computedRightTypeNull?e.getRightValue():!e._computedLeftTypeNull?-(e.getLeftValue()):0;e._resetRuntimeLeft();e._renderRuntimeRight(b);break;default:b+=!e._computedLeftTypeNull?e.getLeftValue():!e._computedRightTypeNull?-(e.getRightValue()):0;e._resetRuntimeRight();e._renderRuntimeLeft(b)}},layoutChild_locationY:function(e,a){var c=this.getWidget();if(org.eclipse.rwt.Client.isGecko()){if(e.getAllowStretchY()&&c.getStretchChildrenOrthogonalAxis()&&e._computedHeightTypeNull){e._renderRuntimeTop(c.getPaddingTop()||0);e._renderRuntimeBottom(c.getPaddingBottom()||0);return}}var d=e.getVerticalAlign()||c.getVerticalChildrenAlign();var b=d==$[46]?Math.round((c.getInnerHeight()-e.getOuterHeight())/2):0;if(d==$[31]){b+=c.getPaddingBottom();if(!e._computedBottomTypeNull){b+=e.getBottomValue()}else{if(!e._computedTopTypeNull){b-=e.getTopValue()}}e._resetRuntimeTop();e._renderRuntimeBottom(b)}else{b+=c.getPaddingTop();if(!e._computedTopTypeNull){b+=e.getTopValue()}else{if(!e._computedBottomTypeNull){b-=e.getBottomValue()}}e._resetRuntimeBottom();e._renderRuntimeTop(b)}}}});
qx.Class.define("qx.ui.basic.Atom",{extend:qx.ui.layout.BoxLayout,construct:function(c,e,d,a,b){arguments.callee.base.call(this);this.getLayoutImpl().setEnableFlexSupport(false);if(c!==undefined){this.setLabel(c)}if(qx.Class.isDefined($[363])&&b!=null&&d!=null&&a!=null&&qx.ui.embed.Flash.getPlayerVersion().getMajor()>0){this._flashMode=true;this.setIcon(b)}else{if(e!=null){this.setIcon(e)}}if(e||b){if(d!=null){this.setIconWidth(d)}if(a!=null){this.setIconHeight(a)}}this.initWidth();this.initHeight()},properties:{orientation:{refine:true,init:$[41]},allowStretchX:{refine:true,init:false},allowStretchY:{refine:true,init:false},appearance:{refine:true,init:"atom"},stretchChildrenOrthogonalAxis:{refine:true,init:false},width:{refine:true,init:"auto"},height:{refine:true,init:"auto"},horizontalChildrenAlign:{refine:true,init:$[30]},verticalChildrenAlign:{refine:true,init:$[46]},spacing:{refine:true,init:4},label:{apply:"_applyLabel",nullable:true,dispose:true,check:"Label"},icon:{check:$[21],apply:$[322],nullable:true,themeable:true},disabledIcon:{check:$[21],apply:"_applyDisabledIcon",nullable:true,themeable:true},show:{init:"both",check:["both",$[74],"icon","none"],themeable:true,nullable:true,inheritable:true,apply:"_applyShow",event:"changeShow"},iconPosition:{init:"left",check:["top",$[15],$[31],"left"],themeable:true,apply:"_applyIconPosition"},iconWidth:{check:$[14],themeable:true,apply:"_applyIconWidth",nullable:true},iconHeight:{check:$[14],themeable:true,apply:"_applyIconHeight",nullable:true}},members:{_flashMode:false,_labelObject:null,_iconObject:null,_createLabel:function(){var a=this._labelObject=new qx.ui.basic.Label(this.getLabel());a.setAnonymous(true);this.addAt(a,this._iconObject?1:0)},_createIcon:function(){if(this._flashMode&&qx.Class.isDefined($[363])){var b=this._iconObject=new qx.ui.embed.Flash(this.getIcon())}else{var b=this._iconObject=new qx.ui.basic.Image()}b.setAnonymous(true);var c=this.getIconWidth();if(c!==null){this._iconObject.setWidth(c)}var a=this.getIconWidth();if(a!==null){this._iconObject.setHeight(a)}this._updateIcon();this.addAt(b,0)},_updateIcon:function(){var a=this.getIcon();if(this._iconObject&&this.getIcon&&this.getDisabledIcon){var b=this.getDisabledIcon();if(b){if(this.getEnabled()){a?this._iconObject.setSource(a):this._iconObject.resetSource()}else{b?this._iconObject.setSource(b):this._iconObject.resetSource()}this._iconObject.setEnabled(true)}else{a?this._iconObject.setSource(a):this._iconObject.resetSource();this._iconObject.resetEnabled()}}},getLabelObject:function(){return this._labelObject},getIconObject:function(){return this._iconObject},_applyIconPosition:function(b,a){switch(b){case"top":case $[31]:this.setOrientation($[32]);this.setReverseChildrenOrder(b==$[31]);break;default:this.setOrientation($[41]);this.setReverseChildrenOrder(b==$[15]);break}},_applyShow:function(b,a){this._handleIcon();this._handleLabel()},_applyLabel:function(b,a){if(this._labelObject){b?this._labelObject.setText(b):this._labelObject.resetText()}this._handleLabel()},_applyIcon:function(b,a){this._updateIcon();this._handleIcon()},_applyDisabledIcon:function(b,a){this._updateIcon();this._handleIcon()},_applyIconWidth:function(b,a){if(this._iconObject){this._iconObject.setWidth(b)}},_applyIconHeight:function(b,a){if(this._iconObject){this._iconObject.setHeight(b)}},_iconIsVisible:false,_labelIsVisible:false,_handleLabel:function(){switch(this.getShow()){case $[74]:case"both":case $[182]:this._labelIsVisible=!!this.getLabel();break;default:this._labelIsVisible=false}if(this._labelIsVisible){this._labelObject?this._labelObject.setDisplay(true):this._createLabel()}else{if(this._labelObject){this._labelObject.setDisplay(false)}}},_handleIcon:function(){switch(this.getShow()){case"icon":case"both":case $[182]:this._iconIsVisible=!!this.getIcon();break;default:this._iconIsVisible=false}if(this._iconIsVisible){this._iconObject?this._iconObject.setDisplay(true):this._createIcon()}else{if(this._iconObject){this._iconObject.setDisplay(false)}}}},destruct:function(){this._disposeObjects("_iconObject","_labelObject")}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Label",{factory:function(b){var c=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(b.style);c.MARKUP_ENABLED=b.markupEnabled;var a=new org.eclipse.rwt.widgets.Label(c);org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["text",$[18],$[293],"appearance","leftMargin","topMargin","rightMargin","bottomMargin",$[134]]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({backgroundGradient:org.eclipse.rwt.protocol.AdapterUtil.getBackgroundGradientHandler()}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("qx.ui.basic.Label",{extend:qx.ui.basic.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:$[74]},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:$[2],init:false,nullable:true,apply:$[350]},textAlign:{check:["left",$[30],$[15],"justify"],nullable:true,themeable:true,apply:$[353]},textOverflow:{check:$[2],init:true},mode:{check:["html","text","auto"],init:"auto"}},members:{_content:"",_applyTextAlign:function(b,a){b===null?this.removeStyleProperty($[198]):this.setStyleProperty($[198],b)},_applyFont:function(b,a){this._styleFont(b)},_styleFont:function(a){this._invalidatePreferredInnerDimensions();a?a.render(this):qx.ui.core.Font.reset(this)},_applyTextColor:function(b,a){this._styleTextColor(b)},_styleTextColor:function(a){a?this.setStyleProperty($[65],a):this.removeStyleProperty($[65])},_applyWrap:function(b,a){b==null?this.removeStyleProperty("whiteSpace"):this.setStyleProperty("whiteSpace",b?$[61]:"nowrap")},_applyText:function(b,a){this._syncText(this.getText())},_syncText:function(a){this._content=a;if(this._isCreated){this._renderContent()}},_computeObjectNeededDimensions:function(){var c=this._styleProperties;var a=org.eclipse.swt.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()<this.getPreferredInnerWidth()){c.overflow=$[13]}else{c.overflow=""}}a.innerHTML=b}}}});
qx.Class.define("qx.ui.basic.Image",{extend:qx.ui.basic.Terminator,construct:function(c,b,a){arguments.callee.base.call(this);this._blank=qx.io.Alias.getInstance().resolve($[409]);if(c!=null){this.setSource(c)}if(b!=null){this.setWidth(b)}else{this.initWidth()}if(a!=null){this.setHeight(a)}else{this.initHeight()}this.initSelectable()},events:{error:$[3]},properties:{allowStretchX:{refine:true,init:false},allowStretchY:{refine:true,init:false},selectable:{refine:true,init:false},width:{refine:true,init:"auto"},height:{refine:true,init:"auto"},appearance:{refine:true,init:$[18]},source:{check:$[21],apply:$[389],event:$[369],nullable:true,themeable:true},preloader:{check:$[465],apply:"_applyPreloader",nullable:true},loaded:{check:$[2],init:false,apply:"_applyLoaded"},resizeToInner:{check:$[2],init:false}},members:{_onload:function(){this.setLoaded(true)},_beforeAppear:function(){var a=this.getSource();if(a){qx.io.image.Manager.getInstance().show(a);this._registeredAsVisible=true}return arguments.callee.base.call(this)},_beforeDisappear:function(){var a=this.getSource();if(a&&this._registeredAsVisible){qx.io.image.Manager.getInstance().hide(a);delete this._registeredAsVisible}return arguments.callee.base.call(this)},_applySource:function(c,a){var b=qx.io.image.Manager.getInstance();if(a){b.remove(a);if(this._registeredAsVisible){b.hide(a);delete this._registeredAsVisible}}if(c){b.add(c);if(this.isSeeable()){this._registeredAsVisible=true;b.show(c)}}if(this.isCreated()){this._connect()}},_connect:function(){var a=qx.io.Alias.getInstance();a.connect(this._syncSource,this,this.getSource())},_syncSource:function(b){if(b===null){this.setPreloader(null)}else{var a=qx.io.image.PreloaderManager.getInstance().create(b);this.setPreloader(a)}},_applyPreloader:function(b,a){if(a){a.removeEventListener("load",this._onload,this)}if(b){this.setLoaded(false);if(!b.isErroneous()&&b.isLoaded()){this.setLoaded(true)}else{b.addEventListener("load",this._onload,this)}}else{this.setLoaded(false)}},_applyLoaded:function(b,a){if(b&&this.isCreated()){this._renderContent()}else{if(!b){this._invalidatePreferredInnerWidth();this._invalidatePreferredInnerHeight()}}},_applyElement:function(c,a){if(c){if(!this._image){try{this._createImageNode();this._image.style.border="0 none";this._image.style.verticalAlign="top";this._image.alt="";this._image.title=""}catch(b){throw new Error("Failed while creating image #1 "+b)}this._imageNodeCreated()}c.appendChild(this._image)}arguments.callee.base.call(this,c,a);if(c&&this.getSource()){this._connect()}},_createImageNode:qx.core.Variant.select($[0],{webkit:function(){this._image=document.createElement("img")},"default":function(){this._image=new Image}}),_imageNodeCreated:qx.core.Variant.select($[0],{"gecko|opera|webkit":function(){this._styleEnabled()},"default":qx.lang.Function.returnTrue}),_postApply:function(){this._postApplyDimensions();this._updateContent()},_applyEnabled:function(b,a){if(this._image){this._styleEnabled()}return arguments.callee.base.call(this,b,a)},_updateContent:qx.core.Variant.select($[0],{mshtml:function(){var a=this._image;var b=this.getPreloader();var c=b&&b.isLoaded()?b.getSource():this._blank;if(b&&b.getIsPng()&&this.getEnabled()){a.src=this._blank;a.style.filter=$[391]+c+"',sizingMethod='scale')"}else{a.src=c;a.style.filter=this.getEnabled()?"":"Gray() Alpha(Opacity=30)"}},"default":function(){var a=this.getPreloader();var b=a&&a.isLoaded()?a.getSource():this._blank;this._image.src=b}}),_resetContent:qx.core.Variant.select($[0],{mshtml:function(){this._image.src=this._blank;this._image.style.filter=""},"default":function(){this._image.src=this._blank}}),_styleEnabled:qx.core.Variant.select($[0],{mshtml:function(){this._updateContent()},"default":function(){if(this._image){var b=this.getEnabled()===false?0.3:"";var a=this._image.style;a.opacity=a.KhtmlOpacity=a.MozOpacity=b}}}),_computePreferredInnerWidth:function(){var a=this.getPreloader();return a?a.getWidth():0},_computePreferredInnerHeight:function(){var a=this.getPreloader();return a?a.getHeight():0},_postApplyDimensions:qx.core.Variant.select($[0],{mshtml:function(){try{var b=this._image.style;if(this.getResizeToInner()){b.pixelWidth=this.getInnerWidth();b.pixelHeight=this.getInnerHeight()}else{b.pixelWidth=this.getPreferredInnerWidth();b.pixelHeight=this.getPreferredInnerHeight()}}catch(a){throw new Error($[357]+a)}},"default":function(){try{var b=this._image;if(this.getResizeToInner()){b.width=this.getInnerWidth();b.height=this.getInnerHeight()}else{b.width=this.getPreferredInnerWidth();b.height=this.getPreferredInnerHeight()}}catch(a){throw new Error($[357]+a)}}}),_changeInnerWidth:qx.core.Variant.select($[0],{mshtml:function(b,a){if(this.getResizeToInner()){this._image.style.pixelWidth=b}},"default":function(b,a){if(this.getResizeToInner()){this._image.width=b}}}),_changeInnerHeight:qx.core.Variant.select($[0],{mshtml:function(b,a){if(this.getResizeToInner()){this._image.style.pixelHeight=b}},"default":function(b,a){if(this.getResizeToInner()){this._image.height=b}}})},destruct:function(){if(this._image){this._image.style.filter=""}this._disposeFields("_image")}});
qx.Class.define("qx.io.image.PreloaderManager",{type:$[37],extend:qx.core.Object,construct:function(){arguments.callee.base.call(this);this._objects={}},members:{add:function(a){this._objects[a.getUri()]=a},remove:function(a){delete this._objects[a.getUri()]},has:function(a){return this._objects[a]!=null},get:function(a){return this._objects[a]},create:function(a){if(this._objects[a]){return this._objects[a]}return new qx.io.image.Preloader(a)}},destruct:function(){this._disposeFields("_objects")}});
qx.Class.define($[465],{extend:qx.core.Target,events:{load:$[3],error:$[3]},construct:function(a){if(qx.io.image.PreloaderManager.getInstance().has(a)){return qx.io.image.PreloaderManager.getInstance().get(a)}arguments.callee.base.call(this);this._element=new Image;this._element.onload=qx.lang.Function.bind(this.__onload,this);this._element.onerror=qx.lang.Function.bind(this.__onerror,this);this._source=a;this._element.src=a;this._checkPng();qx.io.image.PreloaderManager.getInstance().add(this)},members:{_source:null,_isLoaded:false,_isErroneous:false,getUri:function(){return this._source},getSource:function(){return this._source},isLoaded:function(){return this._isLoaded},isErroneous:function(){return this._isErroneous},_checkPng:qx.core.Variant.select($[0],{"default":qx.lang.Function.returnTrue,mshtml:function(){this._isPng=/\.png$/i.test(this._element.nameProp)}}),_isPng:false,getIsPng:function(){return this._isPng},getWidth:qx.core.Variant.select($[0],{gecko:function(){return this._element.naturalWidth},"default":function(){return this._element.width}}),getHeight:qx.core.Variant.select($[0],{gecko:function(){return this._element.naturalHeight},"default":function(){return this._element.height}}),__onload:function(){if(this._isLoaded||this._isErroneous){return}this._isLoaded=true;this._isErroneous=false;if(this.hasEventListeners("load")){this.dispatchEvent(new qx.event.type.Event("load"),true)}},__onerror:function(){if(this._isLoaded||this._isErroneous){return}this._isLoaded=false;this._isErroneous=true;if(this.hasEventListeners($[140])){this.dispatchEvent(new qx.event.type.Event($[140]),true)}}},destruct:function(){if(this._element){this._element.onload=this._element.onerror=null}this._disposeFields("_element","_isLoaded","_isErroneous","_isPng")}});
qx.Class.define("qx.constant.Layout",{statics:{ORIENTATION_HORIZONTAL:$[41],ORIENTATION_VERTICAL:$[32],ALIGN_LEFT:"left",ALIGN_LEFT_REVERSED:$[207],ALIGN_CENTER:$[30],ALIGN_CENTER_REVERSED:$[223],ALIGN_RIGHT:$[15],ALIGN_RIGHT_REVERSED:$[420],ALIGN_TOP:"top",ALIGN_TOP_REVERSED:$[212],ALIGN_MIDDLE:$[46],ALIGN_MIDDLE_REVERSED:$[226],ALIGN_BOTTOM:$[31],ALIGN_BOTTOM_REVERSED:$[438]}});
qx.Class.define("qx.constant.Style",{statics:{POSITION_ABSOLUTE:$[17],POSITION_RELATIVE:"relative",POSITION_STATIC:$[121],POSITION_FIXED:$[123],CURSOR_WAIT:"wait",CURSOR_PROGRESS:$[192],CURSOR_DEFAULT:$[66],CURSOR_HAND:$[133],OVERFLOW_AUTO:"auto",OVERFLOW_HIDDEN:$[13],OVERFLOW_BOTH:$[12],OVERFLOW_HORIZONTAL:$[86],OVERFLOW_VERTICAL:$[85],OVERFLOW_ELLIPSIS:"ellipsis",OVERFLOW_VISIBLE:$[209],OVERFLOW_MOZ_NONE:$[256],OVERFLOW_MOZ_HORIZONTAL:$[277],OVERFLOW_MOZ_VERTICAL:$[231],FOCUS_OUTLINE:"1px dotted invert",BORDER_SOLID:$[72],LABEL_MODE_HTML:"html",BUTTON_SHOW_ICON:"icon"}});
qx.Class.define($[461],{type:$[101],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this)},events:{created:$[3],configured:$[3],sending:$[3],receiving:$[3],completed:$[3],aborted:$[3],failed:$[3],timeout:$[3]},properties:{url:{check:$[21],nullable:true},method:{check:$[21],nullable:true},asynchronous:{check:$[2],nullable:true},data:{check:$[21],nullable:true},username:{check:$[21],nullable:true},password:{check:$[21],nullable:true},state:{check:[$[152],$[95],$[52],$[56],$[27],$[55],$[53],$[38]],init:$[152],event:$[328],apply:$[359]},requestHeaders:{check:$[106],nullable:true},parameters:{check:$[106],nullable:true},formFields:{check:$[106],nullable:true},responseType:{check:$[21],nullable:true},useBasicHttpAuth:{check:$[2],nullable:true}},members:{send:function(){throw new Error("send is abstract")},abort:function(){this.setState($[55])},timeout:function(){this.setState($[53])},failed:function(){this.setState($[38])},setRequestHeader:function(a,b){throw new Error("setRequestHeader is abstract")},getResponseHeader:function(a){throw new Error("getResponseHeader is abstract")},getResponseHeaders:function(){throw new Error("getResponseHeaders is abstract")},getStatusCode:function(){throw new Error("getStatusCode is abstract")},getStatusText:function(){throw new Error("getStatusText is abstract")},getResponseText:function(){throw new Error("getResponseText is abstract")},getResponseXml:function(){throw new Error("getResponseXml is abstract")},getFetchedLength:function(){throw new Error("getFetchedLength is abstract")},_applyState:function(b,a){switch(b){case $[152]:this.createDispatchEvent($[152]);break;case $[95]:this.createDispatchEvent($[95]);break;case $[52]:this.createDispatchEvent($[52]);break;case $[56]:this.createDispatchEvent($[56]);break;case $[27]:this.createDispatchEvent($[27]);break;case $[55]:this.createDispatchEvent($[55]);break;case $[38]:this.createDispatchEvent($[38]);break;case $[53]:this.createDispatchEvent($[53]);break}return true}}});
qx.Class.define("qx.ui.layout.HorizontalBoxLayout",{extend:qx.ui.layout.BoxLayout});
qx.Class.define("qx.ui.form.Spinner",{extend:qx.ui.layout.HorizontalBoxLayout,construct:function(c,b,a){arguments.callee.base.call(this);if(org.eclipse.rwt.Client.isMshtml()){this.setStyleProperty($[165],"0px")}this._textfield=new org.eclipse.rwt.widgets.BasicText;this._textfield.setBorder(null);this._textfield.setWidth("1*");this._textfield.setAllowStretchY(true);this._textfield.setHeight(null);this._textfield.setVerticalAlign($[46]);this._textfield.setAppearance("spinner-text-field");this.add(this._textfield);this._buttonlayout=new qx.ui.layout.VerticalBoxLayout;this._buttonlayout.setWidth("auto");this.add(this._buttonlayout);this._upbutton=new qx.ui.form.Button;this._upbutton.setAppearance("spinner-button-up");this._upbutton.setTabIndex(null);this._upbutton.setHeight("1*");this._buttonlayout.add(this._upbutton);this._downbutton=new qx.ui.form.Button;this._downbutton.setAppearance("spinner-button-down");this._downbutton.setTabIndex(null);this._downbutton.setHeight("1*");this._buttonlayout.add(this._downbutton);this._timer=new qx.client.Timer(this.getInterval());this.setManager(new qx.util.range.Range());this.initWrap();this.addEventListener($[4],this._onkeypress,this);this.addEventListener($[10],this._onkeydown,this);this.addEventListener($[40],this._onkeyup,this);this.addEventListener($[47],this._onmousewheel,this);this._textfield.addEventListener($[109],this._ontextchange,this);this._textfield.addEventListener($[89],this._oninput,this);this._textfield.addEventListener("blur",this._onblur,this);this._upbutton.addEventListener($[1],this._onmousedown,this);this._downbutton.addEventListener($[1],this._onmousedown,this);this._timer.addEventListener($[26],this._oninterval,this);if(c!=null){this.setMin(c)}if(a!=null){this.setMax(a)}if(b!=null){this.setValue(b)}this._checkValue=this.__checkValue;this.initWidth();this.initHeight();this._last_value=""},events:{change:$[48]},properties:{appearance:{refine:true,init:"spinner"},width:{refine:true,init:60},height:{refine:true,init:22},incrementAmount:{check:$[59],init:1,apply:"_applyIncrementAmount"},wheelIncrementAmount:{check:$[59],init:1},pageIncrementAmount:{check:$[59],init:10},interval:{check:$[14],init:100},firstInterval:{check:$[14],init:500},minTimer:{check:$[14],init:20},timerDecrease:{check:$[14],init:2},amountGrowth:{check:$[59],init:1.01},wrap:{check:$[2],init:false,apply:$[350]},editable:{check:$[2],init:true,apply:"_applyEditable"},manager:{check:$[402],apply:$[504],dispose:true},checkValueFunction:{apply:"_applyCheckValueFunction"},selectTextOnInteract:{check:$[2],init:true}},members:{_applyIncrementAmount:function(b,a){this._computedIncrementAmount=b},_applyEditable:function(b,a){if(this._textfield){this._textfield.setReadOnly(!b)}},_applyWrap:function(b,a){this.getManager().setWrap(b);this._onchange()},_applyManager:function(b,a){if(a){a.removeEventListener($[67],this._onchange,this)}if(b){b.addEventListener($[67],this._onchange,this)}this._onchange()},_applyCheckValueFunction:function(b,a){this._checkValue=b},_computePreferredInnerWidth:function(){return 50},_computePreferredInnerHeight:function(){return 14},_onkeypress:function(b){var a=b.getKeyIdentifier();if(a==$[54]&&!b.isAltPressed()){this._checkValue(true,false);if(this.getSelectTextOnInteract()){this._textfield.selectAll()}}else{switch(a){case"Up":case"Down":case"Left":case $[39]:case"Shift":case $[239]:case"Alt":case $[103]:case"Delete":case $[311]:case"Insert":case"Home":case"End":case $[42]:case $[43]:case"NumLock":case"Tab":break;default:if((a>="0"&&a<="9")||(a=="-")){return}if(b.getModifiers()==0){b.preventDefault()}}}},_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 $[42]:case $[43]:this._intervalIncrease=a==$[42];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 $[42]:case $[43]: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($[11]);a.addEventListener($[5],this._onmouseup,this);a.addEventListener($[8],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($[11]);a.removeEventListener($[5],this._onmouseup,this);a.removeEventListener($[8],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)}this._textfield.selectAll();b.preventDefault();b.stopPropagation()},_ontextchange:function(a){this._last_value=a.getOldValue()},_oninput:function(a){this._checkValue(true,true)},_onchange:function(b){var a=this.getManager().getValue();this._textfield.setValue(String(a));if(a==this.getMin()&&!this.getWrap()){this._downbutton.removeState($[11]);this._downbutton.setEnabled(false);this._timer.stop()}else{this._downbutton.resetEnabled()}if(a==this.getMax()&&!this.getWrap()){this._upbutton.removeState($[11]);this._upbutton.setEnabled(false);this._timer.stop()}else{this._upbutton.resetEnabled()}this.createDispatchDataEvent($[67],a)},_onblur:function(a){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(b){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){return}case false:if(this.getValue()==this.getMin()&&!a){return}}this._timer.restartWith(this.getInterval())},__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")}});
qx.Class.define($[434],{extend:qx.ui.basic.Terminator,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setValue(a)}this.initHideFocus();this.initWidth();this.initHeight();this.initTabIndex();this._selectionStart=0;this._selectionLength=0;this.__oninput=qx.lang.Function.bindEvent(this._oninputDom,this);this.addEventListener("blur",this._onblur);this.addEventListener($[10],this._onkeydown);this.addEventListener($[4],this._onkeypress);this.addEventListener($[40],this._onkeyup,this);this.addEventListener($[1],this._onMouseDownUp,this);this.addEventListener($[5],this._onMouseDownUp,this);this._updateLineHeight();this._typed=null;this._selectionNeedsUpdate=false;this._applyBrowserFixes();this._inputOverflow=$[13]},destruct:function(){if(this._inputElement!=null){if(org.eclipse.rwt.Client.isMshtml()){this._inputElement.onpropertychange=null}else{this._inputElement.removeEventListener($[89],this.__oninput,false)}}this._inputElement=null;this.__font=null;if(this._checkTimer){this._checkTimer.dispose();this._checkTimer=null}},events:{input:$[48]},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:$[109],apply:"_applyValue",dispose:true},textAlign:{check:["left",$[30],$[15],"justify"],nullable:true,themeable:true,apply:$[353]},maxLength:{check:$[14],apply:"_applyMaxLength",nullable:true},readOnly:{check:$[2],apply:"_applyReadOnly",init:false,event:"changeReadOnly"}},members:{_LINE_HEIGT_FACTOR:1.2,_inputTag:$[89],_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._inputElement!=null){a=this._inputElement.value}else{a=this.getValue()}return a},getInputElement:function(){return this._inputElement||null},_renderSelection:function(){if(this.isCreated()&&this.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===$[7]){b=0}if(typeof a===$[7]){a=0}if(this._selectionStart!==b||this._selectionLength!==a){this._handleSelectionChange(b,a)}}},_handleSelectionChange:function(b,a){this._selectionStart=b;this._selectionLength=a},_setSelectionStart:qx.core.Variant.select($[0],{mshtml:function(d){this._visualPropertyCheck();var c=this._inputElement.value;var b=0;while(b<d){b=c.indexOf("\r\n",b);if(b===-1){break}d--;b++}var a=this._inputElement.createTextRange();a.collapse();a.move("character",d);a.select()},gecko:function(b){this._visualPropertyCheck();try{this._inputElement.selectionStart=b}catch(a){}},"default":function(a){this._visualPropertyCheck();if(this._inputElement.selectionStart!==a){this._inputElement.selectionStart=a}}}),_getSelectionStart:qx.core.Variant.select($[0],{mshtml:function(){this._visualPropertyCheck();var d=window.document.selection.createRange();if(!this._inputElement.contains(d.parentElement())){return -1}var b=this._inputElement.createTextRange();var a=b.duplicate();a.moveToBookmark(d.getBookmark());b.setEndPoint("EndToStart",a);var c=d.text.replace(/[\r\n]/g,".");var e=this._inputElement.value.replace(/[\r\n]/g,".");return e.indexOf(c,b.text.length)},gecko:function(){this._visualPropertyCheck();var c=this._inputElement;var a;try{if(this.isValidString(c.value)){a=c.selectionStart}else{a=0}}catch(b){a=0}return a},"default":function(){this._visualPropertyCheck();return this._inputElement.selectionStart}}),_setSelectionLength:qx.core.Variant.select($[0],{mshtml:function(b){this._visualPropertyCheck();var a=window.document.selection.createRange();if(!this._inputElement.contains(a.parentElement())){return}a.collapse();a.moveEnd("character",b);a.select()},gecko:function(c){this._visualPropertyCheck();var b=this._inputElement;try{if(this.isValidString(b.value)){b.selectionEnd=b.selectionStart+c}}catch(a){}},"default":function(c){this._visualPropertyCheck();var b=this._inputElement;if(this.isValidString(b.value)){var a=b.selectionStart+c;if(b.selectionEnd!=a){b.selectionEnd=b.selectionStart+c}}}}),_getSelectionLength:qx.core.Variant.select($[0],{mshtml:function(){this._visualPropertyCheck();var a=window.document.selection.createRange();if(!this._inputElement.contains(a.parentElement())){return 0}return a.text.length},gecko:function(){this._visualPropertyCheck();var b=this._inputElement;try{return b.selectionEnd-b.selectionStart}catch(a){}},"default":function(){this._visualPropertyCheck();var a=this._inputElement;return a.selectionEnd-a.selectionStart}}),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(c,b){arguments.callee.base.call(this,c,b);if(c){this._inputElement=document.createElement(this._inputTag);if(this._inputType){this._inputElement.type=this._inputType}this._inputElement.autoComplete="off";this._inputElement.setAttribute("autoComplete","off");this._inputElement.disabled=this.getEnabled()===false;this._inputElement.readOnly=this.getReadOnly();if(org.eclipse.rwt.Client.isMshtml()){if(this.getValue()!=null&&this.getValue()!==""){this._inputElement.value=this.getValue()}else{this._inputElement.value=" "}}else{this._inputElement.value=this.getValue()!=null?this.getValue().toString():""}if(this.getMaxLength()!=null){this._inputElement.maxLength=this.getMaxLength()}var a=this._inputElement.style;a.padding=0;a.margin=0;a.border="0 none";a.background=$[82];a.overflow=this._inputOverflow;a.outline="none";a.resize="none";a.WebkitAppearance="none";a.MozAppearance="none";this._renderFont();this._renderTextColor();this._renderTextAlign();this._renderCursor();this._renderTextShadow();this._textInit();this._getTargetNode().appendChild(this._inputElement);this._updateLineHeight()}},_textInit:qx.core.Variant.select($[0],{"default":function(){this._inputElement.style.margin="1px 0 1px -1px";this._inputElement.addEventListener($[89],this.__oninput,false);this._applyBrowserFixesOnCreate()},mshtml:function(){this._inputElement.onpropertychange=this.__oninput}}),_postApply:function(){this._syncFieldWidth();this._syncFieldHeight()},_changeInnerWidth:function(b,a){this._syncFieldWidth()},_changeInnerHeight:function(b,a){this._syncFieldHeight();this._centerFieldVertically()},_syncFieldWidth:function(){this._inputElement.style.width=this.getInnerWidth()+"px"},_syncFieldHeight:function(){if(this._inputTag!==$[89]){this._inputElement.style.height=Math.max(0,this.getInnerHeight()-2)+"px"}},_applyCursor:function(b,a){if(this._inputElement!=null){this._renderCursor()}},_renderCursor:function(){var a=this._inputElement.style;var b=this.getCursor();if(b){if(b===$[133]&&org.eclipse.rwt.Client.isMshtml()){a.cursor="hand"}else{a.cursor=b}}else{a.cursor=""}},_applyTextAlign:function(b,a){if(this._inputElement){this._renderTextAlign()}},_renderTextAlign:function(){this._inputElement.style.textAlign=this.getTextAlign()||""},_applyEnabled:function(b,a){if(this._inputElement!=null){this._inputElement.disabled=b===false}return arguments.callee.base.call(this,b,a)},_applyValue:function(b,a){this._renderValue();this._detectSelectionChange()},_renderValue:function(){this._inValueProperty=true;var a=this.getValue();if(this._inputElement!=null){if(a===null){a=""}if(this._inputElement.value!==a){this._inputElement.value=a}}delete this._inValueProperty},_applyMaxLength:function(b,a){if(this._inputElement){this._inputElement.maxLength=b==null?"":b}},_applyReadOnly:function(b,a){if(this._inputElement){this._inputElement.readOnly=b}if(b){this.addState($[300])}else{this.removeState($[300])}},_applyTextColor:function(b,a){this._styleTextColor(b)},_styleTextColor:function(a){this.__textColor=a;this._renderTextColor()},_renderTextColor:function(){if(this._inputElement!=null){this._inputElement.style.color=this.__textColor||""}},_applyFont:function(b,a){this._styleFont(b);this._updateLineHeight()},_styleFont:function(a){this.__font=a;this._renderFont()},_renderFont:function(){if(this._inputElement!=null){if(this.__font!=null){this.__font.renderElement(this._inputElement)}else{qx.ui.core.Font.resetElement(this._inputElement)}}},_updateLineHeight:function(){if(this._inputElement!=null){var b=this.getFont();var a=Math.floor(b.getSize()*this._LINE_HEIGT_FACTOR);this._inputElement.style.lineHeight=a+"px"}},_applyTextShadow:function(b,a){this.__textShadow=b;if(this._inputElement){this._renderTextShadow()}},_renderTextShadow:function(){org.eclipse.rwt.HtmlUtil.setTextShadow(this._inputElement,this.__textShadow)},_visualizeFocus:function(){arguments.callee.base.call(this);if(!qx.event.handler.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._applyBrowserFixesOnAppear();this._centerFieldVertically();this._renderSelection()},_centerFieldVertically:function(){if(this._inputTag===$[89]&&this._inputElement){var c=this.getInnerHeight();var a=this._getInputElementHeight();if(a!==0){var b=(c-a)/2-1;if(b<0){b=0}b=Math.floor(b);this.setStyleProperty($[181],b+"px")}}},_getInputElementHeight:qx.core.Variant.select($[0],{mshtml:function(){var a=qx.html.Dimension.getBoxHeight(this._inputElement);if(a!==0){a-=2}return a},"default":function(){return qx.html.Dimension.getBoxHeight(this._inputElement)}}),_oninputDom:qx.core.Variant.select($[0],{mshtml:function(a){if(!this._inValueProperty&&a.propertyName==="value"){this._oninput()}},"default":function(a){this._oninput()}}),_oninput:function(){try{var b=this.getComputedValue().toString();var c=true;if(this.hasEventListeners($[89])){c=this.dispatchEvent(new qx.event.type.DataEvent($[89],this._typed),true)}if(c){this.setValue(b)}else{if(org.eclipse.rwt.Client.isWebkit()||org.eclipse.rwt.Client.isMshtml()){qx.client.Timer.once(this._renderSelection,this,0);this._selectionNeedsUpdate=true}}}catch(a){org.eclipse.rwt.ErrorHandler.processJavaScriptError(a)}},_ontabfocus:function(){this.selectAll()},_applyFocused:function(b,a){arguments.callee.base.call(this,b,a);if(!qx.event.handler.FocusHandler.mouseFocus){this._renderSelection()}},_onblur:function(){if(this.getParent()!=null){this._setSelectionLength(0)}},_onkeydown:function(a){if(a.getKeyIdentifier()==$[311]&&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(a){if(this._selectionNeedsUpdate){this._renderSelection()}this._detectSelectionChange();this._typed=null},_onMouseDownUp:function(a){this._detectSelectionChange();this._typed=null},_applyBrowserFixes:qx.core.Variant.select($[0],{"default":function(){},newmshtml:function(){this._checkTimer=new qx.client.Timer(0);this._checkTimer.addEventListener($[26],this._checkValueChanged,this);this.addEventListener($[4],this._checkTimer.start,this._checkTimer);this.addEventListener($[40],this._checkTimer.start,this._checkTimer);this.addEventListener($[34],this._checkValueChanged,this);this.addEventListener($[8],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()}},_applyBrowserFixesOnAppear:qx.core.Variant.select($[0],{"default":function(){},mshtml:function(){if(this._firstInputFixApplied!==true&&this._inputElement){qx.client.Timer.once(this._ieFirstInputFix,this,1)}}}),_ieFirstInputFix:function(){if(!this.isDisposed()){this._inValueProperty=true;this._inputElement.value=this.getValue()===null?"":this.getValue().toString();this._renderSelection();this._firstInputFixApplied=true;delete this._inValueProperty}},_applyBrowserFixesOnCreate:qx.core.Variant.select($[0],{"default":function(){},webkit:function(){this.addEventListener($[10],this._preventEnter,this);this.addEventListener($[4],this._preventEnter,this);this.addEventListener($[40],this._preventEnter,this)}}),_preventEnter:function(a){if(a.getKeyIdentifier()===$[54]){a.preventDefault()}},isValidString:function(a){return typeof a===$[9]&&a!==""}}});
qx.Class.define("qx.ui.layout.VerticalBoxLayout",{extend:qx.ui.layout.BoxLayout,properties:{orientation:{refine:true,init:$[32]}}});
qx.Class.define($[346],{extend:qx.ui.basic.Atom,construct:function(e,d,c,a,b){arguments.callee.base.call(this,e,d,c,a,b);this.initTabIndex();this.addEventListener($[6],this._onmouseover);this.addEventListener($[8],this._onmouseout);this.addEventListener($[1],this._onmousedown);this.addEventListener($[5],this._onmouseup);this.addEventListener($[10],this._onkeydown);this.addEventListener($[40],this._onkeyup)},properties:{appearance:{refine:true,init:"button"},tabIndex:{refine:true,init:1}},members:{_onmouseover:function(a){if(a.getTarget()!=this){return}if(this.hasState($[33])){this.removeState($[33]);this.addState($[11])}this.addState("over")},_onmouseout:function(a){if(a.getTarget()!=this){return}this.removeState("over");if(this.hasState($[11])){this.setCapture(true);this.removeState($[11]);this.addState($[33])}},_onmousedown:function(a){if(a.getTarget()!=this||!a.isLeftButtonPressed()){return}this.removeState($[33]);this.addState($[11])},_onmouseup:function(b){this.setCapture(false);var a=this.hasState($[11]);var c=this.hasState($[33]);if(a){this.removeState($[11])}if(c){this.removeState($[33])}if(!c){this.addState("over");if(a){this.execute()}}},_onkeydown:function(a){switch(a.getKeyIdentifier()){case $[54]:case $[83]:this.removeState($[33]);this.addState($[11]);a.stopPropagation()}},_onkeyup:function(a){switch(a.getKeyIdentifier()){case $[54]:case $[83]:if(this.hasState($[11])){this.removeState($[33]);this.removeState($[11]);this.execute();a.stopPropagation()}}}}});
qx.Class.define($[402],{extend:qx.core.Target,events:{change:$[3]},properties:{value:{check:"!isNaN(value)&&value>=this.getMin()&&value<=this.getMax()",nullable:true,event:$[67],init:0},precision:{check:$[14],nullable:true,event:$[67],init:0},min:{check:$[59],apply:"_applyMin",event:$[67],init:0},max:{check:$[59],apply:"_applyMax",event:$[67],init:100},wrap:{check:$[2],init:false}},members:{_applyMax:function(b,a){this.setValue(Math.min(this.getValue(),b))},_applyMin:function(b,a){this.setValue(Math.max(this.getValue(),b))},limit:function(c){var a=this.getPrecision();if(a!=null){var b=Math.pow(10,a)}if(this.getWrap()){if(a!=null){var c=Math.round(c*b)/b}if(c<this.getMin()){return(this.getMax()-(this.getMin()-c))+1}if(c>this.getMax()){return(this.getMin()+(c-this.getMax()))-1}}if(c<this.getMin()){return this.getMin()}if(c>this.getMax()){return this.getMax()}if(a!=null){return Math.round(c*b)/b}else{return c}}}});
qx.Class.define("qx.ui.pageview.AbstractPageView",{type:$[101],extend:qx.ui.layout.BoxLayout,construct:function(a,b){arguments.callee.base.call(this);this._bar=new a();this._pane=new b();this.add(this._bar,this._pane)},members:{getPane:function(){return this._pane},getBar:function(){return this._bar}},destruct:function(){this._disposeObjects("_bar","_pane")}});
qx.Class.define($[383],{extend:qx.ui.pageview.AbstractPageView,construct:function(){arguments.callee.base.call(this,qx.ui.pageview.tabview.Bar,qx.ui.pageview.tabview.Pane);this.addEventListener($[262],org.eclipse.swt.TabUtil.onTabFolderChangeFocused);this.addEventListener($[4],org.eclipse.swt.TabUtil.onTabFolderKeyPress)},properties:{appearance:{refine:true,init:"tab-view"},orientation:{refine:true,init:$[32]},alignTabsToLeft:{check:$[2],init:true,apply:"_applyAlignTabsToLeft"},placeBarOnTop:{check:$[2],init:true,apply:"_applyPlaceBarOnTop"}},members:{_applyAlignTabsToLeft:function(c,b){var a=this._bar;a.setHorizontalChildrenAlign(c?"left":$[15]);a._addChildrenToStateQueue()},_applyPlaceBarOnTop:function(c,b){var a=this._bar;if(c){a.moveSelfToBegin()}else{a.moveSelfToEnd()}a._addChildrenToStateQueue()}}});
qx.Class.define("qx.ui.pageview.AbstractBar",{type:$[101],extend:qx.ui.layout.BoxLayout,construct:function(){arguments.callee.base.call(this);this._manager=new qx.ui.selection.RadioManager()},members:{getManager:function(){return this._manager}},destruct:function(){this._disposeObjects($[337])}});
qx.Class.define($[399],{extend:qx.core.Target,construct:function(a,b){arguments.callee.base.call(this);this._items=[];this.setName(a!=null?a:qx.ui.selection.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:$[416]},name:{check:$[21],nullable:true,apply:"_applyName"}},members:{getItems:function(){return this._items},getEnabledItems:function(){var c=[];for(var f=0,e=this._items,d=e.length;f<d;f++){if(e[f].getEnabled()){c.push(e[f])}}return c},handleItemChecked:function(b,a){if(a){this.setSelected(b)}else{if(this.getSelected()==b){this.setSelected(null)}}},add:function(b){var a=arguments;var e=a.length;var d;for(var c=0;c<e;c++){d=a[c];if(qx.lang.Array.contains(this._items,d)){return}this._items.push(d);d.setManager(this);if(d.getChecked()){this.setSelected(d)}d.setName(this.getName())}},remove:function(a){qx.lang.Array.remove(this._items,a);a.setManager(null);if(a.getChecked()){this.setSelected(null)}},_applySelected:function(b,a){if(a){a.setChecked(false)}if(b){b.setChecked(true)}},_applyName:function(e,a){for(var c=0,b=this._items,d=b.length;c<d;c++){b[c].setName(e)}},selectNext:function(d){var a=this._items.indexOf(d);if(a==-1){return}var b=0;var c=this._items.length;a=(a+1)%c;while(b<c&&!this._items[a].getEnabled()){a=(a+1)%c;b++}this._selectByIndex(a)},selectPrevious:function(d){var a=this._items.indexOf(d);if(a==-1){return}var b=0;var c=this._items.length;a=(a-1+c)%c;while(b<c&&!this._items[a].getEnabled()){a=(a-1+c)%c;b++}this._selectByIndex(a)},_selectByIndex:function(a){if(this._items[a].getEnabled()){this.setSelected(this._items[a]);this._items[a].setFocused(true)}}},destruct:function(){this._disposeObjectDeep("_items",1)}});
qx.Class.define("qx.ui.pageview.tabview.Bar",{extend:qx.ui.pageview.AbstractBar,construct:function(){arguments.callee.base.call(this);this.initZIndex();this.initHeight()},properties:{appearance:{refine:true,init:"tab-view-bar"},zIndex:{refine:true,init:2},height:{refine:true,init:"auto"}}});
qx.Class.define("qx.ui.pageview.AbstractPane",{type:$[101],extend:qx.ui.layout.CanvasLayout});
qx.Class.define("qx.ui.pageview.tabview.Pane",{extend:qx.ui.pageview.AbstractPane,construct:function(){arguments.callee.base.call(this);this.initZIndex();this.initHeight()},properties:{appearance:{refine:true,init:"tab-view-pane"},zIndex:{refine:true,init:1},height:{refine:true,init:"1*"}}});
qx.Class.define("qx.ui.popup.Popup",{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.setZIndex(this._minZIndex);if(this._isFocusRoot){this.activateFocusRoot()}this.initHeight();this.initWidth()},properties:{appearance:{refine:true,init:"popup"},width:{refine:true,init:"auto"},height:{refine:true,init:"auto"},display:{refine:true,init:false},autoHide:{check:$[2],init:true},centered:{check:$[2],init:false},restrictToPageOnOpen:{check:$[2],init:true},restrictToPageLeft:{check:$[14],init:0},restrictToPageRight:{check:$[14],init:0},restrictToPageTop:{check:$[14],init:0},restrictToPageBottom:{check:$[14],init:0}},members:{_isFocusRoot:true,_showTimeStamp:(new Date(0)).valueOf(),_hideTimeStamp:(new Date(0)).valueOf(),_beforeAppear:function(){arguments.callee.base.call(this);if(this.getRestrictToPageOnOpen()){this._wantedLeft=this.getLeft();if(this._wantedLeft!=null){this.setLeft(10000);if(this.getElement()!=null){this.getElement().style.left=10000}}}qx.ui.popup.PopupManager.getInstance().add(this);qx.ui.popup.PopupManager.getInstance().update(this);this._showTimeStamp=(new Date).valueOf();this.bringToFront()},_beforeDisappear:function(){arguments.callee.base.call(this);qx.ui.popup.PopupManager.getInstance().remove(this);this._hideTimeStamp=(new Date).valueOf()},_afterAppear:function(){arguments.callee.base.call(this);if(this.getRestrictToPageOnOpen()){var l=qx.ui.core.ClientDocument.getInstance();var h=l.getClientWidth();var p=l.getClientHeight();var b=qx.bom.Viewport.getScrollTop();var f=qx.bom.Viewport.getScrollLeft();var n=this.getRestrictToPageLeft()+f;var i=this.getRestrictToPageRight()-f;var j=this.getRestrictToPageTop()+b;var c=this.getRestrictToPageBottom()-b;var d=(this._wantedLeft==null)?this.getLeft():this._wantedLeft;var k=this.getTop();var a=this.getBoxWidth();var m=this.getBoxHeight();var e=this.getLeft();var g=k;if(d+a>h-i){d=h-i-a}if(k+m>p-c){k=p-c-m}if(d<n){d=n}if(k<j){k=j}if(d!=e||k!=g){var o=this;window.setTimeout(function(){o.setLeft(d);o.setTop(k)},0)}}},_makeActive:function(){this.getFocusRoot().setActiveChild(this)},_makeInactive:function(){var a=this.getFocusRoot();var b=a.getActiveChild();if(b==this){a.setActiveChild(a)}},_minZIndex:1000000,bringToFront:function(){this.setZIndex(this._minZIndex+1000000);this._sendTo()},sendToBack:function(){this.setZIndex(this._minZIndex+1);this._sendTo()},_sendTo:function(){var d=qx.lang.Object.getValues(qx.ui.popup.PopupManager.getInstance().getAll());var g=function(j,i){return j.getZIndex()-i.getZIndex()};if(org.eclipse.rwt.EventHandler.getMenuManager()!=null){var c=org.eclipse.rwt.EventHandler.getMenuManager();var f=qx.lang.Object.getValues(c.getAll());var h=d.concat(f).sort(g)}else{var h=d.sort(g)}var e=h.length;var a=this._minZIndex;for(var b=0;b<e;b++){h[b].setZIndex(a++)}},getShowTimeStamp:function(){return this._showTimeStamp},getHideTimeStamp:function(){return this._hideTimeStamp},positionRelativeTo:function(c,a,d){if(c instanceof qx.ui.core.Widget){c=c.getElement()}if(c){var b=qx.bom.element.Location.get(c);this.setLocation(b.left+(a||0),b.top+(d||0))}else{throw new Error("Missing reference element")}},centerToBrowser:function(){var c=qx.ui.core.ClientDocument.getInstance();var b=(c.getClientWidth()-this.getBoxWidth())/2;var a=(c.getClientHeight()-this.getBoxHeight())/2;this.setLeft(b<0?0:b);this.setTop(a<0?0:a)}},destruct:function(){qx.ui.popup.PopupManager.getInstance().remove(this);this._disposeFields("_showTimeStamp","_hideTimeStamp")}});
qx.Class.define($[288],{type:$[37],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this)},members:{update:function(c){if(!(c instanceof qx.ui.core.Widget)){c=null}var a,b;var d=this.getAll();for(b in d){a=d[b];if(!a.getAutoHide()||c==a||a.contains(c)){continue}if(qx.Class.isDefined($[240])&&c instanceof qx.ui.popup.ToolTip&&!(a instanceof qx.ui.popup.ToolTip)){continue}a.hide()}}}});
qx.Class.define("qx.ui.selection.SelectionManager",{extend:qx.core.Target,construct:function(a){arguments.callee.base.call(this);this._selectedItems=new qx.ui.selection.Selection(this);if(a!=null){this.setBoundedWidget(a)}},events:{changeSelection:$[48]},properties:{boundedWidget:{check:$[124],nullable:true},multiSelection:{check:$[2],init:true},dragSelection:{check:$[2],init:true},canDeselect:{check:$[2],init:true},fireChange:{check:$[2],init:true},anchorItem:{check:$[106],nullable:true,apply:"_applyAnchorItem",event:"changeAnchorItem"},leadItem:{check:$[106],nullable:true,apply:"_applyLeadItem",event:$[316]},multiColumnSupport:{check:$[2],init:false}},members:{_applyAnchorItem:function(b,a){if(a){this.renderItemAnchorState(a,false)}if(b){this.renderItemAnchorState(b,true)}},_applyLeadItem:function(b,a){if(a){this.renderItemLeadState(a,false)}if(b){this.renderItemLeadState(b,true)}},_getFirst:function(){return this.getBoundedWidget().getFirstVisibleChild()},_getLast:function(){return this.getBoundedWidget().getLastVisibleChild()},getFirst:function(){var a=this._getFirst();if(a){return a.getEnabled()?a:this.getNext(a)}},getLast:function(){var a=this._getLast();if(a){return a.getEnabled()?a:this.getPrevious(a)}},getItems:function(){return this.getBoundedWidget().getChildren()},getNextSibling:function(a){return a.getNextSibling()},getPreviousSibling:function(a){return a.getPreviousSibling()},getNext:function(a){while(a){a=this.getNextSibling(a);if(!a){break}if(this.getItemEnabled(a)){return a}}return null},getPrevious:function(a){while(a){a=this.getPreviousSibling(a);if(!a){break}if(this.getItemEnabled(a)){return a}}return null},isBefore:function(b,a){var c=this.getItems();return c.indexOf(b)<c.indexOf(a)},isEqual:function(b,a){return b==a},getItemHashCode:function(a){return a.toHashCode()},scrollItemIntoView:function(b,a){b.scrollIntoView(a)},getItemLeft:function(a){return a.getOffsetLeft()},getItemTop:function(a){return a.getOffsetTop()},getItemWidth:function(a){return a.getOffsetWidth()},getItemHeight:function(a){return a.getOffsetHeight()},getItemEnabled:function(a){return a.getEnabled()},renderItemSelectionState:function(b,a){a?b.addState($[29]):b.removeState($[29]);if(b.handleStateChange){b.handleStateChange()}},renderItemAnchorState:function(a,b){b?a.addState("anchor"):a.removeState("anchor");if(a.handleStateChange!=null){a.handleStateChange()}},renderItemLeadState:function(b,a){a?b.addState("lead"):b.removeState("lead");if(b.handleStateChange!=null){b.handleStateChange()}},getItemSelected:function(a){return this._selectedItems.contains(a)},setItemSelected:function(d,c){switch(this.getMultiSelection()){case true:if(!this.getItemEnabled(d)){return}if(this.getItemSelected(d)==c){return}this.renderItemSelectionState(d,c);c?this._selectedItems.add(d):this._selectedItems.remove(d);this._dispatchChange();break;case false:var b=this.getSelectedItems()[0];if(c){var a=b;if(this.isEqual(d,a)){return}if(a!=null){this.renderItemSelectionState(a,false)}this.renderItemSelectionState(d,true);this._selectedItems.removeAll();this._selectedItems.add(d);this._dispatchChange()}else{if(!this.isEqual(b,d)){this.renderItemSelectionState(d,false);this._dispatchChange()}}break}},getSelectedItems:function(){return this._selectedItems.toArray()},getSelectedItem:function(){return this._selectedItems.getFirst()},setSelectedItems:function(c){var b=this._getChangeValue();var a=this.getFireChange();this.setFireChange(false);this._deselectAll();var e;var f=c.length;for(var d=0;d<f;d++){e=c[d];if(!this.getItemEnabled(e)){continue}this._selectedItems.add(e);this.renderItemSelectionState(e,true)}this.setFireChange(a);if(a&&this._hasChanged(b)){this._dispatchChange()}},setSelectedItem:function(c){if(!c){return}if(!this.getItemEnabled(c)){return}var b=this._getChangeValue();var a=this.getFireChange();this.setFireChange(false);this._deselectAll();this._selectedItems.add(c);this.renderItemSelectionState(c,true);this.setFireChange(a);if(a&&this._hasChanged(b)){this._dispatchChange()}},selectAll:function(){var b=this._getChangeValue();var a=this.getFireChange();this.setFireChange(false);this._selectAll();this.setFireChange(a);if(a&&this._hasChanged(b)){this._dispatchChange()}},_selectAll:function(){if(!this.getMultiSelection()){return}var c;var a=this.getItems();var d=a.length;this._selectedItems.removeAll();for(var b=0;b<d;b++){c=a[b];if(!this.getItemEnabled(c)){continue}this._selectedItems.add(c);this.renderItemSelectionState(c,true)}return true},deselectAll:function(){var b=this._getChangeValue();var a=this.getFireChange();this.setFireChange(false);this._deselectAll();this.setFireChange(a);if(a&&this._hasChanged(b)){this._dispatchChange()}},_deselectAll:function(){var a=this._selectedItems.toArray();for(var b=0;b<a.length;b++){this.renderItemSelectionState(a[b],false)}this._selectedItems.removeAll();return true},selectItemRange:function(d,b){var c=this._getChangeValue();var a=this.getFireChange();this.setFireChange(false);this._selectItemRange(d,b,true);this.setFireChange(a);if(a&&this._hasChanged(c)){this._dispatchChange()}},_selectItemRange:function(b,a,c){if(this.isBefore(a,b)){return this._selectItemRange(a,b,c)}if(c){this._deselectAll()}var d=b;while(d!=null){if(this.getItemEnabled(d)){this._selectedItems.add(d);this.renderItemSelectionState(d,true)}if(this.isEqual(d,a)){break}d=this.getNext(d)}return true},_deselectItemRange:function(b,a){if(this.isBefore(a,b)){return this._deselectItemRange(a,b)}var c=b;while(c!=null){this._selectedItems.remove(c);this.renderItemSelectionState(c,false);if(this.isEqual(c,a)){break}c=this.getNext(c)}},_activeDragSession:false,handleMouseDown:function(a,b){b.stopPropagation();if(!b.isLeftButtonPressed()&&!b.isRightButtonPressed()){return}if(b.isRightButtonPressed()&&this.getItemSelected(a)){return}if(b.isShiftPressed()||this.getDragSelection()||(!this.getItemSelected(a)&&!b.isCtrlPressed())){this._onmouseevent(a,b)}else{this.setLeadItem(a)}this._activeDragSession=this.getDragSelection();if(this._activeDragSession){this.getBoundedWidget().addEventListener($[5],this._ondragup,this);this.getBoundedWidget().setCapture(true)}},_ondragup:function(a){this.getBoundedWidget().removeEventListener($[5],this._ondragup,this);this.getBoundedWidget().setCapture(false);this._activeDragSession=false},handleMouseUp:function(a,b){if(!b.isLeftButtonPressed()){return}if(b.isCtrlPressed()||this.getItemSelected(a)&&!this._activeDragSession){this._onmouseevent(a,b)}if(this._activeDragSession){this._activeDragSession=false;this.getBoundedWidget().setCapture(false)}},handleMouseOver:function(b,a){if(!this.getDragSelection()||!this._activeDragSession){return}this._onmouseevent(b,a,true)},handleClick:function(a,b){},handleDblClick:function(a,b){},_onmouseevent:function(h,g,d){if(!this.getItemEnabled(h)){return}var k=this._getChangeValue();var j=this.getLeadItem();var a=this.getFireChange();this.setFireChange(false);var c=this.getSelectedItems();var b=c.length;this.setLeadItem(h);var l=this.getAnchorItem();var i=g.isCtrlPressed();var f=g.isShiftPressed();if(!l||b==0||(i&&!f&&this.getMultiSelection()&&!this.getDragSelection())){this.setAnchorItem(h);l=h}if((!i&&!f&&!this._activeDragSession||!this.getMultiSelection())){if(!this.getItemEnabled(h)){return}this._deselectAll();this.setAnchorItem(h);if(this._activeDragSession){this.scrollItemIntoView((this.getBoundedWidget().getScrollTop()>(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()==$[83]){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 $[39]:return this.getRight(this.getLeadItem());case $[42]:return this.getPageUp(this.getLeadItem())||this.getHome(this.getLeadItem());case $[43]:return this.getPageDown(this.getLeadItem())||this.getEnd(this.getLeadItem());case $[83]:if(a.isCtrlPressed()){return this.getLeadItem()}}return null},_dispatchChange:function(){if(!this.getFireChange()){return}if(this.hasEventListeners($[255])){this.dispatchEvent(new qx.event.type.DataEvent($[255],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)},getAbove:function(a){throw new Error("getAbove(): Not implemented yet")},getUnder:function(a){throw new Error("getUnder(): Not implemented yet")},getPageUp:function(e){var c=this.getLeadItem();if(!c){c=this.getFirst()}var b=this.getBoundedWidget();if(b.isCreated()){var a=b.getScrollTop();var f=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-f-this.getItemHeight(c));a=b.getScrollTop();d++}}return c},getPageDown:function(e){var c=this.getLeadItem();if(!c){c=this.getFirst()}var b=this.getBoundedWidget();if(b.isCreated()){var a=b.getScrollTop();var f=b.getClientHeight();var d=0;while(d<2){while(c&&((this.getItemTop(c)+(2*this.getItemHeight(c)))<=(a+f))){c=this.getDown(c)}if(c==null){break}if(c!=this.getLeadItem()){break}b.setScrollTop(a+f-2*this.getItemHeight(c));a=b.getScrollTop();d++}}return c}},destruct:function(){this._disposeObjects("_selectedItems")}});
qx.Class.define("qx.ui.selection.Selection",{extend:qx.core.Object,construct:function(a){arguments.callee.base.call(this);this.__manager=a;this.removeAll()},members:{add:function(a){this.__storage[this.getItemHashCode(a)]=a},remove:function(a){delete this.__storage[this.getItemHashCode(a)]},removeAll:function(){this.__storage={}},contains:function(a){return this.getItemHashCode(a) in this.__storage},toArray:function(){var b=[];for(var a in this.__storage){b.push(this.__storage[a])}return b},getFirst:function(){for(var a in this.__storage){return this.__storage[a]}return null},getChangeValue:function(){var b=[];for(var a in this.__storage){b.push(a)}b.sort();return b.join(";")},getItemHashCode:function(a){return this.__manager.getItemHashCode(a)},isEmpty:function(){return qx.lang.Object.isEmpty(this.__storage)}},destruct:function(){this._disposeFields("__storage","__manager")}});
qx.Class.define("org.eclipse.swt.widgets.AbstractSlider",{extend:qx.ui.layout.CanvasLayout,construct:function(a){arguments.callee.base.call(this);this.setOverflow($[13]);this._horizontal=a;this._selection=0;this._minimum=0;this._maximum=100;this._increment=1;this._pageIncrement=10;this._thumbLength=10;this._pxStep=1.38;this._thumbDragOffset=0;this._autoRepeat="";this._mouseOffset=0;this._delayTimer=new qx.client.Timer(250);this._repeatTimer=new qx.client.Timer(100);this._thumb=new org.eclipse.rwt.widgets.BasicButton("push",true);this._minButton=new org.eclipse.rwt.widgets.BasicButton("push",true);this._maxButton=new org.eclipse.rwt.widgets.BasicButton("push",true);this.add(this._thumb);this.add(this._minButton);this.add(this._maxButton);this._configureSubwidgets();this._configureAppearance();this._setStates();this._registerListeners()},destruct:function(){this._delayTimer.stop();this._delayTimer.dispose();this._delayTimer=null;this._repeatTimer.stop();this._repeatTimer.dispose();this._repeatTimer=null;this._thumb=null;this._minButton=null;this._maxButton=null},members:{_setSelection:function(b){var a=this._limitSelection(b);if(a!==this._selection){this._selection=a;this._selectionChanged()}},_setMinimum:function(a){this._minimum=a;this._updateThumbSize()},_setMaximum:function(a){this._maximum=a;this._updateThumbSize()},_setIncrement:function(a){this._increment=a},_setPageIncrement:function(a){this._pageIncrement=a},_setThumb:function(a){this._thumbLength=a;this._updateThumbSize()},_registerListeners:function(){this._repeatTimer.addEventListener($[26],this._onRepeatTimerInterval,this);this._delayTimer.addEventListener($[26],this._repeatTimerStart,this);this.addEventListener($[63],this._onChangeSize,this);this.addEventListener($[71],this._onChangeSize,this);this.addEventListener($[180],this._onChangeEnabled,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[5],this._onMouseUp,this);this.addEventListener($[8],this._onMouseOut,this);this.addEventListener($[6],this._onMouseOver,this);this.addEventListener($[34],this._onMouseMove,this);this.addEventListener($[47],this._onMouseWheel,this);this._thumb.addEventListener($[1],this._onThumbMouseDown,this);this._thumb.addEventListener($[34],this._onThumbMouseMove,this);this._thumb.addEventListener($[5],this._onThumbMouseUp,this);this._minButton.addEventListener($[1],this._onMinButtonMouseEvent,this);this._maxButton.addEventListener($[1],this._onMaxButtonMouseEvent,this);this._minButton.addEventListener($[164],this._onMinButtonMouseEvent,this);this._maxButton.addEventListener($[164],this._onMaxButtonMouseEvent,this)},_selectionChanged:function(){this._updateThumbPosition();if(this._autoRepeat!==""&&!this._repeatTimer.isEnabled()){this._delayTimer.start()}},_onChangeSize:function(a){this._updateThumbSize()},_onChangeEnabled:function(a){this._thumb.setVisibility(a.getValue())},_onMouseWheel:function(a){if(a.getTarget()===this){a.preventDefault();a.stopPropagation();var c=a.getWheelDelta();var d=(c/Math.abs(c))*this._increment;var b=this._selection-d;if(b<this._minimum){b=this._minimum}if(b>(this._maximum-this._thumbWidth)){b=this._maximum-this._thumbWidth}this._setSelection(b)}},_onMouseDown:function(a){if(a.isLeftButtonPressed()){this._mouseOffset=this._getMouseOffset(a);this._handleLineMouseDown()}},_onMouseUp:function(a){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($[11])){this._autoRepeat="minButton";this._setSelection(this._selection-this._increment)}else{this._autoRepeat=""}},_onMaxButtonMouseEvent:function(a){a.stopPropagation();if(this._maxButton.hasState($[11])){this._autoRepeat="maxButton";this._setSelection(this._selection+this._increment)}else{this._autoRepeat=""}},_onThumbMouseDown:function(b){b.stopPropagation();this._thumb.addState($[11]);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._getSelectionFromPosition(b-this._thumbDragOffset);this._setSelection(a)}},_onThumbMouseUp:function(a){if(this._thumb.hasState($[11])){a.stopPropagation();this._repeatTimer.stop();this._thumb.setCapture(false);this._thumb.removeState($[11])}},_configureSubwidgets:function(){if(this._horizontal){this._thumb.setHeight("100%");this._minButton.setHeight("100%");this._maxButton.setHeight("100%");this._maxButton.setRight(0)}else{this._thumb.setWidth("100%");this._minButton.setWidth("100%");this._maxButton.setWidth("100%");this._maxButton.setBottom(0)}org.eclipse.swt.WidgetUtil.fixIEBoxHeight(this._thumb);org.eclipse.swt.WidgetUtil.fixIEBoxHeight(this._minButton);org.eclipse.swt.WidgetUtil.fixIEBoxHeight(this._maxButton);this._minButton.setTabIndex(null);this._maxButton.setTabIndex(null);this._thumb.setTabIndex(null)},_setStates:function(){var a=this._horizontal?$[429]:$[220];var b=this._horizontal?$[41]:$[32];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($[75])},_visualizeBlur:function(){arguments.callee.base.call(this);this._thumb.removeState($[75])},_repeatTimerStart:function(){this._delayTimer.stop();if(this._autoRepeat!==""){this._repeatTimer.start()}},_onRepeatTimerInterval:function(a){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 e;var b=this._getThumbSize()/2;var c=this._getThumbPosition()+b;var a;if(this._mouseOffset>c){a=this._selection+this._pageIncrement;e="linePlus"}else{e="lineMinus";a=this._selection-this._pageIncrement}if(this._autoRepeat===""||this._autoRepeat===e){this._autoRepeat=e;var d=this._pageIncrement*this._pxStep+b;this._setSelection(a)}},_updateThumbPosition:function(){var a=this._getMinButtonWidth();a+=this._pxStep*(this._selection-this._minimum);if(this._horizontal){this._thumb.setLeft(a)}else{this._thumb.setTop(a)}},_updateThumbSize:function(){var a=this._thumbLength*this._getLineSize()/(this._maximum-this._minimum);a=Math.round(a);if(this._horizontal){this._thumb.setWidth(a)}else{this._thumb.setHeight(a)}this._updateStepsize()},_updateStepsize:function(){var a=this._maximum-this._minimum-this._thumbLength;if(a!==0){var b=this._getLineSize()-this._getThumbSize();this._pxStep=b/a}else{this._pxStep=0}this._selection=this._limitSelection(this._selection);this._updateThumbPosition()},_getSelectionFromPosition:function(a){var b=this._getMinButtonWidth();var c=(a-b)/this._pxStep+this._minimum;return this._limitSelection(Math.round(c))},_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 b=qx.bom.element.Location;var a;if(this._horizontal){a=c.getPageX()-b.getLeft(this.getElement())}else{a=c.getPageY()-b.getTop(this.getElement())}return a},_getThumbPosition:function(){var a;if(this._horizontal){a=this._thumb.getLeft()}else{a=this._thumb.getTop()}return a},_getThumbSize:function(){var a;if(this._horizontal){a=this._thumb.getWidth()}else{a=this._thumb.getHeight()}return a},_getLineSize:function(){var b=this._getMinButtonWidth()+this._getMaxButtonWidth();var a=this._getSliderSize()-this.getFrameWidth()-b;return 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}}});
qx.Class.define("org.eclipse.rwt.widgets.ScrollBar",{extend:org.eclipse.swt.widgets.AbstractSlider,construct:function(a){arguments.callee.base.call(this,a);this._idealValue=0;this._selectionFactor=1;this._lastDispatchedValue=0;this._mergeEvents=false;this._renderSum=0;this._renderSamples=0;this._eventTimerId=null;this._setMinimum(0);this._minThumbSize=this._getMinThumbSize();this.setIncrement(20);this.addEventListener($[16],this._stopEvent,this);this.addEventListener($[51],this._stopEvent,this);this._eventTimer=null},destruct:function(){if(this._eventTimer!=null){this._eventTimer.dispose();this._eventTimer=null}},statics:{MERGE_THRESHOLD:4},events:{changeValue:$[3]},members:{_configureAppearance:function(){this.setAppearance("scrollbar");this._thumb.setAppearance($[188]);this._minButton.setAppearance("scrollbar-min-button");this._maxButton.setAppearance("scrollbar-max-button")},setValue:function(a){this._idealValue=a;this._setSelection(a*this._selectionFactor)},getValue:function(a){return Math.round(this._selection/this._selectionFactor)},setMaximum:function(a){this._setMaximum(a);if(this._idealValue!==null){this._setSelection(this._idealValue)}this._updateThumbLength()},getMaximum:function(){return this._maximum},setIncrement:function(a){this._setIncrement(a);this._updatePageIncrement()},setMergeEvents:function(a){if(!a&&this._mergeEvents){throw new Error("mergeEvents can not be set to false")}else{if(a){this._mergeEvents=true;this._eventTimer=new qx.client.Timer(125);this._eventTimer.addEventListener($[26],this._dispatchValueChanged,this)}}},getMergeEvents:function(){return this._mergeEvents},autoEnableMerge:function(c){if(!this._mergeEvents&&c>0){this._renderSamples++;this._renderSum+=c;var b=this._renderSum/this._renderSamples;var a=false;if(this._renderSamples>2){a=b>200}else{a=c>1000}if(a){this.setMergeEvents(true)}}},_onChangeSize:function(){arguments.callee.base.call(this);this._updateThumbLength();this._updatePageIncrement();if(this._idealValue!==null){this._setSelection(this._idealValue)}},_updateThumbSize:function(){arguments.callee.base.call(this);var a=this._getThumbSize();if(a<this._minThumbSize){this.addToQueue($[398])}else{this._selectionFactor=1}if(this._horizontal){var b=this._thumb.getCellWidth(1);var d=a>=(b+6);this._thumb.setCellVisible(1,d)}else{var c=this._thumb.getCellHeight(1);var d=a>=(c+6);this._thumb.setCellVisible(1,d)}},_layoutPost:function(b){arguments.callee.base.call(this,b);if(b[$[398]]){if(this._maximum>0&&this._getLineSize()>0){var a=this._getThumbSize();if(a<this._minThumbSize){var d=this._getSliderSize();var c=this._minThumbSize*this._maximum/this._getLineSize();this._setThumb(c);if(this._maximum===d){this._selectionFactor=1}else{this._selectionFactor=(this._maximum-c)/(this._maximum-d)}}}}},_setSelection:function(a){if(a!==this._idealValue){this._idealValue=null}arguments.callee.base.call(this,a)},_selectionChanged:function(){arguments.callee.base.call(this);if(this._getMergeCurrentEvent()){this._eventTimer.stop();this._eventTimer.start()}else{this._dispatchValueChanged()}},_getMinThumbSize:function(){var a=new org.eclipse.swt.theme.ThemeValues(this.__states);return a.getCssDimension("ScrollBar-Thumb","min-height")},_updateThumbLength:function(){this._setThumb(this._getSliderSize())},_updatePageIncrement:function(){this._setPageIncrement(this._getSliderSize()-this._increment)},_stopEvent:function(a){a.stopPropagation();a.preventDefault()},_getMergeCurrentEvent:function(){var a=false;if(this._mergeEvents){var b=org.eclipse.rwt.widgets.ScrollBar.MERGE_THRESHOLD;var c=Math.abs(this._lastDispatchedValue-this._selection);if(c>=this._increment*b){a=true}}return a},_dispatchValueChanged:function(){if(this._mergeEvents){this._eventTimer.stop()}this._lastDispatchedValue=this._selection;this.createDispatchEvent($[109])},_updateStepsize:function(){var a=this._selection;arguments.callee.base.call(this);if(a!==this._selection){this._dispatchValueChanged()}}}});
qx.Class.define("qx.io.image.PreloaderSystem",{extend:qx.core.Target,construct:function(c,b,a){arguments.callee.base.call(this);if(c instanceof Array){this._list=qx.lang.Object.fromArray(c)}else{this._list=c}this._timer=new qx.client.Timer(3000);this._timer.addEventListener($[26],this.__oninterval,this);if(b){this.addEventListener($[27],b,a||null)}},events:{completed:$[3]},members:{_stopped:false,start:function(){if(qx.lang.Object.isEmpty(this._list)){this.createDispatchEvent($[27]);return}for(var a in this._list){var b=qx.io.image.PreloaderManager.getInstance().create(qx.io.Alias.getInstance().resolve(a));if(b.isErroneous()||b.isLoaded()){delete this._list[a]}else{b._origSource=a;b.addEventListener("load",this.__onload,this);b.addEventListener($[140],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(a){this._stopped=true;this._timer.stop();this.createDispatchEvent($[27])},_check:function(){if(this._stopped){return}if(qx.lang.Object.isEmpty(this._list)){this._timer.stop();this.createDispatchEvent($[27])}else{this._timer.restart()}}},destruct:function(){if(this._timer){this._timer.removeEventListener($[26],this.__oninterval,this);this._disposeObjects("_timer")}this._disposeFields("_list")}});
qx.Class.define("qx.io.remote.RequestQueue",{type:$[37],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._queue=[];this._active=[];this._totalRequests=0;this._timer=new qx.client.Timer(500);this._timer.addEventListener($[26],this._oninterval,this)},properties:{enabled:{init:true,check:$[2],apply:$[334]},maxTotalRequests:{check:$[14],nullable:true},maxConcurrentRequests:{check:$[14],init:3},defaultTimeout:{check:$[14],init:5000}},members:{_debug:function(){},_check:function(){this._debug();if(this._active.length==0&&this._queue.length==0){this._timer.stop()}if(!this.getEnabled()){return}if(this._active.length>=this.getMaxConcurrentRequests()||this._queue.length==0){return}if(this.getMaxTotalRequests()!=null&&this._totalRequests>=this.getMaxTotalRequests()){return}var c=this._queue.shift();var e=new qx.io.remote.Exchange(c);this._totalRequests++;this._active.push(e);this._debug();e.addEventListener($[52],this._onsending,this);e.addEventListener($[56],this._onreceiving,this);e.addEventListener($[27],this._oncompleted,this);e.addEventListener($[55],this._oncompleted,this);e.addEventListener($[53],this._oncompleted,this);e.addEventListener($[38],this._oncompleted,this);var d=true;try{d=e.send()}catch(a){d=a}if(d!==true){var b=new qx.io.remote.Response($[38]);b.setContent(d);e.dispatchEvent(b)}else{e._start=(new Date()).valueOf()}if(this._queue.length>0){this._check()}},_remove:function(a){qx.lang.Array.remove(this._active,a);this._check()},_activeCount:0,_onsending:function(b){var a=b.getTarget();a.getRequest()._onsending(b)},_onreceiving:function(a){a.getTarget().getRequest()._onreceiving(a)},_oncompleted:function(c){var b=c.getTarget();this._remove(b);var a=b.getRequest();if(a["_on"+c.getType()]){a["_on"+c.getType()](c)}b.dispose()},_oninterval:function(g){var j=this._active;if(j.length==0){this._timer.stop();return}var f;var d;var a=this.getDefaultTimeout();var b;var h;for(var c=j.length-1;c>=0;c--){f=j[c];d=f.getRequest();if(d.isAsynchronous()){b=d.getTimeout();if(b==0||f._start==null){continue}if(b==null){b=a}h=(new Date).valueOf()-f._start;if(h>b){f.timeout()}}}},_applyEnabled:function(b,a){if(b){this._check()}this._timer.setEnabled(b)},add:function(a){a.setState($[167]);this._queue.push(a);this._check();if(this.getEnabled()){this._timer.start()}},abort:function(a){var b=a.getTransport();if(b){b.abort()}else{if(qx.lang.Array.contains(this._queue,a)){qx.lang.Array.remove(this._queue,a)}}}},destruct:function(){this._disposeObjectDeep("_active",1);this._disposeObjects("_timer");this._disposeFields("_queue")}});
qx.Class.define($[387],{extend:qx.core.Target,construct:function(a){arguments.callee.base.call(this);this.setRequest(a);a.setTransport(this)},events:{sending:$[3],receiving:$[3],completed:$[119],aborted:$[119],failed:$[119],timeout:$[119]},statics:{typesOrder:[$[290],"qx.io.remote.IframeTransport","qx.io.remote.ScriptTransport"],typesReady:false,typesAvailable:{},typesSupported:{},registerType:function(b,a){qx.io.remote.Exchange.typesAvailable[a]=b},initTypes:function(){if(qx.io.remote.Exchange.typesReady){return}for(var a in qx.io.remote.Exchange.typesAvailable){var b=qx.io.remote.Exchange.typesAvailable[a];if(b.isSupported()){qx.io.remote.Exchange.typesSupported[a]=b}}qx.io.remote.Exchange.typesReady=true;if(qx.lang.Object.isEmpty(qx.io.remote.Exchange.typesSupported)){throw new Error("No supported transport types were found!")}},canHandle:function(a,b,c){if(!qx.lang.Array.contains(a.handles.responseTypes,c)){return false}for(var d in b){if(!a.handles[d]){return false}}return true},_nativeMap:{0:$[152],1:$[95],2:$[52],3:$[56],4:$[27]},wasSuccessful:function(c,a,b){if(b){switch(c){case null:case 0:return true;case -1:return a<4;default:return typeof c===$[7]}}else{switch(c){case -1:return a<4;case 200:case 304:return true;case 201:case 202:case 203:case 204:case 205:return true;case 206:return a!==4;case 300:case 301:case 302:case 303:case 305:case 400:case 401:case 402:case 403:case 404:case 405:case 406:case 407:case 408:case 409:case 410:case 411:case 412:case 413:case 414:case 415:case 500:case 501:case 502:case 503:case 504:case 505:return false;case 12002:case 12007:case 12029:case 12030:case 12031:case 12152:case 13030:return false;default:if(c>206&&c<300){return true}return false}}},statusCodeToString:function(a){switch(a){case -1:return"Not available";case 200:return"Ok";case 304:return"Not modified";case 206:return"Partial content";case 204:return"No content";case 300:return"Multiple choices";case 301:return"Moved permanently";case 302:return"Moved temporarily";case 303:return"See other";case 305:return"Use proxy";case 400:return"Bad request";case 401:return"Unauthorized";case 402:return"Payment required";case 403:return"Forbidden";case 404:return"Not found";case 405:return"Method not allowed";case 406:return"Not acceptable";case 407:return"Proxy authentication required";case 408:return"Request time-out";case 409:return"Conflict";case 410:return"Gone";case 411:return"Length required";case 412:return"Precondition failed";case 413:return"Request entity too large";case 414:return"Request-URL too large";case 415:return"Unsupported media type";case 500:return"Server error";case 501:return"Not implemented";case 502:return"Bad gateway";case 503:return"Out of resources";case 504:return"Gateway time-out";case 505:return"HTTP version not supported";case 12002:return"Server timeout";case 12007:return"Internet name not resolved";case 12029:return $[285];case 12030:return $[285];case 12031:return $[285];case 12152:return"Connection closed by server";case 13030:return"MSHTML-specific HTTP status code";default:return"Unknown status code"}}},properties:{request:{check:$[462],nullable:true},implementation:{check:$[461],nullable:true,apply:"_applyImplementation"},state:{check:[$[95],$[52],$[56],$[27],$[55],$[53],$[38]],init:$[95],event:$[328],apply:$[359]}},members:{send:function(){var m=this.getRequest();if(!m){throw new Error("Please attach a request object first")}qx.io.remote.Exchange.initTypes();var f=qx.io.remote.Exchange.typesOrder;var k=qx.io.remote.Exchange.typesSupported;var c=m.getResponseType();var a={};if(m.getAsynchronous()){a.asynchronous=true}else{a.synchronous=true}if(m.getCrossDomain()){a.crossDomain=true}if(m.getFileUpload()){a.fileUpload=true}for(var h in m.getFormFields()){a.programaticFormFields=true;break}var g,j;for(var d=0,b=f.length;d<b;d++){g=k[f[d]];if(g){if(!qx.io.remote.Exchange.canHandle(g,a,c)){continue}try{j=new g;this.setImplementation(j);j.setUseBasicHttpAuth(m.getUseBasicHttpAuth());j.send();return true}catch(e){throw new Error("Request handler throws error "+e)}}}throw new Error("There is no transport implementation available to handle this request: "+m)},abort:function(){var a=this.getImplementation();if(a){a.abort()}else{this.setState($[55])}},timeout:function(){var a=this.getImplementation();if(a){a.timeout()}else{this.setState($[53])}if(this.getRequest()){this.getRequest().setTimeout(0)}},_onsending:function(a){this.setState($[52])},_onreceiving:function(a){this.setState($[56])},_oncompleted:function(a){this.setState($[27])},_onabort:function(a){this.setState($[55])},_onfailed:function(a){this.setState($[38])},_ontimeout:function(a){this.setState($[53])},_applyImplementation:function(c,a){if(a){a.removeEventListener($[52],this._onsending,this);a.removeEventListener($[56],this._onreceiving,this);a.removeEventListener($[27],this._oncompleted,this);a.removeEventListener($[55],this._onabort,this);a.removeEventListener($[53],this._ontimeout,this);a.removeEventListener($[38],this._onfailed,this)}if(c){var b=this.getRequest();c.setUrl(b.getUrl());c.setMethod(b.getMethod());c.setAsynchronous(b.getAsynchronous());c.setUsername(b.getUsername());c.setPassword(b.getPassword());c.setParameters(b.getParameters());c.setFormFields(b.getFormFields());c.setRequestHeaders(b.getRequestHeaders());c.setData(b.getData());c.setResponseType(b.getResponseType());c.addEventListener($[52],this._onsending,this);c.addEventListener($[56],this._onreceiving,this);c.addEventListener($[27],this._oncompleted,this);c.addEventListener($[55],this._onabort,this);c.addEventListener($[53],this._ontimeout,this);c.addEventListener($[38],this._onfailed,this)}},_applyState:function(e,b){switch(e){case $[52]:case $[56]:this.createDispatchEvent(e);break;case $[27]:case $[55]:case $[53]:case $[38]:var d=this.getImplementation();if(!d){break}if(this.hasEventListeners(e)){var a=new qx.io.remote.Response(e);if(e==$[27]){var c=d.getResponseContent();a.setContent(c);if(c===null){e=$[38]}}a.setStatusCode(d.getStatusCode());a.setResponseHeaders(d.getResponseHeaders());this.dispatchEvent(a)}this.setImplementation(null);d.dispose();break}}},destruct:function(){var a=this.getImplementation();if(a){this.setImplementation(null);a.dispose()}this.setRequest(null)}});
qx.Class.define($[119],{extend:qx.event.type.Event,construct:function(a){arguments.callee.base.call(this,a)},properties:{state:{check:$[14],nullable:true},statusCode:{check:$[14],nullable:true},content:{nullable:true},responseHeaders:{check:$[106],nullable:true}},members:{getResponseHeader:function(a){var b=this.getResponseHeaders();if(b){return b[a]||null}return null},getData:function(){return this}}});
qx.Class.define("qx.util.Mime",{statics:{JAVASCRIPT:$[282],JSON:"application/json",XML:"application/xml",TEXT:"text/plain",HTML:"text/html"}});
qx.Class.define($[290],{extend:qx.io.remote.AbstractRemoteTransport,construct:function(){arguments.callee.base.call(this);this._req=qx.io.remote.XmlHttpTransport.createRequestObject();this._req.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,this)},events:{created:$[3],configured:$[3],sending:$[3],receiving:$[3],completed:$[3],aborted:$[3],failed:$[3],timeout:$[3]},statics:{handles:{synchronous:true,asynchronous:true,crossDomain:false,fileUpload:false,programaticFormFields:false,responseTypes:[qx.util.Mime.TEXT,qx.util.Mime.JAVASCRIPT,qx.util.Mime.JSON,qx.util.Mime.XML,qx.util.Mime.HTML]},requestObjects:[],requestObjectCount:0,isSupported:function(){return qx.net.HttpRequest.create()!=null?true:false},createRequestObject:function(){return qx.net.HttpRequest.create()},__dummy:function(){}},members:{_localRequest:false,_lastReadyState:0,getRequest:function(){return this._req},send:function(){this._lastReadyState=0;var m=this.getRequest();var a=this.getMethod();var f=this.getAsynchronous();var b=this.getUrl();var h=(org.eclipse.rwt.Client.getRunsLocally()&&!(/^http(s){0,1}\:/.test(b)));this._localRequest=h;var k=this.getParameters();var e=[];for(var l in k){var j=k[l];if(j instanceof Array){for(var c=0;c<j.length;c++){e.push(encodeURIComponent(l)+"="+encodeURIComponent(j[c]))}}else{e.push(encodeURIComponent(l)+"="+encodeURIComponent(j))}}if(e.length>0){b+=(b.indexOf("?")>=0?"&":"?")+e.join("&")}var n=function(r){var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var o="";var y,w,u;var x,v,t,s;var q=0;do{y=r.charCodeAt(q++);w=r.charCodeAt(q++);u=r.charCodeAt(q++);x=y>>2;v=((y&3)<<4)|(w>>4);t=((w&15)<<2)|(u>>6);s=u&63;if(isNaN(w)){t=s=64}else{if(isNaN(u)){s=64}}o+=p.charAt(x)+p.charAt(v)+p.charAt(t)+p.charAt(s)}while(q<r.length);return o};m.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,this);if(this.getUsername()){if(this.getUseBasicHttpAuth()){m.open(a,b,f);m.setRequestHeader("Authorization","Basic "+n(this.getUsername()+":"+this.getPassword()))}else{m.open(a,b,f,this.getUsername(),this.getPassword())}}else{m.open(a,b,f)}if(!org.eclipse.rwt.Client.isWebkit()){m.setRequestHeader("Referer",window.location.href)}var d=this.getRequestHeaders();for(var l in d){m.setRequestHeader(l,d[l])}try{m.send(this.getData())}catch(g){if(h){this.failedLocally()}else{throw new Error("Failed to send data: "+g);this.failed()}return}if(!f){this._onreadystatechange()}},failedLocally:function(){if(this.getState()===$[38]){return}this.failed()},_onreadystatechange:function(b){switch(this.getState()){case $[27]:case $[55]:case $[38]:case $[53]:return}var a=this.getReadyState();if(a==4){if(!qx.io.remote.Exchange.wasSuccessful(this.getStatusCode(),a,this._localRequest)){return this.failed()}}while(this._lastReadyState<a){this.setState(qx.io.remote.Exchange._nativeMap[++this._lastReadyState])}},getReadyState:function(){var a=null;try{a=this._req.readyState}catch(b){}return a},setRequestHeader:function(a,b){this._req.setRequestHeader(a,b)},getResponseHeader:function(a){var c=null;try{this.getRequest().getResponseHeader(a)||null}catch(b){}return c},getStringResponseHeaders:function(){var c=null;try{var b=this._req.getAllResponseHeaders();if(b){c=b}}catch(a){}return c},getResponseHeaders:function(){var e=this.getStringResponseHeaders();var a={};if(e){var c=e.split(/[\r\n]+/g);for(var d=0,b=c.length;d<b;d++){var f=c[d].match(/^([^:]+)\s*:\s*(.+)$/i);if(f){a[f[1]]=f[2]}}}return a},getStatusCode:function(){var b=-1;try{b=this.getRequest().status}catch(a){}return b},getStatusText:function(){var a="";try{a=this.getRequest().statusText}catch(b){}return a},getResponseText:function(){var d=null;var a=this.getStatusCode();var b=this.getReadyState();if(qx.io.remote.Exchange.wasSuccessful(a,b,this._localRequest)){try{d=this.getRequest().responseText}catch(c){}}return d},getResponseXml:function(){var d=null;var a=this.getStatusCode();var b=this.getReadyState();if(qx.io.remote.Exchange.wasSuccessful(a,b,this._localRequest)){try{d=this.getRequest().responseXML}catch(c){}}if(typeof d==$[19]&&d!=null){if(!d.documentElement){var e=String(this.getRequest().responseText).replace(/<\?xml[^\?]*\?>/,"");d.loadXML(e)}if(!d.documentElement){throw new Error("Missing Document Element!")}if(d.documentElement.tagName=="parseerror"){throw new Error("XML-File is not well-formed!")}}else{throw new Error("Response was not a valid xml document ["+this.getRequest().responseText+"]")}return d},getFetchedLength:function(){var a=this.getResponseText();return typeof a==$[9]?a.length:0},getResponseContent:function(){var a=null;if(this.getState()===$[27]){a=this.getResponseText()}return a},_applyState:function(b,a){switch(b){case $[152]:this.createDispatchEvent($[152]);break;case $[95]:this.createDispatchEvent($[95]);break;case $[52]:this.createDispatchEvent($[52]);break;case $[56]:this.createDispatchEvent($[56]);break;case $[27]:this.createDispatchEvent($[27]);break;case $[38]:this.createDispatchEvent($[38]);break;case $[55]:this.getRequest().abort();this.createDispatchEvent($[55]);break;case $[53]:this.getRequest().abort();this.createDispatchEvent($[53]);break}}},defer:function(b,a){qx.io.remote.Exchange.registerType(qx.io.remote.XmlHttpTransport,$[290])},destruct:function(){var a=this.getRequest();if(a){a.onreadystatechange=qx.io.remote.XmlHttpTransport.__dummy;switch(a.readyState){case 1:case 2:case 3:a.abort()}}this._disposeFields("_req")}});
qx.Class.define("qx.net.HttpRequest",{statics:{create:qx.core.Variant.select($[0],{"default":function(){return new XMLHttpRequest},mshtml:qx.lang.Object.select(location.protocol!=="file:"&&window.XMLHttpRequest?"native":"activeX",{"native":function(){return new XMLHttpRequest},activeX:function(){if(this.__server){return new ActiveXObject(this.__server)}var f=["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];var e;var d;for(var c=0,a=f.length;c<a;c++){d=f[c];try{e=new ActiveXObject(d);break}catch(b){e=null}}if(e){this.__server=d}return e}})})}});
qx.Class.define("qx.html.Iframe",{statics:{getWindow:qx.core.Variant.select($[0],{mshtml:function(b){try{return b.contentWindow}catch(a){return null}},"default":function(c){try{var a=qx.html.Iframe.getDocument(c);return a?a.defaultView:null}catch(b){return null}}}),getDocument:qx.core.Variant.select($[0],{mshtml:function(c){try{var a=qx.html.Iframe.getWindow(c);return a?a.document:null}catch(b){return null}},"default":function(b){try{return b.contentDocument}catch(a){return null}}}),getBody:function(b){var a=qx.html.Iframe.getDocument(b);return a?a.getElementsByTagName("body")[0]:null}}});
qx.Class.define("qx.net.Http",{statics:{METHOD_GET:"GET",METHOD_POST:"POST",METHOD_PUT:"PUT",METHOD_HEAD:"HEAD",METHOD_DELETE:"DELETE"}});
qx.Class.define($[462],{extend:qx.core.Target,construct:function(c,a,b){arguments.callee.base.call(this);this._requestHeaders={};this._parameters={};this._formFields={};if(c!==undefined){this.setUrl(c)}if(a!==undefined){this.setMethod(a)}if(b!==undefined){this.setResponseType(b)}this.setProhibitCaching(true);this._seqNum=++qx.io.remote.Request._seqNum},events:{created:$[3],configured:$[3],sending:$[3],receiving:$[3],completed:$[119],aborted:$[119],failed:$[119],timeout:$[119]},statics:{_seqNum:0},properties:{url:{check:$[21],init:""},method:{check:[qx.net.Http.METHOD_GET,qx.net.Http.METHOD_POST,qx.net.Http.METHOD_PUT,qx.net.Http.METHOD_HEAD,qx.net.Http.METHOD_DELETE],apply:"_applyMethod",init:qx.net.Http.METHOD_GET},asynchronous:{check:$[2],init:true},data:{check:$[21],nullable:true},username:{check:$[21],nullable:true},password:{check:$[21],nullable:true},state:{check:[$[95],$[167],$[52],$[56],$[27],$[55],$[53],$[38]],init:$[95],event:$[328]},responseType:{check:[qx.util.Mime.TEXT,qx.util.Mime.JAVASCRIPT,qx.util.Mime.JSON,qx.util.Mime.XML,qx.util.Mime.HTML],init:qx.util.Mime.TEXT},timeout:{check:$[14],nullable:true},prohibitCaching:{check:$[2],init:true,apply:"_applyProhibitCaching"},crossDomain:{check:$[2],init:false},fileUpload:{check:$[2],init:false},transport:{check:$[387],nullable:true},useBasicHttpAuth:{check:$[2],init:false}},members:{send:function(){qx.io.remote.RequestQueue.getInstance().add(this)},abort:function(){qx.io.remote.RequestQueue.getInstance().abort(this)},reset:function(){switch(this.getState()){case $[52]:case $[56]:throw new Error("Aborting already sent request!");case $[167]:this.abort();break}},isConfigured:function(){return this.getState()===$[95]},isQueued:function(){return this.getState()===$[167]},isSending:function(){return this.getState()===$[52]},isReceiving:function(){return this.getState()===$[56]},isCompleted:function(){return this.getState()===$[27]},isAborted:function(){return this.getState()===$[55]},isTimeout:function(){return this.getState()===$[53]},isFailed:function(){return this.getState()===$[38]},_onqueued:function(a){this.setState($[167]);this.dispatchEvent(a)},_onsending:function(a){this.setState($[52]);this.dispatchEvent(a)},_onreceiving:function(a){this.setState($[56]);this.dispatchEvent(a)},_oncompleted:function(a){this.setState($[27]);this.dispatchEvent(a);this.dispose()},_onaborted:function(a){this.setState($[55]);this.dispatchEvent(a);this.dispose()},_ontimeout:function(a){this.setState($[53]);this.dispatchEvent(a);this.dispose()},_onfailed:function(a){this.setState($[38]);this.dispatchEvent(a);this.dispose()},_applyProhibitCaching:function(b,a){if(b){this.setParameter("nocache",new Date().valueOf());this.setRequestHeader("Pragma","no-cache");this.setRequestHeader($[443],"no-cache")}else{this.removeParameter("nocache");this.removeRequestHeader("Pragma");this.removeRequestHeader($[443])}},_applyMethod:function(b,a){if(b===qx.net.Http.METHOD_POST){this.setRequestHeader($[348],"application/x-www-form-urlencoded; charset=UTF-8")}else{this.removeRequestHeader($[348])}},setRequestHeader:function(a,b){this._requestHeaders[a]=b},removeRequestHeader:function(a){delete this._requestHeaders[a]},getRequestHeader:function(a){return this._requestHeaders[a]||null},getRequestHeaders:function(){return this._requestHeaders},setParameter:function(a,b){this._parameters[a]=b},removeParameter:function(a){delete this._parameters[a]},getParameter:function(a){return this._parameters[a]||null},getParameters:function(){return this._parameters},setFormField:function(a,b){this._formFields[a]=b},removeFormField:function(a){delete this._formFields[a]},getFormField:function(a){return this._formFields[a]||null},getFormFields:function(){return this._formFields},getSequenceNumber:function(){return this._seqNum}},destruct:function(){this.setTransport(null);this._disposeFields("_requestHeaders","_parameters","_formFields")}});
qx.Class.define("qx.ui.popup.PopupAtom",{extend:qx.ui.popup.Popup,construct:function(a,b){arguments.callee.base.call(this);this._atom=new qx.ui.basic.Atom(a,b);this._atom.setParent(this)},members:{_isFocusRoot:false,getAtom:function(){return this._atom}},destruct:function(){this._disposeObjects("_atom")}});
qx.Class.define($[240],{extend:qx.ui.popup.PopupAtom,construct:function(a,b){arguments.callee.base.call(this,a,b);this._showTimer=new qx.client.Timer(this.getShowInterval());this._showTimer.addEventListener($[26],this._onshowtimer,this);this._hideTimer=new qx.client.Timer(this.getHideInterval());this._hideTimer.addEventListener($[26],this._onhidetimer,this);this.addEventListener($[6],this._onmouseover);this.addEventListener($[8],this._onmouseover)},properties:{appearance:{refine:true,init:"widget-tool-tip"},hideOnHover:{check:$[2],init:true},mousePointerOffsetX:{check:$[14],init:1},mousePointerOffsetY:{check:$[14],init:20},showInterval:{check:$[14],init:1000,apply:"_applyShowInterval"},hideInterval:{check:$[14],init:4000,apply:"_applyHideInterval"},boundToWidget:{check:$[124],apply:"_applyBoundToWidget"}},members:{_minZIndex:10000000,_applyHideInterval:function(b,a){this._hideTimer.setInterval(b)},_applyShowInterval:function(b,a){this._showTimer.setInterval(b)},_applyBoundToWidget:function(b,a){if(b){this.setParent(b.getTopLevelWidget())}else{if(a){this.setParent(null)}}},_beforeAppear:function(){arguments.callee.base.call(this);this._stopShowTimer();this._startHideTimer()},_beforeDisappear:function(){arguments.callee.base.call(this);this._stopHideTimer()},_afterAppear:function(){arguments.callee.base.call(this);if(this.getRestrictToPageOnOpen()){var z=qx.ui.core.ClientDocument.getInstance();var j=z.getClientWidth();var f=z.getClientHeight();var c=parseInt(this.getRestrictToPageLeft());var t=parseInt(this.getRestrictToPageRight());var y=parseInt(this.getRestrictToPageTop());var d=parseInt(this.getRestrictToPageBottom());var i=(this._wantedLeft==null)?this.getLeft():this._wantedLeft;var p=this.getTop();var s=this.getBoxWidth();var r=this.getBoxHeight();var m=qx.event.type.MouseEvent.getPageX();var l=qx.event.type.MouseEvent.getPageY();var h=this.getLeft();var a=p;if(i+s>j-t){i=j-t-s}if(p+r>f-d){p=f-d-r}if(i<c){i=c}if(p<y){p=y}if(i<=m&&m<=i+s&&p<=l&&l<=p+r){var e=l-p;var v=e-r;var u=m-i;var k=u-s;var b=Math.max(0,y-(p+v));var n=Math.max(0,p+r+e-(f-d));var g=Math.max(0,c-(i+k));var o=Math.max(0,i+s+u-(j-t));var x=[[0,v,b],[0,e,n],[k,0,g],[u,0,o]];x.sort(function(B,A){return B[2]-A[2]||(Math.abs(B[0])+Math.abs(B[1]))-(Math.abs(A[0])+Math.abs(A[1]))});var w=x[0];i=i+w[0];p=p+w[1]}if(i!=h||p!=a){var q=this;window.setTimeout(function(){q.setLeft(i);q.setTop(p)},0)}}},_startShowTimer:function(){if(!this._showTimer.getEnabled()){this._showTimer.start()}},_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.getHideOnHover()){this.hide()}},_onshowtimer:function(a){this.setLeft(qx.event.type.MouseEvent.getPageX()+this.getMousePointerOffsetX());this.setTop(qx.event.type.MouseEvent.getPageY()+this.getMousePointerOffsetY());this.show()},_onhidetimer:function(a){return this.hide()}},destruct:function(){var a=qx.ui.popup.ToolTipManager.getInstance();a.remove(this);if(a.getCurrentToolTip()==this){a.resetCurrentToolTip()}this._disposeObjects("_showTimer","_hideTimer")}});
qx.Class.define("qx.ui.popup.ToolTipManager",{type:$[37],extend:qx.util.manager.Object,properties:{currentToolTip:{check:$[240],nullable:true,apply:"_applyCurrentToolTip"}},members:{_applyCurrentToolTip:function(b,a){if(a&&a.contains(b)){return}if(a&&!a.isDisposed()){a.hide();a._stopShowTimer();a._stopHideTimer()}if(b){b._startShowTimer()}},handleMouseEvent:function(b){var a=b.getType();if(a===$[6]){this._handleMouseOver(b)}else{if(a===$[8]){this._handleMouseOut(b)}}},_handleMouseOver:function(b){var c=b.getTarget();var a;if(!(c instanceof qx.ui.core.Widget)&&c.nodeType==1){c=org.eclipse.rwt.EventHandlerUtil.getTargetObject(c)}while(c!=null&&!(a=c.getToolTip())){c=c.getParent()}if(a!=null){a.setBoundToWidget(c)}this.setCurrentToolTip(a)},_handleMouseOut:function(c){var d=c.getTarget();var b=c.getRelatedTarget();var a=this.getCurrentToolTip();if(a&&(b==a||a.contains(b))){return}if(b&&d&&d.contains(b)){return}if(a&&!b){this.setCurrentToolTip(null)}},handleFocus:function(a){},handleBlur:function(b){var c=b.getTarget();if(!c){return}var a=this.getCurrentToolTip();if(a&&a==c.getToolTip()){this.setCurrentToolTip(null)}}}});
qx.Class.define("qx.html.Window",{statics:{getInnerWidth:qx.core.Variant.select($[0],{"mshtml|webkit":function(a){if(a.document.documentElement&&a.document.documentElement.clientWidth){return a.document.documentElement.clientWidth}else{if(a.document.body){return a.document.body.clientWidth}}return 0},"default":function(a){return a.innerWidth}}),getInnerHeight:qx.core.Variant.select($[0],{"mshtml|webkit":function(a){if(a.document.documentElement&&a.document.documentElement.clientHeight){return a.document.documentElement.clientHeight}else{if(a.document.body){return a.document.body.clientHeight}}return 0},"default":function(a){return a.innerHeight}}),getScrollLeft:qx.core.Variant.select($[0],{mshtml:function(a){if(a.document.documentElement&&a.document.documentElement.scrollLeft){return a.document.documentElement.scrollLeft}else{if(a.document.body){return a.document.body.scrollTop}}return 0},"default":function(a){return a.document.body.scrollLeft}}),getScrollTop:qx.core.Variant.select($[0],{mshtml:function(a){if(a.document.documentElement&&a.document.documentElement.scrollTop){return a.document.documentElement.scrollTop}else{if(a.document.body){return a.document.body.scrollTop}}return 0},"default":function(a){return a.document.body.scrollTop}})}});
qx.Class.define("qx.client.History",{type:$[37],extend:qx.core.Target,construct:qx.core.Variant.select($[0],{mshtml:function(){arguments.callee.base.call(this);this._hasNavigationListener=false;this._iframe=document.createElement("iframe");this._iframe.style.visibility=$[13];this._iframe.style.position=$[17];this._iframe.style.left="-1000px";this._iframe.style.top="-1000px";var a=qx.io.Alias.getInstance().resolve($[481]);this._iframe.src=a;document.body.appendChild(this._iframe);this._titles={};this._state=decodeURIComponent(this.__getHash());this._locationState=decodeURIComponent(this.__getHash());this.__waitForIFrame(function(){this.__storeState(this._state);this.__startTimer()},this)},"default":function(){arguments.callee.base.call(this);this._hasNavigationListener=false;this._titles={};this._state=this.__getState();this.__startTimer()}}),events:{request:$[48]},properties:{timeoutInterval:{check:$[59],init:100,apply:"_applyTimeoutInterval"}},members:{addToHistory:function(a,b){if(b!=null){document.title=b}this._titles[a]=document.title;if(a!=this._state){this._state=a;this.__storeState(a)}},getState:function(){return this._state},navigateBack:function(){qx.client.Timer.once(function(){history.back()},0)},navigateForward:function(){qx.client.Timer.once(function(){history.forward()},0)},_applyTimeoutInterval:function(a){this._timer.setInterval(a)},__onHistoryLoad:function(a){this._state=a;this.createDispatchDataEvent("request",a);if(this._titles[a]!=null){document.title=this._titles[a]}},__startTimer:function(){this._timer=new qx.client.Timer(this.getTimeoutInterval());this._timer.addEventListener($[26],function(b){var a=this.__getState();if(a!=this._state&&this._titles[a]!=null){this.__onHistoryLoad(a)}},this);if(this._hasNavigationListener){this._timer.start()}},__getHash:function(){var b=window.location.href;var a=b.indexOf("#");return a>=0?b.substring(a+1):""},__getState:qx.core.Variant.select($[0],{mshtml:function(){var d=decodeURIComponent(this.__getHash());if(d!=this._locationState){this._locationState=d;this.__storeState(d);return d}var c=this._iframe.contentWindow.document;var b=c.getElementById("state");var a=b?decodeURIComponent(b.innerText):"";return a},"default":function(){return decodeURIComponent(this.__getHash())}}),__storeState:qx.core.Variant.select($[0],{mshtml:function(c){var b='<html><body><div id="state">'+encodeURIComponent(c)+"</div></body></html>";try{var d=this._iframe.contentWindow.document;d.open();d.write(b);d.close()}catch(a){return false}return true},"default":function(a){window.location.hash="#"+encodeURIComponent(a);return true}}),__waitForIFrame:qx.core.Variant.select($[0],{mshtml:function(b,a){if(!this._iframe.contentWindow||!this._iframe.contentWindow.document){qx.client.Timer.once(function(){this.__waitForIFrame(b,a)},this,10);return}b.call(a||window)},"default":null}),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(c){var a=c.getData();var b=org.eclipse.swt.Request.getInstance();b.addParameter($[426],"true");b.addParameter($[472],a);b.send()}},destruct:function(){this._timer.stop();this._disposeObjects("_timer");this._disposeFields("_iframe","_titles")}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.BrowserHistory",{factory:function(a){return qx.client.History.getInstance()},destructor:qx.lang.Function.returnTrue,properties:[],propertyHandler:{},listeners:["navigation"],listenerHandler:{},methods:["add"],methodHandler:{add:function(b,d){var a=d.entries;for(var c=0;c<a.length;c++){b.addToHistory(a[c][0],a[c][1])}}}});
qx.Class.define($[250],{type:$[37],extend:qx.util.manager.Object,construct:function(){arguments.callee.base.call(this);this.__data={};this.__actions={};this.__cursors={};var e,d;var c=["move","copy",$[100],"nodrop"];for(var b=0,a=c.length;b<a;b++){d=c[b];e=this.__cursors[d]=new qx.ui.basic.Image;e.setAppearance("cursor-dnd-"+d);e.setZIndex(100000000)}},properties:{sourceWidget:{check:$[124],nullable:true},destinationWidget:{check:$[124],nullable:true,apply:"_applyDestinationWidget"},currentAction:{check:$[21],nullable:true,event:"changeCurrentAction"},defaultCursorDeltaX:{check:$[14],init:5},defaultCursorDeltaY:{check:$[14],init:15}},members:{__lastDestinationEvent:null,_applyDestinationWidget:function(b,a){if(b){b.dispatchEvent(new qx.event.type.DragEvent($[199],this.__lastDestinationEvent,b,this.getSourceWidget()));this.__lastDestinationEvent=null}},addData:function(a,b){this.__data[a]=b},getData:function(a){return this.__data[a]},clearData:function(){this.__data={}},getDropDataTypes:function(){var d=this.getDestinationWidget();var a=[];if(!d){return a}var e=d.getDropDataTypes();for(var c=0,b=e.length;c<b;c++){if(e[c] in this.__data){a.push(e[c])}}return a},getDropTarget:qx.core.Variant.select($[0],{"default":function(b){var a=b.getTarget();while(a!=null){if(!a.supportsDrop(this.__dragCache)){return null}if(this.supportsDrop(a)){return a}a=a.getParent()}return null}}),startDrag:function(){if(!this.__dragCache){throw new Error("Invalid usage of startDrag. Missing dragInfo!")}this.__dragCache.dragHandlerActive=true;this.setSourceWidget(this.__dragCache.sourceWidget);if(this.__feedbackWidget){this.__feedbackWidget.setVisibility(false);var a=qx.ui.core.ClientDocument.getInstance();a.add(this.__feedbackWidget);this.__feedbackWidget.setZIndex(100000000)}},_fireUserEvents:function(b,a,c){if(b&&b!=a&&b.hasEventListeners($[271])){b.dispatchEvent(new qx.event.type.DragEvent($[271],c,b,a),true)}if(a){if(b!=a&&a.hasEventListeners($[136])){a.dispatchEvent(new qx.event.type.DragEvent($[136],c,a,b),true)}if(a.hasEventListeners($[243])){a.dispatchEvent(new qx.event.type.DragEvent($[243],c,a,null),true)}}},handleMouseEvent:function(a){switch(a.getType()){case $[1]:return this._handleMouseDown(a);case $[5]:return this._handleMouseUp(a);case $[34]:return this._handleMouseMove(a)}},_handleMouseDown:function(a){if(a.getDefaultPrevented()||!a.isLeftButtonPressed()){return}if(this.__dragCache==null){this.__dragCache={startScreenX:a.getScreenX(),startScreenY:a.getScreenY(),pageX:a.getPageX(),pageY:a.getPageY(),sourceWidget:a.getTarget(),sourceTopLevel:a.getTarget().getTopLevelWidget(),dragHandlerActive:false,hasFiredDragStart:false}}},_handleMouseMove:function(b){if(!this.__dragCache){return}if(this.__dragCache.dragHandlerActive){this.__dragCache.pageX=b.getPageX();this.__dragCache.pageY=b.getPageY();var a=this.getDropTarget(b);this.setCurrentAction(a?this._evalNewAction(b.isShiftPressed(),b.isCtrlPressed(),b.isAltPressed()):null);this._fireUserEvents(this.__dragCache.currentDropWidget,a,b);this.__dragCache.currentDropWidget=a;this._renderCursor();this._renderFeedbackWidget()}else{if(!this.__dragCache.hasFiredDragStart){if(Math.abs(b.getScreenX()-this.__dragCache.startScreenX)>5||Math.abs(b.getScreenY()-this.__dragCache.startScreenY)>5){this.__dragCache.sourceWidget.dispatchEvent(new qx.event.type.DragEvent($[79],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;qx.ui.core.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 $[10]:this._handleKeyDown(a);return;case $[40]:this._handleKeyUp(a);return}},_handleKeyDown:function(a){if(a.getKeyIdentifier()==$[103]){this.cancelDrag(a)}else{if(this.getCurrentAction()!=null){switch(a.getKeyIdentifier()){case"Shift":case $[239]: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()==$[239];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 qx.event.type.DragEvent($[258],b,this.getSourceWidget(),a),true);this._endDragCore()},_endDragCore:function(){if(this.__feedbackWidget){var b=qx.ui.core.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}qx.ui.core.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 $[100]:b=this.__cursors.alias;break;default:b=this.__cursors.nodrop}if(b!=a&&a!=null){a._style.display="none"}if(!b._initialLayoutDone){qx.ui.core.ClientDocument.getInstance().add(b);qx.ui.core.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.length;a++){if(b[a] in this.__data){return true}}return false},addAction:function(b,a){this.__actions[b]=true;if(a||this.getCurrentAction()==null){this.setCurrentAction(b)}},clearActions:function(){this.__actions={};this.setCurrentAction(null)},removeAction:function(a){delete this.__actions[a];if(this.getCurrentAction()==a){this.setCurrentAction(null)}},setAction:function(a){if(a!=null&&!(a in this.__actions)){this.addAction(a,true)}else{this.setCurrentAction(a)}},_evalNewAction:function(d,b,a){if(d&&b&&$[100] in this.__actions){return $[100]}else{if(d&&a&&"copy" in this.__actions){return"copy"}else{if(d&&"move" in this.__actions){return"move"}else{if(a&&$[100] in this.__actions){return $[100]}else{if(b&&"copy" in this.__actions){return"copy"}else{for(var c in this.__actions){return c}}}}}}return null},setFeedbackWidget:function(d,c,b,a){this.__feedbackWidget=d;this.__feedbackDeltaX=(c!=null)?c:10;this.__feedbackDeltaY=(b!=null)?b:10;this.__feedbackAutoDispose=a?true:false},_renderFeedbackWidget:function(){if(this.__feedbackWidget){this.__feedbackWidget.setVisibility(true);this.__feedbackWidget._renderRuntimeLeft(this.__dragCache.pageX+this.__feedbackDeltaX);this.__feedbackWidget._renderRuntimeTop(this.__dragCache.pageY+this.__feedbackDeltaY)}}},destruct:function(){this._disposeObjectDeep("__cursors",1);this._disposeObjects("__feedbackWidget");this._disposeFields("__dragCache","__data","__actions","__lastDestinationEvent")}});
qx.Class.define($[149],{extend:qx.event.type.MouseEvent,construct:function(d,a,e,c){this._mouseEvent=a;var b=null;switch(d){case $[79]:case $[136]:b=a.getOriginalTarget()}arguments.callee.base.call(this,d,a.getDomEvent(),e.getElement(),e,b,c)},members:{getMouseEvent:function(){return this._mouseEvent},startDrag:function(){if(this.getType()!=$[79]){throw new Error("qx.event.type.DragEvent startDrag can only be called during the dragstart event: "+this.getType())}this.stopPropagation();qx.event.handler.DragAndDropHandler.getInstance().startDrag()},addData:function(b,a){qx.event.handler.DragAndDropHandler.getInstance().addData(b,a)},getData:function(a){return qx.event.handler.DragAndDropHandler.getInstance().getData(a)},clearData:function(){qx.event.handler.DragAndDropHandler.getInstance().clearData()},getDropDataTypes:function(){return qx.event.handler.DragAndDropHandler.getInstance().getDropDataTypes()},addAction:function(a){qx.event.handler.DragAndDropHandler.getInstance().addAction(a)},removeAction:function(a){qx.event.handler.DragAndDropHandler.getInstance().removeAction(a)},getAction:function(){return qx.event.handler.DragAndDropHandler.getInstance().getCurrentAction()},clearActions:function(){qx.event.handler.DragAndDropHandler.getInstance().clearActions()},setFeedbackWidget:function(d,c,b,a){qx.event.handler.DragAndDropHandler.getInstance().setFeedbackWidget(d,c,b,a)},setCursorPosition:function(b,a){qx.event.handler.DragAndDropHandler.getInstance().setCursorPosition(b,a)}},destruct:function(){this._disposeFields("_mouseEvent")}});
qx.Class.define("qx.ui.embed.HtmlEmbed",{extend:qx.ui.basic.Terminator,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setHtml(a)}},properties:{html:{check:$[21],init:"",apply:"_applyHtml",event:$[289]},textAlign:{check:["left",$[30],$[15],"justify"],nullable:true,themeable:true,apply:$[353]},font:{refine:true,init:null},textColor:{refine:true,init:null}},members:{_applyHtml:function(){if(this._isCreated){this._syncHtml()}},_applyTextAlign:function(b,a){b===null?this.removeStyleProperty($[198]):this.setStyleProperty($[198],b)},_applyFont:function(b,a){this._styleFont(b)},_styleFont:function(a){a?a.render(this):qx.ui.core.Font.reset(this)},_applyTextColor:function(b,a){this._styleTextColor(b)},_styleTextColor:function(a){a?this.setStyleProperty($[65],a):this.removeStyleProperty($[65])},_applyElementData:function(){this._syncHtml()},_syncHtml:function(){this._getTargetNode().innerHTML=this.getHtml()}}});
qx.Class.define("qx.ui.embed.Iframe",{extend:qx.ui.basic.Terminator,construct:function(a){arguments.callee.base.call(this);this.initSelectable();this.initTabIndex();this.initScrolling();if(a!=null){this.setSource(a)}},events:{load:$[3]},statics:{load:function(b){try{if(!b){throw new Error("Could not find iframe which was loaded [A]!")}if(b.currentTarget){b=b.currentTarget}if(b._QxIframe){b._QxIframe._onload()}else{if(b.parentNode){throw new Error("Could not find iframe which was loaded [B]!")}}}catch(a){org.eclipse.rwt.ErrorHandler.processJavaScriptError(a)}},_useAlternateLayouting:function(){return org.eclipse.rwt.Client.isMobileSafari()}},properties:{tabIndex:{refine:true,init:0},selectable:{refine:true,init:false},appearance:{refine:true,init:"iframe"},source:{check:$[21],apply:$[389],event:$[369],nullable:true},frameName:{check:$[21],init:"",apply:"_applyFrameName"},scrolling:{check:["yes","no","auto"],init:"auto",apply:"_applyScrolling"}},members:{getIframeNode:function(){return this._iframeNode},setIframeNode:function(a){return this._iframeNode=a},getBlockerNode:function(){return this._blockerNode},setBlockerNode:function(a){return this._blockerNode=a},getContentWindow:function(){if(this.isCreated()){return qx.html.Iframe.getWindow(this.getIframeNode())}else{return null}},getContentDocument:function(){if(this.isCreated()){return qx.html.Iframe.getDocument(this.getIframeNode())}else{return null}},isLoaded:qx.core.Variant.select($[0],{mshtml:function(){var a=this.getContentDocument();return a?a.readyState=="complete":false},"default":function(){return this._isLoaded}}),reload:function(){if(this.isCreated()&&this.getContentWindow()){this._isLoaded=false;var b=this.queryCurrentUrl()||this.getSource();try{try{this.getContentWindow().location.replace(b)}catch(a){this.getIframeNode().src=b}}catch(a){throw new Error($[503])}}},queryCurrentUrl:function(){var b=this.getContentDocument();try{if(b&&b.location){return b.location.href}}catch(a){}return null},block:function(){if(this._blockerNode&&(!this._blockerNode.parentElement||(org.eclipse.rwt.Client.isGecko()&&!this._blockerNode.parentNode))){this._getBlockerParent().appendChild(this._blockerNode)}},release:function(){if(this._blockerNode&&(this._blockerNode.parentElement||(org.eclipse.rwt.Client.isGecko()&&this._blockerNode.parentNode))){this._getBlockerParent().removeChild(this._blockerNode)}},_getBlockerParent:function(){var a=this.getElement();if(this._innerStyle){return a.firstChild}else{return a}},_generateIframeElement:function(){var a=this._createIframeNode(this.getFrameName());a._QxIframe=this;a.frameBorder="0";a.frameSpacing="0";a.marginWidth="0";a.marginHeight="0";if(!qx.ui.embed.Iframe._useAlternateLayouting()){a.width="100%";a.height="100%"}a.hspace="0";a.vspace="0";a.border="0";a.unselectable="on";a.allowTransparency="true";a.style.position=$[17];a.style.top=0;a.style.left=0;return a},_createIframeNode:qx.core.Variant.select($[0],{mshtml:function(b){var c=b?'name="'+b+'"':"";var a=qx.ui.embed.Iframe._element=document.createElement("<iframe "+c+" ></iframe>");a.attachEvent("onload",function(){qx.ui.embed.Iframe.load(a)});return a},"default":function(b){var a=qx.ui.embed.Iframe._element=document.createElement("iframe");a.onload=qx.ui.embed.Iframe.load;if(b){a.name=b}return a}}),_generateBlockerElement:function(){var b=qx.ui.embed.Iframe._blocker=document.createElement("div");var a=b.style;if(org.eclipse.rwt.Client.isMshtml()){a.backgroundColor="white";a.filter="Alpha(Opacity=0)"}a.position=$[17];a.top=0;a.left=0;a.width="100%";a.height="100%";a.zIndex=1;return b},_applyElement:function(d,b){var a=this.setIframeNode(this._generateIframeElement());var c=this.setBlockerNode(this._generateBlockerElement());this._syncSource();this._syncScrolling();d.appendChild(a);arguments.callee.base.call(this,d,b)},_beforeAppear:function(){arguments.callee.base.call(this);qx.ui.embed.IframeManager.getInstance().add(this)},_beforeDisappear:function(){arguments.callee.base.call(this);qx.ui.embed.IframeManager.getInstance().remove(this)},_applySource:function(b,a){if(this.isCreated()){this._syncSource()}},_syncSource:function(){var b=this.getSource();if(b==null||b===""){b=qx.io.Alias.getInstance().resolve($[481])}this._isLoaded=false;try{if(this.getContentWindow()){try{this.getContentWindow().location.replace(b)}catch(a){this.getIframeNode().src=b}}else{this.getIframeNode().src=b}}catch(a){throw new Error($[503])}},_applyScrolling:function(b,a){if(this.isCreated()){this._syncScrolling()}},_syncScrolling:function(){this.getIframeNode().setAttribute("scrolling",this.getScrolling())},_applyFrameName:function(c,a,b,d){if(this.isCreated()){throw new Error("Not allowed to set frame name after it has been created")}},_onload:function(){if(!this._isLoaded){this._isLoaded=true;this.createDispatchEvent("load")}},destroy:function(){var a="javascript:false;";if(org.eclipse.rwt.Client.isMshtml()&&this._iframeNode&&this.getSource()!==a){this.setStyleProperty($[151],$[13]);this.addToDocument();this.addEventListener("load",function(){this.destroy()},this);this.setSource(a)}else{arguments.callee.base.call(this)}},_isLoaded:false},defer:function(e,a){if(qx.ui.embed.Iframe._useAlternateLayouting()){var c=a._renderRuntimeWidth;var d=a._renderRuntimeHeight;var b=a._resetRuntimeWidth;var g=a._resetRuntimeHeight;a._renderRuntimeWidth=function(h){c.call(this,h);this._iframeNode.style.minWidth=h+"px";this._iframeNode.style.maxWidth=h+"px"};var f=a._renderRuntimeHeight;a._renderRuntimeHeight=function(h){d.call(this,h);this._iframeNode.style.minHeight=h+"px";this._iframeNode.style.maxHeight=h+"px"};a._resetRuntimeWidth=function(h){b.call(this,h);this._iframeNode.style.minWidth="";this._iframeNode.style.maxWidth=""};a._resetRuntimeHeight=function(h){g.call(this,h);this._iframeNode.style.minHeight="";this._iframeNode.style.maxHeight=""}}},destruct:function(){if(this._iframeNode){this._iframeNode._QxIframe=null;this._iframeNode.onload=null;this._iframeNode=null;this._getTargetNode().innerHTML=""}this._disposeFields("__onload","_blockerNode")}});
qx.Class.define($[392],{type:$[101],extend:qx.ui.basic.Atom,construct:function(e,d,c,a,b){arguments.callee.base.call(this,e,d,c,a,b);this.initChecked();this.initTabIndex();this.addEventListener($[6],this._onmouseover);this.addEventListener($[8],this._onmouseout);this.addEventListener($[1],this._onmousedown);this.addEventListener($[10],this._onkeydown);this.addEventListener($[4],this._onkeypress)},properties:{tabIndex:{refine:true,init:1},checked:{check:$[2],init:false,apply:"_applyChecked",event:$[327]},page:{check:$[396],apply:"_applyPage",nullable:true},manager:{check:$[399],nullable:true,apply:$[504]},name:{check:$[21],apply:"_applyName"}},members:{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(c,b){if(this._hasParent){var a=this.getManager();if(a){a.handleItemChecked(this,c)}}if(c){this.addState($[203])}else{this.removeState($[203])}var d=this.getPage();if(d){if(this.getChecked()){d.show()}else{d.hide()}}},_applyName:function(b,a){if(this.getManager()){this.getManager().setName(b)}},_onmousedown:function(a){this.setChecked(true)},_onmouseover:function(a){this.addState("over")},_onmouseout:function(a){this.removeState("over")},_onkeydown:function(a){},_onkeypress:function(a){}}});
qx.Class.define("qx.ui.groupbox.GroupBox",{extend:qx.ui.layout.CanvasLayout,construct:function(b,a){arguments.callee.base.call(this);this._createFrameObject();this._createLegendObject();this.setLegend(b||"");if(a!=null){this.setIcon(a)}this.remapChildrenHandlingTo(this._frameObject)},properties:{appearance:{refine:true,init:"group-box"}},members:{_createLegendObject:function(){this._legendObject=new qx.ui.basic.Atom;this._legendObject.setAppearance("group-box-legend");this.add(this._legendObject)},_createFrameObject:function(){this._frameObject=new qx.ui.layout.CanvasLayout;this._frameObject.setAppearance("group-box-frame");this.add(this._frameObject)},getFrameObject:function(){return this._frameObject},getLegendObject:function(){return this._legendObject},setLegend:function(a){if(a!==""&&a!==null){this._legendObject.setLabel(a);this._legendObject.setDisplay(true)}else{this._legendObject.setDisplay(false)}},getLegend:function(){return this._legendObject.getLabel()},setIcon:function(a){this._legendObject.setIcon(a)},getIcon:function(){this._legendObject.getIcon()}},destruct:function(){this._disposeObjects("_legendObject","_frameObject")}});
qx.Mixin.define("qx.ui.resizer.MResizable",{construct:function(a){this._frame=new qx.ui.basic.Terminator;this._frame.setAppearance("resizer-frame");this.addEventListener($[1],this._onmousedown);this.addEventListener($[5],this._onmouseup);this.addEventListener($[34],this._onmousemove)},properties:{resizableWest:{check:$[2],init:true,apply:$[257]},resizableNorth:{check:$[2],init:true,apply:$[257]},resizableEast:{check:$[2],init:true,apply:$[257]},resizableSouth:{check:$[2],init:true,apply:$[257]},resizable:{group:["resizableNorth","resizableEast","resizableSouth","resizableWest"],mode:$[227]},resizeMethod:{init:$[105],check:["opaque","lazyopaque",$[105],$[154]],event:"changeResizeMethod"}},members:{isResizable:function(){return this.getResizableWest()||this.getResizableEast()||this.getResizableNorth()||this.getResizableSouth()},getResizable:function(){return this.isResizable()},_applyResizable:function(b,a){},_onmousedown:function(g){if(this._resizeNorth||this._resizeSouth||this._resizeWest||this._resizeEast){this.setCapture(true);this.getTopLevelWidget().setGlobalCursor(this.getCursor());var a=this.getElement();var i=this._getResizeParent();var b=i.getElement();var d=qx.bom.element.Location.get(b,$[12]);var h=qx.bom.element.Location.get(a);switch(this.getResizeMethod()){case $[154]:this.setOpacity(0.5);break;case $[105]:var c=this._frame;if(c.getParent()!=i){c.setParent(i);qx.ui.core.Widget.flushGlobalQueues()}c._renderRuntimeLeft(h.left-d.left);c._renderRuntimeTop(h.top-d.top);c._renderRuntimeWidth(a.offsetWidth);c._renderRuntimeHeight(a.offsetHeight);c.setZIndex(this.getZIndex()+1);break}var k=this._resizeSession={};var j=this._getMinSizeReference();if(this._resizeWest){k.boxWidth=a.offsetWidth;k.boxRight=h.right}if(this._resizeWest||this._resizeEast){k.boxLeft=h.left;k.parentContentLeft=d.left;k.parentContentRight=d.right;k.minWidth=j.getMinWidthValue();k.maxWidth=j.getMaxWidthValue()}if(this._resizeNorth){k.boxHeight=a.offsetHeight;k.boxBottom=h.bottom}if(this._resizeNorth||this._resizeSouth){k.boxTop=h.top;k.parentContentTop=d.top;k.parentContentBottom=d.bottom;k.minHeight=j.getMinHeightValue();k.maxHeight=j.getMaxHeightValue()}}else{delete this._resizeSession}g.stopPropagation()},_onmouseup:function(b){var a=this._resizeSession;if(a){this.setCapture(false);this.getTopLevelWidget().setGlobalCursor(null);switch(this.getResizeMethod()){case $[105]:var c=this._frame;if(!(c&&c.getParent())){break}case"lazyopaque":if(a.lastLeft!=null){this.setLeft(a.lastLeft)}if(a.lastTop!=null){this.setTop(a.lastTop)}if(a.lastWidth!=null){this._changeWidth(a.lastWidth)}if(a.lastHeight!=null){this._changeHeight(a.lastHeight)}if(this.getResizeMethod()==$[105]){this._frame.setParent(null)}break;case $[154]:this.setOpacity(null);break}delete this._resizeSession}b.stopPropagation()},_near:function(b,a){return a>(b-5)&&a<(b+5)},_onmousemove:function(d){if(this._disableResize){return}var c=this._resizeSession;if(c){if(this._resizeWest){c.lastWidth=qx.lang.Number.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=qx.lang.Number.limit(Math.min(d.getPageX(),c.parentContentRight)-c.boxLeft,c.minWidth,c.maxWidth)}}if(this._resizeNorth){c.lastHeight=qx.lang.Number.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=qx.lang.Number.limit(Math.min(d.getPageY(),c.parentContentBottom)-c.boxTop,c.minHeight,c.maxHeight)}}switch(this.getResizeMethod()){case"opaque":case $[154]: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()==$[105]?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=qx.bom.element.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")}});
qx.Class.define("qx.ui.resizer.ResizablePopup",{extend:qx.ui.popup.Popup,include:qx.ui.resizer.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}}});
qx.Class.define($[379],{extend:qx.ui.resizer.ResizablePopup,construct:function(d,m,g){arguments.callee.base.call(this);this.setWindowManager(g||qx.ui.window.Window.getDefaultWindowManager());var e=this._layout=new qx.ui.layout.VerticalBoxLayout;e.setEdge(0);this.add(e);var f=this._captionBar=new qx.ui.layout.HorizontalBoxLayout;f.setAppearance("window-captionbar");f.setHeight("auto");f.setOverflow($[13]);e.add(f);var q=this._captionIcon=new qx.ui.basic.Image;q.setAppearance("window-captionbar-icon");f.add(q);var h=this._captionTitle=new qx.ui.basic.Label(d);h.setAppearance("window-captionbar-title");h.setSelectable(false);f.add(h);var b=this._captionFlex=new qx.ui.basic.HorizontalSpacer;f.add(b);var c=this._minimizeButton=new qx.ui.form.Button;c.setAppearance("window-captionbar-minimize-button");c.setTabIndex(null);c.addEventListener($[108],this._onminimizebuttonclick,this);c.addEventListener($[1],this._onbuttonmousedown,this);f.add(c);var o=this._restoreButton=new qx.ui.form.Button;o.setAppearance("window-captionbar-restore-button");o.setTabIndex(null);o.addEventListener($[108],this._onrestorebuttonclick,this);o.addEventListener($[1],this._onbuttonmousedown,this);var j=this._maximizeButton=new qx.ui.form.Button;j.setAppearance("window-captionbar-maximize-button");j.setTabIndex(null);j.addEventListener($[108],this._onmaximizebuttonclick,this);j.addEventListener($[1],this._onbuttonmousedown,this);f.add(j);var i=this._closeButton=new qx.ui.form.Button;i.setAppearance("window-captionbar-close-button");i.setTabIndex(null);i.addEventListener($[108],this._onclosebuttonclick,this);i.addEventListener($[1],this._onbuttonmousedown,this);f.add(i);var a=this._pane=new qx.ui.layout.CanvasLayout;a.setHeight("1*");a.setOverflow($[13]);e.add(a);var k=this._statusBar=new qx.ui.layout.HorizontalBoxLayout;k.setAppearance("window-statusbar");k.setHeight("auto");var n=this._statusText=new qx.ui.basic.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($[1],this._onwindowmousedown);this.addEventListener($[16],this._onwindowclick);f.addEventListener($[1],this._oncaptionmousedown,this);f.addEventListener($[5],this._oncaptionmouseup,this);f.addEventListener($[34],this._oncaptionmousemove,this);f.addEventListener($[51],this._oncaptiondblblick,this);this.remapChildrenHandlingTo(this._pane)},statics:{getDefaultWindowManager:function(){if(!qx.ui.window.Window._defaultWindowManager){qx.ui.window.Window._defaultWindowManager=new qx.ui.window.Manager}return qx.ui.window.Window._defaultWindowManager}},properties:{appearance:{refine:true,init:"window"},windowManager:{check:$[370],event:"changeWindowManager"},active:{check:$[2],init:false,apply:"_applyActive",event:$[320]},modal:{check:$[2],init:false,apply:"_applyModal",event:"changeModal"},mode:{check:[$[210],$[78]],init:null,nullable:true,apply:"_applyMode",event:$[349]},opener:{check:$[124]},caption:{apply:"_applyCaption",event:"changeCaption",dispose:true},icon:{check:$[21],nullable:true,apply:$[322],event:"changeIcon"},status:{check:$[21],init:"Ready",apply:"_applyStatus",event:"changeStatus"},showClose:{check:$[2],init:true,apply:"_applyShowClose"},showMaximize:{check:$[2],init:true,apply:"_applyShowMaximize"},showMinimize:{check:$[2],init:true,apply:"_applyShowMinimize"},showStatusbar:{check:$[2],init:false,apply:"_applyShowStatusbar"},allowClose:{check:$[2],init:true,apply:"_applyAllowClose"},allowMaximize:{check:$[2],init:true,apply:"_applyAllowMaximize"},allowMinimize:{check:$[2],init:true,apply:"_applyAllowMinimize"},showCaption:{check:$[2],init:true,apply:"_applyShowCaption"},showIcon:{check:$[2],init:true,apply:"_applyShowIcon"},moveable:{check:$[2],init:true,event:"changeMoveable"},moveMethod:{check:["opaque",$[105],$[154]],init:"opaque",event:"changeMoveMethod"}},members:{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($[78])},minimize:function(){this.setMode($[210])},restore:function(){this.setMode(null)},_beforeAppear:function(){qx.ui.layout.CanvasLayout.prototype._beforeAppear.call(this);qx.ui.popup.PopupManager.getInstance().update();org.eclipse.rwt.EventHandler.setFocusRoot(this);this.getWindowManager().add(this);this._makeActive()},_beforeDisappear:function(){qx.ui.layout.CanvasLayout.prototype._beforeDisappear.call(this);var a=org.eclipse.rwt.EventHandler.getFocusRoot();if(a==this||this.contains(a)){org.eclipse.rwt.EventHandler.setFocusRoot(null)}var b=org.eclipse.rwt.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=qx.lang.Object.getValues(this.getWindowManager().getAll()).sort(d);var c=e.length;var a=this._minZIndex;for(var b=0;b<c;b++){e[b].setZIndex(a++)}},_applyActive:function(b,a){if(a){if(this.getFocused()){this.setFocused(false)}if(this.getWindowManager().getActiveWindow()==this){this.getWindowManager().setActiveWindow(null)}this._setActiveState(false)}else{if(!this.getFocusedChild()){this.setFocused(true)}this._setActiveState(true);this.getWindowManager().setActiveWindow(this);this.bringToFront()}},_setActiveState:function(a){if(!this.getWindowManager().blockActiveState){if(a){this.addState($[68]);this._captionBar.addState($[68]);this._minimizeButton.addState($[68]);this._restoreButton.addState($[68]);this._maximizeButton.addState($[68]);this._closeButton.addState($[68])}else{this.removeState($[68]);this._captionBar.removeState($[68]);this._minimizeButton.removeState($[68]);this._restoreButton.removeState($[68]);this._maximizeButton.removeState($[68]);this._closeButton.removeState($[68])}}},_applyModal:function(c,a){if(this._initialLayoutDone&&this.getVisibility()&&this.getDisplay()){var b=this.getTopLevelWidget();c?b.block(this):b.release(this)}},_applyAllowClose:function(b,a){this._closeButtonManager()},_applyAllowMaximize:function(b,a){this._maximizeButtonManager()},_applyAllowMinimize:function(b,a){this._minimizeButtonManager()},_applyMode:function(b,a){switch(b){case $[210]:this._disableResize=true;this._minimize();break;case $[78]:this._disableResize=true;this._maximize();break;default:delete this._disableResize;switch(a){case $[78]:this._restoreFromMaximized();break;case $[210]:this._restoreFromMinimized();break}}},_applyShowCaption:function(b,a){if(b){this._captionBar.addAt(this._captionTitle,this.getShowIcon()?1:0)}else{this._captionBar.remove(this._captionTitle)}},_applyShowIcon:function(b,a){if(b){this._captionBar.addAtBegin(this._captionIcon)}else{this._captionBar.remove(this._captionIcon)}},_applyShowStatusbar:function(b,a){if(b){this._layout.addAtEnd(this._statusBar)}else{this._layout.remove(this._statusBar)}},_applyShowClose:function(b,a){if(b){this._captionBar.addAtEnd(this._closeButton)}else{this._captionBar.remove(this._closeButton)}},_applyShowMaximize:function(c,a){if(c){var b=this.getMode()==$[78]?this._restoreButton:this._maximizeButton;if(this.getShowMinimize()){this._captionBar.addAfter(b,this._minimizeButton)}else{this._captionBar.addAfter(b,this._captionFlex)}}else{this._captionBar.remove(this._maximizeButton);this._captionBar.remove(this._restoreButton)}},_applyShowMinimize:function(b,a){if(b){this._captionBar.addAfter(this._minimizeButton,this._captionFlex)}else{this._captionBar.remove(this._minimizeButton)}},_minimizeButtonManager:function(){this.getAllowMinimize()===false?this._minimizeButton.setEnabled(false):this._minimizeButton.resetEnabled()},_closeButtonManager:function(){this.getAllowClose()===false?this._closeButton.setEnabled(false):this._closeButton.resetEnabled()},_maximizeButtonManager:function(){var a=this.getAllowMaximize()&&this.getResizable()&&this._computedMaxWidthTypeNull&&this._computedMaxHeightTypeNull;if(this._maximizeButton){a===false?this._maximizeButton.setEnabled(false):this._maximizeButton.resetEnabled()}if(this._restoreButton){a===false?this._restoreButton.setEnabled(false):this._restoreButton.resetEnabled()}},_applyStatus:function(b,a){this._statusText.setText(b)},_applyMaxWidth:function(b,a){arguments.callee.base.call(this,b);this._maximizeButtonManager()},_applyMaxHeight:function(b,a){arguments.callee.base.call(this,b);this._maximizeButtonManager()},_applyResizable:function(b,a){this._maximizeButtonManager()},_applyCaption:function(b,a){this._captionTitle.setText(b)},_applyIcon:function(b,a){this._captionIcon.setSource(b)},_minimize:function(){this.blur();this.hide()},_restoreFromMaximized:function(){this.setLeft(this._previousLeft?this._previousLeft:null);this.setWidth(this._previousWidth?this._previousWidth:null);this.setRight(this._previousRight?this._previousRight:null);this.setTop(this._previousTop?this._previousTop:null);this.setHeight(this._previousHeight?this._previousHeight:null);this.setBottom(this._previousBottom?this._previousBottom:null);this.removeState($[78]);if(this.getShowMaximize()){var a=this._captionBar;var b=a.indexOf(this._restoreButton);a.remove(this._restoreButton);a.addAt(this._maximizeButton,b)}this.focus()},_restoreFromMinimized:function(){if(this.hasState($[78])){this.setMode($[78])}this.show();this.focus()},_maximize:function(){if(this.hasState($[78])){return}this._previousLeft=this.getLeft();this._previousWidth=this.getWidth();this._previousRight=this.getRight();this._previousTop=this.getTop();this._previousHeight=this.getHeight();this._previousBottom=this.getBottom();this.setLeft(0);this.setTop(0);this.setWidth("100%");this.setHeight("100%");this.addState($[78]);if(this.getShowMaximize()){var a=this._captionBar;var b=a.indexOf(this._maximizeButton);a.remove(this._maximizeButton);a.addAt(this._restoreButton,b)}this.focus()},_onwindowclick:function(a){a.stopPropagation()},_onwindowmousedown:function(a){this.focus()},_onbuttonmousedown:function(a){a.stopPropagation()},_onminimizebuttonclick:function(a){this.minimize();this._minimizeButton.removeState($[11]);this._minimizeButton.removeState($[33]);this._minimizeButton.removeState("over");a.stopPropagation()},_onrestorebuttonclick:function(a){this.restore();this._restoreButton.removeState($[11]);this._restoreButton.removeState($[33]);this._restoreButton.removeState("over");a.stopPropagation()},_onmaximizebuttonclick:function(a){this.maximize();this._maximizeButton.removeState($[11]);this._maximizeButton.removeState($[33]);this._maximizeButton.removeState("over");a.stopPropagation()},_onclosebuttonclick:function(a){this.close();this._closeButton.removeState($[11]);this._closeButton.removeState($[33]);this._closeButton.removeState("over");a.stopPropagation()},_oncaptionmousedown:function(i){if(!i.isLeftButtonPressed()||!this.getMoveable()||this.getMode()!=null){return}this._captionBar.setCapture(true);var g=this.getElement();var d=this.getParent();var c=d.getElement();var b=qx.bom.element.Location.get(c,$[12]);var a=qx.bom.element.Location.get(g);this._dragSession={offsetX:i.getPageX()-a.left+b.left,offsetY:i.getPageY()-a.top+b.top,parentAvailableAreaLeft:b.left+5,parentAvailableAreaTop:b.top+5,parentAvailableAreaRight:b.right-5,parentAvailableAreaBottom:b.bottom-5};switch(this.getMoveMethod()){case $[154]:this.setOpacity(0.5);break;case $[105]:var h=this._frame;if(h.getParent()!=this.getParent()){h.setParent(this.getParent());qx.ui.core.Widget.flushGlobalQueues()}h._renderRuntimeLeft(a.left-b.left);h._renderRuntimeTop(a.top-b.top);h._renderRuntimeWidth(g.offsetWidth);h._renderRuntimeHeight(g.offsetHeight);h.setZIndex(this.getZIndex()+1);break}},_oncaptionmouseup:function(b){var a=this._dragSession;if(!a){return}this._captionBar.setCapture(false);if(a.lastX!=null){this.setLeft(a.lastX)}if(a.lastY!=null){this.setTop(a.lastY)}switch(this.getMoveMethod()){case $[154]:this.setOpacity(null);break;case $[105]:this._frame.setParent(null);break}delete this._dragSession},_oncaptionmousemove:function(b){var a=this._dragSession;if(!a||!this._captionBar.getCapture()){return}if(!qx.lang.Number.isBetweenRange(b.getPageX(),a.parentAvailableAreaLeft,a.parentAvailableAreaRight)||!qx.lang.Number.isBetweenRange(b.getPageY(),a.parentAvailableAreaTop,a.parentAvailableAreaBottom)){return}var c=this.getMoveMethod()==$[105]?this._frame:this;c._renderRuntimeLeft(a.lastX=b.getPageX()-a.offsetX);c._renderRuntimeTop(a.lastY=b.getPageY()-a.offsetY)},_oncaptiondblblick:function(a){if(!this._maximizeButton.getEnabled()){return}return this.getMode()==$[78]?this.restore():this.maximize()}},destruct:function(){this._disposeObjects("_layout","_captionBar","_captionIcon","_captionTitle","_captionFlex","_closeButton","_minimizeButton","_maximizeButton","_restoreButton","_pane","_statusBar","_statusText")}});
qx.Class.define("qx.ui.basic.HorizontalSpacer",{extend:qx.ui.basic.Terminator,construct:function(){arguments.callee.base.call(this);this.initWidth()},properties:{width:{refine:true,init:"1*"}}});
qx.Class.define($[370],{extend:qx.util.manager.Object,properties:{activeWindow:{check:$[106],nullable:true,apply:"_applyActiveWindow"}},members:{blockActiveState:false,_applyActiveWindow:function(b,a){qx.ui.popup.PopupManager.getInstance().update();if(a){a.setActive(false)}if(b){b.setActive(true)}if(a&&a.getModal()){a.getTopLevelWidget().release(a)}if(b&&b.getModal()){b.getTopLevelWidget().block(b)}},update:function(){var a,b;var c=this.getAll();for(var b in c){a=c[b];if(!a.getAutoHide()){continue}a.hide()}},compareWindows:function(b,a){switch(b.getWindowManager().getActiveWindow()){case b:return 1;case a:return -1}return b.getZIndex()-a.getZIndex()},add:function(a){arguments.callee.base.call(this,a);this.setActiveWindow(a)},remove:function(e){arguments.callee.base.call(this,e);if(this.getActiveWindow()==e){var c=[];for(var d in this._objects){c.push(this._objects[d])}var b=c.length;if(b==0){this.setActiveWindow(null)}else{if(b==1){this.setActiveWindow(c[0])}else{if(b>1){c.sort(this.compareWindows);this.setActiveWindow(c[b-1])}}}}}}});
qx.Class.define("qx.ui.menu.Separator",{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.initHeight();this.setStyleProperty($[165],"0");this.setStyleProperty($[306],"0");this._line=new qx.ui.basic.Terminator();this._line.setAnonymous(true);this._line.setAppearance("menu-separator-line");this.add(this._line);this.addEventListener($[1],this._onmousedown)},properties:{height:{refine:true,init:"auto"},appearance:{refine:true,init:"menu-separator"}},members:{hasIcon:qx.lang.Function.returnFalse,hasLabel:qx.lang.Function.returnFalse,hasShortcut:qx.lang.Function.returnFalse,hasMenu:qx.lang.Function.returnFalse,_onmousedown:function(a){a.stopPropagation()}},destruct:function(){this._disposeObjects("_line")}});
qx.Class.define($[396],{type:$[101],extend:qx.ui.layout.CanvasLayout,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:$[392],apply:"_applyButton"}},members:{_applyButton:function(b,a){if(a){a.setPage(null)}if(b){b.setPage(this)}}}});
qx.Class.define("qx.ui.pageview.tabview.Page",{extend:qx.ui.pageview.AbstractPage,properties:{appearance:{refine:true,init:"tab-view-page"}}});
qx.Class.define("qx.ui.pageview.tabview.Button",{extend:qx.ui.pageview.AbstractButton,events:{closetab:$[3]},properties:{appearance:{refine:true,init:"tab-view-button"},showCloseButton:{check:$[2],init:false,apply:"_applyShowCloseButton",event:"changeShowCloseButton"},closeButtonImage:{check:$[21],init:"icon/16/actions/dialog-cancel.png",apply:"_applyCloseButtonImage"}},members:{_onkeydown:function(b){var a=b.getKeyIdentifier();if(a==$[54]||a==$[83]){this.setChecked(true)}},_onkeypress:function(c){switch(c.getKeyIdentifier()){case"Left":var b=this.getPreviousActiveSibling();if(b&&b!=this){delete qx.event.handler.FocusHandler.mouseFocus;b.setFocused(true);b.setChecked(true)}break;case $[39]:var a=this.getNextActiveSibling();if(a&&a!=this){delete qx.event.handler.FocusHandler.mouseFocus;a.setFocused(true);a.setChecked(true)}break}},_ontabclose:function(a){this.createDispatchDataEvent("closetab",this);a.stopPropagation()},_applyChecked:function(b,a){arguments.callee.base.call(this,b,a);this.setZIndex(b?1:0)},_applyShowCloseButton:function(b,a){if(!this._closeButtonImage){this._closeButtonImage=new qx.ui.basic.Image(this.getCloseButtonImage())}if(b){this._closeButtonImage.addEventListener($[16],this._ontabclose,this);this.add(this._closeButtonImage)}else{this.remove(this._closeButtonImage);this._closeButtonImage.removeEventListener($[16],this._ontabclose,this)}},_applyCloseButtonImage:function(b,a){if(this._closeButtonImage){this._closeButtonImage.setSource(b)}},_renderAppearance:function(){if(this.getView()){if(this.isFirstVisibleChild()){this.addState("firstChild")}else{this.removeState($[247])}if(this.isLastVisibleChild()){this.addState($[247])}else{this.removeState($[247])}if(this.getView().getAlignTabsToLeft()){this.addState("alignLeft")}else{this.removeState("alignLeft")}if(!this.getView().getAlignTabsToLeft()){this.addState("alignRight")}else{this.removeState("alignRight")}if(this.getView().getPlaceBarOnTop()){this.addState($[156])}else{this.removeState($[156])}if(!this.getView().getPlaceBarOnTop()){this.addState("barBottom")}else{this.removeState("barBottom")}}arguments.callee.base.call(this)}},destruct:function(){this._disposeObjects("_closeButtonImage")}});
qx.Class.define("org.eclipse.rwt.ErrorHandler",{statics:{_overlay:null,_box:null,processJavaScriptErrorInResponse:function(a,b,c){var d="<p>Could not process server response:</p><pre>";d+=this._gatherErrorInfo(b,a,c);d+="</pre>";this.showErrorPage(d)},processJavaScriptError:function(b){this.errorObject=b;if(typeof console===$[19]){var e="Error: "+(b.message?b.message:b);if(typeof console.error!==$[7]){console.error(e)}else{if(typeof console.log!==$[7]){console.log(e)}}if(typeof console.log===$[45]&&b.stack){console.log("Error stack:\n"+b.stack)}else{if(typeof console.trace!==$[7]){console.trace()}}}var a=true;try{a=qx.core.Variant.isSet($[25],"on")}catch(c){}if(a){var d="<p>Javascript error occurred:</p><pre>";d+=this._gatherErrorInfo(b);d+="</pre>";this.showErrorPage(d);throw b}},showErrorPage:function(a){this._enableTextSelection();this._freezeApplication();document.title="Error Page";this._createErrorPageArea().innerHTML=a},showErrorBox:function(e,f){var b=String(window.location);var c=b.indexOf("#");if(c!=-1){b=b.substring(0,c)}var a='href="'+b+'"';var d=e.replace(/\{HREF_URL\}/,a);d=org.eclipse.rwt.protocol.EncodingUtil.replaceNewLines(d,$[107]);if(f){this._freezeApplication()}this._overlay=this._createOverlay();this._box=this._createErrorBoxArea(400,100);this._box.innerHTML=d;this._box.style.backgroundColor="#dae9f7";this._box.style.border="1px solid black";this._box.style.overflow="auto";var g=this._box.getElementsByTagName("a")[0];if(g){g.style.outline="none";g.focus()}},showWaitHint:function(){this.hideErrorBox();this._overlay=this._createOverlay();var c=org.eclipse.swt.theme.ThemeStore.getInstance();var a=$[318];var b=c.getSizedImage(a,{},"background-image");if(b&&b[0]){this._box=this._createErrorBoxArea(b[1],b[2]);org.eclipse.rwt.HtmlUtil.setBackgroundImage(this._box,b[0]);this._box.style.backgroundColor=$[82];this._box.style.border="none";this._box.style.overflow=$[13]}},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}},_gatherErrorInfo: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: "+qx.core.Variant.get($[25]));if(e){g.push("Request: "+e.getData())}var f=qx.ui.core.Widget._inFlushGlobalQueues;if(f){g.push("Phase: "+qx.ui.core.Widget._flushGlobalQueuesPhase)}}catch(c){}return g.join("\n ")},_createOverlay:function(){var b=document.createElement("div");var d=org.eclipse.swt.theme.ThemeStore.getInstance();var a=d.getColor($[318],{},$[193]);var e=d.getAlpha($[318],{},$[193]);var c=b.style;c.position=$[17];c.width="100%";c.height="100%";c.backgroundColor=a===$[7]?$[82]:a;org.eclipse.rwt.HtmlUtil.setOpacity(b,e);c.zIndex=100000000;document.body.appendChild(b);return b},_createErrorPageArea:function(){var a=document.createElement("div");var b=a.style;b.position=$[17];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=$[17];c.width=d+"px";c.height=a+"px";var g=qx.ui.core.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=$[30];c.fontFamily='verdana,"lucida sans",arial,helvetica,sans-serif';c.fontSize="12px";c.fontStyle=$[61];c.fontWeight=$[61];document.body.appendChild(b);return b},_freezeApplication:function(){try{var b=org.eclipse.rwt.Display.getCurrent();b.setExitConfirmation(null);qx.io.remote.RequestQueue.getInstance().setEnabled(false);org.eclipse.rwt.EventHandler.detachEvents();qx.core.Target.prototype.dispatchEvent=function(){};org.eclipse.rwt.Animation._stopLoop()}catch(a){try{console.log("_freezeApplication exception: "+a)}catch(a){}}},_enableTextSelection:function(){var b=qx.ui.core.ClientDocument.getInstance();b.setSelectable(true);if(org.eclipse.rwt.Client.isGecko()){var a=org.eclipse.rwt.EventHandlerUtil;qx.html.EventRegistration.removeEventListener(document.documentElement,$[1],a._ffMouseFixListener)}}}});
qx.Class.define("org.eclipse.rwt.widgets.TreeRowContainer",{extend:qx.ui.layout.VerticalBoxLayout,construct:function(){arguments.callee.base.call(this);this.setOverflow($[13]);this._scrollLeft=0;this._rowHeight=16;this._rowWidth=0;this._horzGridBorder=null;this._rowBorder=null;this._baseAppearance=null;this._topItem=null;this._vertGridLines=[];this._vertGridBorder=null;this._renderTime=null;this._topItemIndex=0;this._items=[];this._asyncQueue={};this._asyncTimer=new qx.client.Timer(0);this._asyncTimer.addEventListener($[26],this._onAsyncTimer,this);this._hoverItem=null;this._hoverElement=null;this._config=org.eclipse.rwt.widgets.TreeRowContainer.createRenderConfig();this.addEventListener($[6],this._onRowOver,this);this.addEventListener($[8],this._onRowOver,this);this.addEventListener($[237],this._onElementOver,this)},destruct:function(){this._rowBorder=null;this._topItem=null;this._renderTime=null;this._items=null;this._hoverItem=null;this._hoverElement=null;this._asyncTimer.dispose();this._asyncTimer=null},statics:{createRenderConfig:function(){var a={textColor:null,font:null,enabled:true,focused:false,linesVisible:false,fullSelection:false,hideSelection:false,alwaysHideSelection:false,variant:null,selectionPadding:null,indentionWidth:16,hasCheckBoxes:false,checkBoxLeft:null,checkBoxWidth:null,columnCount:0,treeColumn:0,alignment:[],itemLeft:[],itemWidth:[],itemImageLeft:[],itemImageWidth:[],itemTextLeft:[],itemTextWidth:[]};return a}},members:{getRenderConfig:function(){return this._config},setPostRenderFunction:function(b,a){this._postRender=[b,a]},setSelectionProvider:function(b,a){this._selectionProvider=[b,a]},setBaseAppearance:function(a){this._baseAppearance=a},setRowWidth:function(b){this._rowWidth=b;for(var a=0;a<this._children.length;a++){this._children[a].setWidth(b)}},setRowHeight:function(a){this._rowHeight=a;for(var b=0;b<this._children.length;b++){this._children[b].setHeight(a)}this._updateRowCount()},updateRowLines:function(){var a=this._config.linesVisible?this._getHorizontalGridBorder():null;this._rowBorder=a;for(var b=0;b<this._children.length;b++){this._children[b].setBorder(a);this._children[b].setState($[185],this._config.linesVisible)}},_renderGridVertical:function(){var a=this._config.linesVisible?this._config.columnCount:0;for(var b=0;b<a;b++){this._renderVerticalGridline(b)}for(var b=a;b<this._vertGridLines.length;b++){this._removeGridLine(b)}},_renderVerticalGridline:function(c){var e=this.getWidth();var b=this._config.itemWidth[c];var d=this._config.itemLeft[c]+b-1;if(b>0){var a=this._getVerticalGridline(c);a.style.left=d+"px";a.style.height=this.getHeight()+"px"}else{this._removeGridLine(c)}},_getVerticalGridline:function(b){if(typeof this._vertGridLines[b]===$[7]){var a=document.createElement("div");a.style.zIndex=1;a.style.position=$[17];a.style.top="0px";a.style.width="0px";this._getVerticalGridBorder().renderElement(a);if(this._isCreated){this._getTargetNode().appendChild(a)}else{this.addEventListener($[44],function(){this._getTargetNode().appendChild(a)},this)}this._vertGridLines[b]=a}return this._vertGridLines[b]},_removeGridLine:function(a){if(this._vertGridLines[a]){this._getTargetNode().removeChild(this._vertGridLines[a]);delete this._vertGridLines[a]}},_getVerticalGridBorder:function(){if(this._vertGridBorder===null){this._vertGridBorder=this._getGridBorder({vertical:true})}return this._vertGridBorder},_getHorizontalGridBorder:function(){if(this._horzGridBorder===null){this._horzGridBorder=this._getGridBorder({horizontal:true})}return this._horzGridBorder},_getGridBorder:function(d){var a=new org.eclipse.swt.theme.ThemeValues(d);var b=qx.lang.String.toFirstUp(this._baseAppearance)+"-GridLine";var c=a.getCssColor(b,$[65]);a.dispose();var e=[0,0,0,0];c=c==$[7]?$[82]:c;if(d.horizontal){e[2]=1}else{if(d.vertical){e[1]=1}}return new org.eclipse.rwt.Border(e,$[72],c)},_getRowAppearance:function(){return this._baseAppearance+"-row"},setTopItem:function(g,a,d){this._topItem=g;if(d){var h=a-this._topItemIndex;this._topItemIndex=a;var f=h>0;h=Math.abs(h);if(h>=this._children.length){this._renderAll(true)}else{var e=this._children.length-h;var c=f?e:0;var b=f?h:e;this._switchRows(b);this._updateRows(c,h,true)}}else{this._topItemIndex=a}},renderAll:function(){this._renderAll(false)},renderItemQueue:function(a){for(var c in a){var d=a[c];var b=this._items.indexOf(d);if(b!==-1){this._renderRow(this._children[b],d)}}},renderItem:function(a){if(this._isCreated&&a!=null){var b=this._findRowByItem(a);if(b!=null){this._renderRow(b,a)}}},setScrollLeft:function(a){this._scrollLeft=a;if(this.isSeeable()){arguments.callee.base.call(this,a)}},findItemByRow:function(b){var a=this._children.indexOf(b);return a!==-1?this._items[a]:null},getHoverItem:function(){return this._hoverItem},setHoverItem:function(a){if(a){this._hoverElement=$[139]}this._setHoverItem(a)},_renderAll:function(b){if(!b){this._renderGridVertical()}var c=(new Date()).getTime();this._updateRows(0,this._children.length,b);var a=(new Date()).getTime()-c;if(this._postRender){this._postRender[0].call(this._postRender[1],a)}},_updateRowCount:function(){var a=this.getHeight();var b=Math.round((this.getHeight()/this._rowHeight)+0.5);while(this._children.length<b){var c=new org.eclipse.rwt.widgets.TreeRow(this.getParent());c.setAppearance(this._getRowAppearance());c.setZIndex(0);c.setWidth(this._rowWidth);c.setHeight(this._rowHeight);c.setBorder(this._rowBorder);c.setState($[185],this._config.linesVisible);this.add(c)}while(this._children.length>b){this._children[this._children.length-1].destroy()}this._items.length=this._children.length;this._updateRowsEvenState()},_updateRowsEvenState:function(){for(var a=0;a<this._children.length;a++){this._children[a].updateEvenState(this._topItemIndex+a)}},_findRowByItem:function(b){var a=this._items.indexOf(b);return a!==-1?this._children[a]:null},_updateRows:function(g,f,c){this._updateRowsEvenState();var b=this._topItem;var e=g+f;var d=0;while(b!=null&&d<this._children.length){if(d>=g&&d<=e){this._renderRow(this._children[d],b,c);this._items[d]=b}b=b.getNextItem();d++}for(var a=d;a<this._children.length;a++){this._renderRow(this._children[a],null,c);this._items[a]=null}},_renderRow:function(c,a,b){c.renderItem(a,this._config,this._isSelected(a),this._getHoverElement(a),b)},_switchRows:function(c){var a=this._children.slice(c);var e=this._items.slice(c);this._children=a.concat(this._children.slice(0,c));this._items=e.concat(this._items.slice(0,c));this._invalidateVisibleChildren();var d={locationY:true};for(var b=0;b<this._children.length;b++){this.getLayoutImpl().layoutChild(this._children[b],d)}},_onElementOver:function(c){var d=c.getTarget();var a=d===c.getRelatedTarget();if(d instanceof org.eclipse.rwt.widgets.TreeRow&&a&&this._hoverItem){var b=d.getTargetIdentifier(c);if(this._hoverElement!==b){this._hoverElement=b;this._setHoverItem(this._hoverItem)}}},_onRowOver:function(b){var c=b.getOriginalTarget();if(c instanceof org.eclipse.rwt.widgets.TreeRow){if(b.getType()===$[8]){this._hoverElement=null;this._setHoverItem(null)}else{this._hoverElement=c.getTargetIdentifier(b);var a=this.findItemByRow(c);if(a!==this._hoverItem){this._setHoverItem(a)}}}},_setHoverItem:function(a){var b=this._hoverItem;this._hoverItem=a;if(b!==a){this._renderAsync(b)}this._renderAsync(a)},_getHoverElement:function(b){var a=null;if(this._hoverItem===b){a=this._hoverElement}return a},_renderAsync:function(a){if(a!==null){this._asyncQueue[a.toHashCode()]=a;this._asyncTimer.start()}},_onAsyncTimer:function(){this._asyncTimer.stop();this.renderItemQueue(this._asyncQueue);this._asyncQueue={}},_isSelected:function(a){return this._selectionProvider[0].call(this._selectionProvider[1],a)},_applyHeight:function(b,a){arguments.callee.base.call(this,b,a);this._updateRowCount()},_afterAppear:function(){arguments.callee.base.call(this);this.setScrollLeft(this._scrollLeft)}}});
namespace($[217]);org.eclipse.rwt.TreeRowContainerWrapper=function(){this._fixedColumns=0;this._container=[];this._container[0]=new org.eclipse.rwt.widgets.TreeRowContainer();this._container[1]=new org.eclipse.rwt.widgets.TreeRowContainer();this._config=org.eclipse.rwt.widgets.TreeRowContainer.createRenderConfig();this._width=0;this._splitOffset=0;this._rowWidth=0;this.addEventListener($[6],this._onRowOver,this);this.addEventListener($[8],this._onRowOver,this)};org.eclipse.rwt.TreeRowContainerWrapper.createInstance=function(){if(!this.prototype._protoInit){for(var a=0;a<this._CONTAINER_DELEGATES.length;a++){this._createContainerDelegater(this._CONTAINER_DELEGATES[a])}for(var a=0;a<this._CONTAINER_GETTER_DELEGATES.length;a++){this._createContainerGetterDelegater(this._CONTAINER_GETTER_DELEGATES[a])}this.prototype._protoInit=true}return new org.eclipse.rwt.TreeRowContainerWrapper()};org.eclipse.rwt.TreeRowContainerWrapper._createContainerDelegater=function(a){this.prototype[a]=function(){this._container[0][a].apply(this._container[0],arguments);this._container[1][a].apply(this._container[1],arguments)}};org.eclipse.rwt.TreeRowContainerWrapper._createContainerGetterDelegater=function(a){this.prototype[a]=function(){return this._container[0][a].apply(this._container[0],arguments)}};org.eclipse.rwt.TreeRowContainerWrapper._CONTAINER_DELEGATES=["setParent",$[228],"addEventListener","removeEventListener","setSelectionProvider","setHeight","setTop","setBackgroundColor","setBackgroundImage","setRowHeight","setTopItem","renderItem","setToolTip","renderItemQueue","setBaseAppearance"];org.eclipse.rwt.TreeRowContainerWrapper._CONTAINER_GETTER_DELEGATES=["getTop","getHeight","getHoverItem","getElement","getChildrenLength"];org.eclipse.rwt.TreeRowContainerWrapper.prototype={_protoInit:false,getSubContainer:function(a){return this._container[a]||null},setFixedColumns:function(a){this._fixedColumns=a;this._updateConfig()},getFixedColumns:function(){return this._fixedColumns},getRenderConfig:function(){return this._config},setPostRenderFunction:function(){},setWidth:function(a){this._width=a;this._layoutX()},getWidth:function(){return this._width},setRowWidth:function(a){this._rowWidth=a;this._layoutX()},setScrollLeft:function(a){this._container[1].setScrollLeft(a)},findItemByRow:function(b){var a=this._container[0].findItemByRow(b);if(a==null){a=this._container[1].findItemByRow(b)}return a},updateRowLines:function(){this._container[0].getRenderConfig().linesVisible=this._config.linesVisible;this._container[0].updateRowLines();this._container[1].getRenderConfig().linesVisible=this._config.linesVisible;this._container[1].updateRowLines()},renderAll:function(){this._updateConfig();this._container[0].renderAll();this._container[1].renderAll()},_updateConfig:function(){var b=this._container[0].getRenderConfig();var g=this._container[1].getRenderConfig();for(var e in this._config){if(this._config[e] instanceof Array){b[e]=this._config[e].concat();g[e]=this._config[e].concat()}else{b[e]=this._config[e];g[e]=this._config[e]}}g.hasCheckBoxes=false;var a=this._getColumnOrder();var d=0;if(a.length>this._fixedColumns){d=this._config.itemLeft[a[this._fixedColumns]]}else{d=this._width}for(var c=0;c<a.length;c++){var f=a[c];if(c<this._fixedColumns){g.itemWidth[f]=0}else{b.itemWidth[f]=0;g.itemLeft[f]-=d;g.itemImageLeft[f]-=d;g.itemTextLeft[f]-=d}}if(this._splitOffset!==d){this._splitOffset=d;this._layoutX()}},_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)},_getColumnOrder:function(){var a=[];var d=this._config.itemLeft.concat();var b=d.concat().sort(function(g,f){return g-f});for(var c=0;c<b.length;c++){var e=d.indexOf(b[c]);a[c]=e;d[e]=null}return a},_onRowOver:function(b){var c=b.getCurrentTarget();for(var a=0;a<this._container.length;a++){if(this._container[a]!==c){this._container[a].setHoverItem(c.getHoverItem())}}}};
namespace($[217]);org.eclipse.rwt.TreeUtil={setFixedColumns:function(a,c){var b=a.getRowContainer();if(b.setFixedColumns){b.setFixedColumns(c);a.update()}},createTreeRowContainer:function(b){var a;if(b.splitContainer){a=org.eclipse.rwt.TreeRowContainerWrapper.createInstance()}else{a=new org.eclipse.rwt.widgets.TreeRowContainer()}return a},getColumnByPageX:function(b,d){var c=b.getRowContainer();var e=c instanceof org.eclipse.rwt.TreeRowContainerWrapper;if(e){c=b.getRowContainer().getSubContainer(0)}var a=this._getColumnByPageX(c,d);if(a===-1&&e){c=b.getRowContainer().getSubContainer(1);a=this._getColumnByPageX(c,d)}return a},_getColumnByPageX:function(a,d){var c=a.getRenderConfig();var g=c.columnCount;var h=g===0?0:-1;var e=a.getFirstChild().getElement();var b=qx.bom.element.Location.getLeft(e);for(var f=0;h==-1&&f<g;f++){var j=b+c.itemLeft[f];if(d>=j&&d<j+c.itemWidth[f]){h=f}}return h}};
(function(){var b=org.eclipse.rwt.HtmlUtil;var a=qx.core.Variant;qx.Class.define("org.eclipse.rwt.widgets.TreeRow",{extend:qx.ui.basic.Terminator,construct:function(){arguments.callee.base.call(this);this.setSelectable(false);this.setHeight(16);this._styleMap=null;this._variant=null;this._expandElement=null;this._checkBoxElement=null;this._treeColumnElements=[];this._cellLabels=[];this._cellImages=[];this._cellBackgrounds=[];this._miscNodes=[];this._usedMiscNodes=0;this._cellsRendered=0},destruct:function(){this._expandElement=null;this._checkBoxElement=null;this._treeColumnElements=null;this._cellLabels=null;this._cellImages=null;this._cellBackgrounds=null;this._miscNodes=null},events:{itemRendered:$[3]},members:{renderItem:function(h,e,f,d,i){this._usedMiscNodes=0;if(h!==null){var c=this._renderAsSelected(e,f);var g=c&&e.fullSelection;this._renderStates(h,e,g,d);this._renderBackground(h,e,c);if(e.treeColumn!==-1){this._renderIndention(h,e,d)}this._renderCheckBox(h,e,d,i);this._renderCells(h,e,c,d,i);if(e.fullSelection||e.treeColumn===-1){this._renderOverlay(h,-1,e,f)}this._hideRemainingElements()}else{this.setBackgroundColor(null);this.setBackgroundImage(null);this.setBackgroundGradient(null);this._clearContent(e);if(!i&&e){this._renderAllBounds(e)}}this.dispatchSimpleEvent("itemRendered",h)},getTargetIdentifier:function(e){var d=e.getDomTarget();var c=$[139];if(this._expandElement!==null&&this._expandElement===d){c=$[280]}else{if(this._checkBoxElement!==null&&this._checkBoxElement===d){c=$[232]}else{while(d!==this.getElement()&&c===$[139]){if(this._treeColumnElements.indexOf(d)!=-1){c=$[309]}d=d.parentNode}}}return c},updateEvenState:function(c){this.setState("even",c%2===0)},_renderStates:function(f,d,e,c){this.setState($[203],f.isChecked());this.setState($[200],f.isGrayed());this.setState($[92],this._renderAsUnfocused(d));this.setState($[29],e);this._renderVariant(f.getVariant());this._renderOverState(c,d);this._styleMap=this._getStyleMap()},_renderVariant:function(c){if(this._variant!=c){if(this._variant!=null){this.setState(this._variant,false)}this._variant=c;if(this._variant!=null){this.setState(this._variant,true)}}},_renderOverState:function(d,c){this.setState("over",d!==null&&c.fullSelection)},setState:function(d,c){if(!this.__states){this.__states={}}if(c){this.__states[d]=true}else{delete this.__states[d]}},_getStyleMap:function(){var c=qx.theme.manager.Appearance.getInstance();return c.styleFrom(this.getAppearance(),this.__states)},_styleFromMap:function(){},_renderBackground:function(f,d,e){var c=this._styleMap.itemBackground;var h=this._styleMap.itemBackgroundImage;var g=this._styleMap.itemBackgroundGradient;if(this._hasOverlayBackground()&&!this._rendersOverlayElement(d,e)){c=this._styleMap.overlayBackground;h=this._styleMap.overlayBackgroundImage;g=this._styleMap.overlayBackgroundGradient}else{if(d.enabled!==false&&f!==null&&f.getBackground()!==null){c=f.getBackground();h=null;g=null}}this.setBackgroundColor(c!==$[7]?c:null);this.setBackgroundImage(h!==$[7]?h:null);this.setBackgroundGradient(g!==$[7]?g:null)},_hasOverlayBackground:function(){var c=this._styleMap.overlayBackground!==$[7]||this._styleMap.overlayBackgroundImage!==null||this._styleMap.overlayBackgroundGradient!==null;return c},_renderIndention:function(h,e,d){var i=this._getExpandSymbol(h,e,d);if(i!=null){var f=this._addIndentSymbol(h.getLevel(),e,i);this._expandElement=f}else{this._expandElement=null}var c=this._getLineSymbol(h,e);if(c!=null){var g=h.getParent();while(!g.isRootItem()){if(g.hasNextSibling()){this._addIndentSymbol(g.getLevel(),e,c)}g=g.getParent()}}},_getExpandSymbol:function(f,e,d){var c=this._getParentStates(e);if(f.getLevel()===0&&!f.hasPreviousSibling()){c.first=true}if(!f.hasNextSibling()){c.last=true}if(f.hasChildren()){if(f.isExpanded()){c.expanded=true}else{c.collapsed=true}}if(d===$[280]){c.over=true}return this._getImageFromAppearance("indent",c)},_getLineSymbol:function(e,d){var c=this._getParentStates(d);c.line=true;return this._getImageFromAppearance("indent",c)},_getParentStates:function(d){var c={};if(d.variant){c[d.variant]=true}return c},_getImageFromAppearance:function(h,d){var c=this.getAppearance()+"-"+h;var e=qx.theme.manager.Appearance.getInstance();var g=e.styleFrom(c,d);var f=g&&g.backgroundImage;return f?g.backgroundImage:null},_addIndentSymbol:function(d,f,c){var l=null;var j=(d+1)*f.indentionWidth;var g=f.itemWidth[f.treeColumn];if(j<=g){var h=d*f.indentionWidth;var k=this.getHeight();var e=j-h;var i=this._getMiscImage();this._setImage(i,c,f.enabled);this._setBounds(i,h,0,e,k);l=i}return l},_renderCheckBox:function(j,d,h,f){if(d.hasCheckBoxes){var k=this.__states;this.setState("over",h!==null&&h===$[232]);var g=this._getImageFromAppearance("check-box",k);this.setState("over",h!==null);if(this._checkBoxElement===null){this._checkBoxElement=this._createElement(3);this._checkBoxElement.style.backgroundRepeat=$[253];this._checkBoxElement.style.backgroundPosition=$[30]}this._setImage(this._checkBoxElement,g,d.enabled);if(d.treeColumn!==-1||!f){var e=this._getCheckBoxLeft(j,d);var c=this._getCheckBoxWidth(j,d);var i=this.getHeight();this._setBounds(this._checkBoxElement,e,0,c,i)}}},_renderCells:function(m,c,f,k,d){var e=this._getColumnCount(c);if(this._cellsRendered>e){this._removeCells(e,this._cellsRendered)}if(!c.fullSelection&&f){this._renderStates(m,c,false,k)}for(var g=0;g<e;g++){var l=this._isTreeColumn(g,c);if(this._getItemWidth(m,g,c)>0){this._renderCellBackground(m,g,c,d,f);if(!c.fullSelection&&l){this._renderStates(m,c,f,k);var j=this._renderCellImage(m,g,c,l,d);var h=this._renderCellLabel(m,g,c,l,d);this._treeColumnElements=[j,h];this._renderOverlay(m,g,c,f);this._renderStates(m,c,false,k)}else{this._renderCellImage(m,g,c,l,d);this._renderCellLabel(m,g,c,l,d)}}else{this._removeCell(g)}}this._cellsRendered=e},_renderOverlay:function(p,m,f,h){if(p&&this._rendersOverlayElement(f,h)){var k=this._styleMap.overlayBackground;var c=this._styleMap.itemBackground;var o=k!==$[7]&&k!==null;var d=h&&m!==-1&&c!==$[7]&&c!==null;if(p&&(d||o)){var i=this._getMiscBackground();i.style.backgroundColor=o?k:c;if(o){org.eclipse.rwt.HtmlUtil.setOpacity(i,this._styleMap.overlayBackgroundAlpha)}var n=this.getHeight();var g;var e;if(f.fullSelection){g=0;e=this.getWidth()}else{var l=f.selectionPadding;g=this._getItemTextLeft(p,m,f);g-=l[0];e=this._getItemTextWidth(p,m,f);e+=e>0?l[0]:0;var j=this._getVisualTextWidth(p,m,f);j+=l[0]+l[1];e=Math.min(e,j);var n=this.getHeight()}this._setBounds(i,g,0,e,n)}}},_rendersOverlayElement:function(e,f){var i=f&&!e.fullSelection&&e.treeColumn!==-1;var h=this._styleMap.overlayBackground;var c=this._styleMap.itemBackground;var d=h!==$[7]&&h!==null;var g=this._styleMap.overlayBackgroundImage!==null||this._styleMap.overlayBackgroundGradient!==null;var j=i&&c!==$[7]&&c!==null;var k=d&&(!g||i);return j||k},_renderCellBackground:function(h,c,d,i){var f=this._getCellBackgroundColor(h,c,d);var g=false;if(f!==$[7]&&f!=this._styleMap.backgroundColor){g=!i||!this._cellBackgrounds[c];var e=this._getBackgroundElement(c);e.style.backgroundColor=f}else{if(this._cellBackgrounds[c]){this._cellBackgrounds[c].style.backgroundColor=$[82];g=!i}}if(g){this._renderCellBackgroundBounds(h,c,d)}},_renderCellBackgroundBounds:function(h,d,e){var f=this._cellBackgrounds[d];if(f){var i=this._getItemLeft(h,d,e);var g=this._getItemWidth(h,d,e);var c=this.getHeight();if(this.hasState($[185])){c-=1}this._setBounds(f,i,0,g,c)}},_renderCellImage:function(h,c,e,d,j){var i=h.getImage(c);var f=null;var g=false;if(i!==null){g=d||!j||!this._cellImages[c];f=this._getCellImage(c);this._setImage(f,i,g?e.enabled:null)}else{if(this._cellImages[c]){g=d||!j;f=this._getCellImage(c);this._setImage(f,null,null)}}if(g){this._renderCellImageBounds(h,c,e)}return f},_renderCellImageBounds:function(g,c,d){var e=this._cellImages[c];if(e){var h=this._getItemImageLeft(g,c,d);var f=this._getItemImageWidth(g,c,d);this._setBounds(e,h,0,f,this.getHeight())}},_renderCellLabel:function(h,c,e,d,i){var f=null;var g=false;if(h.hasText(c)){g=d||!i||!this._cellLabels[c];f=this._getTextElement(c,e);this._renderElementContent(f,h,c,e.markupEnabled);if(g){f.style.textAlign=d?"left":this._getAlignment(c,e)}this._styleLabel(f,h,c,e)}else{if(this._cellLabels[c]){g=d||!i;f=this._getTextElement(c,e);this._renderElementContent(f,null,-1,e.markupEnabled)}}if(g){this._renderCellLabelBounds(h,c,e)}return f},_renderCellLabelBounds:function(g,c,d){var e=this._cellLabels[c];if(e){var h=this._getItemTextLeft(g,c,d);var f=this._getItemTextWidth(g,c,d);this._setBounds(e,h,0,f,this.getHeight());e.style.lineHeight=d.markupEnabled?"":e.style.height}},_renderElementContent:a.select($[0],{"mshtml|newmshtml":function(f,g,c,e){if(e){var d=g?g.getText(c,false):"";if(f.rap_Markup!==d){f.innerHTML=d;f.rap_Markup=d}}else{f.innerText=g?g.getText(c,false):""}},"default":function(f,g,c,e){var d=g?g.getText(c,!e):"";if(e){if(d!==f.rap_Markup){f.innerHTML=d;f.rap_Markup=d}}else{f.innerHTML=d}}}),_styleLabel:function(e,f,c,d){this._setForeground(e,this._getCellColor(f,c,d));this._setFont(e,this._getCellFont(f,c,d));this._setTextDecoration(e,this._styleMap.textDecoration);b.setTextShadow(e,this._styleMap.textShadow)},_getCellBackgroundColor:function(g,d,e,f){var c;if(e.enabled===false||(this._hasOverlayBackground()&&!this._rendersOverlayElement(e,f))){c=$[7]}else{c=g.getCellBackground(d)}return c},_getCellColor:function(f,d,e){var c=null;if(this._styleMap.overlayForeground!==$[7]){c=this._styleMap.overlayForeground}else{if(e.enabled!==false&&f.getCellForeground(d)){c=f.getCellForeground(d)}else{c=this._styleMap.itemForeground;if(c===$[7]){c=e.textColor}}}return c},_getCellFont:function(f,d,e){var c=f.getCellFont(d);if(c===null||c===""){c=e.font}return c},_getVisualTextWidth:function(i,g,d){var f=org.eclipse.swt.FontSizeCalculation;var k=0;if(this._cellLabels[g]){var e=this._getCellFont(i,g,d);var j=this._getFontProps(e);var h=this._cellLabels[g].innerHTML;var c=f.computeTextDimensions(h,j);k=c[0]}return k},_renderAsUnfocused:function(c){return !c.focused&&!this.hasState($[340])},_renderAsSelected:function(d,e){var c=(e||this.hasState($[340]))&&(!d.hideSelection||d.focused)&&!d.alwaysHideSelection;return c},_getFontProps:function(d){var c={};var e;if(d instanceof qx.ui.core.Font){e=d}else{e=qx.ui.core.Font.fromString(d)}e.renderStyle(c);e.dispose();return c},_setFont:function(d,c){if(c===""||c===null){this._resetFont(d)}else{if(c instanceof qx.ui.core.Font){c.renderStyle(d.style)}else{d.style.font=c}}},_resetFont:a.select($[0],{"default":function(c){c.style.font="";c.style.fontFamily="";c.style.fontSize="";c.style.fontVariant="";c.style.fontStyle="";c.style.fontWeight=""},mshtml:function(c){c.style.fontFamily="";c.style.fontSize="";c.style.fontVariant="";c.style.fontStyle="";c.style.fontWeight=""}}),_setTextDecoration:function(d,c){if(c==null||c==="none"){d.style.textDecoration=""}else{d.style.textDecoration=c}},_setBounds:function(f,d,h,g,c){try{f.style.left=d+"px";f.style.top=h+"px";f.style.width=g+"px";f.style.height=c+"px"}catch(e){throw"setBounds failed: "+[f,d,h,g,c]}},_setForeground:function(d,c){d.style.color=c!=null?c:""},_setImage:function(e,f,d){e.style.backgroundImage=f?"URL("+f+")":"none";if(d!==null){var c=d?1:0.3;b.setOpacity(e,c)}},_getTextElement:function(d,e){var c=this._cellLabels[d];if(!c){c=this._createElement(3);c.style.verticalAlign=$[46];c.style.whiteSpace="nowrap";if(org.eclipse.rwt.Client.isNewMshtml()){c.style.backgroundColor="rgba(0, 0, 0, 0)"}this._cellLabels[d]=c}return c},_getCellImage:function(d){var c=this._cellImages[d];if(!c){c=this._createElement(3);c.style.backgroundRepeat=$[253];c.style.backgroundPosition=$[30];this._cellImages[d]=c}return c},_getMiscImage:function(){var c=this._getMiscElement(3);c.innerHTML="";c.style.backgroundColor="";return c},_getMiscBackground:function(){var c=this._getMiscElement(2);c.style.backgroundImage="";c.innerHTML="";return c},_getBackgroundElement:function(d){var c=this._cellBackgrounds[d];if(!c){c=this._createElement(1);this._cellBackgrounds[d]=c}return c},_getMiscElement:function(e){var c;var d=this._getTargetNode();if(this._usedMiscNodes<this._miscNodes.length){c=this._miscNodes[this._usedMiscNodes];c.style.display="";c.style.zIndex=e}else{c=this._createElement(e);c.style.backgroundRepeat=$[253];c.style.backgroundPosition=$[30];this._miscNodes.push(c)}this._usedMiscNodes++;return c},_createElement:function(d){var c=document.createElement("div");c.style.position=$[17];c.style.overflow=$[13];c.style.zIndex=d;this._getTargetNode().appendChild(c);return c},_clearContent:function(c){for(var d=0;d<this._cellBackgrounds.length;d++){if(this._cellBackgrounds[d]){this._cellBackgrounds[d].style.backgroundColor=$[82]}}for(var d=0;d<this._cellImages.length;d++){if(this._cellImages[d]){this._cellImages[d].style.backgroundImage=""}}for(var d=0;d<this._cellLabels.length;d++){if(this._cellLabels[d]){this._renderElementContent(this._cellLabels[d],null,-1,c.markupEnabled)}}if(this._checkBoxElement){this._checkBoxElement.style.backgroundImage=""}this._hideRemainingElements()},_renderAllBounds:function(c){var e=this._getColumnCount(c);for(var d=0;d<e;d++){if(!this._isTreeColumn(d,c)){this._renderCellLabelBounds(null,d,c);this._renderCellImageBounds(null,d,c)}this._renderCellBackgroundBounds(null,d,c)}},_hideRemainingElements:function(){var d=this._getTargetNode();for(var c=this._usedMiscNodes;c<this._miscNodes.length;c++){this._miscNodes[c].style.display="none"}},_removeCells:function(e,d){for(var c=e;c<d;c++){this._removeCell(c)}},_removeCell:function(c){this._removeNode(this._cellBackgrounds,c);this._removeNode(this._cellImages,c);this._removeNode(this._cellLabels,c)},_removeNode:function(c,e){var d=c[e];if(d){this._getTargetNode().removeChild(d);c[e]=null}},_ieFixLayoutOnAppear:a.select($[0],{mshtml:function(){arguments.callee.base.call(this);var d=this._getTargetNode();for(var c=0;c<d.childNodes.length;c++){if(d.childNodes[c].style.display==="none"){d.childNodes[c].style.display="";d.childNodes[c].style.display="none"}}},"default":qx.lang.Function.returnTrue}),_getCheckBoxLeft:function(d,c){return this._correctOffset(c.checkBoxLeft,d,c)},_getCheckBoxWidth:function(e,d){var c=d.checkBoxWidth;var f=this._getCheckBoxLeft(e,d);return this._correctWidth(c,f,0,d)},_getItemLeft:function(e,d,c){return c.itemLeft[d]},_getItemWidth:function(e,d,c){return c.itemWidth[d]},_getItemImageLeft:function(f,e,d){var c=d.itemImageLeft[e];if(this._isTreeColumn(e,d)){c=this._correctOffset(c,f,d)}return c},_getItemImageWidth:function(f,e,d){var c=d.itemImageWidth[e];if(this._isTreeColumn(e,d)){var g=this._getItemImageLeft(f,e,d);c=this._correctWidth(c,g,e,d)}return c},_getItemTextLeft:function(f,e,d){var c=d.itemTextLeft[e];if(this._isTreeColumn(e,d)){c=this._correctOffset(c,f,d)}return c},_getItemTextWidth:function(f,e,d){var c=d.itemTextWidth[e];if(this._isTreeColumn(e,d)){var g=this._getItemTextLeft(f,e,d);c=this._correctWidth(c,g,e,d)}return c},_correctOffset:function(e,d,c){return e+this._getIndentionOffset(d.getLevel()+1,c)},_correctWidth:function(g,i,f,d){var c=g;var h=d.itemLeft[f]+d.itemWidth[f];var e=i+c;if(e>h){c=Math.max(0,h-i)}return c},_getAlignment:function(d,c){return c.alignment[d]?c.alignment[d]:"left"},_getIndentionOffset:function(d,c){return c.indentionWidth*d},_getColumnCount:function(c){return Math.max(1,c.columnCount)},_isTreeColumn:function(d,c){return d===c.treeColumn},supportsDrop:function(){return true}}})}());
qx.Class.define("org.eclipse.swt.Request",{type:$[37],extend:qx.core.Target,construct:function(){arguments.callee.base.call(this);this._url="";this._parameters={};this._uiRootId="";this._requestCounter=null;this._runningRequestCount=0;this._inDelayedSend=false;var a=qx.io.remote.RequestQueue.getInstance();a.setDefaultTimeout(60000*60*24);a.setMaxConcurrentRequests(1);this._currentRequest=null;this._waitHintTime=700;this._waitHintTimer=new qx.client.Timer(this._waitHintTime);this._waitHintTimer.addEventListener($[26],this._showWaitHint,this)},destruct:function(){this._currentRequest=null;this._waitHintTimer.dispose();this._waitHintTimer=null},events:{send:$[48],received:$[48]},members:{setUrl:function(a){this._url=a},getUrl:function(){return this._url},setUIRootId:function(a){this._uiRootId=a},getUIRootId:function(){return this._uiRootId},setRequestCounter:function(a){this._requestCounter=a},getRequestCounter:function(){return this._requestCounter},addParameter:function(a,b){this._parameters[a]=b},removeParameter:function(a){delete this._parameters[a]},getParameter:function(b){var a=this._parameters[b];if(a===undefined){a=null}return a},addEvent:function(a,b){this._parameters[a]=b},send:function(){if(!this._inDelayedSend){this._inDelayedSend=true;var a=function(){this._sendImmediate(true)};qx.client.Timer.once(a,this,60)}},sendSyncronous:function(){this._sendImmediate(false)},_sendImmediate:function(a){this._dispatchSendEvent();this._parameters.uiRoot=this._uiRootId;if(this._requestCounter==-1){this._inDelayedSend=false;this.send()}else{if(this._requestCounter!=null){this._parameters.requestCounter=this._requestCounter;this._requestCounter=-1}var b=this._createRequest();b.setAsynchronous(a);this._inDelayedSend=false;this._copyParameters(b);this._runningRequestCount++;if(this._runningRequestCount===1){this._waitHintTimer.startWith(this._waitHintTime)}this._parameters={};if(a){b.send()}else{this._sendStandalone(b)}}},_copyParameters:function(b){var c=[];for(var a in this._parameters){c.push(encodeURIComponent(a)+"="+encodeURIComponent(this._parameters[a]))}b.setData(c.join("&"))},_createRequest:function(){var a=new qx.io.remote.Request(this._url,"POST",$[282]);a.addEventListener($[52],this._handleSending,this);a.addEventListener($[27],this._handleCompleted,this);a.addEventListener($[38],this._handleFailed,this);return a},_sendStandalone:function(b){var a=b;var c=new qx.io.remote.Exchange(a);c.addEventListener($[52],a._onsending,a);c.addEventListener($[56],a._onreceiving,a);c.addEventListener($[27],a._oncompleted,a);c.addEventListener($[55],a._onaborted,a);c.addEventListener($[53],a._ontimeout,a);c.addEventListener($[38],a._onfailed,a);c._start=(new Date()).valueOf();c.send()},_handleSending:function(a){var b=a.getTarget();this._currentRequest=b.getRequest()},_handleFailed:function(a){var b=a.getTarget();this._currentRequest=b.getRequest();var d=true;if(this._isConnectionError(a.getStatusCode())){d=!this._handleConnectionError(a)}if(d){var f=b.getImplementation().getRequest();var g=f.responseText;if(typeof(g)=="unknown"){g=undefined}if(g&&g.length>0){if(this._isJsonResponse(f)){var c=JSON.parse(g);org.eclipse.rwt.ErrorHandler.showErrorBox(c.meta.message,true)}else{org.eclipse.rwt.ErrorHandler.showErrorPage(g)}}else{var e=String(a.getStatusCode());g="<p>Request failed.</p><pre>HTTP Status Code: "+e+"</pre>";org.eclipse.rwt.ErrorHandler.showErrorPage(g)}this._hideWaitHint()}b.dispose()},_handleCompleted:function(a){var b=a.getTarget();var f=b.getImplementation().getRequest().responseText;var c=false;try{var e=JSON.parse(f);org.eclipse.swt.EventUtil.setSuspended(true);org.eclipse.rwt.protocol.Processor.processMessage(e);qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.EventUtil.setSuspended(false);org.eclipse.rwt.UICallBack.getInstance().sendUICallBackRequest()}catch(d){org.eclipse.rwt.ErrorHandler.processJavaScriptErrorInResponse(f,d,this._currentRequest);c=true}if(!c){this._dispatchReceivedEvent()}this._runningRequestCount--;this._hideWaitHint();b.dispose()},_handleConnectionError:function(g){var a="The server seems to be temporarily unavailable.\nWould you like to retry?";var i=confirm(a);if(i){org.eclipse.rwt.ErrorHandler.hideErrorBox();var b=this._createRequest();var e=this._currentRequest;b.setAsynchronous(e.getAsynchronous());var c=e.getRequestHeaders();for(var d in c){b.setRequestHeader(d,c[d])}var h=e.getParameters();for(var f in h){b.setParameter(f,h[f])}b.setData(e.getData());this._restartRequest(b)}return i},_restartRequest:function(a){a.setState($[167]);var b=qx.io.remote.RequestQueue.getInstance();qx.lang.Array.insertAt(b._queue,a,0);b._check();if(b.getEnabled()){b._timer.start()}},_isConnectionError:qx.core.Variant.select($[0],{"mshtml|newmshtml":function(b){var a=(b===12007||b===12029||b===12030||b===12031||b===12152);return a},gecko:function(b){var a;if(org.eclipse.rwt.Client.getMajor()*10+org.eclipse.rwt.Client.getMinor()>=19){a=(b===0)}else{a=(b===-1)}return a},"default":function(a){return a===0}}),_isJsonResponse:function(a){var b=a.getResponseHeader($[348]);return b.indexOf(qx.util.Mime.JSON)!==-1},_showWaitHint:function(){this._waitHintTimer.stop();if(this._runningRequestCount>0){var a=qx.ui.core.ClientDocument.getInstance();a.setGlobalCursor(qx.constant.Style.CURSOR_PROGRESS);org.eclipse.rwt.ErrorHandler.showWaitHint()}},_hideWaitHint:function(){this._waitHintTimer.stop();if(this._runningRequestCount===0){var a=qx.ui.core.ClientDocument.getInstance();a.setGlobalCursor(null);org.eclipse.rwt.ErrorHandler.hideErrorBox()}},_dispatchSendEvent:function(){if(this.hasEventListeners("send")){var a=new qx.event.type.DataEvent("send",this);this.dispatchEvent(a,true)}},_dispatchReceivedEvent:function(){if(this.hasEventListeners($[251])){var a=new qx.event.type.DataEvent($[251],this);this.dispatchEvent(a,true)}}}});
qx.Class.define("org.eclipse.rwt.widgets.Menu",{extend:qx.ui.popup.Popup,include:org.eclipse.rwt.VisibilityAnimationMixin,construct:function(){arguments.callee.base.call(this);this._layout=null;this._preItem=null;this._hasListener=false;this._maxCellWidths=null;this._menuLayoutScheduled=false;this._opener=null;this._hoverItem=null;this._openTimer=null;this._closeTimer=null;this._openItem=null;this._itemsHiddenFlag=false;this._hoverFirstItemFlag=false;this.setHeight("auto");this.setWidth("auto");this._maxCellWidths=[null,null,null,null];this._layout=new qx.ui.layout.VerticalBoxLayout();this._layout.set({top:0,right:0,bottom:0,left:0,anonymous:true});this.add(this._layout);this.addEventListener($[1],this._unhoverSubMenu);this.addEventListener($[8],this._onMouseOut);this.addEventListener($[6],this._onMouseOver);this.addEventListener($[4],this._onKeyPress);this._openTimer=new qx.client.Timer(250);this._openTimer.addEventListener($[26],this._onopentimer,this);this._closeTimer=new qx.client.Timer(250);this._closeTimer.addEventListener($[26],this._onclosetimer,this);this.addToDocument()},destruct:function(){this._disposeObjects("_openTimer","_closeTimer","_preItem","_animation");this._disposeFields("_lastActive","_lastFocus","_layout","_opener","_hoverItem","_openItem")},statics:{menuDetectedByKey:function(a){if(a.getKeyIdentifier()==="Apps"){org.eclipse.rwt.widgets.Menu.contextMenuHandler(a)}},menuDetectedByMouse:function(a){if(a.getButton()===qx.event.type.MouseEvent.C_BUTTON_RIGHT){org.eclipse.rwt.widgets.Menu.contextMenuHandler(a)}},contextMenuHandler:function(d){var e=org.eclipse.swt.WidgetUtil.getControl(d.getTarget());var b=e?e.getContextMenu():null;if(b!=null){d.stopPropagation();d.preventDefault();var c=qx.event.type.MouseEvent.getPageX();var a=qx.event.type.MouseEvent.getPageY();b.setLocation(c,a);b.setOpener(e);b.show()}},getAllowContextMenu:function(c,b){var a=false;switch(c.classname){case $[428]:case $[434]:case"qx.ui.form.TextArea":if(c.getEnabled()!=false){if(org.eclipse.rwt.widgets.Menu._hasNativeMenu(b)){a=c.getContextMenu()==null}}break}return a},_hasNativeMenu:function(b){var a=typeof b.tagName==$[9]?b.tagName.toUpperCase():"";return a==="INPUT"||a==="TEXTAREA"}},properties:{appearance:{refine:true,init:"menu"}},events:{changeHoverItem:$[3]},members:{setOpener:function(a){this._opener=a},getOpener:function(a){return this._opener},getFocusRoot:function(){var a=null;if(this._opener){a=this._opener.getFocusRoot()}else{if(this._hasParent){a=this.getParent().getFocusRoot()}}return a},addMenuItemAt:function(b,a){if(b.setParentMenu){b.setParentMenu(this)}this._layout.addAt(b,a)},scheduleMenuLayout:function(){if(this._menuLayoutScheduled!=true){this._menuLayoutScheduled=true;var b=this._layout.getChildren();var c=b.length;for(var a=0;a<c;a++){b[a]._invalidatePreferredInnerWidth();b[a].addToQueue("layoutX")}this.addToQueue("menuLayout")}},_layoutPost:function(a){arguments.callee.base.call(this,a);if(a.menuLayout){this._menuLayoutScheduled=false;if(this.isSeeable()){this._afterAppear()}}},getMaxCellWidth:function(b){if(this._maxCellWidths[b]==null){var a=0;var d=this._layout.getChildren();var e=d.length;for(var c=0;c<e;c++){if(d[c].getPreferredCellWidth){a=Math.max(a,d[c].getPreferredCellWidth(b))}}this._maxCellWidths[b]=a}if(b==0&&this._maxCellWidths[0]==0&&this.getMaxCellWidth(1)==0){this._maxCellWidths[b]=13}return this._maxCellWidths[b]},invalidateMaxCellWidth:function(a){this._maxCellWidths[a]=null},invalidateAllMaxCellWidths:function(){for(var a=0;a<4;a++){this._maxCellWidths[a]=null}},isSubElement:function(b,e){var f=false;if((b.getParent()===this._layout)||((!e)&&(b===this))){f=true}if(!f){var d=this._layout.getChildren(),c=d.length;for(var g=0;g<c;g++){if(this.hasSubmenu(d[g])&&d[g].getMenu().isSubElement(b,e)){f=true}}}return f},setHoverItem:function(b,c){var a=b?b:this._openItem;if(this._hoverItem&&this._hoverItem!=a){this._hoverItem.removeState("over")}if(a){a.addState("over")}this._hoverItem=a;if(!c){this._openTimer.setEnabled(false);if(this.hasSubmenu(a)&&(this._openItem!=a)){this._openTimer.setEnabled(true)}if(this._openItem){if(this._openItem==a||a==null){this._closeTimer.setEnabled(false)}else{if(a!=null){this._closeTimer.setEnabled(true)}}}}this.dispatchSimpleEvent("changeHoverItem")},getHoverItem:function(a){return this._hoverItem},hoverFirstItem:function(){if(this._isDisplayable&&!this._itemsHiddenFlag){this.setHoverItem(null,true);this._hoverNextItem();this.removeState($[459])}else{this.addState($[459])}},_hoverNextItem:function(){var d;var c=null;var b=this._layout.getVisibleChildren();var a=b.indexOf(this._hoverItem);var e=a;do{a++;if(a>b.length){a=-1}d=a>=0?b[a]:null;if(d&&d.isEnabled()&&d.classname==$[352]){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==$[352]){c=d}}while(!c&&(a!=e));this.setHoverItem(c,true)},_makeActive:function(){this._lastActive=this.getFocusRoot().getActiveChild();this._lastFocus=this.getFocusRoot().getFocusedChild();this.getFocusRoot().setActiveChild(this)},_makeInactive:function(){var a=this.getFocusRoot();a.setActiveChild(this._lastActive);a.setFocusedChild(this._lastFocus)},_beforeAppear:function(){qx.ui.layout.CanvasLayout.prototype._beforeAppear.call(this);org.eclipse.rwt.MenuManager.getInstance().add(this);this.bringToFront();this._makeActive();this._menuShown()},_beforeDisappear:function(){qx.ui.layout.CanvasLayout.prototype._beforeDisappear.call(this);org.eclipse.rwt.MenuManager.getInstance().remove(this);if(this.getFocusRoot()){this._makeInactive()}this.setOpenItem(null);this.setHoverItem(null);if(this._opener instanceof org.eclipse.rwt.widgets.MenuItem){var a=this._opener.getParentMenu();if(a instanceof org.eclipse.rwt.widgets.MenuBar){this._opener.removeState($[11]);if(a.getOpenItem()==this._opener){a.setOpenItem(null)}}}this._menuHidden()},hasSubmenu:function(a){return a&&a.getMenu&&a.getMenu()},_onopentimer:function(a){this._openTimer.stop();this.setOpenItem(this._hoverItem);this._closeTimer.stop()},_onclosetimer:function(a){this._closeTimer.stop();this.setOpenItem(null)},setOpenItem:function(d){if(this._openItem&&this._openItem.getMenu()){this._openItem.setSubMenuOpen(false);var a=this._openItem.getMenu();a.hide();this._makeActive()}this._openItem=d;if(d&&d.getMenu()){var b=d.getMenu();d.setSubMenuOpen(true);b.setOpener(d);var e=d.getElement();var c=this.getElement();b.setTop(qx.bom.element.Location.getTop(e)-2);b.setLeft(qx.bom.element.Location.getLeft(c)+qx.html.Dimension.getBoxWidth(c)-3);b.show()}},_onMouseOut:function(a){var c=a.getTarget();var b=a.getRelatedTarget();if(c==this||(b!=this&&!this.contains(b))){this.setHoverItem(null)}},_onMouseOver:function(a){var b=a.getTarget();if(b!=this){this.setHoverItem(b)}this._unhoverSubMenu()},_unhoverSubMenu:function(){if(this._openItem){var a=this._openItem.getMenu();a.setOpenItem(null);a.setHoverItem(null)}},_onKeyPress:function(a){switch(a.getKeyIdentifier()){case"Up":this._handleKeyUp(a);break;case"Down":this._handleKeyDown(a);break;case"Left":this._handleKeyLeft(a);break;case $[39]:this._handleKeyRight(a);break;case $[54]:this._handleKeyEnter(a);break}},_handleKeyUp:function(a){if(this._openItem){this._openItem.getMenu()._hoverPreviousItem()}else{this._hoverPreviousItem()}a.preventDefault();a.stopPropagation()},_handleKeyDown:function(a){if(this._openItem){this._openItem.getMenu()._hoverNextItem()}else{this._hoverNextItem()}a.preventDefault();a.stopPropagation()},_handleKeyLeft:function(c){var a=this._opener?this._opener.getParentMenu():null;if(a instanceof org.eclipse.rwt.widgets.Menu){var b=this._opener;a.setOpenItem(null);a.setHoverItem(b,true);c.preventDefault();c.stopPropagation()}},_handleKeyRight:function(a){if(this.hasSubmenu(this._hoverItem)){this._onopentimer();this.setHoverItem(null,true);this._openItem.getMenu().hoverFirstItem();a.preventDefault();a.stopPropagation()}},_handleKeyEnter:function(a){if(this.hasSubmenu(this._hoverItem)){this._onopentimer();this.setHoverItem(null,true);this._openItem.getMenu().hoverFirstItem()}else{if(this._hoverItem){this._hoverItem.execute();org.eclipse.rwt.MenuManager.getInstance().update()}}a.preventDefault();a.stopPropagation()},setHasMenuListener:function(a){this._hasListener=a},_menuShown:function(){if(!org.eclipse.swt.EventUtil.getSuspended()){if(this._hasListener){if(this._preItem==null){this._preItem=new org.eclipse.rwt.widgets.MenuItem("push");this._preItem.setText("...");this._preItem.setEnabled(false);this.addMenuItemAt(this._preItem,0)}var a=this._layout.getChildren();for(var b=0;b<a.length;b++){var d=a[b];d.setDisplay(false)}this._preItem.setDisplay(true);this._itemsHiddenFlag=true;if(this.getWidth()<60){this.setWidth(60)}var e=org.eclipse.swt.WidgetManager.getInstance();var g=e.findIdByWidget(this);var c=org.eclipse.swt.Request.getInstance();c.addEvent("org.eclipse.swt.events.menuShown",g);c.send()}else{var f=this._layout.getChildren().length!=0;this.setDisplay(f);if(f){if(this._hoverFirstItemFlag){this.hoverFirstItem()}}}}},_menuHidden:function(){if(!org.eclipse.swt.EventUtil.getSuspended()){if(this._hasListener){var b=org.eclipse.swt.WidgetManager.getInstance();var c=b.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addEvent("org.eclipse.swt.events.menuHidden",c);a.send()}}},unhideItems:function(c){if(c){var a=this._layout.getChildren();for(var b=0;b<a.length;b++){a[b].setDisplay(true)}if(this._preItem){this._preItem.setDisplay(false)}this._itemsHiddenFlag=false;if(this._hoverFirstItemFlag){this.hoverFirstItem()}}else{this.hide()}this._hoverFirstItemFlag=false},showMenu:function(b,a,c){if(b!=null){b._renderAppearance();b.setLocation(a,c);b.show()}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Menu",{factory:function(b){var a;if(b.style.indexOf("BAR")!=-1){a=new org.eclipse.rwt.widgets.MenuBar()}else{a=new org.eclipse.rwt.widgets.Menu()}org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getWidgetDestructor(),properties:["parent",$[117],$[241],$[98]],propertyHandler:{parent:function(b,a){if(b.hasState($[206])){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(a,function(c){b.setParent(c)})}},bounds:function(b,a){if(b.hasState($[206])){b.setLeft(a[0]);b.setTop(a[1]);b.setWidth(a[2]);b.setHeight(a[3])}}},listeners:["menu","help"],listenerHandler:{menu:function(b,a){if(!b.hasState($[206])){b.setHasMenuListener(a)}},help:org.eclipse.rwt.protocol.AdapterUtil.getControlListenerHandler("help")},methods:["unhideItems","showMenu"],methodHandler:{unhideItems:function(b,a){if(!b.hasState($[206])){b.unhideItems(a.reveal)}},showMenu:function(b,a){if(b.hasState("rwt_POP_UP")){b.showMenu(b,a.x,a.y)}}}});
qx.Class.define("org.eclipse.swt.EventUtil",{statics:{_suspended:false,setSuspended:function(a){this._suspended=a},getSuspended:function(){return this._suspended},DOUBLE_CLICK_TIME:500,_capturingWidget:null,_lastMouseDown:{widget:null,button:"",x:-1,y:-1,mouseUpCount:0},_shiftKey:false,_ctrlKey:false,_altKey:false,_metaKey:false,eventTimestamp:function(){var a=org.eclipse.rwt.System.getInstance();return new Date().getTime()-a.getStartupTime()},widgetDefaultSelected:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(a.getTarget());var b=org.eclipse.swt.Request.getInstance();b.addEvent($[168],c);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();b.send()}},widgetSelected:function(b){var h=org.eclipse.swt.WidgetManager.getInstance();var d=org.eclipse.swt.Request.getInstance();var g=h.findIdByWidget(b.getTarget());var f=b.getTarget().getLeft();var e=b.getTarget().getTop();var c=b.getTarget().getWidth();var a=b.getTarget().getHeight();org.eclipse.swt.EventUtil.doWidgetSelected(g,f,e,c,a)},doWidgetSelected:function(f,e,d,b,a){if(!org.eclipse.swt.EventUtil.getSuspended()){var c=org.eclipse.swt.Request.getInstance();c.addEvent($[69],f);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();c.addParameter(f+$[260],e);c.addParameter(f+$[261],d);c.addParameter(f+$[267],b);c.addParameter(f+$[278],a);c.send()}},addWidgetSelectedModifier:function(){if(!org.eclipse.swt.EventUtil.getSuspended()){var a=org.eclipse.swt.EventUtil._getKeyModifier();if(a!==""){var b=org.eclipse.swt.Request.getInstance();b.addParameter("org.eclipse.swt.events.widgetSelected.modifier",a)}}},_getKeyModifier:function(){var a="";var b=org.eclipse.rwt.Client.getPlatform()==="mac"&&org.eclipse.swt.EventUtil._metaKey;if(org.eclipse.swt.EventUtil._shiftKey){a+="shift,"}if(org.eclipse.swt.EventUtil._ctrlKey||b){a+="ctrl,"}if(org.eclipse.swt.EventUtil._altKey){a+="alt,"}return a},focusGained:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var b=org.eclipse.swt.Request.getInstance();b.send()}},focusLost:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var b=org.eclipse.swt.Request.getInstance();b.send()}},mouseDown:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()&&org.eclipse.swt.EventUtil._isRelevantMouseEvent(this,a)){org.eclipse.swt.EventUtil._capturingWidget=this;if(org.eclipse.swt.EventUtil._isDoubleClick(this,a)){org.eclipse.swt.EventUtil._clearLastMouseDown();org.eclipse.swt.EventUtil._mouseDoubleClickParams(this,a)}else{var c=org.eclipse.swt.EventUtil._lastMouseDown;c.widget=this;c.button=a.getButton();c.x=a.getPageX();c.y=a.getPageY();c.mouseUpCount=0;qx.client.Timer.once(org.eclipse.swt.EventUtil._clearLastMouseDown,this,org.eclipse.swt.EventUtil.DOUBLE_CLICK_TIME)}org.eclipse.swt.EventUtil._mouseDownParams(this,a);var b=org.eclipse.swt.Request.getInstance();b.send()}},mouseUp:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()&&org.eclipse.swt.EventUtil._isRelevantMouseEvent(this,a)){org.eclipse.swt.EventUtil._capturingWidget=null;org.eclipse.swt.EventUtil._lastMouseDown.mouseUpCount+=1;org.eclipse.swt.EventUtil._mouseUpParams(this,a);var b=org.eclipse.swt.Request.getInstance();b.send()}},_isRelevantMouseEvent:function(c,b){var a=true;if(c!==org.eclipse.swt.EventUtil._capturingWidget&&c!==b.getOriginalTarget()){var f=org.eclipse.swt.WidgetManager.getInstance();var e=b.getOriginalTarget();var d=f.findControl(e);a=c===d}return a},_clearLastMouseDown:function(){var a=org.eclipse.swt.EventUtil._lastMouseDown;a.widget=null;a.button="";a.mouseUpCount=0;a.x=-1;a.y=-1},_isDoubleClick:function(b,a){var c=org.eclipse.swt.EventUtil._lastMouseDown;return c.mouseUpCount===1&&c.widget===b&&c.button===qx.event.type.MouseEvent.C_BUTTON_LEFT&&c.button===a.getButton()},_mouseDownParams:function(e,b){var f=org.eclipse.swt.WidgetManager.getInstance().findIdByWidget(e);var d=org.eclipse.swt.Request.getInstance();var c=org.eclipse.swt.EventUtil._determineMouseButton(b);var a=org.eclipse.swt.EventUtil._getKeyModifier();d.addEvent("org.eclipse.swt.events.mouseDown",f);d.addParameter("org.eclipse.swt.events.mouseDown.button",c);d.addParameter("org.eclipse.swt.events.mouseDown.x",b.getPageX());d.addParameter("org.eclipse.swt.events.mouseDown.y",b.getPageY());d.addParameter("org.eclipse.swt.events.mouseDown.time",this.eventTimestamp());if(a!==""){d.addParameter("org.eclipse.swt.events.mouseDown.modifier",a)}},_mouseUpParams:function(e,b){var f=org.eclipse.swt.WidgetManager.getInstance().findIdByWidget(e);var d=org.eclipse.swt.Request.getInstance();var c=org.eclipse.swt.EventUtil._determineMouseButton(b);var a=org.eclipse.swt.EventUtil._getKeyModifier();d.addEvent("org.eclipse.swt.events.mouseUp",f);d.addParameter("org.eclipse.swt.events.mouseUp.button",c);d.addParameter("org.eclipse.swt.events.mouseUp.x",b.getPageX());d.addParameter("org.eclipse.swt.events.mouseUp.y",b.getPageY());d.addParameter("org.eclipse.swt.events.mouseUp.time",this.eventTimestamp());if(a!==""){d.addParameter("org.eclipse.swt.events.mouseUp.modifier",a)}},_mouseDoubleClickParams:function(d,b){var e=org.eclipse.swt.WidgetManager.getInstance().findIdByWidget(d);var c=org.eclipse.swt.Request.getInstance();var a=org.eclipse.swt.EventUtil._getKeyModifier();c.addEvent("org.eclipse.swt.events.mouseDoubleClick",e);c.addParameter("org.eclipse.swt.events.mouseDoubleClick.button",org.eclipse.swt.EventUtil._determineMouseButton(b));c.addParameter("org.eclipse.swt.events.mouseDoubleClick.x",b.getPageX());c.addParameter("org.eclipse.swt.events.mouseDoubleClick.y",b.getPageY());c.addParameter("org.eclipse.swt.events.mouseDoubleClick.time",this.eventTimestamp());if(a!==""){c.addParameter("org.eclipse.swt.events.mouseDoubleClick.modifier",a)}},_determineMouseButton:function(b){var a=0;switch(b.getButton()){case qx.event.type.MouseEvent.C_BUTTON_LEFT:a=1;break;case qx.event.type.MouseEvent.C_BUTTON_MIDDLE:a=2;break;case qx.event.type.MouseEvent.C_BUTTON_RIGHT:a=3;break}return a},helpRequested:function(a){if(a.getKeyIdentifier()==="F1"){a.stopPropagation();a.preventDefault();var c=a.getTarget();var e=org.eclipse.swt.WidgetManager.getInstance();var d=e.findIdByWidget(c);if(d===null){c=e.findControl(c);d=e.findIdByWidget(c)}if(d!=null){var b=org.eclipse.swt.Request.getInstance();b.addEvent("org.eclipse.swt.events.help",d);b.send()}}},menuDetectedByKey:function(b){if(b.getKeyIdentifier()==="Apps"){b.stopPropagation();b.preventDefault();var a=qx.event.type.MouseEvent.getPageX();var c=qx.event.type.MouseEvent.getPageY();org.eclipse.swt.EventUtil.sendMenuDetected(b.getTarget(),a,c)}},menuDetectedByMouse:function(b){if(b.getButton()===qx.event.type.MouseEvent.C_BUTTON_RIGHT){b.stopPropagation();b.preventDefault();var a=b.getPageX();var c=b.getPageY();org.eclipse.swt.EventUtil.sendMenuDetected(b.getTarget(),a,c)}},sendMenuDetected:function(c,a,f){if(!org.eclipse.swt.EventUtil.getSuspended()){var e=org.eclipse.swt.WidgetManager.getInstance();while(c!=null&&!e.isControl(c)){c=c.getParent?c.getParent():null}var d=e.findIdByWidget(c);if(d!=null){var b=org.eclipse.swt.Request.getInstance();b.addEvent("org.eclipse.swt.events.menuDetect",d);b.addParameter("org.eclipse.swt.events.menuDetect.x",a);b.addParameter("org.eclipse.swt.events.menuDetect.y",f);b.send()}}}}});
qx.Class.define("org.eclipse.rwt.widgets.WidgetToolTip",{type:$[37],extend:qx.ui.popup.ToolTip,include:org.eclipse.rwt.VisibilityAnimationMixin,construct:function(){arguments.callee.base.call(this);this._atom._createLabel();this._atom.getLabelObject().setMode("html")},members:{_applyBoundToWidget:function(c,a){arguments.callee.base.call(this,c,a);this.updateText(c);var b=qx.ui.popup.ToolTipManager.getInstance();b.setCurrentToolTip(null)},updateText:function(a){this._atom.setLabel(a.getUserData($[161]))}}});
qx.Mixin.define("org.eclipse.rwt.GraphicsMixin",{destruct:function(){this._gfxProperties=null;this._gfxData=null;this._gfxCanvas=null},statics:{getSupportsShadows:function(){if(this._shadowSupport===undefined){var b=org.eclipse.rwt.Client.getEngine();var a=org.eclipse.rwt.Client.getVersion();this._shadowSupport=false;switch(b){case $[137]:this._shadowSupport=a>=1.9;break;case $[118]:this._shadowSupport=a>=7;break;case"opera":this._shadowSupport=a>=11.6;break;case $[113]:this._shadowSupport=a>=532.9;break}}return this._shadowSupport}},members:{_gfxData:null,_gfxProperties:null,_gfxCanvas:null,_gfxEnabled:false,_gfxBorderEnabled:false,_gfxBackgroundEnabled:false,_gfxCanvasAppended:false,_applyBackgroundGradient:function(b,a){this.setGfxProperty($[114],b);this._handleGfxBackground()},_applyShadow:qx.core.Variant.select($[0],{"default":function(b,a){if(org.eclipse.rwt.GraphicsMixin.getSupportsShadows()){if(b!=null&&b[0]){this.setGfxProperty($[20],null)}else{this.setGfxProperty($[20],b)}this.setGfxProperty($[229],null);this._handleGfxShadow()}},newmshtml:function(b,a){arguments.callee.base.call(this,b,a)}}),_applyOpacity:function(b,a){arguments.callee.base.call(this,b,a);this._checkAntiAlias(b)},_checkAntiAlias:qx.core.Variant.select($[0],{"default":qx.lang.Function.returnTrue,mshtml:function(a){if(this._gfxData&&this._gfxData.backgroundInsert){var b=a===1||a===null;org.eclipse.rwt.VML._setAntiAlias(this._gfxData.backgroundShape,b)}}}),_styleBackgroundColor:function(a){if(this._gfxBackgroundEnabled){this.setGfxProperty($[60],a);if(this.getGfxProperty($[166])==$[72]&&this._isCanvasReady()){this._renderGfxBackground()}}else{arguments.callee.base.call(this,a)}},_styleBackgroundImage:function(a){if(this._gfxBackgroundEnabled){this.setGfxProperty($[93],a);if(this.getGfxProperty($[166])==$[18]&&this._isCanvasReady()&&a!=null){this._renderGfxBackground()}else{this._handleGfxBackground()}}else{if(a==null&&this.getGfxProperty($[114])!=null){this._handleGfxBackground()}else{arguments.callee.base.call(this,a)}}},renderBorder:function(a){var b=this.__borderObject;if(b&&b.getStyle()===$[77]){this._styleGfxBorder(b.getWidths(),b.getColor(),b.getRadii())}else{if(this._gfxBorderEnabled){this._styleGfxBorder(null,null,null)}arguments.callee.base.call(this,a)}},_styleGfxBorder:function(d,b,f){var a=0;if(d){for(var c=0;c<d.length;c++){a=Math.max(a,d[c])}}var g;if(d!=null&&f!=null&&a>0){g=[];for(var c=0;c<4;c++){var e=c>0?c-1:3;if(d[c]===0||d[e]===0){g[c]=0}else{g[c]=f[c]}}}else{g=f}this.setGfxProperty($[242],d);this.setGfxProperty($[354],a);this.setGfxProperty($[325],b);this.setGfxProperty($[268],g);this.setGfxProperty($[201],null);this.setGfxProperty($[229],null);this._handleGfxBorder();this._handleCssRadii(f)},_handleCssRadii:qx.core.Variant.select($[0],{"default":qx.lang.Function.returnTrue,newmshtml:function(c){var b=org.eclipse.rwt.Border._BORDERRADII;for(var a=0;a<4;a++){this._style[b[a]]=c?c[a]+"px":""}}}),setGfxProperty:function(a,b){if(this._gfxProperties===null){this._gfxProperties={}}this._gfxProperties[a]=b},getGfxProperty:function(a){var b=this._gfxProperties!==null?this._gfxProperties[a]:null;return typeof b!=$[7]?b:null},_handleGfxBorder:function(){var b=this.getGfxProperty($[268])!=null&&this.getGfxProperty($[242])!=null&&this.getGfxProperty($[325])!=null;var a=(this._gfxBorderEnabled!=b);if(a){if(b){this._gfxBorderEnabled=true}else{this._gfxBorderEnabled=false;this._resetTargetNode()}this._handleGfxBackground();this._handleGfxStatus()}if(this._isCanvasReady()&&b){this._renderGfxBorder();if(!this._willBeLayouted()){this._layoutShapes()}}else{if(a&&!b){this._prepareBackgroundShape()}}},_handleGfxBackground:function(){var f=this.getBackgroundImage()!=null;var d=false;if(f){this.setGfxProperty($[166],$[18])}else{d=this.getGfxProperty($[114])!=null;if(d){this.setGfxProperty($[166],$[114])}else{this.setGfxProperty($[166],$[72])}}var b=(d||this._gfxBorderEnabled);var a=(this._gfxBackgroundEnabled!=b);if(a){if(b){var c=this.getStyleProperty($[60]);this.removeStyleProperty($[60]);this.setGfxProperty($[60],c);var e=this.getBackgroundImage();this.setGfxProperty($[93],e);this.removeStyleProperty($[93]);this._gfxBackgroundEnabled=true}else{this._gfxBackgroundEnabled=false;this._applyBackgroundColor(this.getBackgroundColor());this.setGfxProperty($[60],null);this._applyBackgroundImage(this.getBackgroundImage());this.setGfxProperty($[93],null)}this._handleGfxStatus()}if(this._isCanvasReady()&&b){this._renderGfxBackground();if(a&&!this._gfxBorderEnabled&&!this._willBeLayouted()){this._layoutShapes()}}else{if(a&&!b){this._prepareBackgroundShape()}}},_handleGfxShadow:function(){var a=this.getGfxProperty($[20])!=null;this._gfxShadowEnabled=a;this._handleGfxStatus();if(this._isCanvasReady()&&a){this._renderGfxShadow();if(!this._willBeLayouted()){this._layoutShapes()}}else{if(!this._gfxShadowEnabled&&this._gfxData&&this._gfxData.shadowInsert){this._prepareShadowShape()}}},_handleGfxStatus:function(){var a=this._gfxBorderEnabled||this._gfxBackgroundEnabled||this._gfxShadowEnabled;if(a!=this._gfxEnabled){if(a){this._gfxEnabled=true;this.addEventListener($[344],this._gfxOnElementChanged,this);this.addEventListener("flush",this._gfxOnFlush,this)}else{this._gfxEnabled=false;this.removeEventListener($[344],this._gfxOnElementChanged,this);this.removeEventListener("flush",this._gfxOnFlush,this)}this._targetNodeEnabled=(this._innerStyle||a)&&!this._gfxBorderEnabled}},_gfxOnElementChanged:function(a){if(a.getValue()==null&&this._gfxCanvasAppended){this._removeCanvas()}if(a.getValue()!=null&&this._isCanvasReady()){if(this._gfxBackgroundEnabled){this._renderGfxBackground()}if(this._gfxShadowEnabled){this._renderGfxShadow()}}},_gfxOnFlush:function(b){var a=b.getData();if(a.paddingRight||a.paddingBottom){this.setGfxProperty($[201],null);this.setGfxProperty($[229],null)}this._layoutShapes()},_layoutShapes:function(){if(this._gfxBackgroundEnabled){this._layoutBackgroundShape()}if(this._gfxShadowEnabled){this._layoutShadowShape()}},_layoutTargetNode:function(){if(this._innerStyle&&this._gfxBorderEnabled){var c=this.getGfxProperty($[201]);var b=this.getGfxProperty($[242]);var a=this._innerStyle;a.top=b[0]+"px";a.left=b[3]+"px";a.width=Math.max(0,c[0]-b[3]-b[1])+"px";a.height=Math.max(0,c[1]-b[0]-b[2])+"px"}},_resetTargetNode:qx.core.Variant.select($[0],{mshtml:function(){if(this._innerStyle){this._innerStyle.left="0px";this._innerStyle.top="0px";this._innerStyle.width="";this._innerStyle.height="";this.addToQueue($[28]);this.addToQueue($[23])}},"default":function(){if(this._innerStyle){this._innerStyle.left="0px";this._innerStyle.top="0px";this._innerStyle.width="100%";this._innerStyle.height="100%"}}}),_isCanvasReady:function(){var a=false;if(this._isCreated){if(this._gfxEnabled&&this._gfxCanvasAppended){a=true}else{if(this._gfxEnabled&&!this._gfxCanvasAppended){if(this._gfxCanvas==null){this._createCanvas()}this._appendCanvas();a=true}else{if(!this._gfxEnabled&&this._gfxCanvasAppended){this._removeCanvas()}}}}else{if(this._gfxEnabled){this._prepareGraphicsSupport()}}return a},_createCanvas:function(){if(!this._innerStyle){this._prepareForCanvas()}this._gfxData={};this._gfxCanvas=org.eclipse.rwt.GraphicsUtil.createCanvas();this._prepareBackgroundShape()},_prepareForCanvas:qx.core.Variant.select($[0],{mshtml:function(){this.prepareEnhancedBorder();this._applyOpacity(this.getOpacity())},gecko:function(){this.prepareEnhancedBorder();this._applyOpacity(this.getOpacity())},webkit:function(){var a=this.getStyleProperty($[222]);this.removeStyleProperty($[222]);this.__outerElementStyleProperties.outline=true;this.setStyleProperty($[222],a);this._applyOpacity(this.getOpacity())},"default":function(){this.prepareEnhancedBorder();this._applyOpacity(this.getOpacity())}}),_appendCanvas:function(){var b=this.getElement();var a=org.eclipse.rwt.GraphicsUtil.getCanvasNode(this._gfxCanvas);if(a!=null){b.insertBefore(a,b.firstChild)}this._gfxCanvasAppended=true;this.addEventListener($[143],this._onCanvasAppear);if(this._isInDom){this._onCanvasAppear()}},_removeCanvas:function(){var a=org.eclipse.rwt.GraphicsUtil.getCanvasNode(this._gfxCanvas);if(a!=null){a.parentNode.removeChild(a);this._gfxCanvasAppended=false;this.removeEventListener($[143],this._onCanvasAppear)}},_onCanvasAppear:function(){if(this._gfxCanvasAppended){org.eclipse.rwt.GraphicsUtil.handleAppear(this._gfxCanvas)}},_prepareBackgroundShape:function(){var c=org.eclipse.rwt.GraphicsUtil;if(this._gfxData){var b=this._gfxData.backgroundShape;if(this._gfxBackgroundEnabled){if(b===undefined){this._gfxData.backgroundShape=c.createShape($[158])}if(!this._gfxData.backgroundInsert){var a=this._gfxData.backgroundShape;c.addToCanvas(this._gfxCanvas,a);this._gfxData.backgroundInsert=true;this._checkAntiAlias(this.getOpacity())}}else{if(this._gfxData.backgroundInsert){c.removeFromCanvas(this._gfxCanvas,b);this._gfxData.backgroundInsert=false}}}},_renderGfxBackground:function(){this._prepareBackgroundShape();var f=this.getGfxProperty($[166]);var c=org.eclipse.rwt.GraphicsUtil;if(f==$[114]){var e=this.getGfxProperty($[114]);c.setFillGradient(this._gfxData.backgroundShape,e)}else{if(f==$[18]){var d=this.getGfxProperty($[93]);d=typeof d==$[7]?null:d;var b=this._getImageSize(d);c.setFillPattern(this._gfxData.backgroundShape,d,b[0],b[1])}else{var a=this.getGfxProperty($[60]);if(a&&(a===$[82]||a.slice(0,4)==="rgba")){a=null}c.setFillColor(this._gfxData.backgroundShape,a)}}},_renderGfxBorder:function(){this._prepareBackgroundShape();this._style.borderWidth=0;var c=this._innerStyle;c.borderWidth=0;var b=this._gfxData.backgroundShape;var d=this.getGfxProperty($[354]);var a=this.getGfxProperty($[325]);org.eclipse.rwt.GraphicsUtil.setStroke(b,a,d)},_layoutBackgroundShape:function(){var b=[this.getBoxWidth(),this.getBoxHeight()];var j=this.getGfxProperty($[201]);var d=!j||(b[0]!==j[0]);var c=!j||(b[1]!==j[1]);if(d||c){this.setGfxProperty($[201],b);this._layoutTargetNode();var b=[this.getBoxWidth(),this.getBoxHeight()];var g;var l;var e;var o;var h;if(this._gfxBorderEnabled){h=this.getGfxProperty($[268]);var a=this.getGfxProperty($[242]);var q=this.getGfxProperty($[354]);var f=0;var p=0;var n=0;var k=0;if(q>0){f=(a[0]===0?-q-1:q);p=(a[1]===0?-q-1:q);n=(a[2]===0?-q-1:q);k=(a[3]===0?-q-1:q)}g=b[0]-(k*0.5+p*0.5);l=b[1]-(f*0.5+n*0.5);e=k*0.5;o=f*0.5}else{e=0;o=0;g=b[0]-this._cachedBorderLeft-this._cachedBorderRight;l=b[1]-this._cachedBorderTop-this._cachedBorderBottom;h=[0,0,0,0]}g=Math.max(0,g);l=Math.max(0,l);var i=this._gfxData.backgroundShape;var m=org.eclipse.rwt.GraphicsUtil;m.setRoundRectLayout(i,e,o,g,l,h)}},_prepareShadowShape:function(){var c=org.eclipse.rwt.GraphicsUtil;if(this._gfxData){if(this._gfxShadowEnabled){if(this._gfxData.shadowShape===undefined){this._createShadowShape();var b=c.getCanvasNode(this._gfxCanvas);org.eclipse.rwt.HtmlUtil.setPointerEvents(b,"none")}var a=this._gfxData.shadowShape;if(!this._gfxData.shadowInsert){var d=null;if(this._gfxData.backgroundInsert){d=this._gfxData.backgroundShape}c.addToCanvas(this._gfxCanvas,a,d);this._gfxData.shadowInsert=true}}else{if(this._gfxData.shadowInsert){c.removeFromCanvas(this._gfxCanvas,this._gfxData.shadowShape);c.enableOverflow(this._gfxCanvas,0,0,null,null);delete this._gfxData.shadowInsert}}}},_createShadowShape:function(){var a=null;var b=org.eclipse.rwt.GraphicsUtil;var a=b.createShape($[158]);this._gfxData.shadowShape=a;return a},_renderGfxShadow:function(){this._prepareShadowShape();if(this._gfxShadowEnabled){var b=org.eclipse.rwt.GraphicsUtil;var c=this.getGfxProperty($[20]);var a=this._gfxData.shadowShape;b.setBlur(a,c[3]);b.setFillColor(a,c[5]);b.setOpacity(a,c[6])}},_layoutShadowShape:function(){var f=org.eclipse.rwt.GraphicsUtil;var b=[this.getBoxWidth(),this.getBoxHeight()];var l=[this.getBoxWidth(),this.getBoxHeight()];var n=this.getGfxProperty($[229]);var s=!n||(l[0]!==n[0]);var q=!n||(l[1]!==n[1]);if(s||q){var c=this._gfxData.shadowShape;this.setGfxProperty($[229],l);var h=this.getGfxProperty($[20]);var k=this.getGfxProperty($[268]);k=k===null?[0,0,0,0]:k;var e=h[1];var i=h[2];var m=b[0];var j=b[1];var p=h[3];var o=e<0?Math.abs(e)+p:0;var r=i<0?Math.abs(i)+p:0;var d=Math.max(0,p+e);var a=Math.max(0,p+i);var t=m+d;var g=j+a;f.enableOverflow(this._gfxCanvas,o,r,t,g);f.setRoundRectLayout(c,e,i,m,j,k)}},_getImageSize:function(c){var a=this.getUserData($[173]);if(a==null){var b=org.eclipse.swt.theme.ThemeStore.getInstance();a=b.getImageSize(c)}return a},_willBeLayouted:function(){return this._jobQueue!==undefined||!qx.lang.Object.isEmpty(this._layoutChanges)}}});
qx.Class.define("org.eclipse.rwt.GraphicsUtil",{statics:{_renderClass:null,init:function(){if(this._renderClass==null){if(org.eclipse.rwt.Client.supportsVml()){this._renderClass=org.eclipse.rwt.VML}else{if(org.eclipse.rwt.Client.supportsSvg()){this._renderClass=org.eclipse.rwt.SVG}}if(this._renderClass!=null){this._renderClass.init()}}},createCanvas:function(){var a=null;a=this._renderClass.createCanvas();return a},getCanvasNode:function(b){var a=null;a=this._renderClass.getCanvasNode(b);return a},handleAppear:function(a){this._renderClass.handleAppear(a)},enableOverflow:function(c,b,e,d,a){this._renderClass.enableOverflow(c,b,e,d,a)},createShape:function(b){var a=null;if(this._renderClass!=null){a=this._renderClass.createShape(b)}return a},addToCanvas:function(c,b,a){this._renderClass.addToCanvas(c,b,a)},removeFromCanvas:function(b,a){this._renderClass.removeFromCanvas(b,a)},setDisplay:function(a,b){this._renderClass.setDisplay(a,b)},getDisplay:function(a){return this._renderClass.getDisplay(a)},setRectBounds:function(c,b,e,d,a){this._renderClass.setRectBounds(c,b,e,d,a)},setRoundRectLayout:function(c,b,f,d,a,e){this._renderClass.setRoundRectLayout(c,b,f,d,a,e)},setFillColor:function(b,a){this._renderClass.setFillColor(b,a)},getFillColor:function(b,a){return this._renderClass.getFillColor(b)},setFillGradient:function(a,b){this._renderClass.setFillGradient(a,b)},setFillPattern:function(b,d,c,a){this._renderClass.setFillPattern(b,d,c,a)},getFillType:function(b,a){return this._renderClass.getFillType(b)},setStroke:function(b,a,c){this._renderClass.setStroke(b,a,c)},getStrokeWidth:function(a){return this._renderClass.getStrokeWidth(a)},getStrokeColor:function(a){return this._renderClass.getStrokeColor(a)},setOpacity:function(a,b){this._renderClass.setOpacity(a,b)},getOpacity:function(a){return this._renderClass.getOpacity(a)},setBlur:function(b,a){this._renderClass.setBlur(b,a)},getBlur:function(a){return this._renderClass.getBlur(a)}}});
qx.Class.define("org.eclipse.rwt.VML",{statics:{init:function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.namespaces.add("o","urn:schemas-microsoft-com:office:office");var a=document.createStyleSheet();a.cssText="v\\:* { behavior:url(#default#VML);display:inline-block; } o\\:* { behavior: url(#default#VML);}";this._vmlEnabled=true},createCanvas:function(){var a={};a.type="vmlCanvas";var b=document.createElement("div");b.style.position=$[17];b.style.width="10px";b.style.height="10px";b.style.top="0";b.style.left="0";b.style.fontSize="0";b.style.lineHeight="0";a.node=b;a.children={};return a},clearCanvas:function(a){for(var b in a.children){a.node.removeChild(a.children[b].node)}a.children={}},getCanvasNode:function(a){return a.node},handleAppear:function(a){var b=a.children;for(var c in b){this._handleAppearShape(b[c])}},createShape:function(b){var a=null;switch(b){case"rect":a=this._createRect();break;case $[158]:case"custom":a=this._createCustomShape();a.blurRadius=0;break;case $[18]:a=this._createImage();break;default:throw"VML does not support shape "+b}a.restoreData={fill:{}};a.node.stroked=false;var c=this._createNode("fill");c.method="sigma";a.node.appendChild(c);a.fill=c;this.setFillColor(a,null);return a},addToCanvas:function(c,b,a){var d=qx.core.Object.toHashCode(b);c.children[d]=b;if(a){c.node.insertBefore(b.node,a.node)}else{c.node.appendChild(b.node)}},enableOverflow:function(a){},removeFromCanvas:function(b,a){var c=qx.core.Object.toHashCode(a);delete b.children[c];b.node.removeChild(a.node)},setDisplay:function(a,b){a.node.style.display=b?"":"none"},getDisplay:function(b){var a=b.node.style.display=="none"?false:true;return a},setRectBounds:function(c,b,f,d,a){var e=c.node;e.style.width=this._convertNumeric(d,false);e.style.height=this._convertNumeric(a,false);e.style.left=this._convertNumeric(b,true);e.style.top=this._convertNumeric(f,true)},setImageData:function(c,g,b,h,e,a,d){var f=c.node;f.src=g;if(typeof d!=$[7]){f.cropTop=d[0];f.cropRight=d[1];f.cropBottom=d[2];f.cropLeft=d[3]}f.style.width=e;f.style.height=a;f.style.left=b;f.style.top=h},setRoundRectLayout:function(b,g,f,o,k,m){var h=this._VMLDEGREE*90;var d=Math.floor(Math.min(o,k)/2);var e=Math.min(m[0],d);var n=Math.min(m[1],d);var r=Math.min(m[2],d);var j=Math.min(m[3],d);e=this._convertNumeric(e,false);n=this._convertNumeric(n,false);r=this._convertNumeric(r,false);j=this._convertNumeric(j,false);var c=this._getBlurOffsets(b.blurRadius);var i=this._convertNumeric(g-c[1],true);var p=this._convertNumeric(f-c[1],true);var a=this._convertNumeric(o-c[2],false);var q=this._convertNumeric(k-c[2],false);var l=[];if(e>0){l.push("AL",i+e,p+e);l.push(e,e,2*h,h)}else{l.push("M",i,p+e)}if(n>0){l.push("AE",i+a-n);l.push(p+n);l.push(n,n,3*h,h)}else{l.push("L",i+a,p)}if(r>0){l.push("AE",i+a-r);l.push(p+q-r);l.push(r,r,0,h)}else{l.push("L",i+a,p+q)}if(j>0){l.push("AE",i+j);l.push(p+q-j);l.push(j,j,h,h)}else{l.push("L",i,p+q)}l.push("X E");b.node.path=l.join(" ")},applyDrawingContext:function(b,d,g){var c=d.globalAlpha;if(c!=1){this.setOpacity(b,c)}if(g){var g=d.fillStyle;if(g instanceof Array){this.setFillGradient(b,d.fillStyle)}else{this.setFillColor(b,d.fillStyle)}this.setStroke(b,null,0)}else{this.setFillColor(b,null);this.setStroke(b,d.strokeStyle,d.lineWidth);var f=d.lineCap=="butt"?"flat":d.lineCap;var e=d.lineJoin;var a=d.miterLimit;this._setStrokeStyle(b,e,a,f)}b.node.path=this._convertPath(d._currentPath)},createShapeFromContext:function(b,c){var a=this.createShape("custom");this.applyDrawingContext(a,b,c);return a},setFillColor:function(b,a){var c=b.fill;c.type=$[72];if(a!=null&&a!=$[82]&&a!=""){this._setFillEnabled(b,true);c.color=a;b.restoreData.fill.color=a}else{this._setFillEnabled(b,false);delete b.restoreData.fill.color}},getFillColor:function(b){var a=null;if(this.getFillType(b)==$[65]){a=b.restoreData.fill.color}return a},setFillGradient:function(e,i){var l=e.fill;if(i!=null){e.node.removeChild(e.fill);this._setFillEnabled(e,true);delete e.restoreData.fill.color;l.type=$[114];var f=i[0][1];l.color2=i[i.length-1][1];l.angle=i.horizontal?270:180;var h="0% "+f;var c=qx.util.ColorUtil.stringToRgb(f);var b=null;var a=0;var g=null;for(var k=1;k<i.length;k++){var d=i[k][1];b=qx.util.ColorUtil.stringToRgb(d);var j=i[k][0];h+=", ";h+=this._transitionColors(c,b,a,j,3);h+=", "+(j*100)+"% "+d;c=b;a=j}l.colors=h;e.node.appendChild(l)}else{this._setFillEnabled(e,true)}},setFillPattern:function(b,d,c,a){var e=b.fill;if(d!=null){b.node.removeChild(b.fill);this._setFillEnabled(b,true);e.type="tile";e.src=d;e.size=(c*0.75)+"pt,"+(a*0.75)+"pt";b.node.appendChild(e)}else{this._setFillEnabled(b,false)}},getFillType:function(c){var b=c.fill.on;var a=!b?null:c.fill.type;if(a==$[72]){a=$[65]}if(a=="tile"){a="pattern"}return a},setStroke:function(b,a,c){if(c>0){b.node.stroked=true;b.node.strokecolor=a;b.node.strokeweight=c+"px";b.restoreData.strokecolor=a;b.restoreData.strokeweight=c+"px"}else{b.node.stroked=false;delete b.restoreData.strokecolor;delete b.restoreData.strokeweight}},getStrokeWidth:function(b){var a=false;if(b.node.stroked){a=b.node.strokeweight;var c=typeof a==$[62]||a.search("pt")!=-1;a=parseFloat(a);a=c?a/0.75:a}return a},getStrokeColor:function(a){return a.node.strokecolor.value},setOpacity:function(a,b){a.opacity=b;this._renderFilter(a);this._setAntiAlias(a,b<1)},getOpacity:function(b){var a=1;if(typeof b.opacity===$[62]&&b.opacity<1){a=b.opacity}return a},setBlur:function(b,a){b.blurRadius=a;this._renderFilter(b)},getBlur:function(c,b){var a=0;if(typeof c.blurRadius===$[62]&&c.blurRadius>0){a=c.blurRadius}return a},_renderFilter:function(a){var d=[];var b=this.getOpacity(a);var c=this.getBlur(a);if(b<1){d.push($[475]);d.push(Math.round(b*100));d.push(")")}if(c>0){d.push("progid:DXImageTransform.Microsoft.Blur(pixelradius=");d.push(this._getBlurOffsets(c)[0]);d.push(")")}if(d.length>0){a.node.style.filter=d.join("")}else{org.eclipse.rwt.HtmlUtil.removeCssFilter(a.node)}},_VMLFACTOR:10,_VMLDEGREE:-65535,_VMLRAD:-65535*(180/Math.PI),_createNode:function(a){return document.createElement("v:"+a)},_createRect:function(){var a={};a.type="vmlRect";var b=this._createNode("rect");b.style.position=$[17];b.style.width=0;b.style.height=0;b.style.top=0;b.style.left=0;b.style.antialias=false;a.node=b;return a},_createImage:function(){var a={};a.type="vmlImage";var b=this._createNode($[18]);b.style.position=$[17];a.node=b;return a},_createCustomShape:function(){var a={};var c=this._createNode("shape");var b=100*this._VMLFACTOR+", "+100*this._VMLFACTOR;c.coordsize=b;c.coordorigin="0 0";c.style.position=$[17];c.style.width=100;c.style.height=100;c.style.top=0;c.style.left=0;a.node=c;return a},_setFillEnabled:function(a,b){a.fill.on=b;a.restoreData.fill.on=b},_ensureStrokeNode:function(a){if(!a.stroke){var b=this._createNode($[211]);a.node.appendChild(b);a.stroke=b}},_setStrokeStyle:function(b,d,a,c){this._ensureStrokeNode(b);b.stroke.joinstyle=d;b.stroke.miterlimit=a;b.stroke.endcap=c},_transitionColors:function(l,k,a,f,g){var j=f-a;var b=j/(g+1);var d=[];var h=[];var e;for(var c=1;c<=g;c++){e=c*(1/(g+1));h[0]=this._transitionColorPart(l[0],k[0],e);h[1]=this._transitionColorPart(l[1],k[1],e);h[2]=this._transitionColorPart(l[2],k[2],e);d.push(Math.round(((a+(c*b))*100))+"% RGB("+h.join()+")")}return d.join(" ,")},_copyData:function(d,e){if(!d||!e){throw"VML._copyData: source or target missing."}for(var b in d){var c=d[b];if(typeof c===$[19]){try{this._copyData(c,e[b])}catch(a){throw new Error("Could not copy "+b+": "+a)}}else{e[b]=c}}},_handleAppearShape:function(a){this._copyData(a.restoreData,a.node)},_transitionColorPart:function(b,a,d){var c=parseInt(b)+((a-b)*d);return Math.round(c)},_convertNumeric:function(c,b){var a;if(typeof c==$[62]){a=(b?c-0.5:c)*this._VMLFACTOR;a=Math.round(a)}else{a=c}return a},_convertPath:function(f){var b=[];for(var d=0;d<f.length;d++){var e=f[d];switch(e.type){case"moveTo":b.push("M");b.push(this._convertNumeric(e.x,true));b.push(this._convertNumeric(e.y,true));break;case"lineTo":b.push("L");b.push(this._convertNumeric(e.x,true));b.push(this._convertNumeric(e.y,true));break;case"close":b.push("X");e=null;break;case $[431]:b.push("QB");b.push(this._convertNumeric(e.cp1x,true));b.push(this._convertNumeric(e.cp1y,true));b.push("L");b.push(this._convertNumeric(e.x,true));b.push(this._convertNumeric(e.y,true));break;case $[377]:b.push("C");b.push(this._convertNumeric(e.cp1x,true));b.push(this._convertNumeric(e.cp1y,true));b.push(this._convertNumeric(e.cp2x,true));b.push(this._convertNumeric(e.cp2y,true));b.push(this._convertNumeric(e.x,true));b.push(this._convertNumeric(e.y,true));break;case"arc":b.push("AE");var c=Math.round(e.startAngle*this._VMLRAD);var a=Math.round(e.endAngle*this._VMLRAD);b.push(this._convertNumeric(e.centerX,true));b.push(this._convertNumeric(e.centerY,true));b.push(this._convertNumeric(e.radiusX,false));b.push(this._convertNumeric(e.radiusY,false));b.push(c);b.push(a-c);break}}return b.join(" ")},_setAntiAlias:function(a,b){a.node.style.antialias=b},_getBlurOffsets:function(c){var a;var b=this._BLUROFFSETS[c];if(b!==undefined){a=b}else{a=[c,c,1]}return a},_BLUROFFSETS:[[0,0,0],[2,2,1],[3,3,1],[4,4,1]]}});
qx.Class.define("org.eclipse.rwt.SVG",{statics:{init:function(){},createCanvas:function(){var b={};var c=this._createNode("svg");c.style.position=$[17];c.style.left="0px";c.style.top="0px";c.style.width="100%";c.style.height="100%";var a=this._createNode("defs");c.appendChild(a);b.type="svgCanvas";b.node=c;b.group=c;b.defsNode=a;return b},getCanvasNode:function(a){return a.node},handleAppear:function(a){},enableOverflow:function(c,b,g,d,a){if(c.group===c.node){var e=c.node;var f=this._createNode("g");c.group=f;while(e.firstChild){f.appendChild(e.firstChild)}e.appendChild(f)}c.node.style.left=(b*-1)+"px";c.node.style.top=(g*-1)+"px";if(d){c.node.style.width=(b+d)+"px"}else{c.node.style.width="100%"}if(a){c.node.style.height=(g+a)+"px"}else{c.node.style.height="100%"}if(b===0&&g===0){c.group.setAttribute("transform","")}else{c.group.setAttribute("transform","translate("+b+","+g+")")}},createShape:function(b){var a;switch(b){case"rect":a=this._createRect();break;case $[158]:a=this._createRoundRect();break;default:throw"invalid shape "+b}a.node.setAttribute($[211],"none");a.node.setAttribute($[330],"0px");a.node.setAttribute("fill","none");a.defNodes={};a.parent=null;return a},addToCanvas:function(c,b,a){b.parent=c;if(a){c.group.insertBefore(b.node,a.node)}else{c.group.appendChild(b.node)}this._attachDefinitions(b)},removeFromCanvas:function(b,a){this._detachDefinitions(a);b.group.removeChild(a.node);a.parent=null},setDisplay:function(a,b){a.node.setAttribute($[160],b?"inline":"none")},getDisplay:function(b){var c=b.node.getAttribute($[160]);var a=c=="none"?false:true;return a},setRectBounds:function(c,b,f,d,a){var e=c.node;e.setAttribute($[28],this._convertNumeric(d));e.setAttribute($[23],this._convertNumeric(a));e.setAttribute("x",this._convertNumeric(b));e.setAttribute("y",this._convertNumeric(f))},setRoundRectLayout:function(h,j,i,d,k,f){var g=Math.floor(Math.min(d,k)/2);var c=Math.min(f[0],g);var e=Math.min(f[1],g);var b=Math.min(f[2],g);var a=Math.min(f[3],g);var l=[];l.push("M",j,i+c);if(c>0){l.push("A",c,c,0,0,1);l.push(j+c,i)}l.push("L",j+d-e,i);if(e>0){l.push("A",e,e,0,0,1)}l.push(j+d,i+e);l.push("L",j+d,i+k-b);if(b>0){l.push("A",b,b,0,0,1)}l.push(j+d-b,i+k);l.push("L",j+a,i+k);if(a>0){l.push("A",a,a,0,0,1)}l.push(j,i+k-a);l.push("Z");h.node.setAttribute("d",l.join(" "))},setFillColor:function(b,a){this.setFillGradient(b,null);if(a!=null&&a!=""){b.node.setAttribute("fill",a)}else{b.node.setAttribute("fill","none")}},getFillColor:function(b){var a=null;if(this.getFillType(b)==$[65]){a=b.node.getAttribute("fill")}return a},setFillGradient:function(d,f){if(f!=null){var g="gradient_"+qx.core.Object.toHashCode(d);var a;var c=f.horizontal===true;if(typeof d.defNodes[g]==$[7]){a=this._createNode($[445]);a.setAttribute("id",g);a.setAttribute("x1",0);a.setAttribute("y1",0);this._addNewDefinition(d,a,g)}else{a=d.defNodes[g]}a.setAttribute("x2",c?1:0);a.setAttribute("y2",c?0:1);var b=null;while(b=a.childNodes[0]){a.removeChild(b)}for(var e=0;e<f.length;e++){b=this._createNode("stop");b.setAttribute("offset",f[e][0]);b.setAttribute("stop-color",f[e][1]);a.appendChild(b)}d.node.setAttribute("fill","url(#"+g+")")}else{d.node.setAttribute("fill","none")}},setFillPattern:function(d,f,e,b){if(f!=null){var g=qx.core.Object.toHashCode(d);var c="pattern_"+g;var a;var h;if(typeof d.defNodes[c]==$[7]){a=this._createNode("pattern");a.setAttribute("id",c);a.setAttribute("x",0);a.setAttribute("y",0);a.setAttribute("patternUnits","userSpaceOnUse");h=this._createNode($[18]);h.setAttribute("x",0);h.setAttribute("y",0);h.setAttribute("preserveAspectRatio","none");a.appendChild(h);this._addNewDefinition(d,a,c)}else{a=d.defNodes[c];h=a.firstChild}a.setAttribute($[28],e);a.setAttribute($[23],b);h.setAttribute($[28],e);h.setAttribute($[23],b);d.node.setAttribute("fill","url(#"+c+")");if(org.eclipse.rwt.Client.getEngine()==$[113]){this._onImageLoad(f,function(){if(d.parent!==null&&d.parent.node.parentNode){org.eclipse.rwt.SVG._setXLink(h,f);org.eclipse.rwt.SVG._redrawWebkit(d)}})}else{this._setXLink(h,f)}}else{d.node.setAttribute("fill","none")}},getFillType:function(b){var a=b.node.getAttribute("fill");if(a.search("pattern_")!=-1){a="pattern"}else{if(a.search("gradient_")!=-1){a=$[114]}else{if(a=="none"){a=null}else{a=$[65]}}}return a},setStroke:function(b,a,c){b.node.setAttribute($[330],c+"px");if(c==0){b.node.setAttribute($[211],"none")}else{b.node.setAttribute($[211],a!=null?a:"none")}},getStrokeWidth:function(a){return parseFloat(a.node.getAttribute($[330]))},getStrokeColor:function(a){return a.node.getAttribute($[211])},setOpacity:function(a,b){a.node.setAttribute($[76],b)},getOpacity:function(b){var a=b.node.getAttribute($[76]);return a?a:0},setBlur:function(a,c){if(c>0){var d="filter_"+qx.core.Object.toHashCode(a);var b;if(typeof a.defNodes[d]===$[7]){b=this._createNode($[138]);b.setAttribute("id",d);b.appendChild(this._createNode("feGaussianBlur"));this._addNewDefinition(a,b,d)}else{b=a.defNodes[d]}b.firstChild.setAttribute($[483],c/2);a.node.setAttribute($[138],"url(#"+d+")")}else{a.node.setAttribute($[138],"none")}},getBlur:function(b){var a=0;var c=b.node.getAttribute($[138]);if(c&&c!=="none"){var e="filter_"+qx.core.Object.toHashCode(b);var d=b.defNodes[e];a=d.firstChild.getAttribute($[483])*2}return a},_onImageLoad:function(c,b){var a=new Image();a.src=c;a.onload=function(d){if(arguments.callee.caller!=null){org.eclipse.rwt.SVG._onImageLoad(c,b)}else{b()}}},_createNode:function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},_createRect:function(){var a={};a.type="svgRect";var b=this._createNode("rect");b.setAttribute($[28],"0");b.setAttribute($[23],"0");b.setAttribute("x","0");b.setAttribute("y","0");a.node=b;return a},_setXLink:function(a,b){a.setAttributeNS("http://www.w3.org/1999/xlink","href",b)},_createRoundRect:function(){var a={};a.type="svgRoundRect";var b=this._createNode("path");a.node=b;return a},_addNewDefinition:function(a,b,c){a.defNodes[c]=b;if(a.parent!=null){a.parent.defsNode.appendChild(b)}},_attachDefinitions:function(a){for(var c in a.defNodes){var b=a.defNodes[c];a.parent.defsNode.appendChild(b)}},_detachDefinitions:function(a){for(var c in a.defNodes){var b=a.defNodes[c];b.parentNode.removeChild(b)}},_convertNumeric:function(a){return typeof a==$[9]?a:a+"px"},_redrawWebkit:function(a){var b=function(){org.eclipse.rwt.SVG._redrawWebkitCore(a)};window.setTimeout(b,10)},_redrawWebkitCore:function(a){if(a.parent!=null){a.node.style.webkitTransform="scale(1)"}},_dummyNode:null,_getDummyNode:function(){if(this._dummyNode==null){this._dummyNode=this._createNode("rect")}return this._dummyNode}}});
qx.Class.define("org.eclipse.swt.WidgetUtil",{statics:{setPropertyParam:function(d,b,a){var f=org.eclipse.swt.WidgetManager.getInstance();var e=f.findIdByWidget(d);var c=org.eclipse.swt.Request.getInstance();c.addParameter(e+"."+b,a)},fixIEBoxHeight:qx.core.Variant.select($[0],{mshtml:function(a){a.setStyleProperty($[165],"0");a.setStyleProperty($[306],"0")},"default":qx.lang.Function.returnTrue}),getControl:function(b){var c=org.eclipse.swt.WidgetManager.getInstance();var a=b;while(a!=null&&!c.isControl(a)){a=a.getParent?a.getParent():null}return a},_fakeMouseEvent:function(b,d){var f=b._getTargetNode();var a=org.eclipse.rwt.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(){}};var e=new qx.event.type.MouseEvent(d,c,f,g,b,null);g.dispatchEvent(e)}}});
qx.Class.define("org.eclipse.swt.theme.ThemeStore",{type:$[37],extend:qx.core.Object,construct:function(){this._values={dimensions:{},boxdims:{},images:{},gradients:{},fonts:{},colors:{},borders:{},cursors:{},animations:{},shadows:{}};this._cssValues={};this._statesMap={"*":{hover:"over"},"DateTime-Calendar-Day":{unfocused:$[92]},"List-Item":{unfocused:$[92]},Text:{"read-only":$[300]},TreeItem:{unfocused:$[92]},"Tree-RowOverlay":{unfocused:$[92]},TreeColumn:{hover:$[6]},Shell:{inactive:$[195]},"Shell-Titlebar":{inactive:$[195]},"Shell-MinButton":{inactive:$[195]},"Shell-MaxButton":{inactive:$[195]},"Shell-CloseButton":{inactive:$[195]},TableColumn:{hover:$[6]},TableItem:{unfocused:$[92]},"Table-RowOverlay":{unfocused:$[92]},TabItem:{selected:$[203],first:"firstChild",last:$[247]}};this._namedColors={}},members:{setCurrentTheme:function(a){this._currentTheme=a},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){if(this._cssValues[c]===undefined){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="#"+qx.util.ColorUtil.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===$[82]){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]},getBoolean:function(b,a,c,d){return this._getCssValue(b,a,c,d)},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=$[287]+c}else{a=org.eclipse.swt.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=[$[287]+c].concat(e)}else{a=org.eclipse.swt.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(c===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 qx.ui.core.Font)){var a=new qx.ui.core.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,o,l,i){var g;var m=this._getCssValue(j,o,l,i);var k=this._values.borders[m];var n=k instanceof org.eclipse.rwt.Border;var b=n?k.getStyle():k.style;if(b===$[72]||b==="none"||b===null){var a=this._getCssValue(j,o,"border-radius",i);var h=this._values.boxdims[a];if(h!=null&&(h.join("")!=="0000")){var d=m+"#"+a;var e=this._values.borders[d];if(!e){var c=n?k.getWidthTop():k.width;var f=n?k.getColorTop():k.color;g=new org.eclipse.rwt.Border(c,$[77],f,h);this._values.borders[d]=g}else{g=e}}}if(!g){if(n){g=k}else{g=this._getBorderFromValue(k);this._values.borders[m]=g}}return g},getShadow:function(c,a,d,e){var b=this._getCssValue(c,a,d,e);return this._values.shadows[b]},getNamedBorder:function(c){var d="_"+c;var a=this._values.borders[d];if(!a){var f=org.eclipse.swt.theme.BorderDefinitions.getDefinition(c);if(f){var b=this._resolveNamedColors(f.color);var e=this._resolveNamedColors(f.innerColor);a=new org.eclipse.rwt.Border(f.width,$[175],b,e);this._values.borders[d]=a}else{a=null}}return a},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;a<e.colors.length;a++){d[a]=[e.percents[a]/100,e.colors[a]]}d.horizontal=!e.vertical;this._values.gradients[g]=d}j=this._values.gradients[g]}return j},getImageSize:function(b){var a=b.slice($[287].length);var c=this._values.images[a];return c!=null?[c[0],c[1]]:[0,0]},_getCssValue:function(e,c,g,h){var a;if(h==null){h=this._currentTheme}if(this._cssValues[h]!==undefined&&this._cssValues[h][e]!==undefined&&this._cssValues[h][e][g]!==undefined){var b=this._cssValues[h][e][g];var f=false;for(var d=0;d<b.length&&!f;d++){if(this._matches(c,e,b[d][0])){a=b[d][1];f=true}}}if(a===undefined&&h!=this.fallbackTheme){a=this._getCssValue(e,c,g,this.fallbackTheme)}return a},_matches:function(b,e,j){var a=true;for(var d=0;d<j.length&&a;d++){var f=j[d];if(f.length>0){var h=f.charAt(0);if(h=="."){a=$[36]+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;b<c.length;b++){a[b]=this.getNamedColor(c[b])}}return a},_fillNamedColors:function(a){this._namedColors[$[218]]=this.getColor($[184],{},"rwt-darkshadow-color",a);this._namedColors[$[35]]=this.getColor($[184],{},"rwt-highlight-color",a);this._namedColors[$[141]]=this.getColor($[184],{},"rwt-lightshadow-color",a);this._namedColors[$[20]]=this.getColor($[184],{},"rwt-shadow-color",a);this._namedColors.thinborder=this.getColor($[184],{},"rwt-thinborder-color",a);this._namedColors["selection-marker"]=this.getColor($[184],{},"rwt-selectionmarker-color",a);this._namedColors[$[146]]=this.getColor("*",{},$[193],a);this._namedColors[$[296]]=this.getColor("*",{},$[65],a);this._namedColors["info.foreground"]=this.getColor("Widget-ToolTip",{},$[65],a)},_getBorderFromValue:function(b){var a=null;if(b.color==null){if(b.width==1){if(b.style=="outset"){a=this.getNamedBorder("thinOutset")}else{if(b.style=="inset"){a=this.getNamedBorder("thinInset")}}}else{if(b.width==2){a=this.getNamedBorder(b.style)}}}if(a===null){a=new org.eclipse.rwt.Border(b.width,b.style,b.color)}return a}}});
qx.Class.define("org.eclipse.rwt.widgets.MultiCellWidget",{extend:qx.ui.basic.Terminator,construct:function(a){arguments.callee.base.call(this);this.__cellData=null;this.__cellNodes=null;this.__cellCount=null;this.__computedTotalSpacing=null;this.__styleRegExp=/([a-z])([A-Z])/g;this.__createCellData(a);this.__paddingCache=[0,0,0,0];this.__fontCache={};this.__colorCache="";this._flexibleCell=-1;this.initWidth();this.initHeight();this.addToQueue($[419]);this.setOverflow($[13]);this.initSelectable();this.initCursor();this.initTextColor();this.initHorizontalChildrenAlign()},destruct:function(){this._disposeObjectDeep("__cellData",0);this._disposeObjectDeep("__cellNodes",0);this._disposeObjectDeep("__paddingCache",0);this._disposeObjectDeep("_fontCache",0)},properties:{spacing:{check:$[14],init:4,themeable:true,apply:$[494],event:$[479]},horizontalChildrenAlign:{check:["left",$[30],$[15]],init:$[30],themeable:true,apply:$[455]},verticalChildrenAlign:{check:["top",$[46],$[31]],init:$[46],themeable:true,apply:$[493]},selectable:{refine:true,init:false},textColor:{refine:true,init:"#000000"},cursor:{refine:true,init:$[66]},allowStretchX:{refine:true,init:false},allowStretchY:{refine:true,init:false},appearance:{refine:true,init:"atom"},width:{refine:true,init:"auto"},height:{refine:true,init:"auto"}},members:{setCellContent:function(a,b){this.__updateComputedCellDimension(a);if(this._cellHasContent(a)!=(b!=null)){this._invalidateTotalSpacing();this.addToQueue($[419])}else{this.addToQueue("updateContent")}var c=b;if(this._isImageCell(a)){c=qx.io.Alias.getInstance().resolve(c)}this.__cellData[a][1]=c},setCellDimension:function(b,c,a){this.setCellWidth(b,c);this.setCellHeight(b,a)},setCellVisible:function(a,b){this.__cellData[a][6]=b;if(this.getCellNode(a)){this.getCellNode(a).style.display=b?"":"none"}},isCellVisible:function(a){return this.__cellData[a][6]},getCellNode:function(a){return this.__cellNodes[a]},getCellContent:function(a){return this.__cellData[a][1]},setCellWidth:function(a,b){if(this._getCellWidth(a)!==b){this._setCellWidth(a,b);this._invalidateTotalSpacing();this._invalidatePreferredInnerWidth();this._scheduleLayoutX()}},setCellHeight:function(b,a){this._setCellHeight(b,a);this._invalidateTotalSpacing();this._invalidatePreferredInnerHeight();this._scheduleLayoutY()},setFlexibleCell:function(a){this._flexibleCell=a},getFlexibleCell:function(){return this._flexibleCell},getCellDimension:function(b){var c=this.getCellWidth(b);var a=this.getCellHeight(b);return[c,a]},getCellWidth:function(a,b){var f=this.__cellData[a];var e=this._flexibleCell===a&&b!==true;var c=(f[2]!=null?f[2]:f[4]);if(c==null||(e&&f[3]===null)){var d=this.__computeCellDimension(f);c=d[0]}if(e){c=this._limitCellWidth(a,c)}return c},getCellHeight:function(b,c){var g=this.__cellData[b];var f=this._flexibleCell===b&&c!==true;var a=(g[3]!=null?g[3]:g[5]);if(a==null||(f&&g[3]===null)){var e=f?this.getCellWidth(b):null;var d=this.__computeCellDimension(g,e);a=d[1]}if(f){a=this._limitCellHeight(b,a)}return a},_applyElement:function(b,a){arguments.callee.base.call(this,b,a);if(b){this._createSubelements();this._catchSubelements()}},_createSubelements:function(){var b="";for(var a=0;a<this.__cellCount;a++){this.__setCellNode(a,null);if(this._cellHasContent(a)){if(this._isTextCell(a)){b+=this._getLabelHtml(a)}else{if(this._isImageCell(a)){b+=this._getImageHtml(a)}}}}this._getTargetNode().innerHTML=b},_catchSubelements:function(){var b=this._getTargetNode();var c=0;for(var a=0;a<this.__cellCount;a++){if(this._cellHasContent(a)){this.__setCellNode(a,b.childNodes[c]);c++}}if(this.getEnabled()==false){this._applyEnabled(false)}},_applySpacing:function(b,a){this._invalidateTotalSpacing();this._scheduleLayoutX()},_applyHorizontalChildrenAlign:function(b,a){this._scheduleLayoutX();this.setStyleProperty($[198],b)},_applyVerticalChildrenAlign:function(b,a){this._scheduleLayoutY()},_applyPaddingTop:function(b,a){this.addToLayoutChanges($[181]);this.__paddingCache[0]=b;this._invalidateFrameHeight()},_applyPaddingRight:function(b,a){this.addToLayoutChanges($[191]);this.__paddingCache[1]=b;this._invalidateFrameWidth()},_applyPaddingBottom:function(b,a){this.addToLayoutChanges($[208]);this.__paddingCache[2]=b;this._invalidateFrameHeight()},_applyPaddingLeft:function(b,a){this.addToLayoutChanges($[213]);this.__paddingCache[3]=b;this._invalidateFrameWidth()},_applyEnabled:function(b,a){arguments.callee.base.call(this,b,a);this._styleAllImagesEnabled()},_scheduleLayoutX:function(){this.addToQueue("layoutX");this._afterScheduleLayoutX()},_scheduleLayoutY:function(){this.addToQueue("layoutY");this._afterScheduleLayoutY()},_afterScheduleLayoutX:qx.lang.Function.returnTrue,_afterScheduleLayoutY:qx.lang.Function.returnTrue,_beforeComputeInnerWidth:qx.lang.Function.returnTrue,_beforeComputeInnerHeight:qx.lang.Function.returnTrue,_beforeRenderLayout:qx.lang.Function.returnTrue,_afterRenderLayout:qx.lang.Function.returnTrue,_cellHasContent:function(a){var b=this.__cellData[a][1];return b!=null},_isImageCell:function(a){var b=this.__cellData[a][0];return b==$[18]},_isTextCell:function(a){var b=this.__cellData[a][0];return b==$[74]},_setCellWidth:function(a,b){this.__cellData[a][2]=b},_getCellWidth:function(a){return this.__cellData[a][2]},_setCellHeight:function(b,a){this.__cellData[b][3]=a},__setCellNode:function(a,b){this.__cellNodes[a]=b;if(b!==null&&!this.isCellVisible(a)){b.style.display="none"}},__cellHasNode:function(a){return this.__cellNodes[a]!=null},__createCellData:function(b){var d=[];var a=[];this.__cellCount=b.length;for(var c=0;c<this.__cellCount;c++){a[c]=null;d[c]=[b[c],null,null,null,null,null,true]}this.__cellNodes=a;this.__cellData=d},__updateComputedCellDimension:function(a){var b=this.__cellData[a];b[4]=null;b[5]=null;if(b[2]==null){this._invalidatePreferredInnerWidth();this._scheduleLayoutX()}if(b[3]==null){this._invalidatePreferredInnerHeight();this._scheduleLayoutY()}},__computeCellDimension:function(c,b){var d;if(c[0]==$[74]&&c[1]!=null){var a=org.eclipse.swt.FontSizeCalculation;d=a.computeTextDimensions(c[1],this.__fontCache,b)}else{d=[0,0]}c[4]=d[0];c[5]=d[1];return d},_isWidthEssential:qx.lang.Function.returnTrue,_isHeightEssential:qx.lang.Function.returnTrue,_computePreferredInnerWidth:function(){return this._getContentWidth($[380])},_limitCellWidth:function(b,e){var d=this.getInnerWidth();var c=this._getContentWidth($[430]);var f=Math.max(0,d-c);var a;if(e>f){a=f}else{a=e}return a},_getContentWidth:function(f){this._beforeComputeInnerWidth();var a=0;if(f===$[380]){var e=this.getTotalSpacing();var d=0;for(var b=0;b<this.__cellCount;b++){d+=this.getCellWidth(b,true)}a=e+d}else{if(f===$[430]){var g=this.getSpacing();for(var b=0;b<this.__cellCount;b++){if(b!==this._flexibleCell){var c=this.getCellWidth(b);a+=c;if(c>0){a+=g}}}}else{if(f==="flexible"){var e=this.getTotalSpacing();var d=0;for(var b=0;b<this.__cellCount;b++){d+=this.getCellWidth(b)}a=e+d}else{throw new Error("unkown hint")}}}return a},_computePreferredInnerHeight:function(){this._beforeComputeInnerHeight();var b=0;for(var a=0;a<this.__cellCount;a++){b=Math.max(b,this.getCellHeight(a,true))}return b},_limitCellHeight:function(b,c){var d=this.getInnerHeight();var a;if(c>d){a=d}else{a=c}return a},getTotalSpacing:function(){if(this.__computedTotalSpacing==null){var a=Math.max(0,(this.getTotalVisibleCells()-1));this.__computedTotalSpacing=a*this.getSpacing()}return this.__computedTotalSpacing},getTotalVisibleCells:function(){var a=0;for(var b=0;b<this.__cellCount;b++){if(this.cellIsDisplayable(b)){a++}}return a},cellIsDisplayable:function(a){return(this.getCellWidth(a,true)>0)},_invalidateTotalSpacing:function(){this.__computedTotalSpacing=null;this._invalidatePreferredInnerWidth()},renderPadding:function(a){},_layoutPost:function(a){if(a.createContent){this._createSubelements();this._catchSubelements()}if(a.updateContent&&!a.createContent){this._updateAllImages();this._updateAllLabels()}a.layoutX=a.width||a.layoutX||a.frameWidth||a.initial;a.layoutY=a.height||a.layoutY||a.frameHeight||a.initial;this._beforeRenderLayout(a);if(a.layoutX){this._renderLayoutX()}if(a.layoutY){this._renderLayoutY()}this._afterRenderLayout(a);arguments.callee.base.call(this,a)},_renderLayoutX:function(){var a=this.getSpacing();var d=this.__paddingCache;var g=this.getHorizontalChildrenAlign();var h=this._getContentWidth("flexible");var k=this.getInnerWidth();var j=null;switch(g){default:case"left":j=d[3];break;case $[30]:j=Math.round(d[3]+k*0.5-h*0.5);break;case $[15]:j=d[3]+k-h;break}var e=j;var c=null;var b=null;for(var f=0;f<this.__cellCount;f++){if(this.cellIsDisplayable(f)){c=this.getCellWidth(f);if(this._cellHasContent(f)){b=this.getCellNode(f).style;b.left=e+"px";b.width=c+"px"}e+=(c+a)}}},_renderLayoutY:function(){for(var a=0;a<this.__cellCount;a++){if(this._cellHasContent(a)){this._renderCellLayoutY(a)}}},_renderCellLayoutY:function(b){var g=this.getVerticalChildrenAlign();var f=this.__paddingCache;var c=this.getInnerHeight();var a=this.getCellHeight(b);var e=null;switch(g){default:case"top":e=f[0];break;case $[46]:e=Math.round(f[0]+c*0.5-a*0.5);break;case $[31]:e=f[0]+c-a;break}var d=this.getCellNode(b).style;d.top=e+"px";d.height=a+"px"},_getImageHtml:qx.core.Variant.select($[0],{mshtml:function(a){if(org.eclipse.rwt.Client.getVersion()<7){var c=this.getCellContent(a);var b="";if(c){b="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+c+$[367]}return'<div style="position:absolute;border:0 none;line-height:0px;font-size:0px;'+b+'"></div>'}else{var c=this.getCellContent(a);var b="";if(c){b=$[452]+c+")"}return"<div style='position:absolute;border:0 none;line-height:0px;font-size:0px;"+b+$[421]}},"default":function(a){var c=this.getCellContent(a);var b="";if(c){b=$[452]+c+")"}return"<div style='position:absolute;border:0 none;"+b+$[421]}}),_updateImage:function(a){var c=this.getCellNode(a);var d=this.getCellContent(a);var b=this.getEnabled()?1:0.3;org.eclipse.rwt.HtmlUtil.setBackgroundImage(c,d,b)},_updateAllImages:function(){for(var a=0;a<this.__cellCount;a++){if(this._isImageCell(a)&&this._cellHasContent(a)){this._updateImage(a)}}},_styleAllImagesEnabled:function(){for(var a=0;a<this.__cellCount;a++){if(this._isImageCell(a)&&this.__cellHasNode(a)){this._updateImage(a)}}},_getLabelHtml:function(a){return"<div style='position:absolute;border:0 none;overflow:hidden;"+this._joinStyleProperties(this.__fontCache)+"'>"+this.getCellContent(a)+"</div>"},_joinStyleProperties:function(d){var e=[];var c;for(var b in d){c=d[b];if(c){e.push(b,":",c,";")}}var a=e.join("");return a.replace(this.__styleRegExp,"$1-$2").toLowerCase()},_applyFont:function(b,a){this._styleFont(b)},_styleFont:function(a){if(a){a.renderStyle(this.__fontCache)}else{qx.ui.core.Font.resetStyle(this.__fontCache)}for(var b=0;b<this.__cellCount;b++){if(this._isTextCell(b)&&this._cellHasContent(b)){if(this.__cellHasNode(b)){if(a){a.renderStyle(this.getCellNode(b).style)}else{qx.ui.core.Font.resetStyle(this.getCellNode(b).style)}}this.__updateComputedCellDimension(b)}}},_applyTextColor:function(b,a){if(b){this.setStyleProperty($[65],b)}else{this.removeStyleProperty($[65])}},_updateLabel:function(a){this.getCellNode(a).innerHTML=this.getCellContent(a)},_updateAllLabels:function(){for(var a=0;a<this.__cellCount;a++){if(this._isTextCell(a)&&this._cellHasContent(a)){this._updateLabel(a)}}}}});
qx.Class.define("org.eclipse.rwt.widgets.ListItem",{extend:org.eclipse.rwt.widgets.MultiCellWidget,construct:function(){arguments.callee.base.call(this,[$[74]]);this.initMinWidth();this.setHorizontalChildrenAlign("left")},properties:{appearance:{refine:true,init:"list-item"},minWidth:{refine:true,init:"auto"},width:{refine:true,init:null},allowStretchX:{refine:true,init:true}},members:{setLabel:function(a){this.setCellContent(0,a)},getLabel:function(a){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===$[9])?d.toLowerCase():"";c=(typeof c===$[9])?c.toLowerCase():"";return a!==""&&c.indexOf(a)===0}}});
qx.Mixin.define("org.eclipse.rwt.DomEventPatch",{members:{setDomEvent:function(a){arguments.callee.base.call(this,a);org.eclipse.swt.EventUtil._shiftKey=a.shiftKey;org.eclipse.swt.EventUtil._ctrlKey=a.ctrlKey;org.eclipse.swt.EventUtil._altKey=a.altKey;org.eclipse.swt.EventUtil._metaKey=a.metaKey}}});
qx.Class.define("org.eclipse.rwt.MenuManager",{type:$[37],extend:qx.util.manager.Object,members:{update:function(j,a){var f=this.getAll();var d=a==$[1];var o=a==$[5];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 org.eclipse.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)){h=true}}}if(h){b.hide()}}},_getMenuBar:function(c){var d=null;var b=null;if(c instanceof org.eclipse.rwt.widgets.MenuItem){d=c.getParentMenu()}else{if(c instanceof org.eclipse.rwt.widgets.Menu||c instanceof org.eclipse.rwt.widgets.MenuBar){d=c}}while(b==null&&d!=null){if(d instanceof org.eclipse.rwt.widgets.MenuBar){b=d}else{var a=d.getOpener() instanceof org.eclipse.rwt.widgets.MenuItem;var d=a?d.getOpener().getParentMenu():null}}return b}}});
qx.Class.define($[352],{extend:org.eclipse.rwt.widgets.MultiCellWidget,construct:function(a){arguments.callee.base.call(this,[$[18],$[18],$[74],$[18]]);this._hasSelectionListener=false;this._selected=false;this._parentMenu=null;this._subMenu=null;this._subMenuOpen=false;this._preferredCellWidths=null;this.initTabIndex();this.set({width:"auto",horizontalChildrenAlign:"left",verticalChildrenAlign:$[46]});this.addEventListener($[5],this.execute);this.addEventListener($[102],this._onFontChange);this.addState(a);switch(a){case"bar":this._isSelectable=false;this._isDeselectable=false;this._sendEvent=false;this.addState("onMenuBar");break;case"push":this._isSelectable=false;this._isDeselectable=false;this._sendEvent=true;break;case"check":this._isSelectable=true;this._isDeselectable=true;this._sendEvent=true;break;case"cascade":this._isSelectable=false;this._isDeselectable=false;this._sendEvent=false;break;case $[122]:this._isSelectable=true;this._sendEvent=false;this.setNoRadioGroup(false);org.eclipse.rwt.RadioButtonUtil.registerExecute(this);break;default:throw ("Unkown menuItem type "+a);break}this._preferredCellWidths=[0,0,0,13];if(this._isSelectable){this.setCellContent(0,"")}},destruct:function(){this._disposeFields("_parentMenu","_subMenu")},properties:{selectionIndicator:{apply:$[463],nullable:true,themeable:true},arrow:{apply:"_applyArrow",nullable:true,themeable:true},appearance:{refine:true,init:"menu-item"},tabIndex:{refine:true,init:1}},events:{subMenuChanged:$[3]},members:{setParentMenu:function(a){this._parentMenu=a},getParentMenu:function(){return this._parentMenu},setSubMenuOpen:function(a){this._subMenuOpen=a},setMenu:function(a){this._subMenu=a;this.dispatchSimpleEvent($[373])},getMenu:function(){return this._subMenu},_applySelectionIndicator:function(f,b){var c=f?f[0]:null;var d=f?f[1]:0;var a=f?f[2]:0;if(c==null){var e=this._isSelectable?"":null;this.setCellContent(0,e)}else{this.setCellContent(0,c)}this.setCellHeight(0,a);this._setPreferredCellWidth(0,d)},_setPreferredCellWidth:function(a,b){this._preferredCellWidths[a]=b;if(this._parentMenu instanceof org.eclipse.rwt.widgets.Menu){this._parentMenu.invalidateMaxCellWidth(a)}this._scheduleLayoutX()},_afterScheduleLayoutX:function(){if(this._parentMenu instanceof org.eclipse.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(e,b){var c=e?e[0]:null;var d=e?e[1]:13;var a=e?e[2]:0;this.setCellContent(3,c);this.setCellHeight(3,a);this._setPreferredCellWidth(3,d)},_beforeComputeInnerWidth:function(){if(this._parentMenu instanceof org.eclipse.rwt.widgets.Menu){for(var a=0;a<4;a++){this._setCellWidth(a,this._parentMenu.getMaxCellWidth(a))}}},_beforeAppear:function(){arguments.callee.base.call(this);if(this._parentMenu instanceof org.eclipse.rwt.widgets.Menu){this._parentMenu.invalidateAllMaxCellWidths();this._parentMenu.scheduleMenuLayout()}},setHasSelectionListener:function(a){this._hasSelectionListener=a},setSubMenu:function(a){this._subMenu=a;this.createDispatchEvent($[373])},setNoRadioGroup:function(a){if(this.hasState($[122])){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))}this._sendChanges()},setSelection:function(b){if(this._selected!=b||this._selected){this._selected=b;if(this._selected){this.addState($[29])}else{this.removeState($[29])}if(!org.eclipse.swt.EventUtil.getSuspended()){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addParameter(c+$[147],this._selected);org.eclipse.swt.EventUtil.addWidgetSelectedModifier()}}},_sendChanges:function(){if(!org.eclipse.swt.EventUtil.getSuspended()&&this._hasSelectionListener){var a=org.eclipse.swt.Request.getInstance();if(this._sendEvent){var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);a.addEvent($[69],b);org.eclipse.swt.EventUtil.addWidgetSelectedModifier()}a.send()}},_onmouseup:function(a){this.execute()}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.MenuItem",{factory:function(b){var a;org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(b.parent,function(e){var d=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(b.style);var c="push";if(e.hasState($[206])){c="bar"}else{if(d.CASCADE){c="cascade"}else{if(d.CHECK){c="check"}else{if(d.RADIO){c=$[122]}}}}if(d.SEPARATOR){a=new qx.ui.menu.Separator()}else{a=new org.eclipse.rwt.widgets.MenuItem(c);a.setNoRadioGroup(e.hasState($[292]))}e.addMenuItemAt(a,b.index)});org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getWidgetDestructor(),properties:["menu",$[241],"text",$[18],$[24],$[98]],propertyHandler:{menu:function(b,a){if(!b.hasState($[186])){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(a,function(c){b.setMenu(c)})}},text:function(d,c){if(!d.hasState($[186])){var b=org.eclipse.rwt.protocol.EncodingUtil;var e=c;var a=e.indexOf("\t");if(a!=-1){e=e.substring(0,a)}e=b.escapeText(e,true);d.setText(e)}},image:function(b,a){if(!b.hasState($[186])){if(a===null){b.setImage(a)}else{b.setImage.apply(b,a)}}},selection:function(b,a){if(!b.hasState($[186])){b.setSelection(a)}}},listeners:[$[24],"help"],listenerHandler:{selection:function(b,a){if(!b.hasState($[186])){b.setHasSelectionListener(a)}},help:org.eclipse.rwt.protocol.AdapterUtil.getControlListenerHandler("help")},methods:[]});
qx.Class.define("org.eclipse.rwt.RadioButtonUtil",{statics:{registerExecute:function(a){a.addEventListener($[108],this._onSelection,this)},registerKeypress:function(a){a.addEventListener($[4],this._onKeypress,this)},_onKeypress:function(a){var b=a.getTarget();switch(a.getKeyIdentifier()){case"Left":case"Up":this._setNextOrPrevious(b,"previous");b._sendChanges();a.preventDefault();a.stopPropagation();break;case $[39]:case"Down":this._setNextOrPrevious(b,"next");b._sendChanges();a.preventDefault();a.stopPropagation();break;case"Home":case"End":case $[43]:case $[42]:a.preventDefault();a.stopPropagation();break}},_onSelection:function(a){this._unselectSiblings(a.getTarget())},_isRadioElement:function(a){return a.hasState($[122])},_getRadioGroup:function(d){var e=[];if(!d.getNoRadioGroup()){var f=d.getParent().getChildren();var c=f.length;if(d.classname==$[502]){for(var a=0;a<c;a++){if(this._isRadioElement(f[a])){e.push(f[a])}}}else{var b=false;var a=0;while(a<c&&(!b||this._isRadioElement(f[a]))){if(!b){b=f[a]==d}if(this._isRadioElement(f[a])){e.push(f[a])}else{e=[]}a++}}}return e},_setNextOrPrevious:function(e,g){var a=this._getRadioGroup(e);if(a.length>0){var d;for(var c=0;c<a.length;c++){if(a[c]==e){d=c}}var f=d;if(g=="next"){f=d+1;if(f>=a.length){f=0}}if(g=="previous"){f=d-1;if(f<0){f=a.length-1}}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;a<c.length;a++){if(c[a]!=b){c[a].setSelection(false)}}}}});
qx.Class.define("org.eclipse.rwt.widgets.MenuBar",{extend:qx.ui.layout.HorizontalBoxLayout,construct:function(){arguments.callee.base.call(this);this._hoverItem=null;this._openItem=null;this.addEventListener($[1],this._onMouseDown);this.addEventListener($[6],this._onMouseOver);this.addEventListener($[8],this._onMouseOut)},properties:{appearance:{refine:true,init:"toolbar"}},events:{changeOpenItem:$[3]},members:{addMenuItemAt:function(b,a){if(b.setParentMenu){b.setParentMenu(this)}this.addAt(b,a)},_onMouseOver:function(b){var c=b.getTarget();var a=c==this?null:c;this.setHoverItem(a)},_onMouseOut:function(a){var c=a.getTarget();var b=a.getRelatedTarget();if(c==this||!this.contains(b)){this.setHoverItem(null)}},_onMouseDown:function(a){var b=a.getTarget();if(b!=this){this.setOpenItem(b)}},setHoverItem:function(a){if(this._hoverItem!=null&&this._hoverItem!=a){this._hoverItem.removeState("over")}if(a!=null){a.addState("over");if(this._openItem!=null&&this._openItem!=a){this.setOpenItem(a)}}this._hoverItem=a},setOpenItem:function(b){var c=this._openItem;if(c!=null&&c.getMenu()!=null){c.setSubMenuOpen(false);c.getMenu().hide()}if(b!=null&&b!=c&&b.getMenu()!=null){this._openItem=b;b.addState($[11]);var a=b.getMenu();b.setSubMenuOpen(true);a.setOpener(b);var d=b.getElement();a.setTop(qx.bom.element.Location.getTop(d)+qx.html.Dimension.getBoxHeight(d));a.setLeft(qx.bom.element.Location.getLeft(d));a.show()}else{this._openItem=null}this.dispatchSimpleEvent("changeOpenItem")},getOpenItem:function(){return this._openItem}}});
qx.Class.define("org.eclipse.rwt.DNDSupport",{type:$[37],extend:qx.core.Object,construct:function(){arguments.callee.base.call(this);this._dragSources={};this._dropTargets={};this._dropTargetEventQueue={};this._requestScheduled=false;this._currentDragSource=null;this._currentDropTarget=null;this._currentTargetWidget=null;this._currentMousePosition={x:0,y:0};this._actionOverwrite=null;this._dataTypeOverwrite=null;this._dropFeedbackRenderer=null;this._dropFeedbackFlags=0;this._dragFeedbackWidget=null;this._blockDrag=false},members:{registerDragSource:function(b,a){b.addEventListener($[79],this._dragStartHandler,this);b.addEventListener($[258],this._dragEndHandler,this);var c=b.toHashCode();this._dragSources[c]={dataTypes:[],actions:this._operationsToActions(a)}},setDragSourceTransferTypes:function(b,a){var c=b.toHashCode();this._dragSources[c]["dataTypes"]=a},deregisterDragSource:function(a){a.removeEventListener($[79],this._dragStartHandler,this);a.removeEventListener($[258],this._dragEndHandler,this);var b=a.toHashCode();delete this._dragSources[b]},isDragSource:function(a){var b=a.toHashCode();return typeof this._dragSources[b]!=$[7]},isDropTarget:function(a){var b=a.toHashCode();return typeof this._dropTargets[b]!=$[7]},_dragStartHandler:function(a){var m=org.eclipse.swt.WidgetManager.getInstance();var g=a.getCurrentTarget();var c=m.findControl(a.getTarget());if(c==g&&!this._blockDrag){var d=g.toHashCode();var j=this._dragSources[d].dataTypes;if(j.length>0){for(var e=0;e<j.length;e++){a.addData(j[e],true)}this._actionOverwrite=null;this._currentDragSource=g;var b=qx.event.handler.DragAndDropHandler.getInstance();b.clearActions();var k=qx.ui.core.ClientDocument.getInstance();k.addEventListener($[6],this._onMouseOver,this);k.addEventListener($[10],this._onKeyEvent,this);k.addEventListener($[40],this._onKeyEvent,this);this.setCurrentTargetWidget(a.getOriginalTarget());var l=org.eclipse.swt.WidgetUtil;l._fakeMouseEvent(this._currentTargetWidget,$[8]);var h=b.__dragCache.sourceWidget;var f=this._getFeedbackWidget(c,h);b.setFeedbackWidget(f,10,20);a.startDrag();a.stopPropagation()}this._sendDragSourceEvent(g,"dragStart",a.getMouseEvent())}},_dragEndHandler:function(b){var c=b.getCurrentTarget();var d=b.getMouseEvent();this._blockDrag=true;if(!this._requestScheduled){var a=org.eclipse.swt.Request.getInstance();a.addEventListener("send",this._onSend,this)}this._sendDragSourceEvent(c,$[469],d);this._cleanUp();b.stopPropagation()},_sendDragSourceEvent:function(c,e,g){var h=org.eclipse.swt.Request.getInstance();var j=org.eclipse.swt.WidgetManager.getInstance();var a=j.findIdByWidget(c);var i=0;var f=0;if(g instanceof qx.event.type.MouseEvent){i=g.getPageX();f=g.getPageY()}var d=$[457]+e;h.addEvent(d,a);h.addParameter(d+".x",i);h.addParameter(d+".y",f);var b=org.eclipse.swt.EventUtil.eventTimestamp();h.addParameter(d+".time",b);h.send()},registerDropTarget:function(b,a){b.addEventListener($[136],this._dragOverHandler,this);b.addEventListener($[243],this._dragMoveHandler,this);b.addEventListener($[271],this._dragOutHandler,this);b.addEventListener($[199],this._dragDropHandler,this);var c=b.toHashCode();this._dropTargets[c]={actions:this._operationsToActions(a)};b.setSupportsDropMethod(qx.lang.Function.returnTrue)},setDropTargetTransferTypes:function(b,a){b.setDropDataTypes(a)},deregisterDropTarget:function(a){a.setDropDataTypes([]);a.removeEventListener($[136],this._dragOverHandler,this);a.removeEventListener($[243],this._dragMoveHandler,this);a.removeEventListener($[271],this._dragOutHandler,this);a.removeEventListener($[199],this._dragDropHandler,this);var b=a.toHashCode();delete this._dropTargets[b];a.setSupportsDropMethod(null)},_dragOverHandler:function(a){var d=a.getCurrentTarget();var c=d.toHashCode();var e=a.getMouseEvent();this._currentDropTarget=d;var b=this._computeCurrentAction(e,d);this._setAction(b,null);this._sendDropTargetEvent(d,$[314],e,b);a.stopPropagation()},_dragMoveHandler:function(a){var c=a.getCurrentTarget();var d=a.getMouseEvent();this._currentMousePosition.x=d.getPageX();this._currentMousePosition.y=d.getPageY();var b=this._computeCurrentAction(d,c);this._setAction(b,d);this._sendDropTargetEvent(c,"dragOver",d,b);a.stopPropagation()},_dragOutHandler:function(b){var c=b.getCurrentTarget();var d=b.getMouseEvent();if(this._currentTargetWidget!==d.getTarget()){this._onMouseOver(d)}var a=qx.event.handler.DragAndDropHandler.getInstance();a.clearActions();this.setFeedback(c,null,0);this._currentDropTarget=null;this._actionOverwrite=null;this._dataTypeOverwrite=null;if(this._isDropTargetEventScheduled($[314])){this._cancelDropTargetEvent($[314]);this._cancelDropTargetEvent("dragOver")}else{this._sendDropTargetEvent(c,"dragLeave",d,"none")}b.stopPropagation()},_dragDropHandler:function(a){var c=a.getCurrentTarget();var d=a.getMouseEvent();var b=this._computeCurrentAction(d,c);this._sendDropTargetEvent(c,"dropAccept",d,b);a.stopPropagation()},_sendDropTargetEvent:function(h,j,n,g){var p=org.eclipse.swt.WidgetManager.getInstance();var c=p.findIdByWidget(h);var q=this._getCurrentItemTarget();var m=q!=null?p.findIdByWidget(q):null;var o=0;var l=0;if(n instanceof qx.event.type.MouseEvent){o=n.getPageX();l=n.getPageY()}else{o=this._currentMousePosition.x;l=this._currentMousePosition.y}var a=p.findIdByWidget(this._currentDragSource);var e=org.eclipse.swt.EventUtil.eventTimestamp();var f=g==$[100]?"link":g;var i=$[457]+j;var b={};b.id=c;b.eventName=i;var d={};d[i+".x"]=o;d[i+".y"]=l;d[i+".item"]=m;d[i+".operation"]=f;d[i+".feedback"]=this._dropFeedbackFlags;d[i+".dataType"]=this._dataTypeOverwrite;d[i+".source"]=a;d[i+".time"]=e;b.param=d;this._dropTargetEventQueue[j]=b;if(!this._requestScheduled){var k=org.eclipse.swt.Request.getInstance();k.addEventListener("send",this._onSend,this);this._requestScheduled=true;qx.client.Timer.once(k.send,k,200)}},_isDropTargetEventScheduled:function(a){return typeof this._dropTargetEventQueue[a]!=$[7]},_cancelDropTargetEvent:function(a){delete this._dropTargetEventQueue[a]},_setPropertyRetroactively:function(g,f,e){var d=org.eclipse.swt.WidgetManager.getInstance();for(var b in this._dropTargetEventQueue){var c=this._dropTargetEventQueue[b];if(c.id==d.findIdByWidget(g)){var a=c.eventName;c.param[a+"."+f]=e}}},_attachDropTargetEvents:function(){var e=org.eclipse.swt.Request.getInstance();var b=this._dropTargetEventQueue;for(var c in b){var d=b[c];e.addEvent(d.eventName,d.id);for(var a in d.param){e.addParameter(a,d.param[a])}}this._dropTargetEventQueue={}},_getCurrentItemTarget:function(){var b=null;var c=this._getCurrentFeedbackTarget();if(c instanceof org.eclipse.rwt.widgets.TreeRow){var a=this._currentDropTarget;b=a._rowContainer.findItemByRow(c)}else{b=c}return b},_setAction:function(d,a){var b=qx.event.handler.DragAndDropHandler.getInstance();var c=b.getCurrentAction();if(c!=d){b.clearActions();b.setAction(d);if(a!=null){this._sendDropTargetEvent(this._currentDropTarget,"dragOperationChanged",a,d)}}},_operationsToActions:function(b){var a={};for(var c=0;c<b.length;c++){var d=this._toAction(b[c]);a[d]=d!=null}return a},_toAction:function(b){var a;switch(b){case"DROP_MOVE":a="move";break;case"DROP_COPY":a="copy";break;case"DROP_LINK":a=$[100];break;default:a=b;break}return a},_computeCurrentAction:function(f,g){var j;if(this._actionOverwrite!=null){j=this._actionOverwrite}else{j="move";var b=f.isShiftPressed();var a=f.isCtrlPressed();var d=f.isAltPressed();if(a&&!b&&!d){j="copy"}else{if(d&&!b&&!a){j=$[100]}else{if(!d&&b&&a){j=$[100]}}}var i=g.toHashCode();var e=this._dropTargets[i].actions;var h=this._currentDragSource.toHashCode();var c=this._dragSources[h].actions;if(!c[j]||!e[j]){j="none"}}return j},_createFeedback:function(a){if(this._dropFeedbackRenderer==null){if(a instanceof org.eclipse.rwt.widgets.Tree){this._dropFeedbackRenderer=new org.eclipse.rwt.TreeDNDFeedback(a)}}},_renderFeedback:function(){if(this._dropFeedbackRenderer!=null){var a=this._getCurrentFeedbackTarget();this._dropFeedbackRenderer.renderFeedback(a)}},_getCurrentFeedbackTarget:function(){var a=null;var b=this._currentTargetWidget;if(b instanceof org.eclipse.rwt.widgets.TreeRow){if(this._currentDropTarget&&this._currentDropTarget.contains(b)){a=b}}return a},_getFeedbackWidget:function(c,b){var a=b;var d=false;if(this._dragFeedbackWidget==null){this._dragFeedbackWidget=new org.eclipse.rwt.widgets.MultiCellWidget([$[18],$[74]]);this._dragFeedbackWidget.setOpacity(0.7);this._dragFeedbackWidget.setEnabled(false);this._dragFeedbackWidget.setPadding(2)}while(!d&&a!=c){if(a instanceof org.eclipse.rwt.widgets.TreeRow){d=true;this._configureTreeRowFeedback(a)}if(!d){a=a.getParent()}}return d?this._dragFeedbackWidget:null},_configureTreeRowFeedback:function(h){var c=this._dragFeedbackWidget;var i=this._currentDragSource;var g=i._rowContainer.findItemByRow(h);if(g!=null){var a=i.getRenderConfig();var b=g.getImage(a.treeColumn);if(b!=null){c.setCellContent(0,b);var d=a.itemImageWidth[a.treeColumn];c.setCellDimension(0,d,h.getHeight())}var e=g.getCellBackground(a.treeColumn);var f=g.getCellForeground(a.treeColumn);c.setBackgroundColor(e);c.setTextColor(f);c.setCellContent(1,g.getText(a.treeColumn));c.setFont(a.font)}},_resetFeedbackWidget:function(){if(this._dragFeedbackWidget!=null){this._dragFeedbackWidget.setParent(null);this._dragFeedbackWidget.setFont(null);this._dragFeedbackWidget.setCellContent(0,null);this._dragFeedbackWidget.setCellDimension(0,null,null);this._dragFeedbackWidget.setCellContent(1,null);this._dragFeedbackWidget.setBackgroundColor(null)}},_onSend:function(b){this._attachDropTargetEvents();this._requestScheduled=false;this._blockDrag=false;var a=org.eclipse.swt.Request.getInstance();a.removeEventListener("send",this._onSend,this)},_onMouseOver:function(b){var c=b.getTarget();if(this._dropFeedbackRenderer!=null){var a=b.getDomTarget();if(!this._dropFeedbackRenderer.isFeedbackNode(a)){this.setCurrentTargetWidget(c)}}else{this.setCurrentTargetWidget(c)}},setCurrentTargetWidget:function(a){this._currentTargetWidget=a;this._renderFeedback()},_onKeyEvent:function(b){if(b.getType()==$[40]&&b.getKeyIdentifier()=="Alt"){this._sendDragSourceEvent(this._currentDragSource,$[469],b);this.cancel()}else{if(this._currentDropTarget!=null){var a=qx.event.handler.DragAndDropHandler.getInstance();var c=this._computeCurrentAction(b,this._currentDropTarget);this._setAction(c,b);a._renderCursor()}}},_cleanUp:function(){var b=org.eclipse.swt.WidgetUtil;b._fakeMouseEvent(this._currentTargetWidget,$[237]);b._fakeMouseEvent(this._currentTargetWidget,$[6]);this.setCurrentTargetWidget(null);if(this._currentDropTarget!=null){this.setFeedback(this._currentDropTarget,null,0);this._currentDropTarget=null}var a=qx.event.handler.DragAndDropHandler.getInstance();a.setFeedbackWidget(null);this._resetFeedbackWidget();this._currentDragSource=null;this._dataTypeOverwrite=null;this._currentMousePosition.x=0;this._currentMousePosition.y=0;var c=qx.ui.core.ClientDocument.getInstance();c.removeEventListener($[6],this._onMouseOver,this);c.removeEventListener($[10],this._onKeyEvent,this);c.removeEventListener($[40],this._onKeyEvent,this)},cancel:function(){if(this._currentDragSource!=null){var a=qx.event.handler.DragAndDropHandler.getInstance();a.globalCancelDrag();this._cleanUp()}},setOperationOverwrite:function(d,a){if(d==this._currentDropTarget){var c=this._toAction(a);var b=qx.event.handler.DragAndDropHandler.getInstance();this._actionOverwrite=c;this._setAction(c,null);b._renderCursor()}this._setPropertyRetroactively(d,"operation",a)},setFeedback:function(e,b,a){if(e==this._currentDropTarget){if(b!=null){this._createFeedback(e);if(this._dropFeedbackRenderer!=null){var d={};for(var c=0;c<b.length;c++){d[b[c]]=true}this._dropFeedbackRenderer.setFeedback(d);this._renderFeedback()}}else{if(this._dropFeedbackRenderer!=null){this._dropFeedbackRenderer.dispose();this._dropFeedbackRenderer=null}}this._dropFeedbackFlags=a}},setDataType:function(b,a){if(b==this._currentDropTarget){this._dataTypeOverwrite=a}this._setPropertyRetroactively(b,"dataType",a)}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.DropTarget",{factory:function(b){var c=org.eclipse.rwt.protocol.ObjectManager.getObject(b.control);var a={control:c};org.eclipse.rwt.DNDSupport.getInstance().registerDropTarget(c,b.style);return a},destructor:function(a){org.eclipse.rwt.DNDSupport.getInstance().deregisterDropTarget(a.control)},properties:["transfer"],propertyHandler:{transfer:function(b,a){var c=b.control;org.eclipse.rwt.DNDSupport.getInstance().setDropTargetTransferTypes(c,a)}},listeners:[],listenerHandler:{},methods:[]});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.DragSource",{factory:function(b){var c=org.eclipse.rwt.protocol.ObjectManager.getObject(b.control);var a={control:c};org.eclipse.rwt.DNDSupport.getInstance().registerDragSource(c,b.style);return a},destructor:function(a){org.eclipse.rwt.DNDSupport.getInstance().deregisterDragSource(a.control)},properties:["transfer"],propertyHandler:{transfer:function(b,a){var c=b.control;org.eclipse.rwt.DNDSupport.getInstance().setDragSourceTransferTypes(c,a)}},methods:["changeFeedback","changeDetail","changeDataType",$[183]],methodHandler:{changeFeedback:function(e,c){var d=org.eclipse.rwt.DNDSupport.getInstance();var f=org.eclipse.rwt.protocol.ObjectManager.getObject(c.control);var b=c.feedback;var a=c.flags;d.setFeedback(f,b,a)},changeDetail:function(d,a){var c=org.eclipse.rwt.DNDSupport.getInstance();var e=org.eclipse.rwt.protocol.ObjectManager.getObject(a.control);var b=a.detail;c.setOperationOverwrite(e,b)},changeDataType:function(d,b){var c=org.eclipse.rwt.DNDSupport.getInstance();var e=org.eclipse.rwt.protocol.ObjectManager.getObject(b.control);var a=b.dataType;c.setDataType(e,a)},cancel:function(c,a){var b=org.eclipse.rwt.DNDSupport.getInstance();b.cancel()}}});
qx.Class.define("org.eclipse.swt.theme.ThemeValues",{extend:qx.core.Object,construct:function(a){if(a===undefined){throw new Error("no states given")}this._states=a;this._store=org.eclipse.swt.theme.ThemeStore.getInstance()},statics:{NONE_IMAGE:null,NONE_IMAGE_SIZED:[null,0,0]},members:{getCssBorder:function(b,a){return this._store.getBorder(b,this._states,a)},getCssNamedBorder:function(a){return this._store.getNamedBorder(a)},getCssColor:function(b,a){return this._store.getColor(b,this._states,a)},getCssAlpha:function(b,a){return this._store.getAlpha(b,this._states,a)},getCssNamedColor:function(a){return this._store.getNamedColor(a)},getCssFont:function(b,a){return this._store.getFont(b,this._states,a)},getCssDimension:function(b,a){return this._store.getDimension(b,this._states,a)},getCssBoxDimensions:function(b,a){return this._store.getBoxDimensions(b,this._states,a)},getCssBoolean:function(b,a){return this._store.getBoolean(b,this._states,a)},getCssFloat:function(b,a){return this._store.getFloat(b,this._states,a)},getCssIdentifier:function(b,a){return this._store.getIdentifier(b,this._states,a)},getCssImage:function(b,a){return this._store.getImage(b,this._states,a)},getCssSizedImage:function(b,a){return this._store.getSizedImage(b,this._states,a)},getCssGradient:function(b,a){return this._store.getGradient(b,this._states,a)},getCssCursor:function(b,a){return this._store.getCursor(b,this._states,a)},getCssAnimation:function(b,a){return this._store.getAnimation(b,this._states,a)},getCssShadow:function(b,a){return this._store.getShadow(b,this._states,a)},mergeBorders:function(b,a,h,f,e){if(b==null){throw new Error("Unable to merge borders. Base border is null")}var j=b;var c=false;var g=b.getColors();var i=b.getWidths();var d=b.getStyles();if(a!=null&&a.getWidthTop()!==0){c=true;g[0]=a.getColorTop();i[0]=a.getWidthTop();d[0]=a.getStyleTop()}if(h!=null&&h.getWidthRight()!==0){c=true;g[1]=h.getColorRight();i[1]=h.getWidthRight();d[1]=h.getStyleRight()}if(f!=null&&f.getWidthBottom()!==0){c=true;g[2]=f.getColorBottom();i[2]=f.getWidthBottom();d[2]=f.getStyleBottom()}if(e!=null&&e.getWidthLeft()!==0){c=true;g[3]=e.getColorLeft();i[3]=e.getWidthLeft();d[3]=e.getStyleLeft()}if(c){j=new org.eclipse.rwt.Border(i,d,g)}return j}}});
qx.Class.define("org.eclipse.rwt.widgets.Tree",{extend:qx.ui.layout.CanvasLayout,construct:function(a){arguments.callee.base.call(this);this._rootItem=new org.eclipse.rwt.widgets.TreeItem();this._isVirtual=false;this._hasMultiSelection=false;this._hasSelectionListener=false;this._leadItem=null;this._topItemIndex=0;this._selection=[];this._focusItem=null;this._renderQueue={};this._resizeLine=null;this._selectionTimestamp=null;this._selectionOffsetX=null;this._delayedSelection=false;this._sortDirection=null;this._sortColumn=null;this._headerHeight=0;this._itemHeight=16;this._mergeEventsTimer=new qx.client.Timer(50);this._sendRequestTimer=null;this._rowContainer=org.eclipse.rwt.TreeUtil.createTreeRowContainer(a);this._columnArea=new org.eclipse.rwt.widgets.TableHeader(a);this._horzScrollBar=new org.eclipse.rwt.widgets.ScrollBar(true);this._vertScrollBar=new org.eclipse.rwt.widgets.ScrollBar(false);this._hasScrollBarsSelectionListener=false;this.add(this._columnArea);this.add(this._rowContainer);this.add(this._horzScrollBar);this.add(this._vertScrollBar);this._cellToolTip=null;this._config=this._rowContainer.getRenderConfig();this.setCursor($[66]);this.setOverflow($[13]);qx.ui.core.Widget.disableScrolling(this);this._configureAreas();this._configureScrollBars();this._registerListeners();this._parseArgsMap(a)},destruct:function(){this._rootItem.removeEventListener("update",this._onItemUpdate,this);this._rootItem.dispose();this._rootItem=null;if(this._sendRequestTimer!=null){this._sendRequestTimer.dispose();this._sendRequestTimer=null}this._mergeEventsTimer.dispose();this._mergeEventsTimer=null;this._rowContainer=null;this._columnArea=null;this._horzScrollBar=null;this._vertScrollBar=null;this._leadItem=null;this._focusItem=null;this._sortColumn=null;this._resizeLine=null;if(this._cellToolTip){this._cellToolTip.destroy();this._cellToolTip=null}},members:{_configureAreas:function(){this._columnArea.addEventListener($[424],this._onColumnLayoutChanged,this);this._columnArea.setTop(0);this._columnArea.setLeft(0);this._columnArea.setDisplay(false);var a=function(b){b.stopPropagation()};this._columnArea.addEventListener($[79],a)},_configureScrollBars:function(){var a=function(b){b.stopPropagation()};this._horzScrollBar.setZIndex(100000000);this._horzScrollBar.setVisibility(false);this._horzScrollBar.setLeft(0);this._horzScrollBar.setMergeEvents(false);this._horzScrollBar.addEventListener($[79],a);this._vertScrollBar.setZIndex(100000000);this._vertScrollBar.setVisibility(false);this._vertScrollBar.setIncrement(16);this._vertScrollBar.setMergeEvents(false);this._vertScrollBar.addEventListener($[79],a)},_registerListeners:function(){this._rootItem.addEventListener("update",this._onItemUpdate,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[5],this._onMouseUp,this);this.addEventListener($[8],this._onMouseOut,this);this.addEventListener($[4],this._onKeyPress,this);this._rowContainer.addEventListener($[47],this._onClientAreaMouseWheel,this);this._mergeEventsTimer.addEventListener($[26],this._updateTopItemIndex,this);this._horzScrollBar.addEventListener($[109],this._onHorzScrollBarChangeValue,this);this._vertScrollBar.addEventListener($[109],this._onVertScrollBarChangeValue,this);this._rowContainer.setSelectionProvider(this.isItemSelected,this);this._rowContainer.setPostRenderFunction(this._vertScrollBar.autoEnableMerge,this._vertScrollBar)},_parseArgsMap:function(a){if(a.noScroll){this._rowContainer.removeEventListener($[47],this._onClientAreaMouseWheel,this)}if(a.hideSelection){this._config.hideSelection=true}if(a.multiSelection){this._hasMultiSelection=true}if(a.fullSelection){this._config.fullSelection=true}else{this._config.selectionPadding=a.selectionPadding}if(a.check){this._config.hasCheckBoxes=true;this._config.checkBoxLeft=a.checkBoxMetrics[0];this._config.checkBoxWidth=a.checkBoxMetrics[1]}if(a.virtual){this._isVirtual=true;this._createSendRequestTimer()}if(typeof a.indentionWidth===$[62]){this._config.indentionWidth=a.indentionWidth}if(a.markupEnabled){this._config.markupEnabled=true}this._rowContainer.setBaseAppearance(a.appearance);this.setAppearance(a.appearance)},_createSendRequestTimer:function(){if(this._sendRequestTimer===null){var b=new qx.client.Timer(400);var a=org.eclipse.swt.Request.getInstance();b.addEventListener($[26],a.send,a);a.addEventListener("send",b.stop,b);this._sendRequestTimer=b}},setItemCount:function(a){this._rootItem.setItemCount(a)},setHeaderVisible:function(a){this._columnArea.setDisplay(a);this._layoutX();this._layoutY()},setHeaderHeight:function(a){this._headerHeight=a;this._layoutX();this._layoutY()},setItemHeight:function(a){this._itemHeight=a;this._vertScrollBar.setIncrement(a);this._rowContainer.setRowHeight(a);this._scheduleUpdate($[219])},setColumnCount:function(a){this._config.columnCount=a;this._scheduleUpdate();this._updateScrollWidth()},setItemMetrics:function(e,f,d,b,c,a,g){this._config.itemLeft[e]=f;this._config.itemWidth[e]=d;this._config.itemImageLeft[e]=b;this._config.itemImageWidth[e]=c;this._config.itemTextLeft[e]=a;this._config.itemTextWidth[e]=g;this._scheduleUpdate();this._updateScrollWidth()},setTreeColumn:function(a){this._config.treeColumn=a},setTopItemIndex:function(a){this._updateScrollHeight();this._vertScrollBar.setValue(a*this._itemHeight);if(!this._inServerResponse()){qx.ui.core.Widget.flushGlobalQueues()}},setScrollLeft:function(a){this._horzScrollBar.setValue(a)},selectItem:function(a){this._selectItem(a,false);this._scheduleItemUpdate(a)},deselectItem:function(a){this._deselectItem(a,false);this._scheduleItemUpdate(a)},setFocusItem:function(a){this._focusItem=a;this._sendItemFocusChange()},setSortDirection:function(a){this._sortDirection=a;if(this._sortColumn!==null){this._sortColumn.setSortDirection(this._sortDirection)}},setSortColumn:function(a){if(this._sortColumn!==null){this._sortColumn.setSortDirection("none")}this._sortColumn=a;if(this._sortColumn!==null){this._sortColumn.setSortDirection(this._sortDirection)}},setScrollBarsVisible:function(b,a){if(!b){this._horzScrollBar.setValue(0)}this._horzScrollBar.setVisibility(b);if(!a){this._vertScrollBar.setValue(0)}this._vertScrollBar.setVisibility(a);this._layoutX();this._layoutY()},setHasSelectionListener:function(a){this._hasSelectionListener=a},setAlignment:function(a,b){this._config.alignment[a]=b;this._scheduleUpdate()},setLinesVisible:function(a){this._config.linesVisible=a;if(a){this.addState($[185])}else{this.removeState($[185])}this._rowContainer.updateRowLines();this._scheduleUpdate()},setAlwaysHideSelection:function(a){this._config.alwaysHideSelection=a;this._scheduleUpdate()},addState:function(a){arguments.callee.base.call(this,a);if(a.slice(0,8)===$[36]){this._config.variant=a}},removeState:function(a){if(this._config.variant===a){this._config.variant=null}arguments.callee.base.call(this,a)},getRenderConfig:function(){return this._config},getRootItem:function(){return this._rootItem},isFocusItem:function(a){return this._focusItem===a},isItemSelected:function(a){return this._selection.indexOf(a)!=-1},getRowContainer:function(){return this._rowContainer},getTableHeader:function(){return this._columnArea},update:function(){this._scheduleUpdate()},_onItemUpdate:function(b){var a=b.target;if(b.msg===$[273]){if(this._focusItem&&this._focusItem.isChildOf(a)){this.setFocusItem(a)}}if(b.msg===$[221]){this._scheduleUpdate($[501])}this._sendItemUpdate(a,b);this._renderItemUpdate(a,b);return false},_onVertScrollBarChangeValue:function(){if(this._vertScrollBar._internalValueChange){this._mergeEventsTimer.start()}else{this._updateTopItemIndex()}},_updateTopItemIndex:function(){this._mergeEventsTimer.stop();var a=this._vertScrollBar.getValue();var b=this._topItemIndex;this._topItemIndex=Math.ceil(a/this._itemHeight);if(this._inServerResponse()){this._scheduleUpdate("topItem")}else{this._sendTopItemIndexChange();this._updateTopItem(true)}},_onHorzScrollBarChangeValue:function(){this._rowContainer.setScrollLeft(this._horzScrollBar.getValue());this._columnArea.setScrollLeft(this._horzScrollBar.getValue());this._sendScrollLeftChange()},_onMouseDown:function(a){this._delayedSelection=false;var b=a.getOriginalTarget();if(b instanceof org.eclipse.rwt.widgets.TreeRow){this._onRowMouseDown(b,a)}},_onMouseUp:function(a){if(this._delayedSelection){this._onMouseDown(a)}},_onRowMouseDown:function(e,d){var c=this._rowContainer.findItemByRow(e);if(c!=null){var b=e.getTargetIdentifier(d);if(b===$[280]&&c.hasChildren()){var a=!c.isExpanded();if(!a){this._deselectVisibleChildren(c)}c.setExpanded(a)}else{if(b===$[232]){this._toggleCheckSelection(c)}else{if(this._isSelectionClick(b)){this._onSelectionClick(d,c)}}}}},_isSelectionClick:function(b){var a;if(this._config.fullSelection){a=b!==$[232]}else{a=b===$[309]}return a},_onSelectionClick:function(b,a){var c=this._isDoubleClicked(b,a);if(c){this._sendSelectionEvent(a,true,null)}else{if(this._hasMultiSelection){if(!this._delayMultiSelect(b,a)){this._multiSelectItem(b,a)}}else{this._singleSelectItem(b,a)}}},_delayMultiSelect:function(b,a){if(this._isDragSource()&&this.isItemSelected(a)&&b.getType()===$[1]){this._delayedSelection=true}return this._delayedSelection},_onMouseOut:function(a){this._delayedSelection=false},_onClientAreaMouseWheel:function(a){a.preventDefault();a.stopPropagation();var b=a.getWheelDelta()*this._itemHeight*2;this._vertScrollBar.setValue(this._vertScrollBar.getValue()-b);this._vertScrollBar.setValue(this._vertScrollBar.getValue())},_onKeyPress:function(a){if(this._focusItem!=null){switch(a.getKeyIdentifier()){case $[54]:this._handleKeyEnter(a);break;case $[83]:this._handleKeySpace(a);break;case"Up":this._handleKeyUp(a);break;case"Down":this._handleKeyDown(a);break;case $[42]:this._handleKeyPageUp(a);break;case $[43]:this._handleKeyPageDown(a);break;case"Home":this._handleKeyHome(a);break;case"End":this._handleKeyEnd(a);break;case"Left":this._handleKeyLeft(a);break;case $[39]:this._handleKeyRight(a);break}}this._stopKeyEvent(a)},_stopKeyEvent:function(a){switch(a.getKeyIdentifier()){case"Up":case"Down":case"Left":case $[39]:case"Home":case"End":case $[42]:case $[43]:a.preventDefault();a.stopPropagation();break}},_onColumnLayoutChanged:function(a){this._updateScrollWidth();this._scheduleUpdate()},_showResizeLine:function(b,c){if(this._resizeLine===null){this._resizeLine=new qx.ui.basic.Terminator();this._resizeLine.setAppearance("table-column-resizer");this.add(this._resizeLine);qx.ui.core.Widget.flushGlobalQueues()}var e=this._rowContainer.getTop();this._resizeLine._renderRuntimeTop(e);var d=b-2-(!c?this._horzScrollBar.getValue():0);this._resizeLine._renderRuntimeLeft(d);var a=this._rowContainer.getHeight();this._resizeLine._renderRuntimeHeight(a);this._resizeLine.removeStyleProperty($[151])},_hideResizeLine:function(){this._resizeLine.setStyleProperty($[151],$[13])},_handleKeyEnter:function(a){this._sendSelectionEvent(this._focusItem,true,null)},_handleKeySpace:function(b){if(b.isCtrlPressed()||!this.isItemSelected(this._focusItem)){var a=this._focusItem.getFlatIndex();this._handleKeyboardSelect(b,this._focusItem,a)}if(this._config.hasCheckBoxes){this._toggleCheckSelection(this._focusItem)}},_handleKeyUp:function(c){var b=this._focusItem.getPreviousItem();if(b!=null){var a=b.getFlatIndex();this._handleKeyboardSelect(c,b,a)}},_handleKeyDown:function(c){var b=this._focusItem.getNextItem();if(b!=null){var a=b.getFlatIndex();this._handleKeyboardSelect(c,b,a)}},_handleKeyPageUp:function(d){var f=this._focusItem.getFlatIndex();var e=this._rowContainer.getChildrenLength()-2;var a=Math.max(0,f-e);var c=this._rootItem.findItemByFlatIndex(a);var b=c.getFlatIndex();this._handleKeyboardSelect(d,c,b)},_handleKeyPageDown:function(e){var g=this._focusItem.getFlatIndex();var f=this._rowContainer.getChildrenLength()-2;var a=this.getRootItem().getVisibleChildrenCount()-1;var b=Math.min(a,g+f);var d=this._rootItem.findItemByFlatIndex(b);var c=d.getFlatIndex();this._handleKeyboardSelect(e,d,c)},_handleKeyHome:function(b){var a=this.getRootItem().getChild(0);this._handleKeyboardSelect(b,a,0)},_handleKeyEnd:function(c){var b=this.getRootItem().getLastChild();var d=new Date();var a=this.getRootItem().getVisibleChildrenCount()-1;this._handleKeyboardSelect(c,b,a)},_handleKeyLeft:function(c){if(this._focusItem.isExpanded()){this._focusItem.setExpanded(false)}else{if(!this._focusItem.getParent().isRootItem()){var b=this._focusItem.getParent();var a=b.getFlatIndex();this._handleKeyboardSelect(c,b,a,true)}}},_handleKeyRight:function(c){if(this._focusItem.hasChildren()){if(!this._focusItem.isExpanded()){this._focusItem.setExpanded(true)}else{var b=this._focusItem.getChild(0);var a=b.getFlatIndex();this._handleKeyboardSelect(c,b,a,true)}}},_handleKeyboardSelect:function(d,c,b,a){if(this._hasMultiSelection&&!a){this._multiSelectItem(d,c)}else{this._singleSelectItem(d,c)}this._scrollIntoView(b)},_renderItemUpdate:function(b,a){if(b.isDisplayable()){switch(a.msg){case $[162]:case $[273]:this._scheduleUpdate($[219]);break;case"add":case $[221]:if(b.isExpanded()){this._scheduleUpdate($[219])}else{this._scheduleItemUpdate(b)}break;default:if(this._inServerResponse()){this._scheduleItemUpdate(b)}else{this._rowContainer.renderItem(b)}break}}},_scheduleUpdate:function(a){if(a!==undefined){this.addToQueue(a)}this._renderQueue.allItems=true;this.addToQueue($[315])},_scheduleItemUpdate:function(a){this._renderQueue[a.toHashCode()]=a;this.addToQueue($[315])},_layoutPost:function(a){arguments.callee.base.call(this,a);if(a[$[501]]){this._checkDisposedItems()}if(a[$[219]]){this._updateScrollHeight()}if(a[$[219]]||a.topItem){this._updateTopItem(false)}if(a[$[315]]){if(this._renderQueue.allItems){this._rowContainer.renderAll()}else{this._rowContainer.renderItemQueue(this._renderQueue)}this._renderQueue={}}},_updateScrollHeight:function(){var b=this.getRootItem().getVisibleChildrenCount();var a=b*this._itemHeight;if(this._vertScrollBar.getMaximum()!=a){if(!this._vertScrollBar.getDisposed()){this._vertScrollBar.setMaximum(a)}}},_updateTopItem:function(b){var a=this._rootItem.findItemByFlatIndex(this._topItemIndex);this._rowContainer.setTopItem(a,this._topItemIndex,b)},_updateScrollWidth:function(){var a=this._getItemWidth();this._rowContainer.setRowWidth(this._getRowWidth());if(!this._horzScrollBar.getDisposed()){this._horzScrollBar.setMaximum(a)}var b=this._vertScrollBar.getVisibility()?this._vertScrollBar.getWidth():0;this._columnArea.setScrollWidth(a+b)},_scrollIntoView:function(a){if(a<this._topItemIndex){this.setTopItemIndex(a)}else{if(a>(this._topItemIndex+this._rowContainer.getChildrenLength()-2)){this.setTopItemIndex(a-this._rowContainer.getChildrenLength()+2)}}},setHasScrollBarsSelectionListener:function(a){this._hasScrollBarsSelectionListener=a;if(a){this._createSendRequestTimer()}},_sendSelectionChange:function(c){if(!this._inServerResponse()){var b=org.eclipse.swt.Request.getInstance();var d=org.eclipse.swt.WidgetManager.getInstance();var e=d.findIdByWidget(this);var a=this._getSelectionList();b.addParameter(e+$[147],a);this._sendSelectionEvent(c,false,null)}},_sendItemCheckedChange:function(b){if(!this._inServerResponse()){var a=org.eclipse.swt.Request.getInstance();var c=org.eclipse.swt.WidgetManager.getInstance();var d=c.findIdByWidget(b);a.addParameter(d+".checked",b.isChecked());this._sendSelectionEvent(b,false,"check")}},_sendItemFocusChange:function(){if(!this._inServerResponse()){var a=org.eclipse.swt.Request.getInstance();var b=org.eclipse.swt.WidgetManager.getInstance().findIdByWidget(this);a.addParameter(b+".focusItem",this._getItemId(this._focusItem))}},_sendTopItemIndexChange:function(){var a=org.eclipse.swt.Request.getInstance();var b=org.eclipse.swt.WidgetManager.getInstance();var c=b.findIdByWidget(this);a.addParameter(c+".topItemIndex",this._topItemIndex);if(this._isVirtual||this._hasScrollBarsSelectionListener){this._sendRequestTimer.start()}},_sendScrollLeftChange:function(){var a=org.eclipse.swt.Request.getInstance();var b=org.eclipse.swt.WidgetManager.getInstance();var c=b.findIdByWidget(this);a.addParameter(c+".scrollLeft",this._horzScrollBar.getValue());if(this._isVirtual||this._hasScrollBarsSelectionListener){this._sendRequestTimer.start()}},_sendItemUpdate:function(b,a){if(!this._inServerResponse()){switch(a.msg){case $[162]:this._sendItemEvent(b,"org.eclipse.swt.events.treeExpanded");break;case $[273]:this._sendItemEvent(b,"org.eclipse.swt.events.treeCollapsed");break;default:}}},_sendItemEvent:function(c,a){var d=org.eclipse.swt.WidgetManager.getInstance();var e=d.findIdByWidget(c);var b=org.eclipse.swt.Request.getInstance();b.addEvent(a,e);b.send()},_sendSelectionEvent:function(e,c,b){if(this._hasSelectionListener){var d=org.eclipse.swt.Request.getInstance();var f=org.eclipse.swt.WidgetManager.getInstance();var h=f.findIdByWidget(this);var a="org.eclipse.swt.events.widget";a+=c?"DefaultSelected":"Selected";var g=this._getItemId(e);d.addEvent(a,h);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();d.addParameter(a+".item",g);if(b!=null){d.addParameter(a+".detail",b)}d.send()}},_isDoubleClicked:function(c,h){var i=false;var d=c.getType()===$[1];var e=c.getButton()==="left";if(e&&d&&this.isFocusItem(h)&&this._selectionTimestamp!=null){var a=new Date();var f=c.getPageX();var b=org.eclipse.swt.EventUtil.DOUBLE_CLICK_TIME;var g=8;if(a.getTime()-this._selectionTimestamp.getTime()<b&&Math.abs(this._selectionOffsetX-f)<g){i=true}}if(d&&e&&!i){this._selectionTimestamp=new Date();this._selectionOffsetX=c.getPageX()}else{if(d){this._selectionTimestamp=null}}return i},_getSelectionList:function(){var a=[];for(var b=0;b<this._selection.length;b++){a.push(this._getItemId(this._selection[b]))}return a.join()},_getItemId:function(c){var d=org.eclipse.swt.WidgetManager.getInstance();var a;if(c.isCached()){a=d.findIdByWidget(c)}else{var b=c.getParent();if(b.isRootItem()){a=d.findIdByWidget(this)}else{a=d.findIdByWidget(b)}a+="#"+b.indexOf(c)}return a},_singleSelectItem:function(b,a){if(b.isCtrlPressed()&&this.isItemSelected(a)){this._ctrlSelectItem(a)}else{this._exclusiveSelectItem(a)}},_multiSelectItem:function(b,a){if(b instanceof qx.event.type.MouseEvent&&b.isRightButtonPressed()){if(!this.isItemSelected(a)){this._exclusiveSelectItem(a)}}else{if(b.isCtrlPressed()){if(b instanceof qx.event.type.KeyEvent&&a!=this._focusItem){this.setFocusItem(a)}else{this._ctrlSelectItem(a)}}else{if(b.isShiftPressed()){if(this._focusItem!=null){this._shiftSelectItem(a)}else{this._exclusiveSelectItem(a)}}else{this._exclusiveSelectItem(a)}}}},_exclusiveSelectItem:function(a){this.deselectAll();this._leadItem=null;this._selectItem(a,true);this._sendSelectionChange(a);this.setFocusItem(a)},_ctrlSelectItem:function(a){if(!this.isItemSelected(a)){this._selectItem(a,true)}else{this._deselectItem(a,true)}this._sendSelectionChange(a);this.setFocusItem(a)},_shiftSelectItem:function(c){this.deselectAll();var b=this._leadItem!=null?this._leadItem:this._focusItem;this._leadItem=b;var e=c;var f=b.getFlatIndex();var d=e.getFlatIndex();if(f>d){var a=b;b=e;e=a}this._selectItem(b,true);while(b!==e){b=b.getNextItem();this._selectItem(b,true)}this._sendSelectionChange(c);this.setFocusItem(c)},_selectItem:function(b,a){if(!this.isItemSelected(b)){this._selection.push(b)}if(a){this._rowContainer.renderItem(b)}},_deselectItem:function(b,a){if(this.isItemSelected(b)){this._selection.splice(this._selection.indexOf(b),1)}if(a){this._rowContainer.renderItem(b)}},deselectAll:function(){var a=this._selection;this._selection=[];for(var b=0;b<a.length;b++){this._rowContainer.renderItem(a[b])}},_toggleCheckSelection:function(a){if(a.isCached()){a.setChecked(!a.isChecked());this._sendItemCheckedChange(a)}},_deselectVisibleChildren:function(b){var a=b.getNextItem();var c=b.getNextItem(true);while(a!==c){this._deselectItem(a,false);a=a.getNextItem()}},_applyFocused:function(b,a){arguments.callee.base.call(this,b,a);this._config.focused=b;this._scheduleUpdate()},_applyEnabled:function(b,a){arguments.callee.base.call(this,b,a);this._config.enabled=b;this._scheduleUpdate()},_checkDisposedItems:function(){if(this._focusItem&&this._focusItem.isDisposed()){this._focusItem=null}if(this._leadItem&&this._leadItem.isDisposed()){this._leadItem=null}var a=0;while(a<this._selection.length){if(this._selection[a].isDisposed()){this._deselectItem(this._selection[a],false)}else{a++}}},_applyTextColor:function(b,a){arguments.callee.base.call(this,b,a);this._config.textColor=b;this._scheduleUpdate()},_applyFont:function(b,a){arguments.callee.base.call(this,b,a);this._config.font=b;this._scheduleUpdate()},_applyBackgroundColor:function(a){this._rowContainer.setBackgroundColor(a)},_applyBackgroundImage:function(a){this._rowContainer.setBackgroundImage(a)},_applyWidth:function(b,a){arguments.callee.base.call(this,b,a);this._layoutX()},_applyHeight:function(b,a){arguments.callee.base.call(this,b,a);this._layoutY()},_applyBorder:function(b,a){arguments.callee.base.call(this,b,a);this._layoutX();this._layoutY()},_layoutX:function(){var a=this.getWidth()-this.getFrameWidth();if(this._columnArea.getDisplay()){this._columnArea.setWidth(a)}if(this._vertScrollBar.getVisibility()){a-=this._vertScrollBar.getWidth();this._vertScrollBar.setLeft(a)}this._horzScrollBar.setWidth(a);this._rowContainer.setWidth(a);this._updateScrollWidth()},_layoutY:function(){var a=this.getHeight()-this.getFrameHeight();var b=0;if(this._columnArea.getDisplay()){b=this._headerHeight;a-=this._headerHeight;this._columnArea.setHeight(this._headerHeight)}if(this._horzScrollBar.getVisibility()){a-=this._horzScrollBar.getHeight();this._horzScrollBar.setTop(b+a)}a=Math.max(0,a);this._vertScrollBar.setHeight(a);this._vertScrollBar.setTop(b);this._rowContainer.setTop(b);this._rowContainer.setHeight(a);this._scheduleUpdate()},_getItemWidth:function(){var a=0;if(this._config.itemLeft.length>0){var c=Math.max(1,this._config.columnCount);for(var b=0;b<c;b++){a=Math.max(a,this._config.itemLeft[b]+this._config.itemWidth[b])}}return a},_getRowWidth:function(){var b=this._rowContainer.getWidth();var a=Math.max(this._getItemWidth(),b);return a},_inServerResponse:function(){return org.eclipse.swt.EventUtil.getSuspended()},_isDragSource:function(){return this.hasEventListeners($[79])},setEnableCellToolTip:function(a){if(a){var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);this._cellToolTip=new org.eclipse.swt.widgets.TableCellToolTip(b);this._rowContainer.addEventListener($[34],this._onClientAreaMouseMove,this);this._rowContainer.setToolTip(this._cellToolTip)}else{this._rowContainer.removeEventListener($[34],this._onClientAreaMouseMove,this);this._rowContainer.setToolTip(null);this._cellToolTip.destroy();this._cellToolTip=null}},_onClientAreaMouseMove:function(a){if(this._cellToolTip!=null){var c=null;var b=-1;if(this._rowContainer.getHoverItem()){var d=org.eclipse.swt.WidgetManager.getInstance();c=d.findIdByWidget(this._rowContainer.getHoverItem());b=org.eclipse.rwt.TreeUtil.getColumnByPageX(this,a.getPageX())}this._cellToolTip.setCell(c,b)}},setCellToolTipText:function(a){if(this._cellToolTip!=null){this._cellToolTip.setText(a)}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Tree",{factory:function(b){var d=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(b.style);var c={appearance:b.appearance,virtual:d.VIRTUAL,noScroll:d.NO_SCROLL,multiSelection:d.MULTI,check:d.CHECK,fullSelection:b.appearance==="table"?true:d.FULL_SELECTION,hideSelection:d.HIDE_SELECTION,checkBoxMetrics:b.checkBoxMetrics,selectionPadding:b.selectionPadding,indentionWidth:b.indentionWidth,splitContainer:b.splitContainer,markupEnabled:b.markupEnabled};var a=new org.eclipse.rwt.widgets.Tree(c);org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["itemCount","itemHeight","itemMetrics","columnCount",$[309],"fixedColumns",$[376],"headerVisible","linesVisible","topItemIndex","scrollLeft",$[24],"focusItem","sortDirection","sortColumn",$[321],"alwaysHideSelection","enableCellToolTip","cellToolTipText"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({itemMetrics:function(c,b){for(var a=0;a<b.length;a++){c.setItemMetrics.apply(c,b[a])}},fixedColumns:function(b,a){org.eclipse.rwt.TreeUtil.setFixedColumns(b,a)},focusItem:function(b,a){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(a,function(c){b.setFocusItem(c)})},selection:function(c,b){c.deselectAll();for(var a=0;a<b.length;a++){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(b[a],function(d){c.selectItem(d)})}},sortColumn:function(b,a){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(a,function(c){b.setSortColumn(c)})},scrollBarsVisible:function(b,a){b.setScrollBarsVisible(a[0],a[1])},cellToolTipText:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,false);d=a.replaceNewLines(d,$[107]);c.setCellToolTipText(d)}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[24],$[432]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({scrollBarsSelection:function(b,a){b.setHasScrollBarsSelectionListener(a)}}),methods:[]});
qx.Class.define("org.eclipse.rwt.widgets.TreeItem",{extend:qx.core.Target,construct:function(b,a,c){this._autoDispose=false;arguments.callee.base.call(this);this._parent=b;this._level=-1;this._children=[];this._indexCache={};this._visibleChildrenCount=0;this._expandedItems={};this._texts=c?["..."]:[];this._images=[];this._cached=!c;this._font=null;this._cellFonts=[];this._foreground=null;this._cellForegrounds=[];this._background=null;this._cellBackgrounds=[];this._checked=false;this._grayed=false;this._variant=null;if(this._parent!=null){this._level=this._parent.getLevel()+1;this._parent._add(this,a)}this._expanded=this.isRootItem();this.addEventListener("update",this._onUpdate,this);this._escaped=false},destruct:function(){if(this._parent!=null){this._parent._remove(this)}},statics:{createItem:function(d,c){var b=this._getItem(d);var a;if(b.isChildCreated(c)&&!b.isChildCached(c)){a=b.getChild(c);a.markCached()}else{a=new org.eclipse.rwt.widgets.TreeItem(b,c,false)}return a},_getItem:function(b){var a;if(b instanceof org.eclipse.rwt.widgets.Tree){a=b.getRootItem()}else{a=b}return a}},events:{update:$[3]},members:{setItemCount:function(a){var b=this._children.length>a?$[221]:"add";this._children.length=a;this._update(b)},clear:function(){this._cached=false;this._checked=false;this._grayed=false;this._texts=["..."];this._images=[];this._background=null;this._foreground=null;this._font=null;this._cellBackgrounds=[];this._cellForegrounds=[];this._cellFonts=[];this._variant=null},isCached:function(){return this._cached},markCached:function(){this._cached=true;this._texts=[]},setTexts:function(a){this._texts=a;this._escaped=false;this._update($[88])},getText:function(b,c){var a=this._texts[b];if((typeof a)===$[9]){if(c!==false&&!this._escaped){this._escapeTexts();this._escaped=true;a=this._texts[b]}}else{a=""}return a},hasText:function(a){return !!this._texts[a]},setFont:function(a){this._font=a;this._update($[88])},getCellFont:function(b){var a=this._cellFonts[b];return typeof a===$[9]&&a!==""?a:this._font},setCellFonts:function(a){this._cellFonts=a;this._update($[88])},setForeground:function(a){this._foreground=a;this._update($[88])},getCellForeground:function(b){var a=this._cellForegrounds[b];return typeof a===$[9]?a:this._foreground},setCellForegrounds:function(a){this._cellForegrounds=a;this._update($[88])},setBackground:function(a){this._background=a;this._update($[88])},getCellBackground:function(b){var a=this._cellBackgrounds[b];return typeof a===$[9]?a:null},getBackground:function(){return this._background},setCellBackgrounds:function(a){this._cellBackgrounds=a;this._update($[88])},setImages:function(a){this._images=a;this._update($[88])},getImage:function(b){var a=this._images[b];return typeof a===$[9]?a:null},setChecked:function(a){this._checked=a;this._update($[88])},isChecked:function(){return this._checked},setGrayed:function(a){this._grayed=a;this._update($[88])},isGrayed:function(){return this._grayed},setVariant:function(a){this._variant=a},getVariant:function(){return this._variant},isRootItem:function(){return this._level<0},getLevel:function(){return this._level},getParent:function(){return this._parent},setExpanded:function(a){if(this._expanded!=a){this._expanded=a;this._update(a?$[162]:$[273]);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()},getVisibleChildrenCount:function(){if(this._visibleChildrenCount==null){this._computeVisibleChildrenCount()}return this._visibleChildrenCount},getChild:function(b){var a=this._children[b];if(!a){if(b>=0&&b<this._children.length){a=new org.eclipse.rwt.widgets.TreeItem(this,b,true)}}return a},getLastChild:function(){return this.getChild(this._children.length-1)},indexOf:function(a){var b=a.toHashCode();if(this._indexCache[b]===undefined){this._indexCache[b]=this._children.indexOf(a)}return this._indexCache[b]},isChildOf:function(b){var a=this._parent===b;if(!a&&!this._parent.isRootItem()){a=this._parent.isChildOf(b)}return a},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},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 a<this._parent.getChildrenLength()},getPreviousSibling:function(){var a=this._parent.indexOf(this)-1;return this._parent.getChild(a)},getNextSibling:function(){var a=this._parent.indexOf(this)+1;var b=this._parent.getChild(a);this._parent._indexCache[b.toHashCode()]=a;return b},getNextItem:function(b){var a=null;if(!b&&this.hasChildren()&&this.isExpanded()){a=this.getChild(0)}else{if(this.hasNextSibling()){a=this.getNextSibling()}else{if(this.getLevel()>0){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()]}var a=this._children.indexOf(b);this._children.splice(a,1);this._children.push(undefined);this._update($[221],b)},_addToExpandedItems:function(a){this._expandedItems[a.toHashCode()]=a},_removeFromExpandedItems:function(a){delete this._expandedItems[a.toHashCode()]},getEnabled:function(){return true},_update:function(c,b){var a={msg:c,related:b,target:this};this.dispatchSimpleEvent("update",a,true);delete a.target;delete a.related;delete a.msg},_onUpdate:function(a){if(a.msg!==$[88]){this._visibleChildrenCount=null;this._indexCache={}}},_escapeTexts:function(){var a=org.eclipse.rwt.protocol.EncodingUtil;for(var b=0;b<this._texts.length;b++){var c=this._texts[b];if(c){c=a.escapeText(c,false);c=a.replaceWhiteSpaces(c)}this._texts[b]=c}},_computeVisibleChildrenCount:function(){var a=0;if(this.isExpanded()||this.isRootItem()){a=this._children.length;for(var b=0;b<this._children.length;b++){if(this.isChildCreated(b)){a+=this.getChild(b).getVisibleChildrenCount()}}}this._visibleChildrenCount=a},_getExpandedIndicies:function(){var a=[];for(var b in this._expandedItems){a.push(this.indexOf(this._expandedItems[b]))}return a.sort(function(d,c){return d-c})},toString:function(){return"TreeItem "+this._texts.join()}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.TreeItem",{factory:function(b){var a;org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(b.parent,function(c){a=org.eclipse.rwt.widgets.TreeItem.createItem(c,b.index)});return a},destructor:function(a){a.dispose()},properties:["itemCount","texts","images",$[146],$[296],"font","cellBackgrounds","cellForegrounds","cellFonts",$[162],$[203],$[200],$[98]],propertyHandler:{images:function(d,c){var a=[];for(var b=0;b<c.length;b++){if(c[b]===null){a[b]=null}else{a[b]=c[b][0]}}d.setImages(a)},background:function(b,a){if(a===null){b.setBackground(null)}else{b.setBackground(qx.util.ColorUtil.rgbToRgbString(a))}},foreground:function(b,a){if(a===null){b.setForeground(null)}else{b.setForeground(qx.util.ColorUtil.rgbToRgbString(a))}},font:function(d,c){if(c===null){d.setFont(null)}else{var b=org.eclipse.swt.WidgetManager.getInstance();var a=b._createFont.apply(b,c);d.setFont(a)}},cellBackgrounds:function(d,c){var b=[];for(var a=0;a<c.length;a++){if(c[a]===null){b[a]=null}else{b[a]=qx.util.ColorUtil.rgbToRgbString(c[a])}}d.setCellBackgrounds(b)},cellForegrounds:function(d,c){var a=[];for(var b=0;b<c.length;b++){if(c[b]===null){a[b]=null}else{a[b]=qx.util.ColorUtil.rgbToRgbString(c[b])}}d.setCellForegrounds(a)},cellFonts:function(e,d){var f=[];for(var b=0;b<d.length;b++){if(d[b]===null){f[b]=""}else{var c=org.eclipse.swt.WidgetManager.getInstance();var a=c._createFont.apply(c,d[b]);f[b]=a.toCss()}}e.setCellFonts(f)},customVariant:function(b,a){b.setVariant(a)}},listeners:[],listenerHandler:{},methods:[]});
qx.Class.define("org.eclipse.rwt.TreeDNDFeedback",{extend:qx.core.Object,construct:function(a){arguments.callee.base.call(this);this._tree=a;this._feedback=null;this._currentRow=null;this._insertIndicator=null;this._expandTimer=null;this._scrollTimer=null},destruct:function(){this._renderFeedback(this._currentRow,false);if(this._expandTimer!=null){this._expandTimer.dispose();this._expandTimer=null}if(this._scrollTimer!=null){this._scrollTimer.dispose();this._scrollTimer=null}this._tree=null;this._feedback=null;this._insertIndicator=null;this._currentRow=null},members:{setFeedback:function(a){this._renderFeedback(this._currentRow,false);this._feedback=a;this._renderFeedback(this._currentRow,true)},renderFeedback:function(a){this._renderFeedback(this._currentRow,false);this._renderFeedback(a,true);this._currentRow=a},isFeedbackNode:function(b){var a=false;if(this._insertIndicator!=null&&this._insertIndicator==b){a=true}return a},_renderFeedback:function(b,a){if(this._feedback!=null&&b!=null){if(this._feedback.FEEDBACK_SELECT){this._renderFeedbackSelect(b,a)}else{if(this._feedback.FEEDBACK_INSERT_BEFORE){this._renderFeedbackBefore(b,a)}else{if(this._feedback.FEEDBACK_INSERT_AFTER){this._renderFeedbackAfter(b,a)}}}if(this._feedback.FEEDBACK_EXPAND){this._renderFeedbackExpand(b,a)}if(this._feedback.FEEDBACK_SCROLL){this._renderFeedbackScroll(b,a)}}},_renderFeedbackSelect:function(c,b){c.setState($[340],b);var a=this._tree._rowContainer.findItemByRow(c);this._tree._rowContainer.renderItem(a)},_renderFeedbackBefore:function(c,b){if(b){var a=this._getRowLocation(c);a.y--;this._showInsertIndicator(a.x,a.y)}else{this._hideInsertIndicator()}},_renderFeedbackAfter:function(d,c){if(c){var b=this._getRowLocation(d);var a=d.getHeightValue();b.y=b.y+(a-1);this._showInsertIndicator(b.x,b.y)}else{this._hideInsertIndicator()}},_renderFeedbackExpand:function(c,b){var a=this._tree._rowContainer.findItemByRow(c);if(a!=null&&a.hasChildren()){if(b&&!a.isExpanded()){this._startExpandTimer()}else{this._stopExpandTimer()}}},_renderFeedbackScroll:function(b,a){if(a){this._startScrollTimer()}else{this._stopScrollTimer()}},_getRowLocation:function(d){var a={x:0,y:0};var b=d.getElement();var c=this._tree._getTargetNode();while(b!=c){a.x+=parseInt(b.style.left||0);a.y+=parseInt(b.style.top||0);b=b.parentNode}return a},_showInsertIndicator:function(a,e){if(this._insertIndicator==null){var d=document.createElement("div");d.style.position=$[17];d.style.borderTopStyle=$[72];d.style.borderTopColor="black";d.style.borderTopWidth="2px";d.style.zIndex=100000;d.style.height="2px";this._insertIndicator=d}var b=this._tree.getWidthValue()-(a+6);this._insertIndicator.style.left=a+"px";this._insertIndicator.style.top=e+"px";this._insertIndicator.style.width=b+"px";var c=this._tree._getTargetNode();c.appendChild(this._insertIndicator)},_hideInsertIndicator:function(){var a=this._tree._getTargetNode();a.removeChild(this._insertIndicator)},_startExpandTimer:function(){if(this._expandTimer==null){this._expandTimer=new qx.client.Timer(750);this._expandTimer.addEventListener($[26],this._onExpandTimer,this)}this._expandTimer.setEnabled(true)},_stopExpandTimer:function(){if(this._expandTimer!=null){this._expandTimer.stop()}},_onExpandTimer:function(b){this._stopExpandTimer();var a=this._tree._rowContainer.findItemByRow(this._currentRow);a.setExpanded(true)},_startScrollTimer:function(){if(this._scrollTimer==null){this._scrollTimer=new qx.client.Timer(250);this._scrollTimer.addEventListener($[26],this._onScrollTimer,this)}this._scrollTimer.setEnabled(true)},_stopScrollTimer:function(){if(this._scrollTimer!=null){this._scrollTimer.stop()}},_getScrollDirection:function(b){var a=0;var c=this._tree._rowContainer.indexOf(b);if(c===0){a=-1}else{if(c>=this._tree._rowContainer.getChildrenLength()-2){a=1}}return a},_onScrollTimer:function(b){this._stopScrollTimer();var d=this._getScrollDirection(this._currentRow);if(d!=0){var i=this._tree._rowContainer.findItemByRow(this._currentRow);var f=i.getFlatIndex();var h=f+d;var e=this._tree._rootItem.findItemByFlatIndex(h);if(e!=null){var c=this._tree._topItemIndex+d;this._tree.setTopItemIndex(c);var j=this._tree._rowContainer._findRowByItem(e);var g=this._currentRow;var a=function(){this._targetUpdateCheck(g,j)};qx.client.Timer.once(a,this,1)}}},_targetUpdateCheck:function(a,b){if(!this.isDisposed()){if(b!=this._currentRow&&a==this._currentRow){var c=org.eclipse.rwt.DNDSupport.getInstance();c.setCurrentTargetWidget(b)}}}}});
qx.Class.define("org.eclipse.swt.widgets.TableCellToolTip",{extend:qx.ui.popup.ToolTip,include:org.eclipse.rwt.VisibilityAnimationMixin,construct:function(a){arguments.callee.base.call(this);this._controlId=a;this._itemId=null;this._columnIndex=-1},members:{_onshowtimer:function(a){this._stopShowTimer();this._requestCellToolTipText()},setText:function(a){if(this._isValidToolTip(a)){this.getAtom().setLabel(a);this.setLeft(qx.event.type.MouseEvent.getPageX()+this.getMousePointerOffsetX());this.setTop(qx.event.type.MouseEvent.getPageY()+this.getMousePointerOffsetY());this.show()}},setCell:function(b,a){if(this._itemId!=b||this._columnIndex!=a){this._itemId=b;this._columnIndex=a;this.hide();if(this._isValidCell()){this._startShowTimer()}else{this._stopShowTimer()}}},_requestCellToolTipText:function(){if(this._isValidCell()){var a=org.eclipse.swt.Request.getInstance();a.addEvent("org.eclipse.swt.events.cellToolTipTextRequested",this._controlId);this._requestedCell=this._itemId+","+this._columnIndex;a.addParameter("org.eclipse.swt.events.cellToolTipTextRequested.cell",this._requestedCell);a.send()}},_isValidCell:function(){return this._itemId!=null&&this._columnIndex!=-1},_isValidToolTip:function(b){var a=this._itemId+","+this._columnIndex;return b&&b!==""&&a===this._requestedCell}}});
qx.Class.define("org.eclipse.rwt.widgets.TableHeader",{extend:qx.ui.layout.CanvasLayout,construct:function(a){arguments.callee.base.call(this);this.setOverflow($[13]);this.setZIndex(2000);this._fixedColumns=a.splitContainer;this._scrollWidth=0;this._scrollLeft=0;this._dummyColumn=new qx.ui.basic.Atom();this._dummyColumn.setAppearance(a.appearance+"-column");this._dummyColumn.setHeight("100%");this._dummyColumn.setLabel("&nbsp;");this._dummyColumn.addState("dummy");this.add(this._dummyColumn)},destruct:function(){this._dummyColumn=null},events:{columnLayoutChanged:$[3],scrollLeftChanged:$[3]},members:{setScrollLeft:function(b){this._scrollLeft=b;if(this._fixedColumns){for(var a=0;a<this._children.length;a++){if(this._children[a].isFixed&&this._children[a].isFixed()){this._children[a].addToQueue("left")}}if(!org.eclipse.swt.EventUtil.getSuspended()){qx.ui.core.Widget.flushGlobalQueues()}}if(this.isSeeable()){arguments.callee.base.call(this,b)}},getScrollLeft:function(){return this._scrollLeft},setScrollWidth:function(a){this._scrollWidth=a;if(this.getVisibility()){this._renderDummyColumn()}},add:function(a){arguments.callee.base.call(this,a);if(a!==this._dummyColumn){a.addEventListener($[63],this._fireUpdateEvent,this);a.addEventListener($[150],this._renderDummyColumn,this)}},remove:function(a){arguments.callee.base.call(this,a);if(a!==this._dummyColumn){a.removeEventListener($[63],this._fireUpdateEvent,this);a.removeEventListener($[150],this._renderDummyColumn,this);this._fireUpdateEvent()}},_afterAppear:function(){arguments.callee.base.call(this);this.setScrollLeft(this._scrollLeft)},_fireUpdateEvent:function(a){this.createDispatchEvent($[424])},_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)},_getDummyColumnLeft:function(){var c=this.getChildren();var a=0;for(var b=0;b<c.length;b++){if(c[b]!==this._dummyColumn){var d=c[b].getLeft()+c[b].getWidth();a=Math.max(a,d)}}return a}}});
qx.Class.define("org.eclipse.swt.widgets.TableColumn",{extend:qx.ui.basic.Atom,construct:function(a){arguments.callee.base.call(this);this._table=a;this._parentIsTree=a.getAppearance()==="tree";this.setAppearance(this._parentIsTree?$[500]:"table-column");this.setHorizontalChildrenAlign(qx.constant.Layout.ALIGN_LEFT);this.setOverflow(qx.constant.Style.OVERFLOW_HIDDEN);this._resizable=true;this._moveable=false;this._resizeStartX=0;this._inResize=false;this._wasResizeOrMoveEvent=false;this._inMove=false;this._offsetX=0;this._initialLeft=0;this._fixed=false;this._index=0;this.setWidth(0);this.setLeft(0);this.setHeight("100%");this._createLabel();this.getLabelObject().setMode(qx.constant.Style.LABEL_MODE_HTML);this._table.getTableHeader().add(this);this.addEventListener($[6],this._onMouseOver,this);this.addEventListener($[34],this._onMouseMove,this);this.addEventListener($[8],this._onMouseOut,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[5],this._onMouseUp,this);this._sortImage=new qx.ui.basic.Image();this._sortImage.setAnonymous(true);if(this._parentIsTree){this._sortImage.setAppearance("tree-column-sort-indicator")}else{this._sortImage.setAppearance("table-column-sort-indicator")}this.add(this._sortImage);this._handleZIndex()},destruct:function(){this.removeEventListener($[6],this._onMouseOver,this);this.removeEventListener($[34],this._onMouseMove,this);this.removeEventListener($[8],this._onMouseOut,this);this.removeEventListener($[1],this._onMouseDown,this);this.removeEventListener($[5],this._onMouseUp,this);this._disposeFields("_sortImage");if(!this._table.getDisposed()&&!qx.core.Object.inGlobalDispose()){this._table.getTableHeader().remove(this)}},statics:{RESIZE_CURSOR:(org.eclipse.rwt.Client.isGecko()&&(org.eclipse.rwt.Client.getMajor()>1||org.eclipse.rwt.Client.getMinor()>=8))?"ew-resize":$[145],STATE_MOVING:"moving",STATE_MOUSE_OVER:$[6]},members:{setIndex:function(a){this._index=a},getIndex:function(){return this._index},setSortDirection:function(a){if(a=="up"){this._sortImage.addState("up")}else{this._sortImage.removeState("up")}if(a=="down"){this._sortImage.addState("down")}else{this._sortImage.removeState("down")}},setResizable:function(a){this._resizable=a},setMoveable:function(a){this._moveable=a},setHasSelectionListener:function(a){if(a){this.addEventListener($[16],this._onClick,this)}else{this.removeEventListener($[16],this._onClick,this)}},_onClick:function(a){if(!this._wasResizeOrMoveEvent){org.eclipse.swt.EventUtil.widgetSelected(a)}this._wasResizeOrMoveEvent=false},_onMouseOver:function(a){if(!this._inMove&&!this._inResize){this.addState(org.eclipse.swt.widgets.TableColumn.STATE_MOUSE_OVER)}},setAlignment:function(a){this._table.setAlignment(this._index,a);this.getLabelObject().setTextAlign(a);this.setHorizontalChildrenAlign(a)},setFixed:function(a){if(this._fixed!==a){this._fixed=a;this._handleZIndex();this.addToQueue("left")}},isFixed:function(){return this._fixed},_renderRuntimeLeft:function(a){var b=a;if(this._fixed){b+=this.getParent().getScrollLeft()}arguments.callee.base.call(this,b)},_onMouseDown:function(b){if(!this._inMove&&!this._inResize&&b.getButton()==="left"){var c=org.eclipse.swt.WidgetUtil;if(this._isResizeLocation(b.getPageX())){this._inResize=true;var a=this.getLeft()+this.getWidth();this._table._showResizeLine(a,this._fixed);this._resizeStartX=b.getPageX();this.setCapture(true);b.stopPropagation();b.preventDefault();c._fakeMouseEvent(this,$[8])}else{if(this._moveable){this._inMove=true;this.setCapture(true);this._handleZIndex();this._offsetX=b.getPageX()-this.getLeft();this._initialLeft=this.getLeft();b.stopPropagation();b.preventDefault();c._fakeMouseEvent(this,$[8])}}}},_onMouseUp:function(a){var b=org.eclipse.swt.WidgetUtil;if(this._inResize){this._table._hideResizeLine();this.getTopLevelWidget().setGlobalCursor(null);this.setCapture(false);var d=this._getResizeWidth(a.getPageX());this._sendResized(d);this._inResize=false;this._wasResizeOrMoveEvent=true;a.stopPropagation();a.preventDefault();b._fakeMouseEvent(a.getTarget(),$[6])}else{if(this._inMove){this._inMove=false;this.setCapture(false);this._handleZIndex();this.removeState(org.eclipse.swt.widgets.TableColumn.STATE_MOVING);if(this.getLeft()<this._initialLeft-1||this.getLeft()>this._initialLeft+1){this._wasResizeOrMoveEvent=true;var c=Math.round(this.getElement().getBoundingClientRect().left);this._sendMoved(this.getLeft()+a.getPageX()-c)}else{this.setLeft(this._initialLeft)}a.stopPropagation();a.preventDefault();b._fakeMouseEvent(a.getTarget(),$[6])}}},_onMouseMove:function(b){if(this._inResize){var a=this.getLeft()+this._getResizeWidth(b.getPageX());if(a<this.getLeft()+5){a=this.getLeft()+5}this._table._showResizeLine(a,this._fixed)}else{if(this._inMove){this.setLeft(b.getPageX()-this._offsetX);this.addState(org.eclipse.swt.widgets.TableColumn.STATE_MOVING)}else{if(this._isResizeLocation(b.getPageX())){this.getTopLevelWidget().setGlobalCursor(org.eclipse.swt.widgets.TableColumn.RESIZE_CURSOR)}else{this.getTopLevelWidget().setGlobalCursor(null)}}}b.stopPropagation();b.preventDefault()},_onMouseOut:function(a){this.removeState(org.eclipse.swt.widgets.TableColumn.STATE_MOUSE_OVER);if(!this._inResize){this.getTopLevelWidget().setGlobalCursor(null);a.stopPropagation();a.preventDefault()}},_isResizeLocation:function(b){var a=false;if(this._resizable){var c=qx.bom.element.Location.getLeft(this.getElement())+this.getWidth();if(b>=c-5&&b<=c){a=true}}return a},_getResizeWidth:function(a){var b=this._resizeStartX-a;return this.getWidth()-b},_handleZIndex:function(){var a=1;if(this._inMove){a=100000000}else{if(this._fixed){a=10000000}}this.setZIndex(a)},_sendResized:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();b.addEvent("org.eclipse.swt.events.controlResized",c);b.addParameter(c+".width",a);b.send()}},_sendMoved:function(b){if(!org.eclipse.swt.EventUtil.getSuspended()){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addEvent("org.eclipse.swt.events.controlMoved",c);a.addParameter(c+".left",b);a.send()}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.TableColumn",{factory:function(b){var a;org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(b.parent,function(c){a=new org.eclipse.swt.widgets.TableColumn(c)});return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getWidgetDestructor(),properties:["index","left",$[28],"text",$[18],$[110],"resizable","moveable",$[293],$[123],$[98]],propertyHandler:{text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,false);d=a.replaceNewLines(d,$[107]);c.setLabel(d)},image:function(b,a){if(a===null){b.setIcon(null)}else{b.setIcon(a[0])}},toolTip:org.eclipse.rwt.protocol.AdapterUtil.getControlPropertyHandler($[110])},listeners:[$[24]],listenerHandler:{},methods:[]});
qx.Class.define("org.eclipse.swt.browser.Browser",{extend:qx.ui.embed.Iframe,construct:function(){arguments.callee.base.call(this);this._hasProgressListener=false;this._browserFunctions={};this.setTabIndex(1);this.setAppearance("browser");this.addEventListener($[84],this._onCreate,this)},properties:{asynchronousResult:{check:$[2],init:false},executedFunctionPending:{check:$[2],init:false},executedFunctionResult:{nullable:true,init:null},executedFunctionError:{check:$[21],nullable:true,init:null}},statics:{getDomain:function(a){var d=null;if(a!==null){var b=a.toLowerCase();if(b.indexOf("http://")===0||b.indexOf("https://")===0||b.indexOf("ftp://")===0||b.indexOf("ftps://")===0){var d=b.slice(b.indexOf("://")+3);var c=d.indexOf("/");if(c!==-1){d=d.slice(0,c)}}}return d}},members:{syncSource:function(){if(this.isCreated()){this._syncSource()}},_applySource:function(b,a){},_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){arguments.callee.base.call(this,a);if(this._isContentAccessible()){this._attachBrowserFunctions()}this._sendProgressEvent()}},_onCreate:function(a){if(!this.getEnabled()){this.block()}},_sendProgressEvent:function(){if(this._hasProgressListener){var c=org.eclipse.swt.WidgetManager.getInstance();var a=org.eclipse.swt.Request.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+".org.eclipse.swt.events.progressCompleted","true");a.send()}},setHasProgressListener:function(a){this._hasProgressListener=a},execute:function(b){this._checkIframeAccess();var f=true;var a=null;try{a=this._parseEvalResult(this._eval(b))}catch(c){f=false}var d=org.eclipse.swt.Request.getInstance();var e=org.eclipse.swt.WidgetManager.getInstance();var g=e.findIdByWidget(this);d.addParameter(g+".executeResult",f);d.addParameter(g+".evaluateResult",a);if(this.getExecutedFunctionPending()){d.sendSyncronous()}else{d.send()}},_srcInLocalDomain:function(){var f=this.getSource();var e=org.eclipse.swt.browser.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(){var a;try{this.getContentDocument().body.URL;a=true}catch(b){a=false}return a&&this._isLoaded},_checkIframeAccess:function(b){if(!this._isContentAccessible()){var a=this._srcInLocalDomain();if(!a){this._throwSecurityException(false)}if(this._isLoaded&&a){this._throwSecurityException(true)}}},_throwSecurityException:function(a){var e=org.eclipse.swt.browser.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(script){var win=this.getContentWindow();if(!win.eval&&win.execScript){win.execScript("null;","JScript")}return win.eval(script)},_parseEvalResult:function(b){var a=null;var c=this.getContentWindow();if(b instanceof c.Function){a=this.objectToString([[]])}else{if(b instanceof c.Array){a=this.objectToString([b])}else{if(typeof b!==$[19]&&typeof b!==$[45]){a=this.objectToString([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(org.eclipse.swt.EventUtil.getSuspended()){throw c}else{org.eclipse.rwt.ErrorHandler.processJavaScriptError(c)}}}},_attachBrowserFunctions:function(){for(var a in this._browserFunctions){this.createFunction(a)}},_createFunctionImpl:function(a){var d=this.getContentWindow();var c=org.eclipse.swt.Request.getInstance();var f=org.eclipse.swt.WidgetManager.getInstance();var e=f.findIdByWidget(this);var b=this;d[a+"_impl"]=function(){var g={};if(b.getExecutedFunctionPending()){g.error='Unable to execute browser function "'+a+'". Another browser function is still pending.'}else{var i=b.objectToString(arguments);c.addParameter(e+".executeFunction",a);c.addParameter(e+".executeArguments",i);b.setExecutedFunctionResult(null);b.setExecutedFunctionError(null);b.setExecutedFunctionPending(true);b.setAsynchronousResult(false);c.sendSyncronous();if(b.getExecutedFunctionPending()){b.setAsynchronousResult(true)}else{var h=b.getExecutedFunctionError();if(h!=null){g.error=h}else{g.result=b.getExecutedFunctionResult()}}}return g}},_createFunctionWrapper:function(b){var a=[];a.push("function "+b+"(){");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:qx.core.Variant.select($[0],{"default":function(b){delete this._browserFunctions[b];var d=this.getContentWindow();if(d!=null){try{var a=[];a.push($[375]+b+";");a.push($[375]+b+"_impl;");this._eval(a.join(""))}catch(c){throw new Error($[361]+b+" error: "+c)}}},mshtml:function(b){delete this._browserFunctions[b];var d=this.getContentWindow();if(d!=null){try{var a=[];a.push("window."+b+" = undefined;");a.push("window."+b+"_impl = undefined;");this._eval(a.join(""))}catch(c){throw new Error($[361]+b+" error: "+c)}}}}),setFunctionResult:function(c,a,b){this.setExecutedFunctionResult(a);this.setExecutedFunctionError(b);this.setExecutedFunctionPending(false)},objectToString:function(b){var a;var d=typeof(b);if(b===null){a=String(b)}else{if(d==$[19]){a=[];for(var c=0;c<b.length;c++){var e=b[c];d=typeof(e);if(d==$[9]){e='"'+e.replace(/"/g,'\\"')+'"'}else{if(d==$[19]&&e!==null){e=this.objectToString(e)}}a.push(String(e))}a="["+String(a)+"]"}else{if(d==$[9]){a='"'+b.replace(/"/g,'\\"')+'"'}else{a=String(b)}}}return a},destroy:function(){arguments.callee.base.call(this);this.syncSource()}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Browser",{factory:function(b){var a=new org.eclipse.swt.browser.Browser();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["url","functionResult"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({url:function(b,a){b.setSource(a);b.syncSource()},functionResult:function(b,a){b.setFunctionResult(a[0],a[1],a[2])}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[192]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:["evaluate","destroyFunctions","createFunctions"],methodHandler:{evaluate:function(b,a){b.execute(a.script)},createFunctions:function(c,b){var d=b.functions;for(var a=0;a<d.length;a++){c.createFunction(d[a])}},destroyFunctions:function(c,b){var d=b.functions;for(var a=0;a<d.length;a++){c.destroyFunction(d[a])}}}});
qx.Class.define("org.eclipse.rwt.widgets.ExternalBrowser",{type:$[37],extend:qx.core.Object,members:{_map:{},open:function(e,a,b){var d=this._escapeId(e);var c=window.open(a,d,b,true);if(c!=null){c.focus();this._map[d]=c}},close:function(c){var b=this._escapeId(c);var a=this._map[b];if(a!=null){a.close()}delete this._map[b]},_escapeId:function(b){var a=b;a=a.replace(/_/g,"_0");a=a.replace(/-/g,"_1");a=a.replace(/\./g,"_");a=a.replace(/ /g,"__");return a}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.ExternalBrowser",{factory:function(a){return org.eclipse.rwt.widgets.ExternalBrowser.getInstance()},destructor:qx.lang.Function.returnTrue,properties:[],propertyHandler:{},listeners:[],listenerHandler:{},methods:["open","close"],methodHandler:{open:function(g,c){var h=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(c.style);var d="dependent=1,scrollbars=1,resizable=1,";var b="status=".concat(h.STATUS?1:0,",");var a="location=".concat(h.LOCATION_BAR?1:0,",");var e="toolbar=".concat(h.NAVIGATION_BAR?1:0,",");var f="menubar=".concat(h.NAVIGATION_BAR?1:0);d=d.concat(b,a,e,f);g.open(c.id,c.url,d)},close:function(b,a){b.close(a.id)}}});
qx.Class.define("org.eclipse.swt.FontSizeCalculation",{statics:{_measureNode:null,_offset:org.eclipse.rwt.Client.isZoomed()?1:0,probe:function(c){for(var b=0;b<c.length;b++){var d=c[b];var a=this._measureItem(d,false);var e=a[0]+","+a[1];var f=d[0];this._addRequestParam(f,e)}},measureStringItems:function(a){for(var c=0;c<a.length;c++){var d=a[c];var g=d[7];var b=this._measureItem(d,!g);var e=b[0]+","+b[1];var f=d[0];this._addRequestParam(f,e);org.eclipse.swt.Request.getInstance().send()}},_measureItem:function(c,b){var e=b?this._escapeText(c[1]):c[1];var d={fontFamily:c[2],fontSize:c[3]+"px",fontWeight:c[4]?"bold":$[61],fontStyle:c[5]?"italic":$[61]};var a=c[6]>0?c[6]:null;return this.computeTextDimensions(e,d,a)},computeTextDimensions:function(f,e,d){var b=this._getMeasureNode();var c=b.style;if(!org.eclipse.rwt.Client.isMshtml()){c.font=""}c.fontFamily=e.fontFamily||"";c.fontSize=e.fontSize||"";c.fontWeight=e.fontWeight||"";c.fontStyle=e.fontStyle||"";b.innerHTML=f;if(d){c.width=d+"px"}var a=this._measureElement(b);c.width="auto";return a},_measureElement:qx.core.Variant.select($[0],{"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.ceil(c.height)]}else{a=[b.scrollWidth,b.scrollHeight]}}else{a=[b.scrollWidth,b.scrollHeight]}return this._addOffset(a)},newmshtml:function(b){var c=window.getComputedStyle(b,null);var a=[Math.ceil(parseFloat(c.width)),Math.ceil(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=$[13];a.position=$[17];a.zIndex="-1";a.left=-1000;document.body.appendChild(b);this._measureNode=b}if(!org.eclipse.rwt.Client.isMshtml()){b.style.font=""}return b},_addRequestParam:function(a,c){var b=org.eclipse.swt.Request.getInstance();b.addParameter(a,c)},_escapeText:function(c){var b=org.eclipse.rwt.protocol.EncodingUtil;var a=b.escapeText(c,true);a=b.replaceNewLines(a,$[107]);a=b.replaceWhiteSpaces(a);return a}}});
qx.Class.define("org.eclipse.rwt.widgets.Label",{extend:org.eclipse.rwt.widgets.MultiCellWidget,construct:function(a){arguments.callee.base.call(this,this._CELLORDER);this.addEventListener($[6],this._onMouseOver);this.addEventListener($[8],this._onMouseOut);this.setVerticalChildrenAlign("top");this.setAlignment("left");this.setAppearance("label-wrapper");if(a.WRAP){this.setFlexibleCell(1)}this._markupEnabled=a.MARKUP_ENABLED===true},members:{_CELLORDER:[$[18],$[74]],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(b){var c=b;if(!this._markupEnabled){var a=org.eclipse.rwt.protocol.EncodingUtil;c=a.escapeText(b,true);c=a.replaceNewLines(c,$[107]);c=a.replaceWhiteSpaces(c)}this.setCellContent(1,c)},setTopMargin:function(a){this.setPaddingTop(a)},setLeftMargin:function(a){this.setPaddingLeft(a)},setRightMargin:function(a){this.setPaddingRight(a)},setBottomMargin:function(a){this.setPaddingBottom(a)},_onMouseOver:function(a){if(a.getTarget()===this&&!this.hasState("over")){this.addState("over")}},_onMouseOut:function(a){if(a.getTarget()===this){this.removeState("over")}}}});
qx.Class.define("org.eclipse.rwt.widgets.BasicButton",{extend:org.eclipse.rwt.widgets.MultiCellWidget,construct:function(a,b){arguments.callee.base.call(this,this._CELLORDER);this._hasSelectionListener=false;this._selected=false;this._image=[null,null,null];this._hotImage=[null,null,null];this.addEventListener($[6],this._onMouseOver);this.addEventListener($[8],this._onMouseOut);this.addEventListener($[1],this._onMouseDown);this.addEventListener($[5],this._onMouseUp);if(!b){this.addEventListener($[10],this._onKeyDown);this.addEventListener($[40],this._onKeyUp);this.addEventListener($[4],this._onKeyPress)}this.addState(a);switch(a){case"arrow":case"push":this._isSelectable=false;this._isDeselectable=false;this._sendEvent=true;break;case $[205]:case"check":this._isSelectable=true;this._isDeselectable=true;this._sendEvent=true;break;case $[122]:this._isSelectable=true;this._sendEvent=false;this.setNoRadioGroup(false);org.eclipse.rwt.RadioButtonUtil.registerExecute(this);org.eclipse.rwt.RadioButtonUtil.registerKeypress(this);break}},destruct:function(){if(this._animation!=null){this._animation.dispose()}this._animation=null},events:{stateOverChanged:$[3]},properties:{selectionIndicator:{apply:$[463],nullable:true,themeable:true},icon:{apply:$[322],nullable:true,themeable:true},animation:{check:$[106],nullable:false,init:null,apply:$[410],themeable:true}},members:{_CELLORDER:[$[18],$[18],$[74]],_applyIcon:function(b,a){this.setImage.apply(this,b)},setImage:function(c,b,a){this._image=[c,b,a];this._updateButtonImage()},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(e,b){var c=e?e[0]:null;var d=e?e[1]:0;var a=e?e[2]:0;this.setCellContent(0,c);this.setCellDimension(0,d,a)},setHasSelectionListener:function(a){this._hasSelectionListener=a},setGrayed:function(a){if(a){this.addState($[200])}else{this.removeState($[200])}},setNoRadioGroup:function(a){if(this.hasState($[122])){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))}this._sendChanges()},setSelection:function(b){if(this._selected!=b||this._selected){this._selected=b;if(this._selected){this.addState($[29])}else{this.removeState($[29])}if(!org.eclipse.swt.EventUtil.getSuspended()){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addParameter(c+$[147],this._selected);org.eclipse.swt.EventUtil.addWidgetSelectedModifier()}}},_sendChanges:function(){if(!org.eclipse.swt.EventUtil.getSuspended()&&this._hasSelectionListener){var a=org.eclipse.swt.Request.getInstance();if(this._sendEvent){var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);a.addEvent($[69],b);org.eclipse.swt.EventUtil.addWidgetSelectedModifier()}a.send()}},_onMouseOver:function(a){if(a.getTarget()==this&&!this.hasState("over")){if(this.hasState($[33])){this.removeState($[33]);this.addState($[11])}this.addState("over");this._updateButtonImage();this.createDispatchEvent($[164])}},_onMouseOut:function(a){if(a.getTarget()==this){this.removeState("over");this._updateButtonImage();if(this.hasState($[11])){this.setCapture(true);this.removeState($[11]);this.addState($[33])}this.createDispatchEvent($[164])}},_onMouseDown:function(a){if(a.getTarget()==this&&a.isLeftButtonPressed()){this.removeState($[33]);this.addState($[11])}},_onMouseUp:function(b){this.setCapture(false);var a=this.hasState($[11]);var c=this.hasState($[33]);if(a){this.removeState($[11])}if(c){this.removeState($[33])}if(!c){this.addState("over");this._updateButtonImage();if(a){this.execute()}}},_onKeyDown:function(a){switch(a.getKeyIdentifier()){case $[54]:case $[83]:this.removeState($[33]);this.addState($[11]);a.stopPropagation()}},_onKeyUp:function(a){switch(a.getKeyIdentifier()){case $[54]:case $[83]:if(this.hasState($[11])){this.removeState($[33]);this.removeState($[11]);this.execute();a.preventDefault();a.stopPropagation()}}},_onKeyPress:function(a){switch(a.getKeyIdentifier()){case"Left":case"Up":case $[39]:case"Down":case $[42]:case $[43]:case"End":case"Home":case $[54]:case $[83]:a.preventDefault();a.stopPropagation()}},_applyAnimation:function(b,a){if(b.hoverIn||b[$[341]]){if(this._animation==null){this._animation=new org.eclipse.rwt.Animation();this._animation.addEventListener("init",this._initAnimation,this)}this.addEventListener($[164],this._animation.activateRendererOnce,this._animation);this.addEventListener($[326],this._configureRenderer,this);this._configureRenderer()}else{if(this._animation!=null){this.removeEventListener($[164],this._animation.activateRendererOnce,this._animation);this.removeEventListener($[326],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?$[134]:$[60];var b=org.eclipse.rwt.AnimationRenderer.ANIMATION_CHANGE;d.animate(this,a,b)}},_initAnimation:function(a){if(this.hasState($[11])){this._animation.cancel()}else{var b=this.getAnimation();if(this.hasState("over")&&b.hoverIn){this._animation.setProperties(b.hoverIn)}else{if(!this.hasState("over")&&b[$[341]]){this._animation.setProperties(b[$[341]])}else{this._animation.cancel()}}}},_renderAppearance:function(){arguments.callee.base.call(this);if(this._animation!=null&&!this._animation.isStarted()){this._animation.getDefaultRenderer().cancelActivateOnce()}}}});
qx.Class.define("org.eclipse.rwt.widgets.ToolItem",{extend:org.eclipse.rwt.widgets.BasicButton,construct:function(a){arguments.callee.base.call(this,a);this._isDropDown=false;if(a=="dropDown"){this._isDropDown=true;this._isSelectable=false;this._isDeselectable=false;this._sendEvent=true;this.setCellDimension(3,1,0);this.setCellContent(3,"")}this._separatorBorder=null;this.setAppearance("toolbar-button");this.removeEventListener($[10],this._onKeyDown);this.removeEventListener($[40],this._onKeyUp)},properties:{dropDownArrow:{apply:"_applyDropDownArrow",nullable:true,themeable:true},separatorBorder:{nullable:true,init:null,apply:$[510],themeable:true}},events:{dropDownClicked:$[3]},members:{_CELLORDER:[$[18],$[18],$[74],$[74],$[18]],_onKeyPress:function(a){this.getParent().dispatchEvent(a);arguments.callee.base.call(this,a)},_onMouseDown:function(a){if(a.getTarget()==this&&a.isLeftButtonPressed()){this.removeState($[33]);if(this._isDropdownClick(a)){this._onDropDownClick();this._sendChanges()}else{this.addState($[11])}}},_isDropdownClick:function(e){var a=false;var d=this.getCellNode(3);if(d!=null){var c=qx.bom.element.Location.getLeft(d);var b=e.getClientX();a=b>c}return a},_onDropDownClick:function(){if(!org.eclipse.swt.EventUtil.getSuspended()&&this._hasSelectionListener){var a=org.eclipse.swt.Request.getInstance();if(this._sendEvent){var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);a.addEvent($[413],"arrow")}}this.dispatchSimpleEvent("dropDownClicked")},_applyDropDownArrow:function(e,c){var b=e?e[0]:null;var d=e?e[1]:0;var a=e?e[2]:0;this.setCellContent(4,b);this.setCellDimension(4,d,a)},_applySeparatorBorder:function(b,a){this._queueSeparatorBorder(b)},_queueSeparatorBorder:function(a){this._separatorBorder=a;this.addToQueue($[390])},_beforeRenderLayout:function(h){if(this._isDropDown){if(h.layoutY){var g=this.getPaddingTop()+this.getPaddingBottom();this._setCellHeight(3,this.getInnerHeight()+g)}if(h.layoutX){var l=this.getInnerWidth();this._setCellWidth(0,0);this._setCellWidth(2,null);var j=this.getPreferredInnerWidth();var i=l-j;if(i>0){var b=this.getSpacing();if((i>(b*2))&&this.getHorizontalChildrenAlign()!="left"){var e=Math.round(i*0.5)-b;var f=Math.round(i*0.5);this.setCellWidth(0,e);this.setCellWidth(2,this.getCellWidth(2)+f)}else{this.setCellWidth(2,this.getCellWidth(2)+i)}}}if(h.separatorBorder){var c=this.getCellNode(3).style;var a=this._separatorBorder.getWidthLeft();var k=this._separatorBorder.getStyleLeft();var d=this._separatorBorder.getColorLeft();c.borderLeftWidth=(a||0)+"px";c.borderLeftStyle=k||"none";c.borderLeftColor=d||""}}},_renderCellLayoutY:function(a){arguments.callee.base.call(this,a);if(this._isDropDown&&a==3){this.getCellNode(a).style.top=0}}}});
qx.Class.define("org.eclipse.swt.widgets.Group",{extend:qx.ui.groupbox.GroupBox,construct:function(){arguments.callee.base.call(this);this.setOverflow(qx.constant.Style.OVERFLOW_HIDDEN);var b=new org.eclipse.swt.theme.ThemeValues({});this._themeBackgroundColor=b.getCssColor("Group-Label",$[193]);b.dispose();var a=this.getLegendObject().getLabelObject();if(a==null){this.setLegend($[235]);this.setLegend("")}a=this.getLegendObject().getLabelObject();a.setMode(qx.constant.Style.LABEL_MODE_HTML);this.addEventListener($[172],this._onChangeBackgroundColor,this);this.addEventListener($[102],this._onChangeFont,this);this.getLegendObject().addEventListener($[6],this._onMouseOver,this);this.getLegendObject().addEventListener($[8],this._onMouseOut,this);qx.ui.core.Widget.disableScrolling(this)},destruct:function(){this.removeEventListener($[172],this._onChangeBackgroundColor,this);this.removeEventListener($[102],this._onChangeFont,this);this.getLegendObject().removeEventListener($[6],this._onMouseOver,this);this.getLegendObject().removeEventListener($[8],this._onMouseOut,this)},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._legendObject.addState(a);this._frameObject.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._legendObject.removeState(a);this._frameObject.removeState(a)}},_onChangeBackgroundColor:function(a){var b=a.getValue();if(this._themeBackgroundColor===$[7]){this.getLegendObject().setBackgroundColor(b)}},_onChangeFont:function(b){var a=b.getValue();this.getLegendObject().setFont(a)},_onMouseOver:function(a){this.getLegendObject().addState("over");this.getFrameObject().addState("over")},_onMouseOut:function(a){this.getLegendObject().removeState("over");this.getFrameObject().removeState("over")},_layoutPost:function(a){arguments.callee.base.call(this,a);this._frameObject._layoutPost(a)},applyObjectId:function(b){arguments.callee.base.call(this,b);if(qx.ui.core.Widget._renderHtmlIds){var a=this.getLegendObject().getLabelObject();a.setHtmlAttribute("id",b+"-label")}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Group",{factory:function(b){var a=new org.eclipse.swt.widgets.Group();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["text"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,true);c.setLegend(d)}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.swt.widgets.Shell",{extend:qx.ui.window.Window,include:org.eclipse.rwt.VisibilityAnimationMixin,construct:function(b){arguments.callee.base.call(this);this.setShowMinimize(b.MIN===true);this.setAllowMinimize(b.MIN===true);this.setShowMaximize(b.MAX===true);this.setAllowMaximize(b.MAX===true);this.setShowClose(b.CLOSE===true);this.setAllowClose(b.CLOSE===true);this.setResizableWest(b.RESIZE===true);this.setResizableNorth(b.RESIZE===true);this.setResizableEast(b.RESIZE===true);this.setResizableSouth(b.RESIZE===true);this.setOverflow(qx.constant.Style.OVERFLOW_HIDDEN);this.setRestrictToPageOnOpen(false);this._captionTitle.setMode("html");this._activeControl=null;this._focusControl=null;this._activateListenerWidgets=[];this._parentShell=null;this._renderZIndex=true;this._hasShellListener=false;this.addEventListener($[351],this._onChangeActiveChild);this.addEventListener($[194],this._onChangeFocusedChild);this.addEventListener($[320],this._onChangeActive);this.addEventListener($[349],this._onChangeMode);this.addEventListener($[150],this._onChangeLocation);this.addEventListener($[336],this._onChangeLocation);this.addEventListener($[63],this._onChangeSize);this.addEventListener($[71],this._onChangeSize);this.addEventListener($[10],this._onKeydown);var a=org.eclipse.swt.Request.getInstance();a.addEventListener("send",this._onSend,this);this.getCaptionBar().setWidth("100%");this.removeEventListener($[1],this._onwindowmousedown);this.addEventListener($[84],this._onCreate,this);this.__onwindowmousedown=qx.lang.Function.bind(this._onwindowmousedown,this);this.addToDocument()},statics:{TOP_LEFT:"topLeft",TOP_RIGHT:"topRight",BOTTOM_LEFT:"bottomLeft",BOTTOM_RIGHT:$[467],CORNER_NAMES:["topLeft","topRight","bottomLeft",$[467]],_onParentClose:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){this.doClose()}},_appendCloseRequestParam:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(a);var b=org.eclipse.swt.Request.getInstance();b.addEvent("org.eclipse.swt.widgets.Shell_close",c)}},reorderShells:function(c){var g=qx.lang.Object.getValues(c.getAll());g=g.sort(org.eclipse.swt.widgets.Shell._compareShells);var f=g.length;var e=null;if(f>0){var b=g[0].getTopLevelWidget();var a=org.eclipse.swt.widgets.Shell.MIN_ZINDEX;for(var d=0;d<f;d++){a+=10;g[d].setZIndex(a);if(g[d]._appModal&&g[d].getVisibility()&&g[d].getDisplay()){e=g[d]}}if(e!=null){this._copyStates(e,b._getBlocker());b._getBlocker().show();b._getBlocker().setZIndex(e.getZIndex()-1)}else{b._getBlocker().hide()}}org.eclipse.swt.widgets.Shell._upperModalShell=e},_copyStates:function(b,c){c.__states={};for(var a in b.__states){if(b._isRelevantState(a)){c.addState(a)}}c._renderAppearance();qx.ui.core.Widget.removeFromGlobalLayoutQueue(c)},_compareShells:function(c,b){var a=0;if(c.isDialogOf(b)){a=1}else{if(b.isDialogOf(c)){a=-1}}if(a===0){a=(c._onTop?1:0)-(b._onTop?1:0)}if(a===0){a=(c._appModal?1:0)-(b._appModal?1:0)}if(a===0){var e=c.getTopLevelShell();var d=b.getTopLevelShell();a=e.getZIndex()-d.getZIndex()}if(a===0){a=c.getZIndex()-b.getZIndex()}return a},MIN_ZINDEX:100000,MAX_ZINDEX:10000000},destruct:function(){this.setParentShell(null);this.removeEventListener($[351],this._onChangeActiveChild);this.removeEventListener($[194],this._onChangeFocusedChild);this.removeEventListener($[320],this._onChangeActive);this.removeEventListener($[349],this._onChangeMode);this.removeEventListener($[150],this._onChangeLocation);this.removeEventListener($[336],this._onChangeLocation);this.removeEventListener($[63],this._onChangeSize);this.removeEventListener($[71],this._onChangeSize);this.removeEventListener($[10],this._onKeydown);var a=org.eclipse.swt.Request.getInstance();a.removeEventListener("send",this._onSend,this);if(this.isCreated()){qx.html.EventRegistration.removeEventListener(this.getElement(),$[1],this.__onwindowmousedown)}this._activateListenerWidgets=null},events:{close:$[48],parentShellChanged:$[3]},members:{destroy:function(){this.doClose();this.getWindowManager().remove(this);arguments.callee.base.call(this)},_onCreate:function(a){qx.html.EventRegistration.addEventListener(this.getElement(),$[1],this.__onwindowmousedown);this.removeEventListener($[84],this._onCreate,this)},_beforeAppear:function(){qx.ui.layout.CanvasLayout.prototype._beforeAppear.call(this);qx.ui.popup.PopupManager.getInstance().update();var a=this.getWindowManager().getActiveWindow();this.getWindowManager().add(this);this.getWindowManager().setActiveWindow(a)},setDefaultButton:function(a){if(this._defaultButton!=null){this._defaultButton.removeState($[66])}this._defaultButton=a;if(this._defaultButton!=null){this._defaultButton.addState($[66])}},getDefaultButton:function(){return this._defaultButton},setParentShell:function(a){var b=this._parentShell;this._parentShell=a;var c=org.eclipse.swt.widgets.Shell._onParentClose;if(b!=null){b.removeEventListener("close",c,this)}if(a!=null){a.addEventListener("close",c,this)}this.dispatchSimpleEvent("parentShellChanged")},isDisableResize:function(){return this._disableResize?true:false},setHasShellListener:function(a){this._hasShellListener=a},setActiveControl:function(a){this._activeControl=a},initialize:function(){this.setShowCaption(this.hasState("rwt_TITLE"));this._onTop=(this._parentShell!=null&&this._parentShell._onTop)||this.hasState("rwt_ON_TOP");this._appModal=this.hasState("rwt_APPLICATION_MODAL")},addState:function(b){arguments.callee.base.call(this,b);if(this._isRelevantState(b)){this._captionBar.addState(b);this._captionTitle.addState(b);this._minimizeButton.addState(b);this._maximizeButton.addState(b);this._restoreButton.addState(b);this._closeButton.addState(b);var a=this._getClientDocumentBlocker();if(a!=null){a.addState(b)}}},removeState:function(b){arguments.callee.base.call(this,b);if(this._isRelevantState(b)){this._captionBar.removeState(b);this._captionTitle.removeState(b);this._minimizeButton.removeState(b);this._maximizeButton.removeState(b);this._restoreButton.removeState(b);this._closeButton.removeState(b);var a=this._getClientDocumentBlocker();if(a!=null){a.removeState(b)}}},_getClientDocumentBlocker:function(){var a=null;if(this._appModal&&org.eclipse.swt.widgets.Shell._upperModalShell==this){a=this.getTopLevelWidget()._getBlocker()}return a},_isRelevantState:function(b){var a=b==$[68]||b==$[78]||b==$[210]||b.substr(0,8)==$[36]||b.substr(0,4)=="rwt_";return a},close:function(){if(!org.eclipse.swt.EventUtil.getSuspended()){org.eclipse.swt.widgets.Shell._appendCloseRequestParam(this);if(this._hasShellListener){org.eclipse.swt.Request.getInstance().send()}else{this.doClose()}}},doClose:function(){if(!this.isDisposed()){this.hide();if(this.hasEventListeners("close")){var a=new qx.event.type.DataEvent("close",this);this.dispatchEvent(a,true)}var b=this.getWindowManager();org.eclipse.swt.widgets.Shell.reorderShells(b)}},addActivateListenerWidget:function(a){this._activateListenerWidgets.push(a)},removeActivateListenerWidget:function(a){qx.lang.Array.remove(this._activateListenerWidgets,a)},_isRelevantActivateEvent:function(d){var a=false;for(var c=0;!a&&c<this._activateListenerWidgets.length;c++){var b=this._activateListenerWidgets[c];if(!b.contains(this._activeControl)&&b.contains(d)){a=true}}return a},_onChangeActiveChild:function(a){var e=this._getParentControl(a.getValue());if(!org.eclipse.swt.EventUtil.getSuspended()&&e!=null){var b=org.eclipse.swt.WidgetManager.getInstance();var f=b.findIdByWidget(e);var d=b.findIdByWidget(this);var c=org.eclipse.swt.Request.getInstance();if(this._isRelevantActivateEvent(e)){this._activeControl=e;c.removeParameter(d+$[407]);c.addEvent("org.eclipse.swt.events.controlActivated",f);c.send()}else{c.addParameter(d+$[407],f)}}},_onChangeFocusedChild:function(a){if(org.eclipse.swt.EventUtil.getSuspended()){this._focusControl=this.getFocusedChild()}},_onChangeActive:function(b){if(!this.getActive()&&!isFinite(this.getZIndex())){this.setZIndex(100000000)}if(!org.eclipse.swt.EventUtil.getSuspended()&&this.getActive()){var c=org.eclipse.swt.WidgetManager.getInstance();var f=c.findIdByWidget(this);var d=org.eclipse.swt.Request.getInstance();d.addEvent("org.eclipse.swt.events.shellActivated",f);d.send()}var e=b.getValue();if(e){var a=org.eclipse.swt.widgets.Shell._upperModalShell;if(a!=null&&a.getZIndex()>this.getZIndex()){this.setActive(false);a.setActive(true)}}},_onChangeMode:function(a){var c=a.getValue();var e=org.eclipse.swt.WidgetManager.getInstance();var d=e.findIdByWidget(a.getTarget());var b=org.eclipse.swt.Request.getInstance();b.addParameter(d+".mode",c)},_onChangeSize:function(b){if(!org.eclipse.swt.EventUtil.getSuspended()){var f=org.eclipse.swt.WidgetManager.getInstance();var d=org.eclipse.swt.Request.getInstance();var e=f.findIdByWidget(b.getTarget());var a=b.getTarget().getHeightValue();var c=b.getTarget().getWidthValue();d.addParameter(e+$[278],a);d.addParameter(e+$[267],c);d.send()}},_onChangeLocation:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var f=org.eclipse.swt.WidgetManager.getInstance();var b=org.eclipse.swt.Request.getInstance();var e=f.findIdByWidget(a.getTarget());var d=a.getTarget().getLeft();var c=a.getTarget().getTop();if(!isNaN(d)&&!isNaN(c)){b.addParameter(e+$[260],d);b.addParameter(e+$[261],c)}b.send()}},_onKeydown:function(a){var c=a.getKeyIdentifier();if(c==$[54]&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isCtrlPressed()&&!a.isMetaPressed()){var b=this.getDefaultButton();if(b!=null&&b.isSeeable()){b.execute()}}else{if(c==$[103]&&this._parentShell!=null){this.close()}}},_onSend:function(a){if(this.getActive()){var c=this.getFocusedChild();if(c!=null&&c!=this._focusControl){this._focusControl=c;var e=org.eclipse.swt.WidgetManager.getInstance();var b=e.findIdByWidget(c);var d=org.eclipse.swt.Request.getInstance();d.addParameter(d.getUIRootId()+".focusControl",b)}}},_getParentControl:function(c){var b=org.eclipse.swt.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(){org.eclipse.swt.widgets.Shell.reorderShells(this.getWindowManager())},bringToFront:function(){var a=this;while(a._parentShell!=null){a=a._parentShell}this._setRenderZIndex(false);this.setZIndex(org.eclipse.swt.widgets.Shell.MAX_ZINDEX+1);a.setZIndex(org.eclipse.swt.widgets.Shell.MAX_ZINDEX+1);org.eclipse.swt.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())}},sendToBack:function(){var a=this;while(a._parentShell!=null){a=a._parentShell}this._setRenderZIndex(false);this.setZIndex(org.eclipse.swt.widgets.Shell.MIN_ZINDEX-1);a.setZIndex(org.eclipse.swt.widgets.Shell.MIN_ZINDEX-1);org.eclipse.swt.widgets.Shell.reorderShells(this.getWindowManager());this._setRenderZIndex(true)},setBlocked:function(a){if(a){if(!this._blocker){this._blocker=new qx.ui.layout.CanvasLayout();this._blocker.setAppearance($[460]);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"))}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Shell",{factory:function(b){var d=org.eclipse.rwt.protocol.AdapterUtil;var c=d.createStyleMap(b.style);var a=new org.eclipse.swt.widgets.Shell(c);d.addStatesForStyles(a,b.style);a.setUserData($[22],true);d.callWithTarget(b.parentShell,function(e){if(e){a.setParentShell(e)}a.initialize()});return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["showMinimize","allowMinimize","showMaximize","allowMaximize","showClose","allowClose","resizable",$[18],"text","alpha",$[68],"mode","hasShellListener","minimumSize","defaultButton","activeControl"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.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){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(b,function(c){a.setDefaultButton(c)})},activeControl:function(a,b){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(b,function(c){a.setActiveControl(c)})},mode:function(a,c){var b=c==="fullscreen";a.setMode(b?$[78]:c);a.setFullScreen(b)},minimumSize:function(a,b){a.setMinWidth(b[0]);a.setMinHeight(b[1])},text:function(a,b){var c=org.eclipse.rwt.protocol.EncodingUtil.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()}org.eclipse.swt.widgets.Shell.reorderShells(a.getWindowManager())}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners(["shell"]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.swt.widgets.ProgressBar",{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.setOverflow($[13]);this.setAppearance("progressbar");this.setState($[61]);this._timer=null;this._gfxCanvasAppended=false;this._canvas=null;this._backgroundShape=null;this._indicatorShape=null;this._borderShape=null;this._useBorderShape=false;this._gfxBorderWidth=0;this._indicatorVirtualPosition=0;this._separatorStartShape=null;this._separatorEndShape=null;this._useSeparator=false;this._separatorWidth=0;this._minimum=0;this._maximum=100;this._selection=0},destruct:function(){if(this._timer!=null){this._timer.stop();this._timer.dispose()}this._timer=null;this._canvas=null;this._backgroundShape=null;this._indicatorShape=null;this._borderShape=null;this._separatorStartShape=null;this._separatorEndShape=null},statics:{UNDETERMINED_SIZE:40},events:{minimumChanged:$[3],maximumChanged:$[3],selectionChanged:$[3]},properties:{indicatorColor:{nullable:true,init:null,apply:$[274],themeable:true},indicatorImage:{nullable:true,init:null,apply:$[274],themeable:true},indicatorGradient:{nullable:true,init:null,apply:$[274],themeable:true},indicatorOpacity:{nullable:true,init:1,apply:$[274],themeable:true},backgroundImageSized:{nullable:true,init:null,apply:"_applyBackgroundImageSized",themeable:true},separatorBorder:{nullable:true,init:null,apply:$[510],themeable:true}},members:{setMinimum:function(a){this._minimum=a;this.dispatchSimpleEvent($[496])},setMaximum:function(a){this._maximum=a;this.dispatchSimpleEvent($[487])},setSelection:function(a){this._selection=a;this.addToQueue("indicatorSelection");this.dispatchSimpleEvent($[286])},addState:function(a){if(a===$[448]){this._timer=new qx.client.Timer(120);this._timer.addEventListener($[26],this._onInterval,this);this._timer.start()}arguments.callee.base.call(this,a)},setState:function(a){if(a==$[140]){this.removeState($[61]);this.removeState("paused");this.addState($[140])}else{if(a=="paused"){this.removeState($[61]);this.removeState($[140]);this.addState("paused")}else{this.removeState($[140]);this.removeState("paused");this.addState($[61])}}},_isIndeterminate:function(){return this.hasState($[448])},_isHorizontal:function(){return this.hasState($[429])},_isVertical:function(){return this.hasState($[220])},_queueBorder:function(a){this.addToQueue("indicatorBorder");if(a&&a.getStyle()===$[77]){this._cachedBorderTop=0;this._cachedBorderRight=0;this._cachedBorderBottom=0;this._cachedBorderLeft=0;this._invalidateFrameDimensions()}else{arguments.callee.base.call(this,a)}},_applyBackgroundColor:function(a){if(this._gfxCanvasAppended){this._styleBackgroundFill()}},_applyBackgroundGradient:function(a){if(this._gfxCanvasAppended){this._styleBackgroundFill()}},_applyBackgroundImage:function(a){},_applyBackgroundImageSized:function(a){if(this._gfxCanvasAppended){this._styleBackgroundFill()}},_applyIndicatorFill:function(a){if(this._gfxCanvasAppended){this._styleIndicatorFill()}},_applySeparatorBorder:function(a){this.addToQueue($[390])},_onCanvasAppear:function(){org.eclipse.rwt.GraphicsUtil.handleAppear(this._canvas)},_onInterval:function(){if(this.isSeeable()){this._renderIndicatorSelection()}},_layoutPost:function(b){if(!this._gfxCanvasAppended){this._createCanvas()}var a=b.width||b.height||b.frameWidth||b.frameHeight||b.initial;if(b.separatorBorder){this._styleSeparatorBorder()}if(b.indicatorBorder){this._styleIndicatorBorder()}if(b.indicatorBorder||a){this._renderDimension();this._renderIndicatorSelection()}else{if(b.indicatorSelection||b.separatorBorder){this._renderIndicatorSelection()}}},_createCanvas:function(){var a=org.eclipse.rwt.GraphicsUtil;this._canvas=a.createCanvas();this._getTargetNode().appendChild(a.getCanvasNode(this._canvas));this._gfxCanvasAppended=true;this.addEventListener($[143],this._onCanvasAppear);this._backgroundShape=a.createShape($[158]);this._indicatorShape=a.createShape($[158]);a.addToCanvas(this._canvas,this._backgroundShape);a.addToCanvas(this._canvas,this._indicatorShape);this._styleBackgroundFill();this._styleIndicatorFill();if(this.isSeeable()){this._onCanvasAppear()}},_styleIndicatorBorder:function(){var b=org.eclipse.rwt.GraphicsUtil;if(this.getBorder()&&this.getBorder().getStyle()===$[77]){if(!this._useBorderShape){this._style.border="";if(this._borderShape==null){this._borderShape=b.createShape($[158])}b.addToCanvas(this._canvas,this._borderShape);this._useBorderShape=true}this._gfxBorderWidth=this._getMaxBorderWidth(this.getBorder());var a=this.getBorder().getColor();b.setStroke(this._borderShape,a,this._gfxBorderWidth)}else{if(this._useBorderShape){b.removeFromCanvas(this._canvas,this._borderShape);this._useBorderShape=true;this._gfxBorderWidth=0}}},_styleSeparatorBorder:function(){var c=org.eclipse.rwt.GraphicsUtil;var b=this.getSeparatorBorder();if(b!=null){if(!this._useSeparator){if(this._isIndeterminate()){if(this._separatorStartShape==null){this._separatorStartShape=c.createShape("rect")}c.addToCanvas(this._canvas,this._separatorStartShape)}if(this._separatorEndShape==null){this._separatorEndShape=c.createShape("rect")}c.addToCanvas(this._canvas,this._separatorEndShape);this._useSeparator=true}this._separatorWidth=this._getMaxBorderWidth(b);var a=b.getColorTop();c.setFillColor(this._separatorEndShape,a);if(this._isIndeterminate()){c.setFillColor(this._separatorStartShape,a)}}else{if(this._useSeparator){c.removeFromCanvas(this._canvas,this._separatorEndShape);this._useSeparator=false;if(this._isIndeterminate()){c.removeFromCanvas(this._canvas,this._separatorStartShape)}this._separatorWidth=0}}},_getMaxBorderWidth:function(a){var b=0;b=Math.max(b,a.getWidthTop());b=Math.max(b,a.getWidthLeft());b=Math.max(b,a.getWidthRight());b=Math.max(b,a.getWidthBottom());return b},_styleIndicatorFill:function(){var a=org.eclipse.rwt.GraphicsUtil;if(this.getIndicatorImage()!=null&&this.getIndicatorImage()[0]!=null){var b=this.getIndicatorImage();a.setFillPattern(this._indicatorShape,b[0],b[1],b[2])}else{if(this.getIndicatorGradient()!=null){a.setFillGradient(this._indicatorShape,this.getIndicatorGradient())}else{a.setFillColor(this._indicatorShape,this.getIndicatorColor())}}a.setOpacity(this._indicatorShape,this.getIndicatorOpacity())},_styleBackgroundFill:function(){var a=org.eclipse.rwt.GraphicsUtil;if(this.getBackgroundImageSized()!=null&&this.getBackgroundImageSized()[0]!=null){var b=this.getBackgroundImageSized();a.setFillPattern(this._backgroundShape,b[0],b[1],b[2])}else{if(this.getBackgroundGradient()!=null){a.setFillGradient(this._backgroundShape,this.getBackgroundGradient())}else{a.setFillColor(this._backgroundShape,this.getBackgroundColor())}}},_renderDimension:function(){var b=org.eclipse.rwt.GraphicsUtil;var d=[0,0,0,0];var c=this.getInnerWidth();var a=this.getInnerHeight();if(this._useBorderShape){d=this.getBorder().getRadii();b.setRoundRectLayout(this._borderShape,this._gfxBorderWidth/2,this._gfxBorderWidth/2,c-this._gfxBorderWidth,a-this._gfxBorderWidth,d)}b.setRoundRectLayout(this._backgroundShape,this._gfxBorderWidth/2,this._gfxBorderWidth/2,c-this._gfxBorderWidth,a-this._gfxBorderWidth,d)},_renderIndicatorSelection:function(){var k=org.eclipse.rwt.GraphicsUtil;var c=this._getIndicatorVirtualPosition();var g=Math.max(c,0);var b=this._getIndicatorLength(c);if(b>0){var f=this._getIndicatorRadii(g,b);var h=g;var i=b;if(g+b==this._getIndicatorFullLength()){i+=this._gfxBorderWidth/2}else{i+=this._separatorWidth}if(h==0){h+=this._gfxBorderWidth/2;i+=this._gfxBorderWidth/2}else{h+=this._gfxBorderWidth}var e=this._isVertical();var a=e?this.getInnerWidth()-this._gfxBorderWidth:i;var m=e?i:this.getInnerHeight()-this._gfxBorderWidth;var l=e?this.getInnerHeight()-(h+i):this._gfxBorderWidth/2;var d=e?this._gfxBorderWidth/2:h;var j=this._indicatorShape;k.setDisplay(this._indicatorShape,true);k.setRoundRectLayout(j,d,l,a,m,f)}else{k.setDisplay(this._indicatorShape,false)}if(this._useSeparator){this._renderSeparator(g,b)}},_renderSeparator:function(d,b){var i=org.eclipse.rwt.GraphicsUtil;var g=b+d==this._getIndicatorFullLength();if(b==0){i.setDisplay(this._separatorEndShape,false);if(this._isIndeterminate()){i.setDisplay(this._separatorStartShape,false)}}else{i.setDisplay(this._separatorEndShape,!g);if(this._isIndeterminate()){i.setDisplay(this._separatorStartShape,d!=0)}var e=d+this._gfxBorderWidth-this._separatorWidth;var f=b+2*this._separatorWidth;if(this._isVertical()){var c=this._gfxBorderWidth;var j=this.getInnerHeight()-(f+e);var a=this.getInnerWidth()-2*this._gfxBorderWidth;var k=this._separatorWidth;var h=this._separatorEndShape;if(!g){i.setRectBounds(h,c,j,a,k)}if(d!=0){j=this.getInnerHeight()-e-this._separatorWidth;h=this._separatorStartShape;i.setRectBounds(h,c,j,a,k)}}else{var c=e+f-this._separatorWidth;var j=this._gfxBorderWidth;var a=this._separatorWidth;var k=this.getInnerHeight()-2*this._gfxBorderWidth;var h=this._separatorEndShape;if(!g){i.setRectBounds(h,c,j,a,k)}if(d!=0){c=e;h=this._separatorStartShape;i.setRectBounds(h,c,j,a,k)}}}},_getIndicatorLength:function(c){var a=this._getIndicatorVirtualLength();var e=this._getIndicatorFullLength();if(this._isIndeterminate()){if(c<0){a+=c}if((c+a)>e){a=e-c}}else{if(this._useBorderShape){var d=this._getIndicatorMinSafeLength();var b=this._getIndicatorMaxSafeLength();if(a<d){if(a>0){a=d}else{a=0}}if(a>b&&a<e){a=b}}}return Math.round(a)},_getIndicatorVirtualLength:function(){var b;if(this._isIndeterminate()){b=org.eclipse.swt.widgets.ProgressBar.UNDETERMINED_SIZE}else{var d=this._getIndicatorFullLength();var c=this._selection-this._minimum;var a=this._maximum-this._minimum;b=(c/a)*d}return b},_getIndicatorVirtualPosition:function(){var a=0;if(this._isIndeterminate()){a=this._computeNextSaveIndicatorPosition()}return a},_computeNextSaveIndicatorPosition:function(){var e=org.eclipse.swt.widgets.ProgressBar.UNDETERMINED_SIZE;var f=this._getIndicatorFullLength();var a=this._indicatorVirtualPosition+2;if(this._useBorderShape){var b=this._getIndicatorMinSafeLength();var d=this._getIndicatorMaxSafeLength();var c=a+e;if(c>0&&c<b){a=b-e}if(a>0&&a<b){a=b}c=a+e;if(c>d&&c<f){a=f-e}if(a>d){a=-e}}else{if(a>=f){a=-e}}this._indicatorVirtualPosition=a;return a},_getIndicatorRadii:function(b,d){var a=[0,0,0,0];if(this._useBorderShape&&d>0){var f=this.getBorder().getRadii();var c=b+d;var e=this._getIndicatorFullLength();if(this._isVertical()){if(b==0){a[2]=f[2];a[3]=f[3]}if(c==e){a[0]=f[0];a[1]=f[1]}}else{if(b==0){a[0]=f[0];a[3]=f[3]}if(c==e){a[1]=f[1];a[2]=f[2]}}}return a},_getIndicatorFullLength:function(){return this._isVertical()?this.getInnerHeight()-2*this._gfxBorderWidth:this.getInnerWidth()-2*this._gfxBorderWidth},_getIndicatorMinSafeLength:function(){var b=this.getBorder().getRadii();var a=this._isVertical()?Math.max(b[2],b[3]):Math.max(b[0],b[3]);a+=this._separatorWidth;a-=Math.floor(this._gfxBorderWidth/2);return a},_getIndicatorMaxSafeLength:function(){var c=this.getBorder().getRadii();var b=this._getIndicatorFullLength();var a=this._isVertical()?b-Math.max(c[0],c[1]):b-Math.max(c[1],c[2]);a-=this._separatorWidth;a+=Math.floor(this._gfxBorderWidth/2);return a}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.ProgressBar",{factory:function(b){var a=new org.eclipse.swt.widgets.ProgressBar();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties([$[238],$[272],$[24],"state"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({backgroundImage:function(b,a){b.setBackgroundImageSized(a)}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.swt.widgets.Link",{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.setAppearance("link");this._text="";this._hasSelectionListener=false;this._hyperlinksHaveListeners=false;this._readyToSendChanges=true;this._focusedLinkIndex=-1;this._linksCount=0;this._link=new qx.ui.embed.HtmlEmbed();this._link.setAppearance("link-text");this.add(this._link);this.setSelectable(false);this.setHideFocus(true);this.__onMouseDown=qx.lang.Function.bindEvent(this._onMouseDown,this);this.__onKeyDown=qx.lang.Function.bindEvent(this._onKeyDown,this);this.addEventListener($[44],this._onAppear,this);this.addEventListener($[180],this._onChangeEnabled,this);this.addEventListener($[4],this._onKeyPress);this.addEventListener($[104],this._onFocusOut);this._link.addEventListener($[289],this._onChangeHtml,this)},destruct:function(){this._removeEventListeners();delete this.__onMouseDown;delete this.__onKeyDown;this.removeEventListener($[44],this._onAppear,this);this.removeEventListener($[180],this._onChangeEnabled,this);this.removeEventListener($[4],this._onKeyPress);this.removeEventListener($[104],this._onFocusOut);this._link.removeEventListener($[289],this._onChangeHtml,this);this._link.dispose()},members:{_onAppear:function(a){this._link.setTabIndex(null);this._link.setHideFocus(true);this._applyHyperlinksStyleProperties();this._addEventListeners()},_onChangeHtml:function(a){this._applyHyperlinksStyleProperties();this._addEventListeners()},_applyTextColor:function(b,a){arguments.callee.base.call(this,b,a);this._applyHyperlinksStyleProperties()},_onChangeEnabled:function(a){this._applyHyperlinksStyleProperties();this._changeHyperlinksTabIndexProperty()},_getStates:function(){if(!this.__states){this.__states={}}return this.__states},addState:function(a){arguments.callee.base.call(this,a);this._link.addState(a)},removeState:function(a){arguments.callee.base.call(this,a);this._link.removeState(a)},setHasSelectionListener:function(a){this._hasSelectionListener=a},addText:function(a){this._text+=a},addLink:function(b,a){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this)+"#"+a;this._text+='<span tabIndex="1" ';this._text+='style="';this._text+="text-decoration:underline; ";this._text+='" ';this._text+='id="'+c+'"';this._text+=">";this._text+=b;this._text+="</span>";this._linksCount++},applyText:function(){this._link.setHtml(this._text);if(this._linksCount===0){this.setTabIndex(null)}else{this.setTabIndex(1)}},clear:function(){this._removeEventListeners();this._text="";this._linksCount=0;this._focusedLinkIndex=-1},_applyHyperlinksStyleProperties:function(){var e=new org.eclipse.swt.theme.ThemeValues(this._getStates());var b=e.getCssColor($[427],$[65]);var a=e.getCssShadow($[427],"text-shadow");e.dispose();var c=this._getHyperlinkElements();for(var d=0;d<c.length;d++){org.eclipse.rwt.HtmlUtil.setStyleProperty(c[d],$[65],b);org.eclipse.rwt.HtmlUtil.setTextShadow(c[d],a);if(this.isEnabled()){c[d].style.cursor=$[133]}else{c[d].style.cursor=$[66]}}},_changeHyperlinksTabIndexProperty:function(){var a=this._getHyperlinkElements();for(var b=0;b<a.length;b++){if(this.isEnabled()){a[b].tabIndex="1"}else{a[b].tabIndex="-1"}}},_addEventListeners:function(){var a=this._getHyperlinkElements();if(a.length>0&&!this._hyperlinksHaveListeners){for(var b=0;b<a.length;b++){qx.html.EventRegistration.addEventListener(a[b],$[1],this.__onMouseDown);qx.html.EventRegistration.addEventListener(a[b],$[10],this.__onKeyDown)}this._hyperlinksHaveListeners=true}},_removeEventListeners:function(){var a=this._getHyperlinkElements();if(a.length>0&&this._hyperlinksHaveListeners){for(var b=0;b<a.length;b++){qx.html.EventRegistration.removeEventListener(a[b],$[1],this.__onMouseDown);qx.html.EventRegistration.removeEventListener(a[b],$[10],this.__onKeyDown)}this._hyperlinksHaveListeners=false}},_onMouseDown:function(a){var c=this._getEventTarget(a);var b=this._getLinkIndex(c);this._setFocusedLink(b);var d=this._isLeftMouseButtonPressed(a);if(this.isEnabled()&&d&&this._readyToSendChanges){this._readyToSendChanges=false;qx.client.Timer.once(function(){this._sendChanges(b)},this,org.eclipse.swt.EventUtil.DOUBLE_CLICK_TIME)}},_isLeftMouseButtonPressed:function(a){var b;if(a.which){b=(a.which===1)}else{if(a.button){if(org.eclipse.rwt.Client.isMshtml()){b=(a.button===1)}else{b=(a.button===0)}}}return b},_onKeyDown:function(a){if(this.isEnabled()&&a.keyCode===13){var c=this._getEventTarget(a);var b=this._getLinkIndex(c);this._sendChanges(b)}},_getLinkIndex:function(b){var c=b.id;var a=c.substr(c.lastIndexOf("#")+1);return parseInt(a,10)},_getEventTarget:function(a){var b;if(org.eclipse.rwt.Client.isMshtml()){b=window.event.srcElement}else{b=a.target}return b},_ontabfocus:function(){if(this._focusedLinkIndex===-1&&this._linksCount>0){this._setFocusedLink(0)}},_onKeyPress:function(a){if(this.isFocused()&&a.getKeyIdentifier()==="Tab"&&this._linksCount>0){var b=this._focusedLinkIndex;if(!a.isShiftPressed()&&b>=0&&b<this._linksCount-1){a.stopPropagation();a.preventDefault();this._setFocusedLink(b+1)}else{if(!a.isShiftPressed()&&b===-1){a.stopPropagation();a.preventDefault();this._setFocusedLink(0)}else{if(a.isShiftPressed()&&b>0&&b<=this._linksCount-1){a.stopPropagation();a.preventDefault();this._setFocusedLink(b-1)}}}}},_onFocusOut:function(a){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&&b<c.length){a=c[b]}return a},_getHyperlinkElements:function(){var a;var b=this.getElement();if(b){a=b.getElementsByTagName("span")}else{a=[]}return a},_sendChanges:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();if(this._hasSelectionListener){b.addEvent($[69],c);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();b.addEvent("org.eclipse.swt.events.widgetSelected.index",a);b.send()}}this._readyToSendChanges=true}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Link",{factory:function(b){var a=new org.eclipse.swt.widgets.Link();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["text"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({text:function(e,d){var b=org.eclipse.rwt.protocol.EncodingUtil;e.clear();for(var c=0;c<d.length;c++){var f=b.escapeText(d[c][0],false);f=b.replaceNewLines(f,$[107]);var a=d[c][1];if(a!==null){e.addLink(f,a)}else{e.addText(f)}}e.applyText()}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[24]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.swt.widgets.Scrollable",{extend:qx.ui.layout.CanvasLayout,construct:function(a){arguments.callee.base.call(this);this._clientArea=a;this._horzScrollBar=new org.eclipse.rwt.widgets.ScrollBar(true);this._vertScrollBar=new org.eclipse.rwt.widgets.ScrollBar(false);this._blockScrolling=false;this._internalChangeFlag=false;this.add(this._clientArea);this.add(this._horzScrollBar);this.add(this._vertScrollBar);this._configureScrollBars();this._configureClientArea();this.__onscroll=qx.lang.Function.bindEvent(this._onscroll,this)},destruct:function(){var b=this._clientArea._getTargetNode();if(b){var a=qx.html.EventRegistration;a.removeEventListener(b,$[12],this.__onscroll);delete this.__onscroll}this._clientArea=null;this._horzScrollBar=null;this._vertScrollBar=null},events:{userScroll:$[3]},statics:{_nativeWidth:null,getNativeScrollBarWidth:function(){if(this._nativeWidth===null){var a=document.createElement("div");a.style.width="100px";a.style.height="100px";a.style.overflow=$[12];a.style.visibility=$[13];document.body.appendChild(a);this._nativeWidth=a.offsetWidth-a.clientWidth;document.body.removeChild(a)}return this._nativeWidth}},members:{setScrollBarsVisible:function(a,b){this._horzScrollBar.setDisplay(a);this._vertScrollBar.setDisplay(b);var c=$[13];if(a&&b){c=$[12]}else{if(a){c=$[86]}else{if(b){c=$[85]}}}this._clientArea.setOverflow(c);this._layoutX();this._layoutY()},setHBarSelection:function(a){this._internalChangeFlag=true;this._horzScrollBar.setValue(a);this._internalChangeFlag=false},setVBarSelection:function(a){this._internalChangeFlag=true;this._vertScrollBar.setValue(a);this._internalChangeFlag=false},setBlockScrolling:function(a){this._blockScrolling=a},_configureClientArea:function(){this._clientArea.setOverflow($[12]);this._clientArea.setLeft(0);this._clientArea.setTop(0);this._clientArea.addEventListener($[84],this._onClientCreate,this);this._clientArea.addEventListener($[44],this._onClientAppear,this);this._clientArea._layoutPost=qx.lang.Function.bindEvent(this._onClientLayout,this)},_configureScrollBars:function(){var a=function(b){b.stopPropagation()};this._horzScrollBar.setLeft(0);this._horzScrollBar.addEventListener($[79],a);this._vertScrollBar.setTop(0);this._vertScrollBar.addEventListener($[79],a);this._horzScrollBar.addEventListener($[109],this._onHorzScrollBarChangeValue,this);this._vertScrollBar.addEventListener($[109],this._onVertScrollBarChangeValue,this)},_applyWidth:function(b,a){arguments.callee.base.call(this,b,a);this._layoutX()},_applyHeight:function(b,a){arguments.callee.base.call(this,b,a);this._layoutY()},_applyBorder:function(b,a){arguments.callee.base.call(this,b,a);this._layoutX();this._layoutY()},_layoutX:function(){var a=this.getWidth()-this.getFrameWidth();if(this._vertScrollBar.getDisplay()){a-=this._vertScrollBar.getWidth()}this._clientArea.setWidth(a);this._vertScrollBar.setLeft(a);this._horzScrollBar.setWidth(a)},_layoutY:function(){var a=this.getHeight()-this.getFrameHeight();if(this._horzScrollBar.getDisplay()){a-=this._horzScrollBar.getHeight()}this._clientArea.setHeight(a);this._vertScrollBar.setHeight(a);this._horzScrollBar.setTop(a)},_onClientCreate:function(b){this._clientArea.prepareEnhancedBorder();this._clientArea.setContainerOverflow(false);var c=this._clientArea._getTargetNode();var a=qx.html.EventRegistration;a.addEventListener(c,$[12],this.__onscroll);qx.html.Scroll.disableScrolling(this._clientArea.getElement())},_onClientLayout:qx.core.Variant.select($[0],{"default":function(){var d=org.eclipse.swt.widgets.Scrollable.getNativeScrollBarWidth();var e=this._clientArea._getTargetNode();var c=this._clientArea.getElement();var f=this._clientArea.getOverflow();var b=parseInt(c.style.width,10);var a=parseInt(c.style.height,10);if(f===$[12]||f===$[85]){b+=d}if(f===$[12]||f===$[86]){a+=d}e.style.width=b+"px";e.style.height=a+"px"},newmshtml:function(){var d=org.eclipse.swt.widgets.Scrollable.getNativeScrollBarWidth();var e=this._clientArea._getTargetNode();var c=this._clientArea.getElement();var f=this._clientArea.getOverflow();var b=parseInt(c.style.width,10);var a=parseInt(c.style.height,10);if(f===$[12]||f===$[85]){b+=(2*d)}if(f===$[12]||f===$[86]){a+=(2*d)}e.style.width=b+"px";e.style.height=a+"px"}}),_onHorzScrollBarChangeValue:function(){if(this._isCreated){this._syncClientArea(true,false)}if(!this._internalChangeFlag){this.createDispatchEvent($[347])}},_onVertScrollBarChangeValue:function(){if(this._isCreated){this._syncClientArea(false,true)}if(!this._internalChangeFlag){this.createDispatchEvent($[347])}},_onClientAppear:function(){this._internalChangeFlag=true;this._syncClientArea(true,true);this._internalChangeFlag=false},_onscroll:function(a){if(!this._internalChangeFlag){org.eclipse.rwt.EventHandlerUtil.stopDomEvent(a);var c=this._blockScrolling||!this._horzScrollBar.getDisplay();var b=this._blockScrolling||!this._vertScrollBar.getDisplay();this._internalChangeFlag=true;this._syncClientArea(c,b);this._internalChangeFlag=false;this._syncScrollBars()}},_syncClientArea:function(d,a){if(d){var c=this._horzScrollBar.getValue();if(this._clientArea.getScrollLeft()!==c){this._clientArea.setScrollLeft(c)}}if(a){var b=this._vertScrollBar.getValue();if(this._clientArea.getScrollTop()!==b){this._clientArea.setScrollTop(b)}}},_syncScrollBars:function(){var b=this._clientArea.getScrollLeft();this._horzScrollBar.setValue(b);var a=this._clientArea.getScrollTop();this._vertScrollBar.setValue(a)}}});
qx.Class.define("org.eclipse.swt.custom.ScrolledComposite",{extend:org.eclipse.swt.widgets.Scrollable,construct:function(){arguments.callee.base.call(this,new qx.ui.layout.CanvasLayout());this._clientArea.addEventListener($[47],this._onMouseWheel,this);this._clientArea.addEventListener($[4],this._onKeyPress,this);if(org.eclipse.rwt.Client.supportsTouch()){this._clientArea.addEventListener($[1],this._onTouch,this)}this.addEventListener($[347],this._onUserScroll);this._content=null;this._hasSelectionListener=false;this._requestTimerRunning=false;this._showFocusedControl=false;this._focusRoot=null;this.addEventListener($[171],this._onChangeParent,this);this.setAppearance("scrolledcomposite")},members:{setShowFocusedControl:function(a){this._showFocusedControl=a},setHasSelectionListener:function(a){this._hasSelectionListener=a},setContent:function(a){if(this._content!=null){this._content.removeEventListener($[171],this._onContentRemove,this);this._content.removeEventListener($[63],this._onContentResize,this);this._content.removeEventListener($[71],this._onContentResize,this);this._clientArea.remove(this._content)}this._content=a;this._onContentResize();if(this._content!=null){this._clientArea.add(this._content);this._content.addEventListener($[171],this._onContentRemove,this);this._content.addEventListener($[63],this._onContentResize,this);this._content.addEventListener($[71],this._onContentResize,this)}},_onContentRemove:function(){this.setContent(null)},_onContentResize:function(){if(this._content!==null&&typeof this._content.getWidth()===$[62]&&typeof this._content.getHeight()===$[62]){var b=this._content.getWidth();var a=this._content.getHeight();this._horzScrollBar.setMaximum(b);this._vertScrollBar.setMaximum(a)}},_onChangeParent:function(a){if(this._focusRoot!=null){this._focusRoot.removeEventListener($[194],this._onChangeFocusedChild,this)}this._focusRoot=this.getFocusRoot();if(this._focusRoot!=null){this._focusRoot.addEventListener($[194],this._onChangeFocusedChild,this)}},_onMouseWheel:function(a){this.setBlockScrolling(false)},_onTouch:function(a){this.setBlockScrolling(false)},_onKeyPress:function(a){switch(a.getKeyIdentifier()){case"Left":case"Up":case $[39]:case"Down":case $[42]:case $[43]:case"End":case"Home":this.setBlockScrolling(false);a.stopPropagation();break}},_onUserScroll:function(){if(!this._requestTimerRunning){this._requestTimerRunning=true;qx.client.Timer.once(this._sendChanges,this,500)}},_onChangeFocusedChild:function(a){var b=a.getValue();this.setBlockScrolling(!this._showFocusedControl&&b!==this)},_sendChanges:function(){if(!org.eclipse.swt.EventUtil.getSuspended()&&this.isCreated()){var b=org.eclipse.swt.WidgetManager.getInstance();var a=org.eclipse.swt.Request.getInstance();var e=b.findIdByWidget(this);var d=this._clientArea.getScrollLeft();a.addParameter(e+".horizontalBar.selection",d);var c=this._clientArea.getScrollTop();a.addParameter(e+".verticalBar.selection",c);if(this._hasSelectionListener){a.send()}this._requestTimerRunning=false}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.ScrolledComposite",{factory:function(b){var a=new org.eclipse.swt.custom.ScrolledComposite();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["origin",$[88],"showFocusedControl",$[321]]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({bounds:function(b,a){org.eclipse.rwt.protocol.AdapterUtil.getControlPropertyHandler($[117])(b,a);b.setClipWidth(a[2]);b.setClipHeight(a[3])},origin:function(b,a){b.setHBarSelection(a[0]);b.setVBarSelection(a[1])},content:function(b,a){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(a,function(c){b.setContent(c)})},scrollBarsVisible:function(b,a){b.setScrollBarsVisible(a[0],a[1])}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[432]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({scrollBarsSelection:function(b,a){b.setHasSelectionListener(a)}}),methods:[]});
qx.Class.define("org.eclipse.rwt.widgets.ToolBar",{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this._hoverItem=null;this.setAppearance("toolbar");this.setOverflow($[13]);this.initTabIndex();this.addEventListener($[64],this._onFocus);this.addEventListener("blur",this._onBlur);this.addEventListener($[6],this._onMouseOver);this.addEventListener($[4],this._onKeyPress);this.addEventListener($[10],this._onKeyDown);this.addEventListener($[40],this._onKeyUp)},properties:{tabIndex:{refine:true,init:1}},members:{_isRelevantEvent:function(a){var b=a.getTarget();return this._isToolItem(b)||b===this},_isToolItem:function(a){return a instanceof org.eclipse.rwt.widgets.ToolItem&&a.getParent()===this},_onMouseOver:function(a){var b=a.getTarget();if(this._hoverItem!=null&&this._hoverItem!=b){this._hoverItem.removeState("over");this._hoverItem=null}if(this._isToolItem(b)){this._hoverItem=b;this._hoverItem.addState("over")}},_onFocus:function(a){if(this._hoverItem==null){this._hoverItem=this.getFirstChild()}if(this._hoverItem!=null){this._hoverItem.addState("over")}},_onBlur:function(a){if(this._hoverItem!=null){this._hoverItem.removeState("over")}},_onKeyPress:function(a){if(this._isRelevantEvent(a)){switch(a.getKeyIdentifier()){case"Left":this._hoverNext(true);break;case $[39]:this._hoverNext(false);break}}},_onKeyDown:function(a){if(this._hoverItem!=null&&this._isRelevantEvent(a)){this._hoverItem._onKeyDown(a)}},_onKeyUp:function(a){if(this._hoverItem!=null&&this._isRelevantEvent(a)){this._hoverItem._onKeyUp(a)}},_hoverNext:function(a){if(this._hoverItem!=null){this._hoverItem.removeState("over");do{if(a){this._hoverItem=this._hoverItem.getPreviousSibling();if(this._hoverItem==null){this._hoverItem=this.getLastChild()}}else{this._hoverItem=this._hoverItem.getNextSibling();if(this._hoverItem==null){this._hoverItem=this.getFirstChild()}}}while(!(this._isToolItem(this._hoverItem)&&this._hoverItem.isEnabled()));this._hoverItem.addState("over")}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.ToolBar",{factory:function(b){var a=new org.eclipse.rwt.widgets.ToolBar();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties([]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.ToolItem",{factory:function(b){var d=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(b.style);var c=$[298];if(d.PUSH){c="push"}else{if(d.CHECK){c="check"}else{if(d.RADIO){c=$[122]}else{if(d.DROP_DOWN){c="dropDown"}}}}var a;org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(b.parent,function(e){if(c===$[298]){a=new org.eclipse.rwt.widgets.ToolSeparator(e.hasState($[155]),e.hasState($[220]))}else{a=new org.eclipse.rwt.widgets.ToolItem(c);a.setNoRadioGroup(e.hasState($[292]))}e.addAt(a,b.index)});org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getWidgetDestructor(),properties:[$[117],$[209],$[241],$[98],$[110],"text",$[18],"hotImage","control",$[24]],propertyHandler:{bounds:org.eclipse.rwt.protocol.AdapterUtil.getControlPropertyHandler($[117]),visible:function(b,a){b.setVisibility(a)},toolTip:org.eclipse.rwt.protocol.AdapterUtil.getControlPropertyHandler($[110]),text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,true);c.setText(d)},image:function(b,a){if(a===null){b.setImage(null)}else{b.setImage(a[0],a[1],a[2])}},hotImage:function(b,a){if(a===null){b.setHotImage(null)}else{b.setHotImage(a[0],a[1],a[2])}},control:function(b,a){b.setLineVisible(a===null)}},listeners:[$[24]],listenerHandler:{},methods:[]});
qx.Class.define("org.eclipse.swt.widgets.Scale",{extend:qx.ui.layout.CanvasLayout,construct:function(a){arguments.callee.base.call(this);this.setAppearance("scale");this._horizontal=a;this._hasSelectionListener=false;this._readyToSendChanges=true;this._selection=0;this._minimum=0;this._maximum=100;this._increment=1;this._pageIncrement=10;this._pxStep=1.34;this._line=new qx.ui.basic.Image();if(this._horizontal){this._line.addState(org.eclipse.swt.widgets.Scale.STATE_HORIZONTAL)}this._line.setAppearance("scale-line");this._line.setResizeToInner(true);this._line.addEventListener($[1],this._onLineMouseDown,this);this.add(this._line);this._thumb=new org.eclipse.rwt.widgets.BasicButton("push",true);if(this._horizontal){this._thumb.addState(org.eclipse.swt.widgets.Scale.STATE_HORIZONTAL)}this._thumb.setAppearance($[449]);this._thumb.addEventListener($[1],this._onThumbMouseDown,this);this._thumb.addEventListener($[34],this._onThumbMouseMove,this);this._thumb.addEventListener($[5],this._onThumbMouseUp,this);org.eclipse.swt.WidgetUtil.fixIEBoxHeight(this._thumb);this.add(this._thumb);this._thumbOffset=0;if(this._horizontal){this.addEventListener($[63],this._onChangeWidth,this)}else{this.addEventListener($[71],this._onChangeHeight,this)}this.addEventListener($[49],this._onContextMenu,this);this.addEventListener($[4],this._onKeyPress,this);this.addEventListener($[47],this._onMouseWheel,this)},destruct:function(){this._line.removeEventListener($[1],this._onLineMouseDown,this);this._thumb.removeEventListener($[1],this._onThumbMouseDown,this);this._thumb.removeEventListener($[34],this._onThumbMouseMove,this);this._thumb.removeEventListener($[5],this._onThumbMouseUp,this);if(this._horizontal){this.removeEventListener($[63],this._onChangeWidth,this)}else{this.removeEventListener($[71],this._onChangeHeight,this)}this.removeEventListener($[49],this._onContextMenu,this);this.removeEventListener($[4],this._onKeyPress,this);this.removeEventListener($[47],this._onMouseWheel,this);this._disposeObjects("_line","_thumb");this._thumb=null},events:{selectionChanged:$[3],minimumChanged:$[3],maximumChanged:$[3]},statics:{STATE_HORIZONTAL:$[41],PADDING:8,SCALE_LINE_OFFSET:9,THUMB_OFFSET:9,HALF_THUMB:5,_isNoModifierPressed:function(a){return !a.isCtrlPressed()&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isMetaPressed()}},members:{_onChangeWidth:function(a){this._line.setWidth(this.getWidth()-2*org.eclipse.swt.widgets.Scale.PADDING);this._updateStep();this._updateThumbPosition()},_onChangeHeight:function(a){this._line.setHeight(this.getHeight()-2*org.eclipse.swt.widgets.Scale.PADDING);this._updateStep();this._updateThumbPosition()},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_onKeyPress:function(a){var c=a.getKeyIdentifier();var b;if(org.eclipse.swt.widgets.Scale._isNoModifierPressed(a)){switch(c){case"Left":b=this._selection-this._increment;a.preventDefault();a.stopPropagation();break;case"Down":if(this._horizontal){b=this._selection-this._increment}else{b=this._selection+this._increment}a.preventDefault();a.stopPropagation();break;case $[39]:b=this._selection+this._increment;a.preventDefault();a.stopPropagation();break;case"Up":if(this._horizontal){b=this._selection+this._increment}else{b=this._selection-this._increment}a.preventDefault();a.stopPropagation();break;case"Home":b=this._minimum;a.preventDefault();a.stopPropagation();break;case"End":b=this._maximum;a.preventDefault();a.stopPropagation();break;case $[43]:if(this._horizontal){b=this._selection-this._pageIncrement}else{b=this._selection+this._pageIncrement}a.preventDefault();a.stopPropagation();break;case $[42]:if(this._horizontal){b=this._selection+this._pageIncrement}else{b=this._selection-this._pageIncrement}a.preventDefault();a.stopPropagation();break}if(b!=undefined){this.setSelection(b);this._scheduleSendChanges()}}},_onMouseWheel:function(a){if(this.getFocused()){a.preventDefault();a.stopPropagation();var b=Math.round(a.getWheelDelta());this.setSelection(this._selection-b);this._scheduleSendChanges()}},_onLineMouseDown:function(b){var d;var a;var c;if(b.isLeftButtonPressed()){if(this._horizontal){d=this._thumb.getLeft()+org.eclipse.swt.widgets.Scale.HALF_THUMB;a=b.getPageX()-qx.bom.element.Location.getLeft(this.getElement())}else{d=this._thumb.getTop()+org.eclipse.swt.widgets.Scale.HALF_THUMB;a=b.getPageY()-qx.bom.element.Location.getTop(this.getElement())}if(a>d){c=this._selection+this._pageIncrement}else{c=this._selection-this._pageIncrement}this.setSelection(c);this._scheduleSendChanges()}},_onThumbMouseDown:function(b){var a;if(b.isLeftButtonPressed()){if(this._horizontal){a=b.getPageX()-qx.bom.element.Location.getLeft(this.getElement());this._thumbOffset=a-this._thumb.getLeft()}else{a=b.getPageY()-qx.bom.element.Location.getTop(this.getElement());this._thumbOffset=a-this._thumb.getTop()}this._thumb.setCapture(true)}},_onThumbMouseMove:function(b){var a;if(this._thumb.getCapture()){if(this._horizontal){a=b.getPageX()-qx.bom.element.Location.getLeft(this.getElement())}else{a=b.getPageY()-qx.bom.element.Location.getTop(this.getElement())}var c=this._getSelectionFromThumbPosition(a-this._thumbOffset);if(this._selection!=c){this.setSelection(c);this._scheduleSendChanges()}}},_onThumbMouseUp:function(a){this._thumb.setCapture(false)},_updateStep:function(){var a=org.eclipse.swt.widgets.Scale.PADDING+org.eclipse.swt.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=org.eclipse.swt.widgets.Scale.PADDING+this._pxStep*(this._selection-this._minimum);if(this._horizontal){this._thumb.setLeft(a)}else{this._thumb.setTop(a)}},_getSelectionFromThumbPosition:function(a){var b=(a-org.eclipse.swt.widgets.Scale.PADDING)/this._pxStep+this._minimum;return this._normalizeSelection(Math.round(b))},_normalizeSelection:function(b){var a=b;if(b<this._minimum){a=this._minimum}if(b>this._maximum){a=this._maximum}return a},_scheduleSendChanges:function(){if(this._readyToSendChanges){this._readyToSendChanges=false;qx.client.Timer.once(this._sendChanges,this,500)}},_sendChanges:function(){if(!org.eclipse.swt.EventUtil.getSuspended()){var c=org.eclipse.swt.WidgetManager.getInstance();var a=org.eclipse.swt.Request.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+$[147],this._selection);if(this._hasSelectionListener){a.addEvent($[69],b);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();a.send()}this._readyToSendChanges=true}},setHasSelectionListener:function(a){this._hasSelectionListener=a},setSelection:function(a){this._selection=this._normalizeSelection(a);this._updateThumbPosition();this.dispatchSimpleEvent($[286])},setMinimum:function(a){this._minimum=a;this._updateStep();this._updateThumbPosition();this.dispatchSimpleEvent($[496])},setMaximum:function(a){this._maximum=a;this._updateStep();this._updateThumbPosition();this.dispatchSimpleEvent($[487])},setIncrement:function(a){this._increment=a},setPageIncrement:function(a){this._pageIncrement=a},_visualizeFocus:function(){arguments.callee.base.call(this);this._thumb.addState($[75])},_visualizeBlur:function(){arguments.callee.base.call(this);this._thumb.removeState($[75])}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Scale",{factory:function(b){var c=b.style.indexOf($[343])!=-1;var a=new org.eclipse.swt.widgets.Scale(c);org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties([$[238],$[272],$[24],$[283],$[332]]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[24]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.rwt.widgets.ToolSeparator",{extend:qx.ui.layout.CanvasLayout,construct:function(b,a){arguments.callee.base.call(this);this._line=null;this._control=null;this._vertical=a;if(b){this._line=new qx.ui.basic.Terminator();if(a){this._line.addState($[32])}this._line.setAppearance("toolbar-separator-line");this.add(this._line)}this.setStyleProperty($[165],"0px");this.setStyleProperty($[306],"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)}}}});
qx.Class.define("org.eclipse.swt.theme.BorderDefinitions",{type:$[121],statics:{getDefinition:function(a){return this._definitions[a]},_definitions:{inset:{color:[$[20],$[35],$[35],$[20]],innerColor:[$[218],$[141],$[141],$[218]],width:2},thinInset:{color:[$[20],$[35],$[35],$[20]],width:1},outset:{color:[$[141],$[218],$[218],$[141]],innerColor:[$[35],$[20],$[20],$[35]],width:2},thinOutset:{color:[$[35],$[20],$[20],$[35]],width:1},groove:{color:[$[20],$[35],$[35],$[20]],innerColor:[$[35],$[20],$[20],$[35]],width:2},ridge:{color:[$[35],$[20],$[20],$[35]],innerColor:[$[20],$[35],$[35],$[20]],width:2},shadow:{width:1,color:[$[20],$[20],$[20],$[20]]},verticalDivider:{width:[1,0,1,0],color:[$[20],null,$[35],null]},horizontalDivider:{width:[0,1,0,1],color:[null,$[20],null,$[35]]},"separator.shadowin.horizontal.border":{width:[1,0,1,0],color:[$[141],null,$[35]]},"separator.shadowin.vertical.border":{width:[0,1,0,1],color:[null,$[35],null,$[141]]},"separator.shadowout.horizontal.border":{width:[1,0,1,0],color:[$[35],null,$[20],null]},"separator.shadowout.vertical.border":{width:[0,1,0,1],color:[null,$[20],null,$[35]]}}}});
qx.Class.define("org.eclipse.rwt.widgets.BasicList",{extend:org.eclipse.swt.widgets.Scrollable,construct:function(b){arguments.callee.base.call(this,new qx.ui.layout.VerticalBoxLayout());this.setAppearance("list");this.setTabIndex(1);this._manager=new qx.ui.selection.SelectionManager(this._clientArea);this.addEventListener($[6],this._onmouseover);this.addEventListener($[1],this._onmousedown);this.addEventListener($[5],this._onmouseup);this.addEventListener($[4],this._onkeypress);this.addEventListener($[4],this._onkeyinput);this.initOverflow();this.initTabIndex();this._pressedString="";this._lastKeyPress=0;this._itemWidth=0;this._itemHeight=0;this._markupEnabled=false;var a=this.getManager();a.setMultiSelection(b);a.setDragSelection(false);this.addEventListener($[51],this._ondblclick,this)},destruct:function(){this.removeEventListener($[51],this._ondblclick,this);this._disposeObjects($[337])},members:{setMarkupEnabled:function(a){this._markupEnabled=a},getManager:function(){return this._manager},getPreferredWidth:function(){var b=0;var c=this.getItems();for(var d=0;d<c.length;d++){var a=c[d].getPaddingLeft()+c[d].getPaddingRight();var e=c[d].getPreferredBoxWidth()+a;b=Math.max(b,e)}b+=this._vertScrollBar.getWidth();return b},isRelevantEvent:function(a){var b=a.getTarget();while(b!=null&&b!==this){b=b.getParent()}return b===this},getListItemTarget:function(a){while(a!=null&&a.getParent()!=this._clientArea){a=a.getParent()}return a},getSelectedItem:function(){return this._manager.getSelectedItems()[0]||null},getSelectedItems:function(){return this._manager.getSelectedItems()},_onmouseover:function(a){var b=this.getListItemTarget(a.getTarget());if(b){this._manager.handleMouseOver(b,a)}},_onmousedown:function(a){var b=this.getListItemTarget(a.getTarget());if(b){this._manager.handleMouseDown(b,a)}},_onmouseup:function(a){var b=this.getListItemTarget(a.getTarget());if(b){this._manager.handleMouseUp(b,a)}},_onclick:function(a){var b=this.getListItemTarget(a.getTarget());if(b){this._manager.handleClick(b,a)}},_ondblclick:function(a){var b=this.getListItemTarget(a.getTarget());if(b){this._manager.handleDblClick(b,a)}},_onkeypress:function(a){this._manager.handleKeyPress(a)},_onkeyinput:function(d){if(!d.isAltPressed()&&!d.isCtrlPressed()){if(d.getCharCode()!==0){if(((new Date()).valueOf()-this._lastKeyPress)>1000){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,a){var b=this.getItems();if(a==null){a=b.indexOf(this.getSelectedItem());if(a==-1){a=0}}for(var c=a;c<b.length;c++){if(b[c].matchesString(d)){return b[c]}}for(var c=0;c<a;c++){if(b[c].matchesString(d)){return b[c]}}return null},setItems:function(f){var e=this._escapeItems(f);var c=this.getManager();var k=c.getLeadItem();var g=c.getAnchorItem();var a=c.getSelectedItems();var h=this.getItems();for(var d=0;d<e.length;d++){if(d<h.length){h[d].setLabel(e[d])}else{var j=new org.eclipse.rwt.widgets.ListItem();j.addEventListener($[6],this._onListItemMouseOver,this);j.addEventListener($[8],this._onListItemMouseOut,this);j.setWidth(this._itemWidth);j.setHeight(this._itemHeight);j.setContextMenu(this.getContextMenu());j.setTabIndex(null);j.setLabel(e[d]);if(d%2===0){j.addState("even")}if(this._customVariant!==null){j.addState(this._customVariant)}this._clientArea.add(j)}}var b=null;while(this._clientArea.getChildrenLength()>e.length){b=this._clientArea.getLastChild();b.removeEventListener($[6],this._onListItemMouseOver,this);b.removeEventListener($[8],this._onListItemMouseOut,this);b._isDisplayable=true;b.destroy()}c.setSelectedItems(a);c.setLeadItem(k);if(c.getMultiSelection()){c.setAnchorItem(g)}this._updateScrollDimension()},_escapeItems:function(b){var a=b;if(!this._markupEnabled){var c=org.eclipse.rwt.protocol.EncodingUtil;for(var d=0;d<a.length;d++){a[d]=c.replaceNewLines(a[d]," ");a[d]=c.escapeText(a[d],false);a[d]=c.replaceWhiteSpaces(a[d])}}return a},getItems:function(){return this.getManager().getItems()},getItemsCount:function(){return this.getItems().length},getItemIndex:function(a){return this._clientArea.indexOf(a)},selectItem:function(a){if(a==-1){this.getManager().deselectAll()}else{var b=this.getItems()[a];this.getManager().setSelectedItem(b);if(this._clientArea.isCreated()&&this._clientArea.isDisplayable()){this.getManager().scrollItemIntoView(b,true)}}},selectItems:function(a){var c=this.getManager();c.deselectAll();for(var b=0;b<a.length;b++){var d=this.getItems()[a[b]];c.setItemSelected(d,true)}},focusItem:function(b){if(b==-1){this.getManager().setLeadItem(null)}else{var a=this.getItems();this.getManager().setLeadItem(a[b])}},selectAll:function(){if(this.getManager().getMultiSelection()==true){this.getManager().selectAll()}},setItemDimensions:function(d,a){this._itemWidth=d;this._itemHeight=a;var b=this.getItems();for(var c=0;c<b.length;c++){b[c].setWidth(this._itemWidth);b[c].setHeight(this._itemHeight)}this._vertScrollBar.setIncrement(a);this._updateScrollDimension()},_updateScrollDimension:function(){var a=this.getItems().length;this._horzScrollBar.setMaximum(this._itemWidth);this._vertScrollBar.setMaximum(this._itemHeight*a)},addState:function(c){arguments.callee.base.call(this,c);if(c.substr(0,8)==$[36]){var a=this.getItems();for(var b=0;b<a.length;b++){a[b].addState(c)}}},removeState:function(c){arguments.callee.base.call(this,c);if(c.substr(0,8)==$[36]){var a=this.getItems();for(var b=0;b<a.length;b++){a[b].removeState(c)}}},_getSelectionIndices:function(){var c=org.eclipse.swt.WidgetManager.getInstance();var f=c.findIdByWidget(this);var d="";var e=this.getManager().getSelectedItems();for(var b=0;b<e.length;b++){var a=this._clientArea.indexOf(e[b]);if(a>=0){if(d!=""){d+=","}d+=String(a)}}return d},_onListItemMouseOver:function(a){a.getTarget().addState("over")},_onListItemMouseOut:function(a){a.getTarget().removeState("over")}}});
qx.Class.define("org.eclipse.swt.widgets.Combo",{extend:qx.ui.layout.CanvasLayout,construct:function(b){arguments.callee.base.call(this);this._ccombo=b===true;this._hasSelectionListener=false;this._hasModifyListener=false;this._hasVerifyListener=false;this._isModified=false;this._selected=null;this._editable=true;this._dropped=false;this._borderWidth=0;this._selectionStart=0;this._selectionLength=0;this._itemHeight=20;this._visibleItemCount=5;this._field=new org.eclipse.rwt.widgets.BasicText();this._field.setTabIndex(null);this._field.setAllowStretchY(true);this.add(this._field);this._button=new qx.ui.form.Button();this._button.setTabIndex(null);this._button.setHeight("100%");this.add(this._button);this._list=new org.eclipse.rwt.widgets.BasicList(false);this._list.setTabIndex(null);this._list.setDisplay(false);this._manager=this._list.getManager();this._manager.setMultiSelection(false);this._manager.setDragSelection(false);this._manager.scrollItemIntoView=this._scrollItemIntoView;this.setHideFocus(true);var a=qx.ui.core.ClientDocument.getInstance();a.addEventListener($[224],this._onBlur,this);if(this._ccombo){this.setAppearance("ccombo");this._field.setAppearance("ccombo-field");this._button.setAppearance("ccombo-button");this._list.setAppearance("ccombo-list")}else{this.setAppearance("combo");this._field.setAppearance("combo-field");this._button.setAppearance("combo-button");this._list.setAppearance("combo-list")}this.addEventListener($[44],this._onAppear,this);this.addEventListener($[126],this._onFocusIn,this);this.addEventListener("blur",this._onBlur,this);this.addEventListener($[63],this._onChangeSize,this);this.addEventListener($[71],this._onChangeSize,this);this.addEventListener($[49],this._onContextMenu,this);this.addEventListener($[102],this._onChangeFont,this);this.addEventListener($[310],this._onChangeTextColor,this);this.addEventListener($[172],this._onChangeBackgroundColor,this);this.addEventListener($[174],this._onChangeVisibility,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[5],this._onMouseUp,this);this.addEventListener($[16],this._onMouseClick,this);this.addEventListener($[47],this._onMouseWheel,this);this.addEventListener($[6],this._onMouseOver,this);this.addEventListener($[8],this._onMouseOut,this);this.addEventListener($[10],this._onKeyDown,this);this.addEventListener($[4],this._onKeyPress,this);this._field.addEventListener($[4],this._onKeyPress,this);this._field.addEventListener("blur",this._onTextBlur,this);this._field.addEventListener($[89],this._onTextInput,this);this._list.addEventListener($[44],this._onListAppear,this);this._setupCaptureRestore()},destruct:function(){var a=qx.ui.core.ClientDocument.getInstance();a.removeEventListener($[224],this._onBlur,this);this.removeEventListener($[44],this._onAppear,this);this.removeEventListener($[126],this._onFocusIn,this);this.removeEventListener("blur",this._onBlur,this);this.removeEventListener($[63],this._onChangeSize,this);this.removeEventListener($[71],this._onChangeSize,this);this.removeEventListener($[49],this._onContextMenu,this);this.removeEventListener($[102],this._onChangeFont,this);this.removeEventListener($[310],this._onChangeTextColor,this);this.removeEventListener($[172],this._onChangeBackgroundColor,this);this.removeEventListener($[174],this._onChangeVisibility,this);this.removeEventListener($[1],this._onMouseDown,this);this.removeEventListener($[5],this._onMouseUp,this);this.removeEventListener($[16],this._onMouseClick,this);this.removeEventListener($[47],this._onMouseWheel,this);this.removeEventListener($[6],this._onMouseOver,this);this.removeEventListener($[8],this._onMouseOut,this);this.removeEventListener($[10],this._onKeyDown,this);this.removeEventListener($[4],this._onKeyPress,this);this._field.removeEventListener($[4],this._onKeyPress,this);this._field.removeEventListener("blur",this._onTextBlur,this);this._field.removeEventListener($[89],this._onTextInput,this);this._list.removeEventListener($[44],this._onListAppear,this);if(this._list&&!qx.core.Object.inGlobalDispose()){this._list.setParent(null)}this._disposeObjects("_field","_button","_list",$[337],"_selected")},events:{itemsChanged:$[3],selectionChanged:$[3]},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._field.addState(a);this._list.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._field.removeState(a);this._list.removeState(a)}},_onChangeSize:function(a){this._setListBounds()},_onAppear:function(a){if(this.hasState($[155])){this._field.addState($[155]);this._button.addState($[155]);this._list.addState($[155])}if(this.hasState($[111])){this._field.addState($[111]);this._button.addState($[111]);this._list.addState($[111])}this.getTopLevelWidget().add(this._list)},_onFocusIn:function(a){if(this._field.isCreated()&&!org.eclipse.swt.EventUtil.getSuspended()){this._handleSelectionChange()}},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null&&!this._dropped){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_onChangeFont:function(a){var d=a.getValue();this._field.setFont(d);var b=this._list.getItems();for(var c=0;c<b.length;c++){b[c].setFont(d)}},_onChangeTextColor:function(a){var b=a.getValue();this._field.setTextColor(b);this._list.setTextColor(b)},_onChangeBackgroundColor:function(a){var b=a.getValue();if(b!=null){this._list.setBackgroundColor(b)}else{this._list.resetBackgroundColor()}},_onChangeVisibility:function(a){var b=a.getValue();if(!b&&this._dropped){this._toggleListVisibility()}},_applyCursor:function(b,a){arguments.callee.base.call(this,b,a);if(b){this._field.setCursor(b);this._button.setCursor(b);this._list.setCursor(b)}else{this._field.resetCursor();this._button.resetCursor();this._list.resetCursor()}},_visualizeFocus:function(){if(this._field.isCreated()){this._field._visualizeFocus()}if(!this._editable){var b=org.eclipse.rwt.FocusIndicator.getInstance();var a=this._ccombo?"CCombo-FocusIndicator":"Combo-FocusIndicator";b.show(this,a,null)}this.addState($[75])},_ontabfocus:function(){if(this._field.isCreated()){this._field.selectAll()}},_visualizeBlur:function(){if(this._field.isCreated()){this._field._setSelectionLength(0);this._field._visualizeBlur()}if(!this._editable){var a=org.eclipse.rwt.FocusIndicator.getInstance();a.hide(this)}this.removeState($[75])},_onBlur:function(a){if(this._dropped){this._toggleListVisibility()}},_setListBounds:function(){if(this.getElement()){var b=qx.bom.element.Location.get(this.getElement());var d=b.left;var a=b.top;var e=a+this.getHeight();var f=qx.html.Window.getInnerHeight(window);var j=qx.html.Window.getInnerWidth(window);var g=this._list.getPreferredWidth();var i=Math.min(j-d,g);i=Math.max(this.getWidth(),i);var h=this._list.getItemsCount()*this._itemHeight;var c=Math.min(this._getListMaxHeight(),h);c+=this._list.getFrameHeight();if(f<e+c&&a>f-e){e=b.top-c}this._list.setLocation(d,e);this._list.setWidth(i);this._list.setHeight(c);this._list.setItemDimensions(i,this._itemHeight)}},_toggleListVisibility:function(){if(this._list.getItemsCount()){if(this._editable){this._field.setReadOnly(!this._dropped)}if(!this._dropped){this._bringToFront()}this.setCapture(!this._dropped);this._list.setDisplay(!this._dropped);if(this._list.getDisplay()){this._setListBounds()}this._dropped=!this._dropped;if(this._dropped){this._setListSelection(this._selected)}this._updateListScrollBar();this._updateListVisibleRequestParam()}},_updateListScrollBar:function(){if(this._dropped){var a=this._list.getItemsCount()*this._itemHeight;var b=this._getListMaxHeight()<a;this._list.setScrollBarsVisible(false,b)}},_resetListSelection:function(){this._manager.deselectAll();this._manager.setLeadItem(null);this._manager.setAnchorItem(null)},_setListSelection:function(a){this._manager.deselectAll();this._manager.setLeadItem(a);this._manager.setAnchorItem(a);this._manager.setSelectedItem(a)},_onListAppear:function(a){if(this._selected){this._selected.scrollIntoView();this._list._syncScrollBars()}},_bringToFront:function(){var a=this.getTopLevelWidget().getChildren();var b=this._list.getZIndex();for(var d in a){var c=a[d];if(c.getZIndex){if(b<c.getZIndex()){b=c.getZIndex()}}}if(b>this._list.getZIndex()){this._list.setZIndex(b+1)}},_setSelected:function(b){this._selected=b;if(b){var a=b.getLabel().toString();this.setText(this._formatText(a));if(this._field.isCreated()){if(!org.eclipse.swt.EventUtil.getSuspended()){this._field.selectAll();this._handleSelectionChange()}}this._setListSelection(b);this._manager.scrollItemIntoView(b)}else{if(!this._editable){this.setText("")}this._resetListSelection()}this._sendWidgetSelected();this.dispatchSimpleEvent($[286])},_scrollItemIntoView:function(b,a){if(b.isCreated()&&b.isDisplayable()){b.scrollIntoView(a)}},_formatText:function(b){var a=b;a=a.replace(/<[^>]+?>/g,"");a=qx.html.String.unescape(a);return a},_reDispatch:function(b){var a=b.getTarget();if(this._list.contains(a)){a.dispatchEvent(b,false);b.stopPropagation()}},_onMouseDown:function(a){if(a.isLeftButtonPressed()){if(a.getTarget()==this._field){if(!this._editable||this._dropped){this._toggleListVisibility()}}else{if(this._dropped){this._reDispatch(a)}}}},_onMouseClick:function(a){if(a.isLeftButtonPressed()){if(this._button.hasState("over")){this._button.removeState("over")}var b=a.getTarget();if(b instanceof org.eclipse.rwt.widgets.ListItem&&b===this._list.getListItemTarget(b)){this._reDispatch(a);this._toggleListVisibility();this._setSelected(this._manager.getSelectedItem());this.setFocused(true)}else{if(b==this._button||(this._dropped&&b!=this&&b!=this._field&&!this._list.contains(b))){this._toggleListVisibility()}}}},_onMouseUp:function(a){if(!this._dropped){this.setCapture(false)}if(a.getTarget()==this._field&&!org.eclipse.swt.EventUtil.getSuspended()){this._handleSelectionChange()}else{if(this._dropped){this._reDispatch(a)}}},_onMouseWheel:function(a){if(this._dropped){if(!this._list.isRelevantEvent(a)){a.preventDefault();a.stopPropagation()}}else{if(this.getFocused()){a.preventDefault();a.stopPropagation();var c;var b=this._selected;if(b){if(a.getWheelDelta()<0){c=this._manager.getNext(b)}else{c=this._manager.getPrevious(b)}if(c){this._setSelected(c)}}else{if(this._list.getItemsCount()){this._setSelected(this._list.getItems()[0])}}}}},_onMouseOver:function(a){var b=a.getTarget();if(b instanceof org.eclipse.rwt.widgets.ListItem){this._setListSelection(b)}else{if(b==this._button){this._button.addState("over")}}},_onMouseOut:function(a){if(a.getTarget()==this._button){this._button.removeState("over")}},_setupCaptureRestore:function(){var a=this._list._vertScrollBar._thumb;a.addEventListener($[5],this._captureRestore,this)},_captureRestore:function(a){this.setCapture(true)},_onKeyDown:function(a){switch(a.getKeyIdentifier()){case $[54]:if(this._dropped){this._toggleListVisibility();this._setSelected(this._manager.getSelectedItem())}else{if(!a.isShiftPressed()&&!a.isAltPressed()&&!a.isCtrlPressed()&&!a.isMetaPressed()){this._sendWidgetDefaultSelected()}}this.setFocused(true);a.stopPropagation();break;case $[103]:if(this._dropped){this._toggleListVisibility()}this.setFocused(true);a.stopPropagation();break;case"Down":case"Up":if(a.isAltPressed()){this._toggleListVisibility()}case $[42]:case $[43]:if(this._selected){this._list._onkeypress(a);var b=this._manager.getSelectedItem();this._setSelected(b)}else{if(this._list.getItemsCount()){this._setSelected(this._list.getItems()[0])}}break}if(this._field.isCreated()&&!org.eclipse.swt.EventUtil.getSuspended()){this._handleSelectionChange()}},_onKeyPress:function(a){switch(a.getKeyIdentifier()){case $[103]:case"Down":case"Up":case $[42]:case $[43]:a.stopPropagation();break;case"Tab":if(this._dropped){this._toggleListVisibility()}break;case $[39]:if(this._dropped){var b=this._selected?this._manager.getNext(this._selected):this._manager.getFirst();if(b){this._setSelected(b)}}break;case"Left":if(this._dropped){var b=this._selected?this._manager.getPrevious(this._selected):this._manager.getLast();if(b){this._setSelected(b)}}break;case $[54]:a.preventDefault();break}if(this._field.isCreated()&&!org.eclipse.swt.EventUtil.getSuspended()){this._handleSelectionChange()}if(a.getCharCode()!==0){this._onKeyInput(a)}},_onKeyInput:function(a){if((this._dropped||!this._editable)&&!a.isAltPressed()&&!a.isCtrlPressed()){this._list._onkeyinput(a);var b=this._manager.getSelectedItem();if(b!=null){this._setSelected(b)}else{this._setListSelection(this._selected)}}},_onTextInput:function(a){if(this._editable){this._isModified=true;this._selected=null;this._resetListSelection();if(!org.eclipse.swt.EventUtil.getSuspended()){var b=org.eclipse.swt.Request.getInstance();b.addEventListener("send",this._onSend,this);if(this._hasVerifyModifyListener()){qx.client.Timer.once(this._sendModifyText,this,500)}}}},_onTextBlur:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()&&this._isModified){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();b.send()}},_onSend:function(a){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();b.addParameter(c+".text",this._field.getComputedValue());b.removeEventListener("send",this._onSend,this);this._isModified=false;this.setText(this._field.getComputedValue())},_sendModifyText:function(){var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.send();this._isModified=false},_sendWidgetSelected:function(){if(!org.eclipse.swt.EventUtil.getSuspended()){var e=org.eclipse.swt.WidgetManager.getInstance();var b=org.eclipse.swt.Request.getInstance();var d=e.findIdByWidget(this);var c=this._list;var a=this._list.getSelectedItem();b.addParameter(d+".selectedItem",c.getItemIndex(a));if(this._hasSelectionListener||this._hasVerifyModifyListener()){b.addEvent($[69],d);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();b.send()}}},_sendWidgetDefaultSelected:function(){if(!org.eclipse.swt.EventUtil.getSuspended()){var c=org.eclipse.swt.WidgetManager.getInstance();var a=org.eclipse.swt.Request.getInstance();var b=c.findIdByWidget(this);if(this._hasSelectionListener){a.addEvent($[168],b);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();a.send()}}},_updateListVisibleRequestParam:function(){if(!org.eclipse.swt.EventUtil.getSuspended()){var c=org.eclipse.swt.WidgetManager.getInstance();var a=org.eclipse.swt.Request.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+".listVisible",this._list.getDisplay())}},_handleSelectionChange:function(){var c=this._field.getComputedSelection();var f=c[0];if(f===undefined){f=0}var b=c[1]-c[0];if(typeof b==$[7]){b=0}if(this._selectionStart!=f||this._selectionLength!=b){var e=org.eclipse.swt.WidgetManager.getInstance();var d=e.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();this._selectionStart=f;a.addParameter(d+".selectionStart",f);this._selectionLength=b;a.addParameter(d+".selectionLength",b)}},_getListMaxHeight:function(){return this._itemHeight*this._visibleItemCount},setItems:function(a){this._list.setItems(a);this.createDispatchEvent($[450])},setVisibleItemCount:function(a){this._visibleItemCount=a},setItemHeight:function(a){this._itemHeight=a},select:function(b){var a=this._list.getItems();var c=null;if(b>=0&&b<=a.length-1){c=a[b]}this._setSelected(c)},setEditable:function(a){this._editable=a;this._field.setReadOnly(!a);this._field.setCursor(a?null:$[66])},setListVisible:function(a){if(this._list.getDisplay()!=a){this._dropped=!a;this._toggleListVisibility()}},setText:function(a){this._field.setValue(a)},setTextSelection:function(b,a){if(this._field.isCreated()){this._selectionStart=b;this._selectionLength=a;this._field.setSelection(b,b+a)}},setTextLimit:function(a){this._field.setMaxLength(a)},setHasSelectionListener:function(a){this._hasSelectionListener=a},setHasModifyListener:function(a){this._hasModifyListener=a},setHasVerifyListener:function(a){this._hasVerifyListener=a},_hasVerifyModifyListener:function(){return this._hasModifyListener||this._hasVerifyListener},applyObjectId:function(a){arguments.callee.base.call(this,a);if(qx.ui.core.Widget._renderHtmlIds){this._list.applyObjectId(a+"-listbox");this.addEventListener($[450],this._applyListItemIds)}},_applyListItemIds:function(){var a=this._list.getHtmlAttribute("id");var c=this._list.getItems();if(c){for(var b=0;b<c.length;b++){c[b].setHtmlAttribute("id",this._list.getHtmlAttribute("id")+"-listitem-"+b)}}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Combo",{factory:function(b){var a=new org.eclipse.swt.widgets.Combo(b.ccombo);org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["itemHeight","visibleItemCount","items","listVisible","selectionIndex","editable","text",$[24],$[297]]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({selectionIndex:function(b,a){b.select(a)},selection:function(c,b){var d=b[0];var a=b[1]-b[0];c.setTextSelection(d,a)}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[24],"modify","verify"]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.rwt.FocusIndicator",{type:$[37],extend:qx.core.Object,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=$[17];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!=$[7]?h.__states:{};var i=new org.eclipse.swt.theme.ThemeValues(m);var f=i.getCssBorder(b,$[127]);var k=i.getCssFloat(b,$[76]);var j=f instanceof org.eclipse.rwt.Border;var e=i.getCssBoxDimensions(b,"margin");var l=i.getCssBoxDimensions(b,$[176]);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,$[193]);g={backgroundColor:c!=$[7]?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[$[127]];var b=this._frame.style;var f=["Left","Top","Bottom",$[39]];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[$[127]+c+"Width"]=a==null?"0px":a+"px";b[$[127]+c+"Style"]=j==null?"none":j;b[$[127]+c+"Color"]=d==null?"":d}b.backgroundColor=g[$[60]];this._styleFocusIndiactorOpacity(g[$[76]])},_styleFocusIndiactorOpacity:qx.core.Variant.select($[0],{"default":function(c){var b=this._frame.style;var a=c==1?"":c;b.opacity=a;b.KhtmlOpacity=a;b.MozOpacity=a},mshtml:function(c){var b=this._frame.style;var a=c==1?"":"Alpha(Opacity="+(c*100)+")";b.filter=a}}),_layoutFocusIndicator:function(e,d,i){var c=d[$[127]];var a=[];if(d[$[176]]!=null){var g=d[$[176]];a[0]=parseInt(i.style.left)-g[3];a[1]=parseInt(i.style.top)-g[0];a[2]=parseInt(i.style.width)+g[1]+g[3];a[3]=parseInt(i.style.height)+g[2]+g[0]}else{var b=d.margin;e._invalidateBoxWidth();e._invalidateBoxHeight();var h=e.getBoxWidth()-e._cachedBorderLeft-e._cachedBorderRight;var f=e.getBoxHeight()-e._cachedBorderTop-e._cachedBorderBottom;e._invalidateBoxWidth();e._invalidateBoxHeight();a[0]=b[3];a[1]=b[0];a[2]=h-(b[3]+b[1]);a[3]=f-(b[0]+b[2]);a[2]=Math.max(0,a[2]);a[3]=Math.max(0,a[3])}this._frame.style.left=a[0]+"px";this._frame.style.top=a[1]+"px";this._frame.style.width=a[2]+"px";this._frame.style.height=a[3]+"px"}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.GC",{factory:function(a){var b=org.eclipse.rwt.protocol.ObjectManager.getObject(a.parent);return new org.eclipse.swt.graphics.GC(b)},destructor:function(a){a.dispose()},properties:[],propertyHandler:{},listeners:[],listenerHandler:{},methods:["init","draw"],methodHandler:{init:function(b,a){b.init(a.width,a.height,a.font,a.fillStyle,a.strokeStyle)},draw:function(b,a){b.draw(a.operations)}}});
qx.Class.define("org.eclipse.swt.graphics.GC",{extend:qx.core.Object,construct:function(a){arguments.callee.base.call(this);this._control=a;this._control.addEventListener($[84],this._onControlCreate,this);this._vmlCanvas=null;this._canvas=null;this._context=null;this._createCanvas();this._textCanvas=document.createElement("div");this._textCanvas.style.position=$[17];this._textCanvas.style.overflow=$[13];this._textCanvas.style.left="0px";this._textCanvas.style.top="0px";if(this._control.isCreated()){this._addCanvasToDOM()}this._linearGradient=null},destruct:function(){this._control.removeEventListener($[84],this._onControlCreate,this);if(org.eclipse.rwt.Client.isMshtml()){this._control.removeEventListener($[143],this._onCanvasAppear,this)}if(this._control.isCreated()&&!this._control.isDisposed()){this._removeCanvasFromDOM()}this._control=null;this._canvas=null;if(this._context.dispose){this._context.dispose()}this._context=null;this._textCanvas=null},members:{init:qx.core.Variant.select($[0],{mshtml:function(d,a,b,c,e){qx.ui.core.Widget.flushGlobalQueues();this._initTextCanvas(d,a);this._context.clearRect(0,0,d,a);this._initFields(b,c,e)},"default":function(d,a,b,c,e){this._initTextCanvas(d,a);this._canvas.width=d;this._canvas.style.width=d+"px";this._canvas.height=a;this._canvas.style.height=a+"px";this._context.clearRect(0,0,d,a);this._initFields(b,c,e)}}),draw:function(a){for(var c=0;c<a.length;c++){try{var e=a[c][0];switch(e){case"fillStyle":case $[484]:case"globalAlpha":case"lineWidth":case"lineCap":case"lineJoin":case"font":this._setProperty(a[c]);break;case"createLinearGradient":case"addColorStop":case"fillText":case"strokeText":case"ellipse":case"drawImage":this["_"+e](a[c]);break;default:this._context[e].apply(this._context,a[c].slice(1));break}}catch(b){var d="[ "+a[c].join(", ")+" ]";throw new Error("Drawing operation failed: "+d+" :"+b.message)}}},_createCanvas:qx.core.Variant.select($[0],{mshtml:function(){this._vmlCanvas=org.eclipse.rwt.VML.createCanvas();this._canvas=org.eclipse.rwt.VML.getCanvasNode(this._vmlCanvas);this._context=new org.eclipse.rwt.VMLCanvas(this._vmlCanvas);this._control.addEventListener($[143],this._onCanvasAppear,this)},"default":function(){this._canvas=document.createElement("canvas");this._context=this._canvas.getContext("2d")}}),_onControlCreate:function(){this._addCanvasToDOM()},_onCanvasAppear:function(){var a=org.eclipse.rwt.GraphicsUtil;a.handleAppear(this._vmlCanvas)},_addCanvasToDOM:function(){var b=this._control._getTargetNode();var a=b.firstChild;if(a){b.insertBefore(this._canvas,a);b.insertBefore(this._textCanvas,a)}else{b.appendChild(this._canvas);b.appendChild(this._textCanvas)}},_removeCanvasFromDOM:function(){var a=this._control._getTargetNode();this._canvas.parentNode.removeChild(this._canvas);this._textCanvas.parentNode.removeChild(this._textCanvas)},_initTextCanvas:function(b,a){this._textCanvas.width=b;this._textCanvas.style.width=b+"px";this._textCanvas.height=a;this._textCanvas.style.height=a+"px";this._textCanvas.innerHTML=""},_initFields:function(a,b,c){this._context.strokeStyle=qx.util.ColorUtil.rgbToRgbString(c);this._context.fillStyle=qx.util.ColorUtil.rgbToRgbString(b);this._context.globalAlpha=1;this._context.lineWidth=1;this._context.lineCap="butt";this._context.lineJoin="miter";this._context.font=this._toCssFont(a)},_ellipse:qx.core.Variant.select($[0],{mshtml:function(a){this._context[a[0]].apply(this._context,a.slice(1))},"default":function(f){var g=f[1];var e=f[2];var b=f[3];var a=f[4];var i=f[5];var h=f[6];var c=f[7];var d=f[8];if(b>0&&a>0){this._context.save();this._context.translate(g,e);this._context.scale(1,a/b);this._context.arc(0,0,b,h,c,d);this._context.restore()}}}),_setProperty:function(a){var c=a[0];var b=a[1];if(b===$[445]){b=this._linearGradient}else{if(c==="fillStyle"||c===$[484]){b=qx.util.ColorUtil.rgbToRgbString(b)}else{if(c==="font"){b=this._toCssFont(b)}}}this._context[c]=b},_strokeText:function(a){this._fillText(a)},_fillText:function(c){var e=c[0]==="fillText";var f=this._escapeText(c[1],c[2],c[3],c[4]);var a=c[5];var g=c[6];var b=document.createElement("div");var d=b.style;d.position=$[17];d.left=a+"px";d.top=g+"px";d.color=this._context.strokeStyle;if(e){d.backgroundColor=this._context.fillStyle}if(this._context.font!=""){d.font=this._context.font}b.innerHTML=f;this._textCanvas.appendChild(b)},_escapeText:function(f,d,e,a){var b=org.eclipse.rwt.protocol.EncodingUtil;var g=b.escapeText(f,d);var c=e?$[107]:"";g=b.replaceNewLines(g,c);c=a?"&nbsp;&nbsp;&nbsp;&nbsp;":"";g=g.replace(/\t/g,c);return g},_drawImage:function(a){var b=a.slice(1);var f=b.length===3;var e=new Image();e.src=b[0];b[0]=e;if(e.complete||org.eclipse.rwt.Client.isMshtml()){this._context.drawImage.apply(this._context,b)}else{var d=this._context.globalAlpha;var c=this._context;e.onload=function(){c.save();c.globalAlpha=d;c.drawImage.apply(c,b);c.restore()}}},_createLinearGradient:function(a){var b=this._context.createLinearGradient;this._linearGradient=b.apply(this._context,a.slice(1))},_addColorStop:function(a){this._linearGradient.addColorStop(a[1],qx.util.ColorUtil.rgbToRgbString(a[2]))},_toCssFont:function(b){var a="";if(b[3]){a+="italic "}if(b[2]){a+="bold "}a+=b[1]+"px ";a+=b[0].join(",");return a}}});
qx.Class.define("org.eclipse.rwt.VMLCanvas",{extend:qx.core.Object,construct:function(a){this._autoDispose=false;arguments.callee.base.call(this);this._canvas=a;this._stateStack=[];this._currentPath=[];this.strokeStyle="#000000";this.fillStyle="#000000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=10;this.globalAlpha=1},destruct:function(){this._canvas=null},members:{save:function(){var a={};this._copyState(this,a);this._stateStack.push(a)},restore:function(){var a=this._stateStack.pop();this._copyState(a,this)},beginPath:function(){this._currentPath=[]},closePath:function(){this._currentPath.push({type:"close"})},clearRect:function(b,d,c,a){org.eclipse.rwt.VML.clearCanvas(this._canvas)},stroke:function(b){var a=org.eclipse.rwt.VML.createShapeFromContext(this,b);org.eclipse.rwt.VML.addToCanvas(this._canvas,a)},fill:function(){this.stroke(true)},moveTo:function(a,b){this._currentPath.push({type:"moveTo",x:a,y:b})},lineTo:function(a,b){this._currentPath.push({type:"lineTo",x:a,y:b})},quadraticCurveTo:function(c,b,a,d){this._currentPath.push({type:$[431],cp1x:c,cp1y:b,x:a,y:d})},bezierCurveTo:function(c,b,e,d,a,f){this._currentPath.push({type:$[377],cp1x:c,cp1y:b,cp2x:e,cp2y:d,x:a,y:f})},rect:function(b,d,c,a){this.moveTo(b,d);this.lineTo(b+c,d);this.lineTo(b+c,d+a);this.lineTo(b,d+a);this.closePath()},ellipse:function(i,h,b,a,j,f,c,g){if(this._currentPath.length===0){var e=i+Math.cos(f)*b;var d=h+Math.sin(f)*a;this.moveTo(e,d)}this._currentPath.push({type:"arc",anticlockwise:g,centerX:i,centerY:h,radiusX:b,radiusY:a,startAngle:f,endAngle:c})},drawImage:function(){var g=org.eclipse.rwt.VML.createShape($[18]);org.eclipse.rwt.VML.setOpacity(g,this.globalAlpha);var b=arguments[0];if(arguments.length==3){var i=arguments[1];var h=arguments[2];org.eclipse.rwt.VML.setImageData(g,b.src,i,h,b.width,b.height)}else{var f=arguments[1];var e=arguments[2];var c=arguments[3];var k=arguments[4];var i=arguments[5];var h=arguments[6];var j=arguments[7];var a=arguments[8];var d=[e/b.height,(b.width-f-c)/b.width,(b.height-e-k)/b.height,f/b.width];org.eclipse.rwt.VML.setImageData(g,b.src,i,h,j,a,d)}org.eclipse.rwt.VML.addToCanvas(this._canvas,g)},createLinearGradient:function(b,d,a,c){var e=[];e.addColorStop=this._addColorStopFunction;e.horizontal=b!=a;return e},_copyState:function(a,b){b.font=a.font;b.fillStyle=a.fillStyle;b.lineCap=a.lineCap;b.lineJoin=a.lineJoin;b.lineWidth=a.lineWidth;b.miterLimit=a.miterLimit;b.shadowBlur=a.shadowBlur;b.shadowColor=a.shadowColor;b.shadowOffsetX=a.shadowOffsetX;b.shadowOffsetY=a.shadowOffsetY;b.strokeStyle=a.strokeStyle;b.globalAlpha=a.globalAlpha},_addColorStopFunction:function(b,a){this.push([b,a])}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Composite",{factory:function(b){var a=new org.eclipse.swt.widgets.Composite();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties([$[134],$[303]]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({backgroundGradient:org.eclipse.rwt.protocol.AdapterUtil.getBackgroundGradientHandler(),roundedBorder:org.eclipse.rwt.protocol.AdapterUtil.getRoundedBorderHandler()}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.swt.widgets.Composite",{extend:qx.ui.layout.CanvasLayout,include:org.eclipse.rwt.VisibilityAnimationMixin,construct:function(){arguments.callee.base.call(this);this.setAppearance("composite");this.setOverflow(qx.constant.Style.OVERFLOW_HIDDEN);this.setHideFocus(true);this.addEventListener($[6],this._onMouseOver,this);this.addEventListener($[8],this._onMouseOut,this);if(org.eclipse.rwt.Client.isMshtml()){this._fixBackgroundTransparency();this.addEventListener($[172],this._fixBackgroundTransparency,this)}qx.ui.core.Widget.disableScrolling(this)},destruct:function(){this.removeEventListener($[6],this._onMouseOver,this);this.removeEventListener($[8],this._onMouseOut,this)},members:{_onMouseOver:function(a){this.addState("over")},_onMouseOut:function(a){this.removeState("over")},_applyBackgroundImage:qx.core.Variant.select($[0],{mshtml:function(b,a){arguments.callee.base.call(this,b,a);if(b==null){this._fixBackgroundTransparency()}},"default":function(b,a){arguments.callee.base.call(this,b,a)}}),_fixBackgroundTransparency:function(){if(this.getBackgroundColor()==null&&this.getBackgroundImage()==null){this._applyBackgroundImage($[409],null)}}}});
qx.Class.define("org.eclipse.swt.widgets.Sash",{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.setOverflow(null);this.setHtmlProperty($[362],"on");this.addEventListener($[63],this._onChangeSize,this);this.addEventListener($[71],this._onChangeSize,this);this.addEventListener($[6],this._onMouseOver,this);this.addEventListener($[8],this._onMouseOut,this);this._slider=new qx.ui.layout.CanvasLayout();this._slider.setAppearance("sash-slider");this._slider.setVisibility(false);org.eclipse.swt.WidgetUtil.fixIEBoxHeight(this._slider);this.add(this._slider);this._sliderHandle=new qx.ui.layout.CanvasLayout();this._sliderHandle.setStyleProperty($[335],$[440]);this._sliderHandle.setAppearance($[368]);this._sliderHandle.setVisibility(false);org.eclipse.swt.WidgetUtil.fixIEBoxHeight(this._sliderHandle);this.add(this._sliderHandle);this._handle=new qx.ui.layout.CanvasLayout();this._handle.setStyleProperty($[335],$[440]);this._handle.setAppearance($[368]);org.eclipse.swt.WidgetUtil.fixIEBoxHeight(this._handle);this.add(this._handle);this.initOrientation();this._bufferZIndex=null},destruct:function(){this.removeEventListener($[63],this._onChangeSize,this);this.removeEventListener($[71],this._onChangeSize,this);this.removeEventListener($[6],this._onMouseOver,this);this.removeEventListener($[8],this._onMouseOut,this);this._removeStyle(this.getOrientation());this._disposeObjects("_slider","_handle","_sliderHandle")},properties:{appearance:{refine:true,init:"sash"},orientation:{check:[$[41],$[32]],apply:$[386],init:$[41],nullable:true}},members:{_onChangeSize:function(a){this._handle.setWidth(this.getWidth());this._handle.setHeight(this.getHeight())},_onMouseDownX:function(a){if(a.isLeftButtonPressed()){if(this.getEnabled()){this._commonMouseDown();this._dragOffset=a.getPageX();this._minMove=-this.getLeft()-this._frameOffset;this._maxMove=this.getParent().getWidth()-this.getLeft()-this.getWidth()-this._frameOffset}}},_onMouseDownY:function(a){if(a.isLeftButtonPressed()){if(this.getEnabled()){this._commonMouseDown();this._dragOffset=a.getPageY();this._minMove=-this.getTop()-this._frameOffset;this._maxMove=this.getParent().getHeight()-this.getTop()-this.getHeight()-this._frameOffset}}},_commonMouseDown:function(){this.setCapture(true);this.getTopLevelWidget().setGlobalCursor(this.getCursor());this._frameOffset=this.getFrameWidth()/2;this._slider.setLeft(0-this._frameOffset);this._slider.setTop(0-this._frameOffset);this._slider.setWidth(this.getWidth());this._slider.setHeight(this.getHeight());this._sliderHandle.setLeft(0);this._sliderHandle.setTop(0);this._sliderHandle.setWidth(this.getWidth());this._sliderHandle.setHeight(this.getHeight());this._bufferZIndex=this.getZIndex();this.setZIndex(10000000);this._slider.show();this._sliderHandle.show();this._sendWidgetSelected()},_onMouseUpX:function(a){if(this.getCapture()){this._commonMouseUp()}},_onMouseUpY:function(a){if(this.getCapture()){this._commonMouseUp()}},_commonMouseUp:function(){this._slider.hide();this._sliderHandle.hide();this.setCapture(false);this.getTopLevelWidget().setGlobalCursor(null);if(this._bufferZIndex!=null){this.setZIndex(this._bufferZIndex)}var a=org.eclipse.swt.WidgetUtil;a._fakeMouseEvent(this,$[8]);this._sendWidgetSelected()},_onMouseMoveX:function(b){if(this.getCapture()){if(this.getTopLevelWidget().getGlobalCursor()!=this.getCursor()){this.getTopLevelWidget().setGlobalCursor(this.getCursor())}var a=b.getPageX()-this._dragOffset;this._slider.setLeft(this._normalizeMove(a));this._sliderHandle.setLeft(this._normalizeMove(a))}},_onMouseMoveY:function(b){if(this.getCapture()){if(this.getTopLevelWidget().getGlobalCursor()!=this.getCursor()){this.getTopLevelWidget().setGlobalCursor(this.getCursor())}var a=b.getPageY()-this._dragOffset;this._slider.setTop(this._normalizeMove(a));this._sliderHandle.setTop(this._normalizeMove(a))}},_normalizeMove:function(b){var a=b;if(a<this._minMove){a=this._minMove}if(a>this._maxMove){a=this._maxMove}return a},_applyOrientation:function(b,a){this._removeStyle(a);this._setStyle(b)},_setStyle:function(a){if(a==$[41]){this.addEventListener($[1],this._onMouseDownY,this);this.addEventListener($[34],this._onMouseMoveY,this);this.addEventListener($[5],this._onMouseUpY,this);this.addState($[41]);this._handle.addState($[41]);this._sliderHandle.addState($[41])}else{if(a==$[32]){this.addEventListener($[34],this._onMouseMoveX,this);this.addEventListener($[1],this._onMouseDownX,this);this.addEventListener($[5],this._onMouseUpX,this);this.addState($[32]);this._handle.addState($[32]);this._sliderHandle.addState($[32])}}},_removeStyle:function(a){if(a==$[41]){this.removeEventListener($[1],this._onMouseDownY,this);this.removeEventListener($[34],this._onMouseMoveY,this);this.removeEventListener($[5],this._onMouseUpY,this);this.removeState($[41]);this._handle.removeState($[41]);this._sliderHandle.removeState($[41])}else{if(a==$[32]){this.removeEventListener($[1],this._onMouseDownX,this);this.removeEventListener($[34],this._onMouseMoveX,this);this.removeEventListener($[5],this._onMouseUpX,this);this.removeState($[32]);this._handle.removeState($[32]);this._sliderHandle.removeState($[32])}}},_sendWidgetSelected:function(){if(!org.eclipse.swt.EventUtil.getSuspended()){var c=this._slider.getLeft()+this._frameOffset;var a=this._slider.getTop()+this._frameOffset;var e=org.eclipse.swt.WidgetManager.getInstance();var d=e.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();b.addEvent($[69],d);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();b.addParameter(d+$[260],this.getLeft()+c);b.addParameter(d+$[261],this.getTop()+a);b.addParameter(d+$[267],this.getWidth());b.addParameter(d+$[278],this.getHeight());if(this.getCapture()){b.addParameter($[413],"drag")}b.send()}},_onMouseOver:function(a){this.addState("over")},_onMouseOut:function(a){this.removeState("over")}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Sash",{factory:function(c){var a=new org.eclipse.swt.widgets.Sash();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,c.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,c.parent);var b=qx.constant.Layout.ORIENTATION_VERTICAL;if(c.style.indexOf($[343])!=-1){b=qx.constant.Layout.ORIENTATION_HORIZONTAL}a.setOrientation(b);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties([]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Canvas",{factory:function(b){var a=new org.eclipse.swt.widgets.Composite();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties([$[134],$[303]]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({backgroundGradient:org.eclipse.rwt.protocol.AdapterUtil.getBackgroundGradientHandler(),roundedBorder:org.eclipse.rwt.protocol.AdapterUtil.getRoundedBorderHandler()}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.swt.widgets.List",{extend:org.eclipse.rwt.widgets.BasicList,construct:function(c){arguments.callee.base.call(this,c);this._topIndex=0;this._hasSelectionListener=false;var a=org.eclipse.swt.Request.getInstance();a.addEventListener("send",this._onSendRequest,this);var b=this.getManager();b.addEventListener($[316],this._onChangeLeadItem,this);b.addEventListener($[255],this._onSelectionChange,this);this.addEventListener($[64],this._onFocusIn,this);this.addEventListener("blur",this._onFocusOut,this);this.addEventListener($[51],this._onDblClick,this);this.addEventListener($[44],this._onAppear,this)},destruct:function(){var a=org.eclipse.swt.Request.getInstance();a.removeEventListener("send",this._onSendRequest,this);var b=this.getManager();b.removeEventListener($[316],this._onChangeLeadItem,this);b.removeEventListener($[255],this._onSelectionChange,this);this.removeEventListener($[64],this._onFocusIn,this);this.removeEventListener("blur",this._onFocusOut,this);this.removeEventListener($[51],this._onDblClick,this);this.removeEventListener($[44],this._onAppear,this)},members:{setTopIndex:function(a){this._topIndex=a;this._applyTopIndex(a)},_applyTopIndex:function(b){var a=this.getManager().getItems();if(a.length>0&&a[0].isCreated()){var c=this.getManager().getItemHeight(a[0]);if(c>0){this._clientArea.setScrollTop(b*c)}}},_getTopIndex:function(){var b=0;var c=this._clientArea.getScrollTop();var a=this.getManager().getItems();if(a.length>0){var d=this.getManager().getItemHeight(a[0]);if(d>0){b=Math.round(c/d)}}return b},_onAppear:function(a){this._applyTopIndex(this._topIndex)},setHasSelectionListener:function(a){this._hasSelectionListener=a},_onChangeLeadItem:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var c=org.eclipse.swt.WidgetManager.getInstance();var e=c.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();var d=this._clientArea.indexOf(this.getManager().getLeadItem());b.addParameter(e+".focusIndex",d)}},_onSelectionChange:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var c=org.eclipse.swt.WidgetManager.getInstance();var d=c.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();b.addParameter(d+$[147],this._getSelectionIndices());if(this._hasSelectionListener){b.addEvent($[69],d);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();b.send()}}this._updateSelectedItemState()},_onSendRequest:function(a){var b=this._isCreated?this._getTopIndex():0;if(this._topIndex!=b){var e=org.eclipse.swt.WidgetManager.getInstance();var d=e.findIdByWidget(this);var c=org.eclipse.swt.Request.getInstance();c.addParameter(d+".topIndex",b);this._topIndex=b}},_onDblClick:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){if(this._hasSelectionListener){var c=org.eclipse.swt.WidgetManager.getInstance();var d=c.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();b.addEvent($[168],d);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();b.send()}}},_onFocusIn:function(a){this._updateSelectedItemState()},_onFocusOut:function(a){this._updateSelectedItemState()},_updateSelectedItemState:function(){var b=this.getManager().getSelectedItems();for(var a=0;a<b.length;a++){if(this.getFocused()){b[a].removeState($[92])}else{b[a].addState($[92])}}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.List",{factory:function(b){var c=b.style.indexOf("MULTI")!=-1;var a=new org.eclipse.swt.widgets.List(c);a.setMarkupEnabled(b.markupEnabled===true);org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["items","selectionIndices","topIndex","focusIndex",$[321],"itemDimensions"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({selectionIndices:function(b,a){if(b.hasState($[202])){if(b.getItemsCount()===a.length){b.selectAll()}else{b.selectItems(a)}}else{b.selectItem(a[0]!==undefined?a[0]:-1)}},focusIndex:function(b,a){b.focusItem(a)},scrollBarsVisible:function(b,a){b.setScrollBarsVisible(a[0],a[1])},itemDimensions:function(b,a){b.setItemDimensions(a[0],a[1])}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[24]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.swt.TabUtil",{statics:{createTabItem:function(g,f,b){var e=org.eclipse.swt.WidgetManager.getInstance();var a=e.findWidgetById(f);var d=new qx.ui.pageview.tabview.Button();d.setTabIndex(null);d.setLabel($[235]);d.getLabelObject().setMode("html");d.setLabel("");d.setEnableElementFocus(false);d.addEventListener($[262],org.eclipse.swt.TabUtil._onTabItemChangeFocus);d.addEventListener($[327],org.eclipse.swt.TabUtil._onTabItemSelected);d.addEventListener($[16],org.eclipse.swt.TabUtil._onTabItemClick);a.getBar().addAt(d,b);var c=new qx.ui.pageview.tabview.Page(d);a.getPane().add(c);e.add(c,g+"pg");return d},releaseTabItem:function(d){var a=d.getParent().getParent();d.removeEventListener($[262],org.eclipse.swt.TabUtil._onTabItemChangeFocus);d.removeEventListener($[327],org.eclipse.swt.TabUtil._onTabItemSelected);d.removeEventListener($[16],org.eclipse.swt.TabUtil._onTabItemClick);var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(d);c.dispose(b+"pg");c.dispose(b)},_onTabItemChangeFocus:function(a){if(a.getTarget().getFocused()){a.getTarget().getParent().getParent().focus()}},_onTabItemClick:function(a){var b=a.getTarget().getParent().getParent();if(!b.getFocused()){b.focus()}},_onTabItemSelected:function(a){var b=a.getTarget();if(!org.eclipse.swt.EventUtil.getSuspended()&&b.getChecked()){var f=org.eclipse.swt.WidgetManager.getInstance();var d=f.findIdByWidget(b);var c=org.eclipse.swt.Request.getInstance();c.addParameter("org.eclipse.swt.events.widgetSelected.item",d);var e=f.findIdByWidget(b.getParent().getParent());org.eclipse.swt.EventUtil.doWidgetSelected(e,0,0,0,0)}},onTabFolderKeyPress:function(a){var d=a.getTarget();if(d.classname==$[383]){var b=d.getBar().getManager();var c=b.getSelected();if(c!=null){switch(a.getKeyIdentifier()){case"Left":b.selectPrevious(c);org.eclipse.swt.TabUtil.markTabItemFocused(d,a.getTarget());a.stopPropagation();break;case $[39]:b.selectNext(c);org.eclipse.swt.TabUtil.markTabItemFocused(d,a.getTarget());a.stopPropagation();break}}}},onTabFolderChangeFocused:function(a){var c=a.getTarget();var b=c.getBar().getManager().getSelected();org.eclipse.swt.TabUtil.markTabItemFocused(c,b)},markTabItemFocused:function(d,c){var a=d.getBar().getManager().getItems();for(var b=0;b<a.length;b++){a[b].removeState($[75])}if(c!=null&&d.getFocused()){c.addState($[75])}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.TabFolder",{factory:function(b){var a=new qx.ui.pageview.tabview.TabView();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);a.setHideFocus(true);a.setPlaceBarOnTop(b.style.indexOf("BOTTOM")===-1);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties([$[24]]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({selection:function(b,a){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(a,function(e){var c=b.getBar().getChildren();for(var d=0;d<c.length;d++){if(c[d]===e){c[d].setChecked(true)}else{if(c[d].getChecked()){c[d].setChecked(false)}}}})}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.TabItem",{factory:function(a){return org.eclipse.swt.TabUtil.createTabItem(a.id,a.parent,a.index)},destructor:function(a){org.eclipse.swt.TabUtil.releaseTabItem(a)},properties:["text",$[18],"control",$[110],$[98]],propertyHandler:{text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,false);c.setLabel(d)},image:function(b,a){if(a===null){b.setIcon(null)}else{b.setIcon(a[0])}},control:function(b,a){if(a!==null){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(a,function(c){var e=org.eclipse.swt.WidgetManager.getInstance();var d=e.findIdByWidget(b)+"pg";org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(d,function(f){c.setParent(f)})})}},toolTip:org.eclipse.rwt.protocol.AdapterUtil.getControlPropertyHandler($[110])},listeners:[],listenerHandler:{},methods:[]});
qx.Class.define("org.eclipse.swt.widgets.Calendar",{extend:qx.ui.layout.BoxLayout,construct:function(c){arguments.callee.base.call(this);this.setOrientation($[32]);var b=new qx.ui.layout.BoxLayout();b.setAppearance("calendar-navBar");b.set({height:"auto",spacing:1});var f=new qx.ui.form.Button();var a=new qx.ui.form.Button();var m=new qx.ui.basic.Label();var g=new qx.ui.form.Button();var d=new qx.ui.form.Button();var l=org.eclipse.swt.WidgetManager.getInstance();l.setToolTip(f,"Previous year");l.setToolTip(a,"Previous month");l.setToolTip(g,"Next month");l.setToolTip(d,"Next year");f.set({show:"icon",spacing:0,tabIndex:null});f.setUserData($[177],true);a.set({show:"icon",tabIndex:null});a.setUserData($[177],true);g.set({show:"icon",tabIndex:null});g.setUserData($[177],true);d.set({show:"icon",tabIndex:null});d.setUserData($[177],true);f.setAppearance("calendar-toolbar-previous-year-button");a.setAppearance("calendar-toolbar-previous-month-button");g.setAppearance("calendar-toolbar-next-month-button");d.setAppearance("calendar-toolbar-next-year-button");f.addEventListener($[16],this._onNavButtonClicked,this);a.addEventListener($[16],this._onNavButtonClicked,this);g.addEventListener($[16],this._onNavButtonClicked,this);d.addEventListener($[16],this._onNavButtonClicked,this);this._lastYearBt=f;this._lastMonthBt=a;this._nextMonthBt=g;this._nextYearBt=d;m.setAppearance("calendar-monthyear");m.set({width:"1*"});b.add(f,a,m,g,d);this._monthYearLabel=m;b.setHtmlProperty("id","navBar");var o=new qx.ui.layout.CanvasLayout();o.setAppearance("calendar-datepane");o.set({width:org.eclipse.swt.widgets.Calendar.CELL_WIDTH*8,height:org.eclipse.swt.widgets.Calendar.CELL_HEIGHT*7});var k=new qx.ui.basic.Label();k.setAppearance($[474]);k.set({width:org.eclipse.swt.widgets.Calendar.CELL_WIDTH,height:org.eclipse.swt.widgets.Calendar.CELL_HEIGHT,left:0});k.addState("header");o.add(k);this._weekdayLabelArr=[];for(var e=1;e<8;e++){var k=new qx.ui.basic.Label();k.setAppearance("calendar-weekday");k.setSelectable(false);k.setCursor($[66]);k.set({width:org.eclipse.swt.widgets.Calendar.CELL_WIDTH,height:org.eclipse.swt.widgets.Calendar.CELL_HEIGHT,left:e*org.eclipse.swt.widgets.Calendar.CELL_WIDTH});o.add(k);this._weekdayLabelArr.push(k)}this._dayLabelArr=[];this._weekLabelArr=[];for(var h=0;h<6;h++){var k=new qx.ui.basic.Label();k.setAppearance($[474]);k.setSelectable(false);k.setCursor($[66]);k.set({width:org.eclipse.swt.widgets.Calendar.CELL_WIDTH,height:org.eclipse.swt.widgets.Calendar.CELL_HEIGHT,left:0,top:(h+1)*org.eclipse.swt.widgets.Calendar.CELL_HEIGHT});o.add(k);this._weekLabelArr.push(k);for(var j=1;j<8;j++){var k=new qx.ui.basic.Label();k.setAppearance($[163]);k.setSelectable(false);k.setCursor($[66]);k.set({width:org.eclipse.swt.widgets.Calendar.CELL_WIDTH,height:org.eclipse.swt.widgets.Calendar.CELL_HEIGHT,left:j*org.eclipse.swt.widgets.Calendar.CELL_WIDTH,top:(h+1)*org.eclipse.swt.widgets.Calendar.CELL_HEIGHT});k.addEventListener($[1],this._onDayClicked,this);k.addEventListener($[51],this._onDayDblClicked,this);k.addEventListener($[6],this._onDayMouseOver,this);k.addEventListener($[8],this._onDayMouseOut,this);k.setUserData($[163],true);o.add(k);this._dayLabelArr.push(k)}}var n=(c!=null)?c:new Date();this.showMonth(n.getMonth(),n.getFullYear());this.add(b);this.add(o);this.initWidth();this.initHeight()},events:{select:$[48]},statics:{CELL_WIDTH:24,CELL_HEIGHT:16,MONTH_NAMES:[],WEEKDAY_NAMES:[]},properties:{width:{refine:true,init:"auto"},height:{refine:true,init:"auto"},shownMonth:{check:$[14],init:null,nullable:true,event:"changeShownMonth"},shownYear:{check:$[14],init:null,nullable:true,event:"changeShownYear"},date:{check:"Date",init:null,nullable:true,apply:"_applyDate",event:$[304],transform:"_checkDate"}},members:{addState:function(b){arguments.callee.base.call(this,b);if(b.substr(0,8)==$[36]){this._monthYearLabel.addState(b);for(var a=0;a<7;a++){this._weekdayLabelArr[a].addState(b)}for(var a=0;a<6*7;a++){this._dayLabelArr[a].addState(b)}for(var a=0;a<6;a++){this._weekLabelArr[a].addState(b)}}},removeState:function(b){arguments.callee.base.call(this,b);if(b.substr(0,8)==$[36]){this._monthYearLabel.removeState(b);for(var a=0;a<7;a++){this._weekdayLabelArr[a].removeState(b)}for(var a=0;a<6*7;a++){this._dayLabelArr[a].removeState(b)}for(var a=0;a<6;a++){this._weekLabelArr[a].removeState(b)}}},_checkDate:function(a){return(a==null)?null:new Date(a.getTime())},_applyDate:function(f,a){if((f!=null)&&(this.getShownMonth()!=f.getMonth()||this.getShownYear()!=f.getFullYear())){this.showMonth(f.getMonth(),f.getFullYear())}else{var e=(f==null)?-1:f.getDate();for(var c=0;c<6*7;c++){var d=this._dayLabelArr[c];if(d.hasState($[302])){if(d.hasState($[29])){d.removeState($[29])}}else{var b=parseInt(d.getText(),10);if(b==e){d.addState($[29])}else{if(d.hasState($[29])){d.removeState($[29])}}}}}},_onNavButtonClicked:function(a){var b=this.getShownYear();var c=this.getShownMonth();switch(a.getTarget()){case this._lastYearBt:b--;break;case this._lastMonthBt:c--;if(c<0){c=11;b--}break;case this._nextMonthBt:c++;if(c>=12){c=0;b++}break;case this._nextYearBt:b++;break}this.showMonth(c,b)},_onDayClicked:function(a){if(a.isLeftButtonPressed()){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 e=null;var b=null;var d=null;if(a.getModifiers()===0){switch(a.getKeyIdentifier()){case"Left":e=-1;a.preventDefault();a.stopPropagation();break;case $[39]:e=1;a.preventDefault();a.stopPropagation();break;case"Up":e=-7;a.preventDefault();a.stopPropagation();break;case"Down":e=7;a.preventDefault();a.stopPropagation();break;case $[42]:b=-1;a.preventDefault();a.stopPropagation();break;case $[43]:b=1;a.preventDefault();a.stopPropagation();break;case $[103]:if(this.getDate()!=null){this.setDate(null);a.preventDefault();a.stopPropagation();return true}a.preventDefault();a.stopPropagation();break;case"Home":case"End":a.preventDefault();a.stopPropagation();break;case $[54]:case $[83]:if(this.getDate()!=null){this.createDispatchDataEvent("select",this.getDate())}a.preventDefault();a.stopPropagation();return}}else{if(a.isShiftPressed()){switch(a.getKeyIdentifier()){case $[42]:d=-1;a.preventDefault();a.stopPropagation();break;case $[43]:d=1;a.preventDefault();a.stopPropagation();break}}}if(e!=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(e!=null){c.setDate(c.getDate()+e)}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 t=new Date();var d=t.getFullYear();var j=t.getMonth();var z=t.getDate();var a=this.getDate();var r=(a==null)?-1:a.getFullYear();var b=(a==null)?-1:a.getMonth();var w=(a==null)?-1:a.getDate();var e=this.getShownMonth();var q=this.getShownYear();var x=this.__getWeekStart();var u=new Date(this.getShownYear(),this.getShownMonth(),1);var f=this.getShownYear();var v=org.eclipse.swt.widgets.Calendar.MONTH_NAMES[this.getShownMonth()];this._monthYearLabel.setText(v+" "+f);var k=u.getDay();var g=(1+7-k)%7;for(var o=0;o<7;o++){var n=(o+x)%7;var m=this._weekdayLabelArr[o];u.setDate(g+n);var s=org.eclipse.swt.widgets.Calendar.WEEKDAY_NAMES[u.getDay()+1];m.setText(s);if(this.__isWeekend(n)){m.addState("weekend")}else{m.removeState("weekend")}}u=new Date(q,e,1);var p=(7+k-x)%7;u.setDate(u.getDate()-p);for(var l=0;l<6;l++){this._weekLabelArr[l].setText(""+this.__getWeekInYear(u));for(var o=0;o<7;o++){var m=this._dayLabelArr[l*7+o];var f=u.getFullYear();var v=u.getMonth();var h=u.getDate();var c=(r==f&&b==v&&w==h);if(c){m.addState($[29])}else{m.removeState($[29])}if(v!=e){m.addState($[302])}else{m.removeState($[302])}var y=(f==d&&v==j&&h==z);if(y){m.addState("today")}else{m.removeState("today")}m.setText(""+h);m.dateTime=u.getTime();u.setDate(u.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(){var a=org.eclipse.rwt.Client.getTerritory()||org.eclipse.rwt.Client.getLanguage();return a.toUpperCase()}},destruct:function(){this._disposeObjects("_lastYearBt","_lastMonthBt","_nextMonthBt","_nextYearBt","_monthYearLabel");this._disposeObjectDeep("_weekdayLabelArr",1);this._disposeObjectDeep("_dayLabelArr",1);this._disposeObjectDeep("_weekLabelArr",1)}});
qx.Class.define("org.eclipse.swt.widgets.CoolItem",{extend:qx.ui.layout.CanvasLayout,construct:function(a){arguments.callee.base.call(this);this.setOverflow(qx.constant.Style.OVERFLOW_HIDDEN);this.setAppearance("coolitem");this._orientation=a;this._handle=new qx.ui.basic.Terminator();this._handle.addState(a);this._handle.setAppearance($[468]);this._handle.addEventListener($[1],this._onHandleMouseDown,this);this._handle.addEventListener($[34],this._onHandleMouseMove,this);this._handle.addEventListener($[5],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($[1],this._onHandleMouseDown,this);this._handle.removeEventListener($[34],this._onHandleMouseMove,this);this._handle.removeEventListener($[5],this._onHandleMouseUp,this);this._handle.dispose()}},statics:{DRAG_CURSOR:$[345],CONTROL_OFFSET:6},members:{setLocked:function(a){this._handle.setDisplay(!a)},setControl:function(a){if(a!=null){a.setLeft(this.getLeft()+org.eclipse.swt.widgets.CoolItem.CONTROL_OFFSET);a.setDisplay(true)}if(this._control!=null){this._control.setDisplay(false)}this._control=a},updateHandleBounds:function(){if(this._orientation==$[32]){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())}},_onHandleMouseDown:function(a){this._handle.setCapture(true);this.getTopLevelWidget().setGlobalCursor(org.eclipse.swt.widgets.CoolItem.DRAG_CURSOR);this._offsetX=a.getPageX()-this.getLeft();this._offsetY=a.getPageY()-this.getTop();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+org.eclipse.swt.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-org.eclipse.swt.widgets.CoolItem.CONTROL_OFFSET;this._control.setWidth(b)}},_onHandleMouseMove:function(a){if(this._handle.getCapture()){this.setLeft(a.getPageX()-this._offsetX)}},_onHandleMouseUp:function(a){this._handle.setCapture(false);this.setZIndex(this._bufferedZIndex);if(this._control!=null){this._control.setZIndex(this._bufferedControlZIndex)}this.resetBackgroundColor();this.getTopLevelWidget().setGlobalCursor(null);if(!org.eclipse.swt.EventUtil.getSuspended()){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();b.addEvent("org.eclipse.swt.events.widgetMoved",c);b.addParameter(c+$[260],this.getLeft());b.addParameter(c+$[261],this.getTop());b.send()}},_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}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.CoolItem",{factory:function(c){var d=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(c.style);var b=d.VERTICAL?$[32]:$[41];var a=new org.eclipse.swt.widgets.CoolItem(b);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,c.parent);a.setMinWidth(0);a.setMinHeight(0);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getWidgetDestructor(),properties:[$[117],"control",$[98]],propertyHandler:{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){org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(a,function(c){b.setControl(c)})}},listeners:[],listenerHandler:{},methods:[]});
qx.Class.define($[502],{extend:org.eclipse.rwt.widgets.BasicButton,construct:function(a){arguments.callee.base.call(this,a);this._alignment=a==="arrow"?"up":$[30];switch(a){case"arrow":this.addState("rwt_UP");this.setAppearance($[372]);break;case"push":case $[205]:this.setAppearance($[372]);break;case"check":this.setAppearance("check-box");break;case $[122]:this.setAppearance("radio-button")}this.initTabIndex();this.addEventListener($[64],this._onFocus);this.addEventListener("blur",this._onBlur)},properties:{tabIndex:{refine:true,init:1}},members:{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)}},_afterRenderLayout:function(a){if(this.hasState($[75])){this._showFocusIndicator()}},_showFocusIndicator:function(){var b=org.eclipse.rwt.FocusIndicator.getInstance();var a=this.getCellNode(2)!=null?this.getCellNode(2):this.getCellNode(1);b.show(this,"Button-FocusIndicator",a)},_onFocus:function(a){this._showFocusIndicator()},_onBlur:function(b){var a=org.eclipse.rwt.FocusIndicator.getInstance();a.hide(this)}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Button",{factory:function(c){var d=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(c.style);var b="push";if(d.CHECK){b="check"}else{if(d.TOGGLE){b=$[205]}else{if(d.RADIO){b=$[122]}else{if(d.ARROW){b="arrow"}}}}var a=new org.eclipse.rwt.widgets.Button(b);a.setWrap(d.WRAP);org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,c.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,c.parent);org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(c.parent,function(e){a.setNoRadioGroup(e.hasState($[292]))});return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["text",$[293],$[18],$[24],$[200]]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,true);if(c.hasState("rwt_WRAP")){d=a.replaceNewLines(d,$[107])}c.setText(d===""?null:d)},image:function(b,a){if(a===null){b.setImage(a)}else{b.setImage.apply(b,a)}}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[24]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.rwt.widgets.FileUpload",{extend:org.eclipse.rwt.widgets.Button,construct:function(){arguments.callee.base.call(this,"push");this.setAppearance("file-upload");this.addEventListener($[143],this._layoutInputElement,this);this.addEventListener($[237],this._onMouseOverElement,this);this._formElement=null;this._inputElement=null;this._iframe=null;this._cursor="";this.__onValueChange=qx.lang.Function.bind(this._onValueChange,this);this.setEnableElementFocus(false);this._createIframeWidget()},destruct:function(){this._formElement=null;this._inputElement=null},members:{submit:function(a){if(typeof a!==$[9]){throw new Error("No url given!")}if(this._getFileName()===""){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()},_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");if(org.eclipse.rwt.Client.isMshtml()){this._formElement.setAttribute("encoding",$[458])}else{this._formElement.setAttribute("enctype",$[458])}this._getTargetNode().appendChild(this._formElement)},_createInputElement:function(){this._inputElement=document.createElement($[89]);this._inputElement.style.position=$[17];this._inputElement.setAttribute("type","file");this._inputElement.setAttribute("name","file");this._inputElement.setAttribute("size","1");this._inputElement.style.cursor=this._cursor;this._inputElement.onchange=this.__onValueChange;org.eclipse.rwt.HtmlUtil.setOpacity(this._inputElement,0);this._formElement.appendChild(this._inputElement)},_createIframeWidget:function(){this._iframe=new qx.ui.embed.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(b){var e=this._formatFileName(this._getFileName());if(!org.eclipse.swt.EventUtil.getSuspended()){var a=org.eclipse.swt.Request.getInstance();var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);a.addParameter(c+".fileName",e);a.send()}},_getFileName:function(){return this._inputElement.value},_layoutPost:function(a){arguments.callee.base.call(this,a);if(a.width||a.height){this._layoutInputElement()}},_layoutInputElement:function(){if(this.getEnabled()&&this.isSeeable()&&!org.eclipse.rwt.Client.isMobileSafari()){var a=10;this._layoutInputElementHorizontal(a);this._layoutInputElementVertical(a)}},_layoutInputElementHorizontal:function(g){var h=0.6;var a=this.getBoxWidth();var e=(a+g*2)/(h);var i=e/10;this._inputElement.style.fontSize=i;var c=0;while(this._inputElement.offsetWidth<=e){i+=10;this._inputElement.style.font=i+"px monospace";c++;if(c>100){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===$[170]){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(org.eclipse.rwt.Client.getBrowser()==="chrome"){this._onBlur()}},_onMouseUp:function(a){if(a.getDomTarget()===this._inputElement||this.hasState($[33])){arguments.callee.base.call(this,a)}},_onFocus:function(a){arguments.callee.base.call(this,a);this._inputElement.focus()},_onKeyDown:qx.lang.Function.returnTrue,_onKeyUp:qx.lang.Function.returnTrue,_ontabfocus:function(){if(org.eclipse.rwt.Client.getBrowser()==="chrome"){this._showFocusIndicator(true)}},_showFocusIndicator:function(a){var d=org.eclipse.rwt.Client.getBrowser()==="chrome";if(!d||a){var c=org.eclipse.rwt.FocusIndicator.getInstance();var b=this.getCellNode(2)!=null?this.getCellNode(2):this.getCellNode(1);c.show(this,"FileUpload-FocusIndicator",b)}},_formatFileName:function(b){var a=b;if(a.indexOf("\\")!=-1){a=a.substr(a.lastIndexOf("\\")+1)}else{if(a.indexOf("/")!=-1){a=a.substr(a.lastIndexOf("/")+1)}}return a},_getFrameName:function(){return"FileUpload_"+this.toHashCode()}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.FileUpload",{factory:function(b){var a=new org.eclipse.rwt.widgets.FileUpload();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["text",$[18]]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,true);c.setText(d===""?null:d)},image:function(b,a){if(a===null){b.setImage(a)}else{b.setImage.apply(b,a)}}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:["submit"],methodHandler:{submit:function(b,a){b.submit(a.url)}}});
qx.Class.define("org.eclipse.swt.widgets.Slider",{extend:org.eclipse.swt.widgets.AbstractSlider,construct:function(a){arguments.callee.base.call(this,a);this._hasSelectionListener=false;this._requestScheduled=false;this.addEventListener($[49],this._onContextMenu,this);this.addEventListener($[4],this._onKeyPress,this)},statics:{SEND_DELAY:50,_isNoModifierPressed:function(a){return !a.isCtrlPressed()&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isMetaPressed()}},members:{_configureAppearance:function(){this.setAppearance("slider");this._thumb.setAppearance($[499]);this._minButton.setAppearance("slider-min-button");this._maxButton.setAppearance("slider-max-button")},setSelection:function(a){this._setSelection(a)},setMinimum:function(a){this._setMinimum(a)},setMaximum:function(a){this._setMaximum(a)},setIncrement:function(a){this._setIncrement(a)},setPageIncrement:function(a){this._setPageIncrement(a)},setThumb:function(a){this._setThumb(a)},setHasSelectionListener:function(a){this._hasSelectionListener=a},_setSelection:function(a){arguments.callee.base.call(this,a);this._scheduleSendChanges()},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_onKeyPress:function(a){var c=a.getKeyIdentifier();var b;if(org.eclipse.swt.widgets.Slider._isNoModifierPressed(a)){switch(c){case"Left":b=this._selection-this._increment;a.preventDefault();a.stopPropagation();break;case"Down":if(this._horizontal){b=this._selection-this._increment}else{b=this._selection+this._increment}a.preventDefault();a.stopPropagation();break;case $[39]:b=this._selection+this._increment;a.preventDefault();a.stopPropagation();break;case"Up":if(this._horizontal){b=this._selection+this._increment}else{b=this._selection-this._increment}a.preventDefault();a.stopPropagation();break;case"Home":b=this._minimum;a.preventDefault();a.stopPropagation();break;case"End":b=this._maximum;a.preventDefault();a.stopPropagation();break;case $[43]:if(this._horizontal){b=this._selection-this._pageIncrement}else{b=this._selection+this._pageIncrement}a.preventDefault();a.stopPropagation();break;case $[42]:if(this._horizontal){b=this._selection+this._pageIncrement}else{b=this._selection-this._pageIncrement}a.preventDefault();a.stopPropagation();break}if(b!=undefined){if(b<this._minimum){b=this._minimum}if(b>this._maximum){b=this._maximum}this.setSelection(b);if(this._readyToSendChanges){this._readyToSendChanges=false;qx.client.Timer.once(this._sendChanges,this,org.eclipse.swt.widgets.Slider.SEND_DELAY)}}}},_onMouseWheel:function(a){if(this.getFocused()){arguments.callee.base.call(this,a);if(this._readyToSendChanges){this._readyToSendChanges=false;qx.client.Timer.once(this._sendChanges,this,500)}}},_scheduleSendChanges:function(){if(!org.eclipse.swt.EventUtil.getSuspended()){if(!this._requestScheduled){this._requestScheduled=true;qx.client.Timer.once(this._sendChanges,this,org.eclipse.swt.widgets.Slider.SEND_DELAY)}}},_sendChanges:function(){var c=org.eclipse.swt.WidgetManager.getInstance();var a=org.eclipse.swt.Request.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+$[147],this._selection);if(this._hasSelectionListener){a.addEvent($[69],b);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();a.send()}this._requestScheduled=false}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Slider",{factory:function(b){var c=b.style.indexOf($[343])!=-1;var a=new org.eclipse.swt.widgets.Slider(c);org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties([$[238],$[272],$[24],$[283],$[332],"thumb"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[24]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.swt.widgets.Spinner",{extend:qx.ui.form.Spinner,construct:function(){arguments.callee.base.call(this);this._isModified=false;this._hasModifyListener=false;this._hasSelectionListener=false;this.setWrap(false);this._textfield.setFocused=function(){};this._textfield.addEventListener($[109],this._onChangeValue,this);this._textfield.addEventListener($[4],this._onChangeValue,this);this._textfield.addEventListener("blur",this._onChangeValue,this);this._textfield.addEventListener($[10],this._onKeyDown,this);this._textfield.setTabIndex(null);this.addEventListener($[180],this._onChangeEnabled,this);this.addEventListener($[104],this._onFocusOut,this);this._checkValue=this.__checkValueWithDigits},destruct:function(){this._textfield.removeEventListener($[109],this._onChangeValue,this);this._textfield.removeEventListener($[4],this._onChangeValue,this);this._textfield.removeEventListener("blur",this._onChangeValue,this);this._textfield.removeEventListener($[10],this._onKeyDown,this);this.removeEventListener($[180],this._onChangeEnabled,this);this.removeEventListener($[104],this._onFocusOut,this)},properties:{digits:{check:$[14],init:0,apply:"_applyDigits"},decimalSeparator:{check:$[21],init:".",apply:"_applyDecimalSeparator"}},members:{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)},_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()}},setHasModifyListener:function(a){this._hasModifyListener=a},setHasSelectionListener:function(a){this._hasSelectionListener=a},_visualizeFocus:function(){this._textfield._visualizeFocus();if(this._textfield.isCreated()){this._textfield.selectAll()}this.addState($[75])},_visualizeBlur:function(){this._textfield._setSelectionLength(0);this._textfield._visualizeBlur();this.removeState($[75])},_oninput:function(a){this._suspendTextFieldUpdate=true;this._checkValue(true,false);this._suspendTextFieldUpdate=false},_onChangeValue:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()&&!this._isModified){this._isModified=true;var b=org.eclipse.swt.Request.getInstance();b.addEventListener("send",this._onSend,this);if(this._hasSelectionListener){this._addModifyTextEvent();this._sendWidgetSelected()}else{if(this._hasModifyListener){this._addModifyTextEvent();qx.client.Timer.once(this._sendModifyText,this,500)}}}},_onChangeEnabled:function(a){var b=a.getValue();this._upbutton.setEnabled(b&&this.getValue()<this.getMax());this._downbutton.setEnabled(b&&this.getValue()>this.getMin())},_onKeyDown:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){if(a.getKeyIdentifier()==$[54]&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isCtrlPressed()&&!a.isMetaPressed()&&this._hasSelectionListener){a.stopPropagation();this._sendWidgetDefaultSelected()}}},_onmousewheel:function(a){if(this.getFocused()){arguments.callee.base.call(this,a)}},_addModifyTextEvent:function(){var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addEvent($[358],b)},_sendWidgetSelected:function(){var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addEvent($[69],b);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();a.send()},_sendWidgetDefaultSelected:function(){var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addEvent($[168],b);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();a.send()},_onSend:function(a){this._isModified=false;var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();b.addParameter(c+$[147],this.getManager().getValue());b.removeEventListener("send",this._onSend,this)},_sendModifyText:function(a){if(this._isModified){org.eclipse.swt.Request.getInstance().send();this._isModified=false}},_applyDigits:function(c,b){var a=this.getManager().getValue();if(this.getDigits()>0){this._textfield.setValue(this._format(a))}else{this._textfield.setValue(String(a))}},_applyDecimalSeparator:function(c,b){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=qx.lang.String.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(a<this.getMin()){a=this.getMin()}return a},_onFocusOut:function(a){this._checkValue(true,false)},_onkeypress:function(a){var b=a.getKeyIdentifier();var c=this.getDecimalSeparator();if(!(this.getDigits()>0&&b==c)){arguments.callee.base.call(this,a)}},_onchange:function(a){var b=this.getManager().getValue();if(!this._suspendTextFieldUpdate){if(this.getDigits()>0){this._textfield.setValue(this._format(b))}else{this._textfield.setValue(String(b))}}if(b==this.getMin()&&!this.getWrap()){this._downbutton.removeState($[11]);this._downbutton.setEnabled(false);this._timer.stop()}else{this._downbutton.resetEnabled()}if(b==this.getMax()&&!this.getWrap()){this._upbutton.removeState($[11]);this._upbutton.setEnabled(false);this._timer.stop()}else{this._upbutton.resetEnabled()}this.createDispatchDataEvent($[67],b)},__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=qx.lang.String.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)}}}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Spinner",{factory:function(b){var a=new org.eclipse.swt.widgets.Spinner();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);var c=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(b.style);if(c.READ_ONLY){a.setEditable(false)}if(c.WRAP){a.setWrap(true)}return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties([$[238],$[272],$[24],"digits",$[283],$[332],$[297],"decimalSeparator"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.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)}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners(["modify",$[24]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.swt.widgets.DateTimeTime",{extend:qx.ui.layout.CanvasLayout,construct:function(a){arguments.callee.base.call(this);this.setOverflow(qx.constant.Style.OVERFLOW_HIDDEN);this.setAppearance("datetime-time");this._short=qx.lang.String.contains(a,"short");this._medium=qx.lang.String.contains(a,"medium");this._long=qx.lang.String.contains(a,"long");this._hasSelectionListener=false;this._requestTimer=null;this.addEventListener($[102],this._rwt_onChangeFont,this);this.addEventListener($[4],this._onKeyPress,this);this.addEventListener($[40],this._onKeyUp,this);this.addEventListener($[47],this._onMouseWheel,this);this.addEventListener($[49],this._onContextMenu,this);this.addEventListener($[64],this._onFocusIn,this);this.addEventListener("blur",this._onFocusOut,this);this._focusedTextField=null;this._hoursTextField=new qx.ui.basic.Label("00");this._hoursTextField.setAppearance($[159]);this._hoursTextField.setUserData($[142],2);this._hoursTextField.addEventListener($[1],this._onTextFieldMouseDown,this);this.add(this._hoursTextField);this._separator3=new qx.ui.basic.Label(":");this._separator3.setAppearance($[204]);this._separator3.addEventListener($[49],this._onContextMenu,this);this.add(this._separator3);this._minutesTextField=new qx.ui.basic.Label("00");this._minutesTextField.setAppearance($[159]);this._minutesTextField.setUserData($[142],2);this._minutesTextField.addEventListener($[1],this._onTextFieldMouseDown,this);this.add(this._minutesTextField);this._separator4=new qx.ui.basic.Label(":");this._separator4.setAppearance($[204]);if(this._medium||this._long){this.add(this._separator4)}this._secondsTextField=new qx.ui.basic.Label("00");this._secondsTextField.setAppearance($[159]);this._secondsTextField.setUserData($[142],2);this._secondsTextField.addEventListener($[1],this._onTextFieldMouseDown,this);if(this._medium||this._long){this.add(this._secondsTextField)}this._spinner=new qx.ui.form.Spinner();this._spinner.set({wrap:true,border:null,backgroundColor:null});this._spinner.setMin(0);this._spinner.setMax(23);this._spinner.setValue(0);this._spinner.addEventListener($[67],this._onSpinnerChange,this);this._spinner._textfield.setTabIndex(null);this._spinner._textfield.setFocused=function(){};this._spinner._textfield.setVisibility(false);this._spinner._upbutton.setAppearance($[406]);this._spinner._downbutton.setAppearance($[447]);this._spinner.removeEventListener($[4],this._spinner._onkeypress,this._spinner);this._spinner.removeEventListener($[10],this._spinner._onkeydown,this._spinner);this._spinner.removeEventListener($[40],this._spinner._onkeyup,this._spinner);this._spinner.removeEventListener($[47],this._spinner._onmousewheel,this._spinner);this.add(this._spinner);this._focusedTextField=this._hoursTextField},destruct:function(){this.removeEventListener($[102],this._rwt_onChangeFont,this);this.removeEventListener($[4],this._onKeyPress,this);this.removeEventListener($[40],this._onKeyUp,this);this.removeEventListener($[47],this._onMouseWheel,this);this.removeEventListener($[49],this._onContextMenu,this);this.removeEventListener($[64],this._onFocusIn,this);this.removeEventListener("blur",this._onFocusOut,this);this._hoursTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._minutesTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._secondsTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._spinner.removeEventListener($[67],this._onSpinnerChange,this);this._disposeObjects("_hoursTextField","_minutesTextField","_secondsTextField",$[388],"_spinner","_separator3","_separator4")},statics:{HOURS_TEXTFIELD:8,MINUTES_TEXTFIELD:9,SECONDS_TEXTFIELD:10,HOURS_MINUTES_SEPARATOR:11,MINUTES_SECONDS_SEPARATOR:12,SPINNER:7,_isNoModifierPressed:function(a){return !a.isCtrlPressed()&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isMetaPressed()}},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._hoursTextField.addState(a);this._minutesTextField.addState(a);this._secondsTextField.addState(a);this._spinner.addState(a);this._separator3.addState(a);this._separator4.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._hoursTextField.removeState(a);this._minutesTextField.removeState(a);this._secondsTextField.removeState(a);this._spinner.removeState(a);this._separator3.removeState(a);this._separator4.removeState(a)}},_rwt_onChangeFont:function(a){var b=a.getValue();this._hoursTextField.setFont(b);this._minutesTextField.setFont(b);this._secondsTextField.setFont(b)},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_onFocusIn:function(a){this._focusedTextField.addState($[29]);this._initialEditing=true},_onFocusOut:function(a){this._focusedTextField.removeState($[29])},_onTextFieldMouseDown:function(a){this._setFocusedTextField(a.getTarget())},_setFocusedTextField:function(a){if(this._focusedTextField!==a){var b;this._focusedTextField.removeState($[29]);this._focusedTextField=null;if(a===this._hoursTextField){this._spinner.setMin(0);this._spinner.setMax(23);b=this._removeLeadingZero(this._hoursTextField.getText());this._spinner.setValue(parseInt(b,10))}else{if(a===this._minutesTextField){this._spinner.setMin(0);this._spinner.setMax(59);b=this._removeLeadingZero(this._minutesTextField.getText());this._spinner.setValue(parseInt(b,10))}else{if(a===this._secondsTextField){this._spinner.setMin(0);this._spinner.setMax(59);b=this._removeLeadingZero(this._secondsTextField.getText());this._spinner.setValue(parseInt(b,10))}}}this._focusedTextField=a;this._focusedTextField.addState($[29]);this._initialEditing=true}},_onSpinnerChange:function(a){if(this._focusedTextField!=null){var b=this._focusedTextField.getText();var c=this._addLeadingZero(this._spinner.getValue());this._focusedTextField.setText(c);if(b!=c){this._sendChanges()}}},_onKeyPress:function(a){var c=a.getKeyIdentifier();if(org.eclipse.swt.widgets.DateTimeTime._isNoModifierPressed(a)){switch(c){case"Left":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)}}}a.preventDefault();a.stopPropagation();break;case $[39]: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)}}}a.preventDefault();a.stopPropagation();break;case"Up":var b=this._spinner.getValue();if(b==this._spinner.getMax()){this._spinner.setValue(this._spinner.getMin())}else{this._spinner.setValue(b+1)}a.preventDefault();a.stopPropagation();break;case"Down":var b=this._spinner.getValue();if(b==this._spinner.getMin()){this._spinner.setValue(this._spinner.getMax())}else{this._spinner.setValue(b-1)}a.preventDefault();a.stopPropagation();break;case $[42]:case $[43]:case"Home":case"End":a.preventDefault();a.stopPropagation();break}}},_onKeyUp:function(a){var b=a.getKeyIdentifier();var e=this._focusedTextField.getText();e=this._removeLeadingZero(e);if(org.eclipse.swt.widgets.DateTimeTime._isNoModifierPressed(a)){switch(b){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":var d=this._focusedTextField.getUserData($[142]);var f=b;if(e.length<d&&!this._initialEditing){f=e+b}var c=parseInt(f,10);if(c>=this._spinner.getMin()&&c<=this._spinner.getMax()){this._spinner.setValue(c)}else{f=b;c=parseInt(f,10);if(c>=this._spinner.getMin()&&c<=this._spinner.getMax()){this._spinner.setValue(c)}}this._initialEditing=false;a.preventDefault();a.stopPropagation();break;case"Home":var f=this._spinner.getMin();this._spinner.setValue(f);this._initialEditing=true;a.preventDefault();a.stopPropagation();break;case"End":var f=this._spinner.getMax();this._spinner.setValue(f);this._initialEditing=true;a.preventDefault();a.stopPropagation();break}}},_onMouseWheel:function(a){if(this.getFocused()){a.preventDefault();a.stopPropagation();this._spinner._onmousewheel(a)}},_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(!org.eclipse.swt.EventUtil.getSuspended()){var c=org.eclipse.swt.WidgetManager.getInstance();var a=org.eclipse.swt.Request.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+".hours",this._removeLeadingZero(this._hoursTextField.getText()));a.addParameter(b+".minutes",this._removeLeadingZero(this._minutesTextField.getText()));a.addParameter(b+".seconds",this._removeLeadingZero(this._secondsTextField.getText()));if(this._hasSelectionListener){this._requestTimer.restart()}}},_onInterval:function(){this._requestTimer.stop();var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addEvent($[69],b);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();a.send()},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)}},setHasSelectionListener:function(a){this._hasSelectionListener=a;this._requestTimer=new qx.client.Timer(110);this._requestTimer.addEventListener($[26],this._onInterval,this)},setBounds:function(e,b,f,c,a){var d;switch(e){case org.eclipse.swt.widgets.DateTimeTime.HOURS_TEXTFIELD:d=this._hoursTextField;break;case org.eclipse.swt.widgets.DateTimeTime.MINUTES_TEXTFIELD:d=this._minutesTextField;break;case org.eclipse.swt.widgets.DateTimeTime.SECONDS_TEXTFIELD:d=this._secondsTextField;break;case org.eclipse.swt.widgets.DateTimeTime.HOURS_MINUTES_SEPARATOR:d=this._separator3;break;case org.eclipse.swt.widgets.DateTimeTime.MINUTES_SECONDS_SEPARATOR:d=this._separator4;break;case org.eclipse.swt.widgets.DateTimeTime.SPINNER:d=this._spinner;break}d.set({left:b,top:f,width:c,height:a})}}});
qx.Class.define("org.eclipse.swt.widgets.DateTimeDate",{extend:qx.ui.layout.CanvasLayout,construct:function(f,e,b,d,g,c){arguments.callee.base.call(this);this.setOverflow(qx.constant.Style.OVERFLOW_HIDDEN);this.setAppearance("datetime-date");this._short=qx.lang.String.contains(f,"short");this._medium=qx.lang.String.contains(f,"medium");this._long=qx.lang.String.contains(f,"long");this._drop_down=qx.lang.String.contains(f,"drop_down");this._hasSelectionListener=false;this._requestTimer=null;this._readyToSendChanges=true;this._weekday=b;this._monthname=e;this._datePattern=c;this.addEventListener($[102],this._rwt_onChangeFont,this);this.addEventListener($[4],this._onKeyPress,this);this.addEventListener($[40],this._onKeyUp,this);this.addEventListener($[47],this._onMouseWheel,this);this.addEventListener($[49],this._onContextMenu,this);this.addEventListener($[64],this._onFocusIn,this);this.addEventListener("blur",this._onFocusOut,this);this._focusedTextField=null;this._weekdayTextField=new qx.ui.basic.Label();this._weekdayTextField.setAppearance($[159]);if(this._long){this.add(this._weekdayTextField)}this._separator0=new qx.ui.basic.Label(",");this._separator0.setAppearance($[204]);if(this._long){this.add(this._separator0)}this._monthTextField=new qx.ui.basic.Label();this._monthTextField.setAppearance($[159]);this._monthTextField.set({textAlign:this._medium?$[15]:$[30]});this._monthInt=1;if(this._medium){this._monthTextField.setText("1")}else{this._monthTextField.setText(this._monthname[this._monthInt-1])}this._monthTextField.addEventListener($[1],this._onTextFieldMouseDown,this);this.add(this._monthTextField);this._separator1=new qx.ui.basic.Label(g);this._separator1.setAppearance($[204]);if(this._medium){this.add(this._separator1)}this._dayTextField=new qx.ui.basic.Label("1");this._dayTextField.setAppearance($[159]);this._dayTextField.setUserData($[142],2);this._dayTextField.set({textAlign:$[15]});this._dayTextField.addEventListener($[1],this._onTextFieldMouseDown,this);if(!this._short){this.add(this._dayTextField)}this._separator2=new qx.ui.basic.Label(",");this._separator2.setAppearance($[204]);if(this._medium){this._separator2.setText(g)}this.add(this._separator2);this._yearTextField=new qx.ui.basic.Label("1970");this._yearTextField.setAppearance($[159]);this._yearTextField.setUserData($[142],4);this._yearTextField.set({textAlign:$[15]});this._lastValidYear=1970;this._yearTextField.addEventListener($[1],this._onTextFieldMouseDown,this);this.add(this._yearTextField);this._spinner=new qx.ui.form.Spinner();this._spinner.set({wrap:true,border:null,backgroundColor:null});this._spinner.setMin(1);this._spinner.setMax(12);this._spinner.setValue(this._monthInt);this._spinner.addEventListener($[67],this._onSpinnerChange,this);this._spinner._textfield.setTabIndex(null);this._spinner._textfield.setFocused=function(){};this._spinner._textfield.setVisibility(false);this._spinner._upbutton.setAppearance($[406]);this._spinner._downbutton.setAppearance($[447]);this._spinner.removeEventListener($[4],this._spinner._onkeypress,this._spinner);this._spinner.removeEventListener($[10],this._spinner._onkeydown,this._spinner);this._spinner.removeEventListener($[40],this._spinner._onkeyup,this._spinner);this._spinner.removeEventListener($[47],this._spinner._onmousewheel,this._spinner);this._spinner.setVisibility(!this._drop_down);this.add(this._spinner);this._dropped=false;this._dropDownButton=null;this._calendar=null;if(this._drop_down){var a=qx.ui.core.ClientDocument.getInstance();a.addEventListener($[224],this._onWindowBlur,this);this.addEventListener($[44],this._onAppear,this);this.addEventListener($[174],this._onChangeVisibility,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[16],this._onMouseClick,this);this.addEventListener($[6],this._onMouseOver,this);this.addEventListener($[8],this._onMouseOut,this);this._dropDownButton=new qx.ui.form.Button();this._dropDownButton.setAppearance("datetime-drop-down-button");this._dropDownButton.setTabIndex(null);this._dropDownButton.setAllowStretchY(true);this.add(this._dropDownButton);org.eclipse.swt.widgets.Calendar.MONTH_NAMES=e;org.eclipse.swt.widgets.Calendar.WEEKDAY_NAMES=d;this._calendar=new org.eclipse.swt.widgets.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._lastYearBt.setToolTip(null);this._calendar._lastMonthBt.setToolTip(null);this._calendar._nextMonthBt.setToolTip(null);this._calendar._nextYearBt.setToolTip(null)}this._focusedTextField=this._monthTextField;this._setWeekday()},destruct:function(){this.removeEventListener($[102],this._rwt_onChangeFont,this);this.removeEventListener($[4],this._onKeyPress,this);this.removeEventListener($[40],this._onKeyUp,this);this.removeEventListener($[47],this._onMouseWheel,this);this.removeEventListener($[49],this._onContextMenu,this);this.removeEventListener($[64],this._onFocusIn,this);this.removeEventListener("blur",this._onFocusOut,this);this._monthTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._dayTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._yearTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._spinner.removeEventListener($[67],this._onSpinnerChange,this);this._disposeObjects("_weekdayTextField","_monthTextField","_dayTextField","_yearTextField",$[388],"_spinner","_separator0","_separator1","_separator2");if(this._drop_down){var a=qx.ui.core.ClientDocument.getInstance();a.removeEventListener($[224],this._onWindowBlur,this);this.removeEventListener($[44],this._onAppear,this);this.removeEventListener($[174],this._onChangeVisibility,this);this.removeEventListener($[1],this._onMouseDown,this);this.removeEventListener($[16],this._onMouseClick,this);this.removeEventListener($[6],this._onMouseOver,this);this.removeEventListener($[8],this._onMouseOut,this);this._dropDownButton.dispose();this._dropDownButton=null;if(!qx.core.Object.inGlobalDispose()){this._calendar.setParent(null)}this._calendar.dispose();this._calendar=null}},statics:{WEEKDAY_TEXTFIELD:0,DATE_TEXTFIELD:1,MONTH_TEXTFIELD:2,YEAR_TEXTFIELD:3,WEEKDAY_MONTH_SEPARATOR:4,MONTH_DATE_SEPARATOR:5,DATE_YEAR_SEPARATOR:6,SPINNER:7,DROP_DOWN_BUTTON:13,_isNoModifierPressed:function(a){return !a.isCtrlPressed()&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isMetaPressed()}},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._weekdayTextField.addState(a);this._monthTextField.addState(a);this._dayTextField.addState(a);this._yearTextField.addState(a);this._spinner.addState(a);this._separator0.addState(a);this._separator1.addState(a);this._separator2.addState(a);if(this._drop_down){this._dropDownButton.addState(a);this._calendar.addState(a)}}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._weekdayTextField.removeState(a);this._monthTextField.removeState(a);this._dayTextField.removeState(a);this._yearTextField.removeState(a);this._spinner.removeState(a);this._separator0.removeState(a);this._separator1.removeState(a);this._separator2.removeState(a);if(this._drop_down){this._dropDownButton.removeState(a);this._calendar.removeState(a)}}},_rwt_onChangeFont:function(a){var b=a.getValue();this._weekdayTextField.setFont(b);this._dayTextField.setFont(b);this._monthTextField.setFont(b);this._yearTextField.setFont(b)},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null&&!this._dropped){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_onFocusIn:function(a){this._focusedTextField.addState($[29]);this._initialEditing=true},_onFocusOut:function(a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}this._focusedTextField.removeState($[29])},_onTextFieldMouseDown:function(a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}this._setFocusedTextField(a.getTarget())},_setFocusedTextField:function(a){if(this._focusedTextField!==a){this._focusedTextField.removeState($[29]);this._focusedTextField=null;if(a===this._dayTextField){this._spinner.setMin(1);this._spinner.setMax(this._getDaysInMonth());var b=this._removeLeadingZero(this._dayTextField.getText());this._spinner.setValue(parseInt(b),10)}else{if(a===this._monthTextField){this._spinner.setMin(1);this._spinner.setMax(12);this._spinner.setValue(this._monthInt)}else{if(a===this._yearTextField){this._spinner.setMax(9999);this._spinner.setMin(1752);this._spinner.setValue(this._lastValidYear)}}}this._focusedTextField=a;this._focusedTextField.addState($[29]);this._initialEditing=true}},_onSpinnerChange:function(a){if(this._focusedTextField!=null){var b=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 c=this._dayTextField.getText();if(c>this._getDaysInMonth()){this._dayTextField.setText(""+this._getDaysInMonth())}}this._setWeekday();var d=this._focusedTextField.getText();if(b!=d){this._sendChanges()}}},_onKeyPress:function(a){var d=a.getKeyIdentifier();if(this._dropped){this._calendar._onkeypress(a);if(org.eclipse.swt.widgets.DateTimeDate._isNoModifierPressed(a)){switch(d){case $[54]:case $[103]:case $[83]:case"Tab":this._toggleCalendarVisibility();break;case"Left":case $[39]:case"Up":case"Down":case $[42]:case $[43]:var b=this._calendar.getDate();this._setDate(b);this._sendChanges();a.preventDefault();a.stopPropagation();break}}else{if(a.isShiftPressed()){switch(d){case"Tab":this._toggleCalendarVisibility();break;case $[42]:case $[43]:var b=this._calendar.getDate();this._setDate(b);this._sendChanges();a.preventDefault();a.stopPropagation();break}}}}else{if(org.eclipse.swt.widgets.DateTimeDate._isNoModifierPressed(a)){switch(d){case"Left":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)}}}a.preventDefault();a.stopPropagation();break;case $[39]: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)}}}a.preventDefault();a.stopPropagation();break;case"Up":if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}var c=this._spinner.getValue();if(c==this._spinner.getMax()){this._spinner.setValue(this._spinner.getMin())}else{this._spinner.setValue(c+1)}a.preventDefault();a.stopPropagation();break;case"Down":if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}var c=this._spinner.getValue();if(c==this._spinner.getMin()){this._spinner.setValue(this._spinner.getMax())}else{this._spinner.setValue(c-1)}a.preventDefault();a.stopPropagation();break;case $[42]:case $[43]:case"Home":case"End":a.preventDefault();a.stopPropagation();break}}}},_rollRight:function(c,b,a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}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===this._yearTextField){this._checkAndApplyYearValue()}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)}}}}},_onKeyUp:function(a){if(!this._dropped){var b=a.getKeyIdentifier();var e=this._focusedTextField.getText();e=this._removeLeadingZero(e);if(org.eclipse.swt.widgets.DateTimeDate._isNoModifierPressed(a)){switch(b){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":var d=this._focusedTextField.getUserData($[142]);if(this._focusedTextField===this._monthTextField){e=""+this._monthInt;d=2}var f=b;if(e.length<d&&!this._initialEditing){f=e+b}var c=parseInt(f,10);if(this._focusedTextField===this._dayTextField||this._focusedTextField===this._monthTextField){if(c>=this._spinner.getMin()&&c<=this._spinner.getMax()){this._spinner.setValue(c)}else{f=b;c=parseInt(f,10);if(c>=this._spinner.getMin()&&c<=this._spinner.getMax()){this._spinner.setValue(c)}}}else{if(this._focusedTextField==this._yearTextField){this._focusedTextField.setText(f);if(f.length==4){this._checkAndApplyYearValue()}}}this._initialEditing=false;a.preventDefault();a.stopPropagation();break;case"Home":var f=this._spinner.getMin();this._spinner.setValue(f);this._initialEditing=true;a.preventDefault();a.stopPropagation();break;case"End":var f=this._spinner.getMax();this._spinner.setValue(f);this._initialEditing=true;a.preventDefault();a.stopPropagation();break}}}},_onMouseWheel:function(a){if(this.getFocused()){a.preventDefault();a.stopPropagation();if(!this._dropped){this._spinner._onmousewheel(a)}}},_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 a=new Date();a.setDate(parseInt(this._dayTextField.getText(),10));a.setMonth(this._monthInt-1);a.setFullYear(parseInt(this._yearTextField.getText(),10));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(!org.eclipse.swt.EventUtil.getSuspended()){var c=org.eclipse.swt.WidgetManager.getInstance();var a=org.eclipse.swt.Request.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+".day",this._removeLeadingZero(this._dayTextField.getText()));a.addParameter(b+".month",this._monthInt-1);a.addParameter(b+".year",this._lastValidYear);if(this._hasSelectionListener){this._requestTimer.restart()}}},_onInterval:function(){this._requestTimer.stop();var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addEvent($[69],b);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();a.send()},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._spinner.setValue(this._monthInt)}this._setWeekday()},setDay:function(a){this._dayTextField.setText(this._addLeadingZero(a));if(this._focusedTextField===this._dayTextField){this._spinner.setValue(a)}this._setWeekday()},setYear:function(a){this._lastValidYear=a;this._yearTextField.setText(""+a);if(this._focusedTextField===this._yearTextField){this._spinner.setValue(a)}this._setWeekday()},_setDate:function(a){this.setYear(a.getFullYear());this.setMonth(a.getMonth());this.setDay(a.getDate())},setHasSelectionListener:function(a){this._hasSelectionListener=a;this._requestTimer=new qx.client.Timer(110);this._requestTimer.addEventListener($[26],this._onInterval,this)},setBounds:function(e,b,f,c,a){var d=null;switch(e){case org.eclipse.swt.widgets.DateTimeDate.WEEKDAY_TEXTFIELD:d=this._weekdayTextField;break;case org.eclipse.swt.widgets.DateTimeDate.DATE_TEXTFIELD:d=this._dayTextField;break;case org.eclipse.swt.widgets.DateTimeDate.MONTH_TEXTFIELD:d=this._monthTextField;break;case org.eclipse.swt.widgets.DateTimeDate.YEAR_TEXTFIELD:d=this._yearTextField;break;case org.eclipse.swt.widgets.DateTimeDate.WEEKDAY_MONTH_SEPARATOR:d=this._separator0;break;case org.eclipse.swt.widgets.DateTimeDate.MONTH_DATE_SEPARATOR:d=this._separator1;break;case org.eclipse.swt.widgets.DateTimeDate.DATE_YEAR_SEPARATOR:d=this._separator2;break;case org.eclipse.swt.widgets.DateTimeDate.SPINNER:d=this._spinner;break;case org.eclipse.swt.widgets.DateTimeDate.DROP_DOWN_BUTTON:d=this._dropDownButton;break}if(d!=null){d.set({left:b,top:f,width:c,height:a})}},_onAppear:function(a){if(this._calendar!=null){this.getTopLevelWidget().add(this._calendar);this._setCalendarLocation()}},_onWindowBlur:function(a){if(this._dropped){this._toggleCalendarVisibility()}},_onChangeVisibility:function(a){var b=a.getValue();if(!b&&this._dropped){this._toggleCalendarVisibility()}},_onMouseDown:function(a){var b=a.getTarget();if(b.getUserData($[163])){a.stopPropagation()}else{if(b.getUserData($[177])){a.stopPropagation()}else{if(this._dropped&&b!==this._dropDownButton){this._toggleCalendarVisibility()}}}},_onMouseClick:function(a){if(a.isLeftButtonPressed()){var c=a.getTarget();if(c.getUserData($[163])){this._calendar._onDayClicked(a);var b=this._calendar.getDate();this._setDate(b);this._toggleCalendarVisibility();this.setFocused(true);this._sendChanges()}else{if(c.getUserData($[177])){this._calendar._onNavButtonClicked(a)}else{if(c===this._dropDownButton){this._toggleCalendarVisibility()}}}}},_onMouseOver:function(a){var b=a.getTarget();if(b==this._dropDownButton){this._dropDownButton.addState("over")}else{if(b.getUserData($[163])){this._calendar._onDayMouseOver(a)}}},_onMouseOut:function(a){var b=a.getTarget();if(b==this._dropDownButton){this._dropDownButton.removeState("over")}else{if(b.getUserData($[163])){this._calendar._onDayMouseOut(a)}}},_toggleCalendarVisibility:function(){if(this._calendar!=null){this._dropped=!this._dropped;this._calendar.setVisibility(this._dropped);this.setCapture(this._dropped);if(this._dropped){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._calendar.setDate(b);this._focusedTextField.removeState($[29])}else{if(this.getFocused()){this._focusedTextField.addState($[29])}}}},_setCalendarLocation:function(){if(this.getElement()&&this._calendar!=null){var b=qx.bom.element.Location.get(this.getElement());var c=qx.html.Window.getInnerHeight(window);var d=b.top+this.getHeight();var a=this._calendar.getHeightValue();if(d+a>c){d=b.top-a}this._calendar.setLocation(b.left,d)}},_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(b<c.getZIndex()){b=c.getZIndex()}}}if(b>this._calendar.getZIndex()){this._calendar.setZIndex(b+1)}}}});
qx.Class.define("org.eclipse.swt.widgets.DateTimeCalendar",{extend:qx.ui.layout.CanvasLayout,construct:function(c,b,a){arguments.callee.base.call(this);this.setOverflow(qx.constant.Style.OVERFLOW_HIDDEN);this.setAppearance("datetime-calendar");this._hasSelectionListener=false;org.eclipse.swt.widgets.Calendar.MONTH_NAMES=b;org.eclipse.swt.widgets.Calendar.WEEKDAY_NAMES=a;this._calendar=new org.eclipse.swt.widgets.Calendar();this._calendar.addEventListener($[304],this._onChangeDate,this);this._calendar.setDate(new Date(74,5,6));this._calendar.setTabIndex(null);this.add(this._calendar);this.addEventListener($[49],this._onContextMenu,this);this.addEventListener($[4],this._onKeyPress,this);this.addEventListener($[47],this._onmousewheel,this);this.addEventListener($[64],this._onFocusIn,this);this.addEventListener("blur",this._onFocusOut,this);this._updateSelectedDayState()},destruct:function(){this._calendar.removeEventListener($[304],this._onChangeDate,this);this.removeEventListener($[49],this._onContextMenu,this);this.removeEventListener($[4],this._onKeyPress,this);this.removeEventListener($[47],this._onmousewheel,this);this.removeEventListener($[64],this._onFocusIn,this);this.removeEventListener("blur",this._onFocusOut,this);this._disposeObjects("_calendar")},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._calendar.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._calendar.removeState(a)}},_onChangeDate:function(){var a=this._calendar.getDate();this._sendChanges(a.getDate(),a.getMonth(),a.getFullYear())},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_onKeyPress:function(a){this._calendar._onkeypress(a)},_onmousewheel:function(a){a.preventDefault();a.stopPropagation()},_onFocusIn:function(a){this._updateSelectedDayState()},_onFocusOut:function(a){this._updateSelectedDayState()},_updateSelectedDayState:function(){for(var a=0;a<6*7;a++){if(this.getFocused()){this._calendar._dayLabelArr[a].removeState($[92])}else{this._calendar._dayLabelArr[a].addState($[92])}}},_sendChanges:function(a,d,b){if(!org.eclipse.swt.EventUtil.getSuspended()){var f=org.eclipse.swt.WidgetManager.getInstance();var c=org.eclipse.swt.Request.getInstance();var e=f.findIdByWidget(this);c.addParameter(e+".day",a);c.addParameter(e+".month",d);c.addParameter(e+".year",b);if(this._hasSelectionListener){c.addEvent($[69],e);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();c.send()}}},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)},setHasSelectionListener:function(a){this._hasSelectionListener=a},setFont:function(){}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.DateTime",{factory:function(b){var a;var d=org.eclipse.rwt.protocol.AdapterUtil.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 org.eclipse.swt.widgets.DateTimeTime(c)}else{if(d.CALENDAR){org.eclipse.swt.widgets.Calendar.CELL_WIDTH=b.cellSize[0];org.eclipse.swt.widgets.Calendar.CELL_HEIGHT=b.cellSize[1];a=new org.eclipse.swt.widgets.DateTimeCalendar(c,b.monthNames,b.weekdayShortNames)}else{org.eclipse.swt.widgets.Calendar.CELL_WIDTH=b.cellSize[0];org.eclipse.swt.widgets.Calendar.CELL_HEIGHT=b.cellSize[1];a=new org.eclipse.swt.widgets.DateTimeDate(c,b.monthNames,b.weekdayNames,b.weekdayShortNames,b.dateSeparator,b.datePattern)}}org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["year","month","day","hours","minutes","seconds","subWidgetsBounds"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({subWidgetsBounds:function(c,b){for(var a=0;a<b.length;a++){c.setBounds.apply(c,b[a])}}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[24]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define($[284],{extend:qx.ui.basic.Atom,construct:function(b,a){arguments.callee.base.call(this);if(b.classname!=$[365]){throw new Error("illegal parent, must be a CTabFolder")}this._parent=b;this.setAppearance("ctab-item");this.setVerticalChildrenAlign(qx.constant.Layout.ALIGN_MIDDLE);this.setHorizontalChildrenAlign(qx.constant.Layout.ALIGN_LEFT);this.setOverflow(qx.constant.Style.OVERFLOW_HIDDEN);this.setTabIndex(null);this.setLabel($[235]);this.getLabelObject().setMode(qx.constant.Style.LABEL_MODE_HTML);this.getLabelObject().setVerticalAlign(qx.constant.Layout.ALIGN_MIDDLE);this.setLabel("");this._selected=false;this._showClose=false;this._canClose=a;this.updateForeground();this.updateBackground();this.updateBackgroundImage();this.updateBackgroundGradient();this.setTabPosition(b.getTabPosition());if(b.hasState($[111])){this.addState($[111])}this._closeButton=new qx.ui.basic.Image();this._closeButton.setAppearance("ctab-close-button");this._closeButton.setWidth(20);this._closeButton.addEventListener($[16],this._onClose,this);var c=org.eclipse.swt.WidgetManager.getInstance();c.setToolTip(this._closeButton,org.eclipse.swt.custom.CTabFolder.CLOSE_TOOLTIP);this.add(this._closeButton);this.updateCloseButton();this.addEventListener($[6],this._onMouseOver,this);this.addEventListener($[8],this._onMouseOut,this);this.addEventListener($[16],this._onClick,this);this.addEventListener($[51],this._onDblClick,this);this.addEventListener($[171],this._onChangeParent,this);this.addEventListener($[150],this._onChangeLeft,this)},destruct:function(){this.removeEventListener($[6],this._onMouseOver,this);this.removeEventListener($[8],this._onMouseOut,this);this.removeEventListener($[16],this._onClick,this);this.removeEventListener($[51],this._onDblClick,this);this.removeEventListener($[171],this._onChangeParent,this);this.removeEventListener($[150],this._onChangeLeft,this);this._closeButton.removeEventListener($[16],this._onClose,this);var a=org.eclipse.swt.WidgetManager.getInstance();a.setToolTip(this._closeButton,null);this._closeButton.dispose();this._closeButton=null},statics:{STATE_OVER:"over",STATE_SELECTED:$[29],IMG_CLOSE:"widget/ctabfolder/close.gif",IMG_CLOSE_HOVER:"widget/ctabfolder/close_hover.gif"},members:{setTabPosition:function(a){if(a==="top"){this.addState($[156])}else{this.removeState($[156])}},setSelected:function(a){if(this._selected!==a){this._selected=a;if(a){this.addState(org.eclipse.swt.custom.CTabItem.STATE_SELECTED)}else{this.removeState(org.eclipse.swt.custom.CTabItem.STATE_SELECTED)}this._updateNextSelected();this.updateForeground();this.updateBackground();this.updateBackgroundImage();this.updateBackgroundGradient();this.updateCloseButton()}},_updateNextSelected:function(){var a=null;var d=false;var c=this._parent.getChildren();for(var b=0;b<c.length&&!d;b++){if(c[b].classname===$[284]){d=c[b].isSelected();if(a!=null){if(d){a.addState($[437])}else{a.removeState($[437])}}a=c[b]}}},isSelected:function(){return this._selected},setShowClose:function(a){this._showClose=a;this.updateCloseButton()},updateForeground:function(){var a=this.isSelected()?this._parent.getSelectionForeground():this._parent.getTextColor();if(a!=null){this.setTextColor(a)}else{this.resetTextColor()}},updateBackground:function(){var a=this.isSelected()?this._parent.getSelectionBackground():null;if(a!=null){this.setBackgroundColor(a)}else{this.resetBackgroundColor()}},updateBackgroundImage:function(){var a=this.isSelected()?this._parent.getSelectionBackgroundImage():null;if(a!=null){this.setUserData($[173],a.slice(1));this.setBackgroundImage(a[0])}else{this.resetBackgroundImage()}},updateBackgroundGradient:function(){var a=this.isSelected()?this._parent.getSelectionBackgroundGradient():null;if(a!=null){this.setBackgroundGradient(a)}else{this.resetBackgroundGradient()}},updateCloseButton:function(){var a=false;if(this._canClose||this._showClose){a=this.isSelected()||(this._parent.getUnselectedCloseVisible()&&this.hasState(org.eclipse.swt.custom.CTabItem.STATE_OVER))}this._closeButton.setVisibility(a)},_onMouseOver:function(a){this.addState(org.eclipse.swt.custom.CTabItem.STATE_OVER);if(a.getTarget()==this._closeButton){this._closeButton.addState(org.eclipse.swt.custom.CTabItem.STATE_OVER)}this.updateCloseButton()},_onMouseOut:function(a){this.removeState(org.eclipse.swt.custom.CTabItem.STATE_OVER);if(a.getTarget()==this._closeButton){this._closeButton.removeState(org.eclipse.swt.custom.CTabItem.STATE_OVER)}this.updateCloseButton()},_onClick:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){if(a.getTarget()!=this._closeButton){a.getTarget().getParent()._notifyItemClick(a.getTarget())}}},_onDblClick:function(a){if(a.getTarget()!=this._closeButton){a.getTarget().getParent()._notifyItemDblClick(a.getTarget())}},_onClose:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var d=org.eclipse.swt.WidgetManager.getInstance();var b=org.eclipse.swt.Request.getInstance();var c=d.findIdByWidget(this);b.addEvent("org.eclipse.swt.events.ctabItemClosed",c);b.send()}},_onChangeParent:function(a){if(!this._parent._isInGlobalDisposeQueue){this._updateNextSelected()}},_onChangeLeft:function(a){if(this.getLeft()===0){this.addState("firstItem")}else{this.removeState("firstItem")}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.CTabItem",{factory:function(b){var a;org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(b.parent,function(c){a=new org.eclipse.swt.custom.CTabItem(c,c.hasState("rwt_CLOSE"));c.addAt(a,b.index);org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style)});return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getWidgetDestructor(),properties:[$[117],"font","text",$[18],$[110],$[98],"showing","showClose"],propertyHandler:{bounds:function(c,b){var a=b;if(c.getParent().getTabPosition()===$[31]){a[1]-=1}a[3]+=1;c.setLeft(a[0]);c.setTop(a[1]);c.setWidth(a[2]);c.setHeight(a[3])},font:org.eclipse.rwt.protocol.AdapterUtil.getControlPropertyHandler("font"),text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,true);c.setLabel(d)},image:function(b,a){if(a===null){b.setIcon(null)}else{b.setIcon(a[0])}},toolTip:org.eclipse.rwt.protocol.AdapterUtil.getControlPropertyHandler($[110]),showing:function(b,a){b.setVisibility(a)}},listeners:[],listenerHandler:{},methods:[]});
qx.Class.define($[365],{extend:qx.ui.layout.CanvasLayout,construct:function(){arguments.callee.base.call(this);this.setTabIndex(1);this.setHideFocus(true);this.setAppearance("ctabfolder");this.setOverflow($[13]);this._hasFolderListener=false;this._hasSelectionListener=false;this._tabPosition="top";this._tabHeight=0;this._selectionForeground=null;this._selectionBackground=null;this._selectionBackgroundImage=null;this._selectionBackgroundGradient=null;this._chevron=null;this._chevronBounds=[0,0,0,0];this._chevronMenu=null;this._unselectedCloseVisible=true;this._minMaxState=$[61];this._maxButton=null;this._maxButtonBounds=[0,0,0,0];this._minButton=null;this._minButtonBounds=[0,0,0,0];this._body=new qx.ui.layout.CanvasLayout();this._body.addState($[156]);this._body.setAppearance("ctabfolder-body");this.add(this._body);this._separator=new qx.ui.layout.CanvasLayout();this._separator.setAppearance("ctabfolder-separator");this.add(this._separator);this._frame=new qx.ui.layout.CanvasLayout();this._frame.setAppearance("ctabfolder-frame");this.add(this._frame);this._frameBorder=new org.eclipse.rwt.Border(2,$[72],"black");this.addEventListener($[63],this._updateLayout,this);this.addEventListener($[71],this._updateLayout,this);this.addEventListener($[4],this._onKeyPress,this);this.addEventListener($[49],this._onContextMenu,this)},destruct:function(){this.hideMinButton();this.hideMaxButton();this.removeEventListener($[63],this._updateLayout,this);this.removeEventListener($[71],this._updateLayout,this);this.removeEventListener($[4],this._onKeyPress,this);this.removeEventListener($[49],this._onContextMenu,this);this._disposeObjects("_frame","_separator");this._frameBorder.dispose()},statics:{BUTTON_SIZE:18,MIN_TOOLTIP:"Minimize",MAX_TOOLTIP:"Maximize",RESTORE_TOOLTIP:"Restore",CHEVRON_TOOLTIP:"Show List",CLOSE_TOOLTIP:"Close",setToolTipTexts:function(b,a,c,d,e){org.eclipse.swt.custom.CTabFolder.MIN_TOOLTIP=b;org.eclipse.swt.custom.CTabFolder.MAX_TOOLTIP=a;org.eclipse.swt.custom.CTabFolder.RESTORE_TOOLTIP=c;org.eclipse.swt.custom.CTabFolder.CHEVRON_TOOLTIP=d;org.eclipse.swt.custom.CTabFolder.CLOSE_TOOLTIP=e}},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]||a.substr(0,4)=="rwt_"){this._body.addState(a);this._frame.addState(a);this._mapItems(function(b){b.addState(a)})}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]||a.substr(0,4)=="rwt_"){this._body.removeState(a);this._frame.removeState(a);this._mapItems(function(b){b.removeState(a)})}},setTabPosition:function(a){this._tabPosition=a;this._mapItems(function(b){b.setTabPosition(a)});if(a=="top"){this._body.addState($[156])}else{this._body.removeState($[156])}this._updateLayout()},getTabPosition:function(){return this._tabPosition},setTabHeight:function(b){this._tabHeight=b;var a=this._getButtonTop();if(this._minButton!=null){this._minButton.setTop(a)}if(this._maxButton!=null){this._maxButton.setTop(a)}if(this._chevron!=null){this._chevron.setTop(a)}this._updateLayout()},_applyTextColor:function(b,a){arguments.callee.base.call(this,b,a);this._mapItems(function(c){c.updateForeground()})},_applyBackgroundColor:function(b,a){this._body.setBackgroundColor(b)},_applyBackgroundImage:function(b,a){this._body.setUserData($[173],this.getUserData($[173]));this._body.setBackgroundImage(b)},setSelectionForeground:function(a){this._selectionForeground=a;this._mapItems(function(b){b.updateForeground()})},setSelectionBackground:function(a){this._selectionBackground=a;this._mapItems(function(b){b.updateBackground()});if(a!=null&&!this.hasState($[155])){this._frame.setBorder(null);this._frameBorder.dispose();this._frameBorder=new org.eclipse.rwt.Border(2,$[72],a);this._frame.setBorder(this._frameBorder)}else{this._frame.resetBorder()}},setSelectionBackgroundImage:function(a){this._selectionBackgroundImage=a;this._mapItems(function(b){b.updateBackgroundImage()})},setSelectionBackgroundGradient:function(a){this._selectionBackgroundGradient=a;this._mapItems(function(b){b.updateBackgroundGradient()})},setUnselectedCloseVisible:function(a){this._unselectedCloseVisible=a;this._mapItems(function(b){b.updateCloseButton()})},setBorderVisible:function(a){if(a){this.addState($[111])}else{this.removeState($[111])}this._updateLayout()},getSelectionForeground:function(){return this._selectionForeground},getSelectionBackground:function(){return this._selectionBackground},getSelectionBackgroundImage:function(){return this._selectionBackgroundImage},getSelectionBackgroundGradient:function(){return this._selectionBackgroundGradient},getUnselectedCloseVisible:function(){return this._unselectedCloseVisible},_mapItems:function(c){var b=this.getChildren();for(var a=0;a<b.length;a++){if(b[a].classname===$[284]){c(b[a])}}},_getButtonTop:function(){return(this._tabHeight/2)-(org.eclipse.swt.custom.CTabFolder.BUTTON_SIZE/2)},setChevronBounds:function(d,c,b,a){this._chevronBounds=[d,c,b,a];if(this._chevron!=null){this._chevron.setSpace(d,b,c,a)}},showChevron:function(){if(this._chevron==null){this._chevron=new qx.ui.form.Button();this._chevron.setAppearance("ctabfolder-drop-down-button");this._chevron.setShow(qx.constant.Style.BUTTON_SHOW_ICON);this._chevron.addEventListener($[108],this._onChevronExecute,this);var a=org.eclipse.swt.WidgetManager.getInstance();a.setToolTip(this._chevron,org.eclipse.swt.custom.CTabFolder.CHEVRON_TOOLTIP);this.add(this._chevron)}this._chevron.setLeft(this._chevronBounds[0]);this._chevron.setTop(this._chevronBounds[1]);this._chevron.setWidth(this._chevronBounds[2]);this._chevron.setHeight(this._chevronBounds[3])},hideChevron:function(){if(this._chevron!=null){var a=org.eclipse.swt.WidgetManager.getInstance();a.setToolTip(this._chevron,null);this._chevron.removeEventListener($[108],this._onChevronExecute,this);this.remove(this._chevron);this._chevron.dispose();this._chevron=null}},setMinMaxState:function(d){this._minMaxState=d;var e="";var a="";var f="";var b="";switch(d){case"min":e=$[505];a=$[393];f=org.eclipse.swt.custom.CTabFolder.RESTORE_TOOLTIP;b=org.eclipse.swt.custom.CTabFolder.MAX_TOOLTIP;break;case"max":e=$[509];a=$[505];f=org.eclipse.swt.custom.CTabFolder.MIN_TOOLTIP;b=org.eclipse.swt.custom.CTabFolder.RESTORE_TOOLTIP;break;case $[61]:e=$[509];a=$[393];f=org.eclipse.swt.custom.CTabFolder.MIN_TOOLTIP;b=org.eclipse.swt.custom.CTabFolder.MAX_TOOLTIP;break}var c=org.eclipse.swt.WidgetManager.getInstance();if(this._minButton!=null){this._minButton.setIcon(e);c.setToolTip(this._minButton,f)}if(this._maxButton!=null){this._maxButton.setIcon(a);c.setToolTip(this._maxButton,b)}},setMaxButtonBounds:function(d,c,b,a){this._maxButtonBounds=[d,c,b,a];if(this._maxButton!=null){this._maxButton.setSpace(d,b,c,a)}},showMaxButton:function(){if(this._maxButton==null){this._maxButton=new qx.ui.form.Button();this._maxButton.setAppearance($[415]);this._maxButton.setShow(qx.constant.Style.BUTTON_SHOW_ICON);this.setMinMaxState(this._minMaxState);this._maxButton.addEventListener($[1],this._onMinMaxExecute,this);this.add(this._maxButton)}this._maxButton.setLeft(this._maxButtonBounds[0]);this._maxButton.setTop(this._maxButtonBounds[1]);this._maxButton.setWidth(this._maxButtonBounds[2]);this._maxButton.setHeight(this._maxButtonBounds[3])},hideMaxButton:function(){if(this._maxButton!=null){this._maxButton.removeEventListener($[1],this._onMinMaxExecute,this);var a=org.eclipse.swt.WidgetManager.getInstance();a.setToolTip(this._maxButton,null);this.remove(this._maxButton);this._maxButton.dispose();this._maxButton=null}},setMinButtonBounds:function(d,c,b,a){this._minButtonBounds=[d,c,b,a];if(this._minButton!=null){this._minButton.setSpace(d,b,c,a)}},showMinButton:function(){if(this._minButton==null){this._minButton=new qx.ui.form.Button();this._minButton.setAppearance($[415]);this._minButton.setShow(qx.constant.Style.BUTTON_SHOW_ICON);this.setMinMaxState(this._minMaxState);this._minButton.addEventListener($[1],this._onMinMaxExecute,this);this.add(this._minButton)}this._minButton.setLeft(this._minButtonBounds[0]);this._minButton.setTop(this._minButtonBounds[1]);this._minButton.setWidth(this._minButtonBounds[2]);this._minButton.setHeight(this._minButtonBounds[3])},hideMinButton:function(b){if(this._minButton!=null){this._minButton.removeEventListener($[1],this._onMinMaxExecute,this);var a=org.eclipse.swt.WidgetManager.getInstance();a.setToolTip(this._minButton,null);this.remove(this._minButton);this._minButton.dispose();this._minButton=null}},setHasFolderListener:function(a){this._hasFolderListener=a},setHasSelectionListener:function(a){this._hasSelectionListener=a},deselectAll:function(){this._mapItems(function(a){a.setSelected(false)})},_updateLayout:function(){var c=this.hasState($[111])?1:0;var a=this.hasState($[155])?0:2;var b=1;var e=this.getWidth()-c*2;var d=this._tabHeight+1;this._body.setLeft(0);this._body.setTop(0);this._body.setWidth(this.getWidth());this._body.setHeight(this.getHeight());this._separator.setLeft(c);this._separator.setWidth(e);this._separator.setHeight(10);this._frame.setLeft(c);this._frame.setWidth(e);this._frame.setHeight(this.getHeight()-c-b-d);if(this._tabPosition=="top"){this._separator.setTop(d);this._frame.setTop(d+1)}else{this._separator.setTop(this.getHeight()-d-1);this._frame.setTop(c)}},_onChevronExecute:function(a){if(this._chevronMenu==null||!this._chevronMenu.isSeeable()){if(!org.eclipse.swt.EventUtil.getSuspended()){var c=org.eclipse.swt.WidgetManager.getInstance();var d=c.findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();b.addEvent("org.eclipse.swt.events.ctabFolderShowList",d);b.send()}}},_onMinMaxExecute:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var c;if(a.getTarget()==this._minButton){if(this._minMaxState=="min"){this.setMinMaxState($[61]);c=$[418]}else{this.setMinMaxState("min");c="org.eclipse.swt.events.ctabFolderMinimized"}}else{if(this._minMaxState==$[61]||this._minMaxState=="min"){this.setMinMaxState("max");c="org.eclipse.swt.events.ctabFolderMaximized"}else{this.setMinMaxState($[61]);c=$[418]}}var d=org.eclipse.swt.WidgetManager.getInstance().findIdByWidget(this);var b=org.eclipse.swt.Request.getInstance();b.addParameter(d+".minimized",this._minMaxState=="min");b.addParameter(d+".maximized",this._minMaxState=="max");if(this._hasFolderListener){b.addEvent(c,d);b.send()}}},_onKeyPress:function(a){switch(a.getKeyIdentifier()){case"Left":a.stopPropagation();break;case $[39]:a.stopPropagation();break}},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_notifyItemClick:function(b){if(!org.eclipse.swt.EventUtil.getSuspended()){if(!b.isSelected()){this.deselectAll();b.setSelected(true);var e=org.eclipse.swt.WidgetManager.getInstance();var a=org.eclipse.swt.Request.getInstance();var d=e.findIdByWidget(this);var c=e.findIdByWidget(b);a.addParameter(d+$[366],c);a.addEvent($[69],d);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();a.send()}}},_notifyItemDblClick:function(b){if(!org.eclipse.swt.EventUtil.getSuspended()){if(this._hasSelectionListener){var e=org.eclipse.swt.WidgetManager.getInstance();var a=org.eclipse.swt.Request.getInstance();var d=e.findIdByWidget(this);var c=e.findIdByWidget(b);a.addParameter(d+$[366],c);a.addEvent($[168],d);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();a.send()}}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.CTabFolder",{factory:function(b){var a=new org.eclipse.swt.custom.CTabFolder();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.swt.custom.CTabFolder.setToolTipTexts.apply(a,b.toolTipTexts);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["tabPosition","tabHeight","minMaxState","minimizeBounds","minimizeVisible","maximizeBounds","maximizeVisible","chevronBounds","chevronVisible","unselectedCloseVisible",$[24],"selectionBackground","selectionForeground","selectionBackgroundImage","selectionBackgroundGradient","borderVisible"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({minimizeBounds:function(b,a){b.setMinButtonBounds.apply(b,a)},minimizeVisible:function(b,a){if(a){b.showMinButton()}else{b.hideMinButton()}},maximizeBounds:function(b,a){b.setMaxButtonBounds.apply(b,a)},maximizeVisible:function(b,a){if(a){b.showMaxButton()}else{b.hideMaxButton()}},chevronBounds:function(b,a){b.setChevronBounds.apply(b,a)},chevronVisible:function(b,a){if(a){b.showChevron()}else{b.hideChevron()}},selection:function(b,a){b.deselectAll();org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(a,function(c){if(c!=null){c.setSelected(true)}})},selectionBackground:function(b,a){if(a===null){b.setSelectionBackground(null)}else{b.setSelectionBackground(qx.util.ColorUtil.rgbToRgbString(a))}},selectionForeground:function(b,a){if(a===null){b.setSelectionForeground(null)}else{b.setSelectionForeground(qx.util.ColorUtil.rgbToRgbString(a))}},selectionBackgroundGradient:function(f,e){var g=null;if(e){var b=e[0];var a=e[1];var c=e[2];g=[];for(var d=0;d<b.length;d++){g[d]=[a[d]/100,qx.util.ColorUtil.rgbToRgbString(b[d])]}g.horizontal=!c}f.setSelectionBackgroundGradient(g)}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners(["folder",$[24]]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.swt.widgets.ExpandItem",{extend:qx.ui.layout.CanvasLayout,construct:function(a){arguments.callee.base.call(this);if(a.classname!=$[446]){throw new Error("illegal parent, must be a ExpandBar")}this.setAppearance("expand-item");this._headerHeight=24;this._expanded=false;this._image=null;this._text="";this._header=new qx.ui.basic.Atom($[235],this._image,16,16);this._header.getLabelObject().setPaddingBottom(4);this._header.setAppearance("expand-item-header");this._header.addEventListener($[16],this._onClick,this);this._header.addEventListener($[6],this._onHandleMouseOver,this);this._header.addEventListener($[8],this._onHandleMouseOut,this);this._header.setHeight(this._headerHeight);this._header.setLabel(this._text);this.add(this._header);this._chevron=new qx.ui.basic.Image();this._chevron.setAppearance("expand-item-chevron-button");this._chevron.setTop((this._headerHeight-this._chevron.getHeight())/2);this._chevron.addEventListener($[16],this._onClick,this);this._chevron.addEventListener($[6],this._onHandleMouseOver,this);this._chevron.addEventListener($[8],this._onHandleMouseOut,this);this.add(this._chevron)},destruct:function(){this._header.removeEventListener($[16],this._onClick,this);this._header.removeEventListener($[6],this._onHandleMouseOver,this);this._header.removeEventListener($[8],this._onHandleMouseOut,this);this._chevron.removeEventListener($[16],this._onClick,this);this._chevron.removeEventListener($[6],this._onHandleMouseOver,this);this._chevron.removeEventListener($[8],this._onHandleMouseOut,this);this._disposeObjects("_header","_chevron")},statics:{STATE_EXPANDED:$[162],STATE_OVER:"over"},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._header.addState(a);this._chevron.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._header.removeState(a);this._chevron.removeState(a)}},setExpanded:function(a){this._expanded=a;if(a){this._chevron.addState(org.eclipse.swt.widgets.ExpandItem.STATE_EXPANDED);this._header.addState(org.eclipse.swt.widgets.ExpandItem.STATE_EXPANDED)}else{this._chevron.removeState(org.eclipse.swt.widgets.ExpandItem.STATE_EXPANDED);this._header.removeState(org.eclipse.swt.widgets.ExpandItem.STATE_EXPANDED)}},setImage:function(a){this._image=a;this._header.setIcon(a)},setText:function(a){this._text=a;this._header.setLabel(a)},setHeaderHeight:function(a){this._headerHeight=a;this._header.setHeight(this._headerHeight);this._chevron.setTop((this._headerHeight-this._chevron.getHeight())/2)},_onClick:function(a){if(!org.eclipse.swt.EventUtil.getSuspended()){var d=org.eclipse.swt.WidgetManager.getInstance();var b=org.eclipse.swt.Request.getInstance();var c=d.findIdByWidget(this);if(this._expanded){b.addEvent("org.eclipse.swt.events.expandItemCollapsed",c)}else{b.addEvent("org.eclipse.swt.events.expandItemExpanded",c)}b.send()}},_onHandleMouseOver:function(a){this._chevron.addState(org.eclipse.swt.widgets.ExpandItem.STATE_OVER)},_onHandleMouseOut:function(a){this._chevron.removeState(org.eclipse.swt.widgets.ExpandItem.STATE_OVER)}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.ExpandItem",{factory:function(b){var a;org.eclipse.rwt.protocol.AdapterUtil.callWithTarget(b.parent,function(c){a=new org.eclipse.swt.widgets.ExpandItem(c);c.addWidget(a)});return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getWidgetDestructor(),properties:[$[98],$[117],"text",$[18],$[162],$[376]],propertyHandler:{bounds:function(b,a){b.setLeft(a[0]);b.setTop(a[1]);b.setWidth(a[2]);b.setHeight(a[3])},text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,false);c.setText(d)},image:function(b,a){if(a===null){b.setImage(null)}else{b.setImage(a[0])}}},listeners:[],listenerHandler:{},methods:[]});
qx.Class.define($[446],{extend:org.eclipse.swt.widgets.Scrollable,construct:function(){arguments.callee.base.call(this,new qx.ui.layout.CanvasLayout());this.setAppearance("expand-bar");this.setHideFocus(true);this.setScrollBarsVisible(false,false);this._bottomSpacing=new qx.ui.layout.CanvasLayout();org.eclipse.swt.WidgetUtil.fixIEBoxHeight(this._bottomSpacing);this._clientArea.add(this._bottomSpacing)},destruct:function(){this._disposeObjects("_bottomSpacing")},members:{addWidget:function(a){this._clientArea.add(a)},setBottomSpacingBounds:function(b,d,c,a){this._bottomSpacing.setLeft(b);this._bottomSpacing.setTop(d);this._bottomSpacing.setWidth(c);this._bottomSpacing.setHeight(a)},setVScrollBarVisible:function(a){this.setScrollBarsVisible(false,a);if(!a){this.setVBarSelection(0)}},setVScrollBarMax:function(a){this._vertScrollBar.setMaximum(a)}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.ExpandBar",{factory:function(b){var a=new org.eclipse.swt.widgets.ExpandBar();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["bottomSpacingBounds","vScrollBarVisible","vScrollBarMax"]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({bottomSpacingBounds:function(b,a){b.setBottomSpacingBounds.apply(b,a)}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define($[428],{extend:org.eclipse.rwt.widgets.BasicText,construct:function(a){arguments.callee.base.call(this);if(a){this._inputTag=$[116];this._inputType=null;this._inputOverflow="auto";this.setAppearance("text-area");this.setAllowStretchY(true);this.__oninput=qx.lang.Function.bindEvent(this._oninputDomTextarea,this)}this._hasSelectionListener=false;this._hasModifyListener=false;this._hasVerifyListener=false;this._requestScheduled=false;this._message=null;this._messageElement=null},destruct:function(){this._messageElement=null;this.__oninput=null},properties:{wrap:{check:$[2],init:true,apply:$[350]}},members:{setMessage:function(a){if(this._inputTag!==$[116]){this._message=a;this._updateMessage()}},getMessage:function(){return this._message},setPasswordMode:function(b){var a=b?"password":"text";if(this._inputTag!=$[116]&&this._inputType!=a){this._inputType=a;if(this._isCreated){if(org.eclipse.rwt.Client.getEngine()===$[118]){this._reCreateInputField()}else{this._inputElement.type=this._inputType}}}},setHasSelectionListener:function(a){if(!this.hasState($[202])){this._hasSelectionListener=a}},hasSelectionListener:function(){var a=org.eclipse.rwt.protocol.AdapterUtil.getShell(this);var b=a?a.getDefaultButton():null;var c=b!=null&&b.isSeeable();return !c&&this._hasSelectionListener},setHasModifyListener:function(a){this._hasModifyListener=a},hasModifyListener:function(){return this._hasModifyListener},setHasVerifyListener:function(a){this._hasVerifyListener=a},hasVerifyListener:function(){return this._hasVerifyListener},_ontabfocus:function(){this._renderSelection()},_onkeydown:function(a){arguments.callee.base.call(this,a);if(a.getKeyIdentifier()==$[54]&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isCtrlPressed()&&!a.isMetaPressed()){if(this.hasState($[202])){a.stopPropagation()}if(this.hasSelectionListener()){this._sendWidgetDefaultSelected()}}},_handleSelectionChange:function(b,a){arguments.callee.base.call(this,b,a);if(!org.eclipse.swt.EventUtil.getSuspended()){org.eclipse.swt.WidgetUtil.setPropertyParam(this,"selectionStart",b);org.eclipse.swt.WidgetUtil.setPropertyParam(this,"selectionLength",a)}},_handleModification:function(){if(!this._requestScheduled){this._requestScheduled=true;var a=org.eclipse.swt.Request.getInstance();a.addEventListener("send",this._onSend,this);if(this.hasModifyListener()||this.hasVerifyListener()){var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);a.addEvent($[358],b);qx.client.Timer.once(this._delayedSend,this,500)}}},_delayedSend:function(b){if(this._requestScheduled){var a=org.eclipse.swt.Request.getInstance();a.send()}},_onSend:function(b){var d=org.eclipse.swt.WidgetManager.getInstance();var c=d.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addParameter(c+".text",this.getComputedValue());this._detectSelectionChange();a.removeEventListener("send",this._onSend,this);this._requestScheduled=false},_sendWidgetDefaultSelected:function(){var c=org.eclipse.swt.WidgetManager.getInstance();var b=c.findIdByWidget(this);var a=org.eclipse.swt.Request.getInstance();a.addEvent($[168],b);org.eclipse.swt.EventUtil.addWidgetSelectedModifier();a.send()},_applyElement:function(b,a){arguments.callee.base.call(this,b,a);if(this._inputTag==$[116]){this._styleWrap()}this._inputElement.style.paddingRight="1px";this._updateMessage()},_webkitMultilineFix:function(){if(this._inputTag!==$[116]){arguments.callee.base.call(this)}},_applyWrap:function(b,a){if(this._inputTag==$[116]){this._styleWrap()}},_styleWrap:qx.core.Variant.select($[0],{mshtml:function(){if(this._inputElement){this._inputElement.wrap=this.getWrap()?"soft":"off"}},gecko:function(){if(this._inputElement){var b=this.getWrap()?"soft":"off";var a=this.getWrap()?"":"auto";this._inputElement.setAttribute("wrap",b);this._inputElement.style.overflow=a}},"default":function(){if(this._inputElement){var a=this.getWrap()?"soft":"off";this._inputElement.setAttribute("wrap",a)}}}),_applyMaxLength:function(b,a){if(this._inputTag!=$[116]){arguments.callee.base.call(this,b,a)}},_oninputDomTextarea:function(e){var b=this.getMaxLength();var d=true;if(b!=null){var f=this._inputElement.value;if(f.length>this.getMaxLength()){var c=this.getValue();var a=this._getSelectionStart();if(c.length==(f.length-1)){this._inputElement.value=c;this._setSelectionStart(a-1);this._setSelectionLength(0)}else{if(f.length>=c.length&&f!=c){this._inputElement.value=f.slice(0,this.getMaxLength());this._setSelectionStart(Math.min(a,this.getMaxLength()));this._setSelectionLength(0)}}if(this._inputElement.value==c){d=false}}}if(d){this._oninputDom(e)}},_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._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._layoutMessage()},_applyValue:function(b,a){arguments.callee.base.call(this,b,a);this._updateMessageVisibility();if(!org.eclipse.swt.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:qx.core.Variant.select($[0],{mshtml:function(){qx.client.Timer.once(function(){if(this._inputElement){this._inputElement.select();this._inputElement.focus()}},this,1)},webkit:function(){qx.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._renderMessageCursor()},_preventEnter:function(a){if(this._inputTag!==$[116]){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=$[17];a.outline="none";var b=this._getMessageStyle();b.font.renderStyle(a);a.color=b.textColor||"";a.left=b.paddingLeft+"px";a.height=Math.round(b.font.getSize()*this._LINE_HEIGT_FACTOR)+"px";org.eclipse.rwt.HtmlUtil.setTextShadow(this._messageElement,b.textShadow);this._getTargetNode().insertBefore(this._messageElement,this._inputElement)}if(this._messageElement){this._messageElement.innerHTML=this._message?this._message:""}this._layoutMessage();this._renderMessageCursor();this._updateMessageVisibility()}},_layoutMessage:function(){if(this._messageElement){var d=this._getMessageStyle();var c=this._messageElement.style;var b=(this.getBoxWidth()-this._cachedBorderLeft-this._cachedBorderRight-d.paddingLeft-d.paddingRight);c.width=Math.max(0,b)+"px";var a=parseInt(c.height);c.top=Math.round(this.getInnerHeight()/2-a/2)+"px"}},_getMessageStyle:function(){var a=qx.theme.manager.Appearance.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"}},_renderMessageCursor:function(){if(this._messageElement){var a=this._inputElement.style.cursor;if(a==null||a===""){a="text"}this._messageElement.style.cursor=a}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Text",{factory:function(b){var c=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(b.style);var a=new org.eclipse.rwt.widgets.Text(c.MULTI);org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);if(c.RIGHT){a.setTextAlign($[15])}else{if(c.CENTER){a.setTextAlign($[30])}}a.setWrap(c.WRAP!==undefined);return a},destructor:function(a){org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor()(a)},properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties(["text","message","echoChar","editable",$[24],$[297]]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.truncateAtZero(b);if(!c.hasState($[202])){d=a.replaceNewLines(d," ")}c.setValue(d)},echoChar:function(b,a){if(!b.hasState($[202])){b.setPasswordMode(a!==null)}},editable:function(b,a){b.setReadOnly(!a)},textLimit:function(b,a){b.setMaxLength(a)}}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([$[24],"modify","verify"]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.rwt.KeyEventSupport",{type:$[37],extend:qx.core.Object,construct:function(){arguments.callee.base.call(this);org.eclipse.rwt.EventHandler.setKeyDomEventFilter(this._onKeyDomEvent,this);org.eclipse.rwt.EventHandler.setKeyEventFilter(this._onKeyEvent,this);this._keyBindings={};this._cancelKeys={};this._currentKeyCode=-1;this._bufferedEvents=[];this._keyEventRequestRunning=false;this._ignoreNextKeypress=false;var a=org.eclipse.swt.Request.getInstance();a.addEventListener($[251],this._onRequestReceived,this)},destruct:function(){var a=org.eclipse.swt.Request.getInstance();a.removeEventListener($[251],this._onRequestReceived,this)},members:{setKeyBindings:function(a){this._keyBindings=a},setCancelKeys:function(a){this._cancelKeys=a},_onKeyDomEvent:function(b,e,a,c){if(b===$[10]){this._currentKeyCode=e}var d=this._getTargetControl();if(this._shouldCancel(this._currentKeyCode,a,c,d)){org.eclipse.rwt.EventHandlerUtil.stopDomEvent(c);c._noProcess=true}},_onKeyEvent:function(b,e,a,c){var d=this._getTargetControl();if(this._shouldSend(b,this._currentKeyCode,a,c,d)){this._sendKeyEvent(d,this._currentKeyCode,a,c)}if(b===$[4]||b===$[40]){this._ignoreNextKeypress=false}return !c._noProcess},_shouldSend:function(c,f,b,d,e){var a=false;if(this._isRelevant(f,c,d)){if(this._hasTraverseListener(e)&&this._isTraverseKey(f)){a=true}if(!a&&this._hasKeyListener(e)){var g=e.getUserData($[234]);if(g){a=this._isActive(g,d,f,b)}else{a=true}}if(!a){a=this._isActive(this._keyBindings,d,f,b)}}return a},_isRelevant:function(e,c,d){var a;if(c===$[4]){a=!this._isModifier(e)&&!this._ignoreNextKeypress}else{if(c===$[10]){var b=org.eclipse.rwt.EventHandlerUtil;var a=b.isNonPrintableKeyCode(e)||b.isSpecialKeyCode(e);if(!a&&(d.altKey||d.ctrlKey)){a=this._isAlphaNumeric(e)}if(a){this._ignoreNextKeypress=true}}}if(d.ctrlKey&&e===9){a=false}return a},_onRequestReceived:function(a){if(this._keyEventRequestRunning){this._keyEventRequestRunning=false;this._checkBufferedEvents()}},_checkBufferedEvents:function(){while(this._bufferedEvents.length>0&&!this._keyEventRequestRunning){var b=this._bufferedEvents.length;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{this._attachKeyEvent(c,d,a,b);this._keyEventRequestRunning=true;this._sendRequestAsync()}},_sendRequestAsync:function(){window.setTimeout(function(){org.eclipse.swt.Request.getInstance()._sendImmediate(true)},0)},_attachKeyEvent:function(d,j,i,e){var g=org.eclipse.swt.Request.getInstance();var a;if(d===null){a="w1"}else{var h=org.eclipse.swt.WidgetManager.getInstance();a=h.findIdByWidget(d)}var f=this._getCharCode(j,i,e);g.addEvent("org.eclipse.swt.events.keyDown",a);g.addParameter("org.eclipse.swt.events.keyDown.keyCode",j);g.addParameter("org.eclipse.swt.events.keyDown.charCode",f);var b="";var c=org.eclipse.rwt.Client.getPlatform()==="mac"&&e.metaKey;if(e.shiftKey){b+="shift,"}if(e.ctrlKey||c){b+="ctrl,"}if(e.altKey){b+="alt,"}g.addParameter("org.eclipse.swt.events.keyDown.modifier",b)},_shouldCancel:function(f,c,d,e){var a=this._isActive(this._cancelKeys,d,f,c);if(!a){var b=e?e.getUserData($[276]):null;if(b){a=this._isActive(b,d,f,c)}}return a},_getTargetControl:function(){var a=org.eclipse.rwt.EventHandler.getCaptureWidget();if(!a){var b=org.eclipse.rwt.EventHandler.getFocusRoot();a=b===null?null:b.getActiveChild()}var c=org.eclipse.swt.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,$[10],e,b);a=f[c]===true;if(!a){c=this._getKeyBindingIdentifier(d,$[4],e,b);a=f[c]===true}return a},_getKeyBindingIdentifier:function(d,c,e,b){var a=[];if(c===$[10]&&!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===$[4]&&!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($[395])===true},_hasTraverseListener:function(a){return a!==null&&a.getUserData($[442])===true},_isTraverseKey:function(b){var a=false;if(b===27||b===13||b===9){a=true}return a}}});org.eclipse.rwt.KeyEventSupport.getInstance();
qx.Class.define("org.eclipse.swt.widgets.Separator",{extend:qx.ui.layout.BoxLayout,construct:function(){arguments.callee.base.call(this);org.eclipse.swt.WidgetUtil.fixIEBoxHeight(this);this._line=new qx.ui.layout.CanvasLayout();this._line.setAnonymous(true);this._line.setAppearance("separator-line");this.add(this._line)},properties:{appearance:{refine:true,init:$[298]}},destruct:function(){this._line.dispose();this._line=null},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._line.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[36]){this._line.removeState(a)}},setLineStyle:function(a){this._line.addState(a)},setLineOrientation:function(a){if(a==$[32]){this.setHorizontalChildrenAlign($[30]);this._line.setHeight("100%");this._line.addState($[220])}else{this.setVerticalChildrenAlign($[46]);this._line.setWidth("100%");this._line.removeState($[220])}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.Separator",{factory:function(c){var b=new org.eclipse.swt.widgets.Separator();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(b,c.style);b.setUserData($[22],true);org.eclipse.rwt.protocol.AdapterUtil.setParent(b,c.parent);var d=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(c.style);b.setLineOrientation(d.VERTICAL?$[32]:$[41]);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:org.eclipse.rwt.protocol.AdapterUtil.getControlDestructor(),properties:org.eclipse.rwt.protocol.AdapterUtil.extendControlProperties([]),propertyHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlPropertyHandler({}),listeners:org.eclipse.rwt.protocol.AdapterUtil.extendControlListeners([]),listenerHandler:org.eclipse.rwt.protocol.AdapterUtil.extendControlListenerHandler({}),methods:[]});
qx.Class.define("org.eclipse.rwt.widgets.ControlDecorator",{extend:qx.ui.basic.Image,construct:function(){arguments.callee.base.call(this);this.setZIndex(1000);this.setVisibility(false);this._showHover=true;this._text=null},members:{setText:function(a){this._text=a;this._updateToolTip()},setShowHover:function(a){this._showHover=a;this._updateToolTip()},_updateToolTip:function(){var a=org.eclipse.swt.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=org.eclipse.swt.EventUtil;if(b){this.addEventListener($[1],a.widgetSelected,this);this.addEventListener($[51],a.widgetDefaultSelected,this)}else{this.removeEventListener($[1],a.widgetSelected,this);this.removeEventListener($[51],a.widgetDefaultSelected,this)}}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.ControlDecorator",{factory:function(b){var a=new org.eclipse.rwt.widgets.ControlDecorator();org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);org.eclipse.rwt.protocol.AdapterUtil.setParent(a,b.parent);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getWidgetDestructor(),properties:[$[117],"text",$[18],$[209],"showHover"],propertyHandler:{bounds:function(b,a){b.setLeft(a[0]);b.setTop(a[1]);b.setWidth(a[2]);b.setHeight(a[3])},text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,false);c.setText(d)},image:function(b,a){if(a===null){b.setSource(null)}else{b.setSource(a[0])}},visible:function(b,a){b.setVisibility(a)}},listeners:[$[24]],listenerHandler:{},methods:[]});
qx.Class.define("org.eclipse.rwt.MobileWebkitSupport",{type:$[121],statics:{_draggableTypes:{"org.eclipse.swt.widgets.Shell":null,"org.eclipse.swt.widgets.Sash":null,"org.eclipse.swt.widgets.Scale":[$[449]],"org.eclipse.swt.widgets.Slider":[$[499]],"org.eclipse.rwt.widgets.ScrollBar":null,"org.eclipse.swt.custom.ScrolledComposite":[$[188]],"org.eclipse.rwt.widgets.BasicButton":[$[188]],"qx.ui.layout.CanvasLayout":[$[468]],"org.eclipse.swt.widgets.List":[$[188]],"org.eclipse.rwt.widgets.Tree":[$[500],$[74],$[18],$[188]]},_lastMouseOverTarget:null,_lastMouseClickTarget:null,_lastMouseClickTime:null,_mouseEnabled:true,_fullscreen:window.navigator.standalone,_touchListener:null,_gestureListener:null,_touchSession:null,_allowScroll:false,_allowedMouseEvents:{INPUT:{mousedown:true,mouseup:true},TEXTAREA:{mousedown:true,mouseup:true},"*":{mousewheel:true}},init:function(){if(org.eclipse.rwt.Client.supportsTouch()){this._configureToolTip();this._hideTabHighlight();this._bindListeners();this._registerListeners();this._registerFilter();this.setTouchScrolling(!org.eclipse.rwt.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._allowScroll=a},_isZoomed:function(){var a=window.orientation%180===0;var b=a?screen.width:screen.height;return window.innerWidth!==b},_configureToolTip:function(){var a=org.eclipse.rwt.widgets.WidgetToolTip.getInstance();a.setShowInterval(600);a.setHideInterval(15000);a.setMousePointerOffsetX(-35);a.setMousePointerOffsetY(-100);var b=qx.ui.popup.ToolTipManager.getInstance();b.handleMouseEvent=function(d){var c=d.getType();if(c===$[1]){this._handleMouseOver(d)}else{if(c===$[5]){this.setCurrentToolTip(null)}}}},_hideTabHighlight:function(){qx.html.StyleSheet.createElement(" * { -webkit-tap-highlight-color: rgba(0,0,0,0); }")},_bindListeners:function(){this.__onTouchEvent=qx.lang.Function.bind(this._onTouchEvent,this);this.__onGestureEvent=qx.lang.Function.bind(this._onGestureEvent,this);this.__onOrientationEvent=qx.lang.Function.bind(this._onOrientationEvent,this)},_registerListeners:function(){var a=document.body;a.ontouchstart=this.__onTouchEvent;a.ontouchmove=this.__onTouchEvent;a.ontouchend=this.__onTouchEvent;a.ontouchcancel=this.__onTouchEvent;a.ongesturestart=this.__onGestureEvent;a.ongesturechange=this.__onGestureEvent;a.ongestureend=this.__onGestureEvent;a.onorientationchange=this.__onOrientationEvent},_removeListeners:function(){var a=document.body;a.ontouchstart=null;a.ontouchmove=null;a.ontouchend=null;a.ontouchcancel=null;a.ongesturestart=null;a.ongesturechange=null;a.ongestureend=null;a.onorientationchange=null},_registerFilter:function(){var a=org.eclipse.rwt.EventHandler;a.setMouseEventFilter(this._filterMouseEvents,this)},_filterMouseEvents:function(b){var c=this._allowedMouseEvents;var a=typeof b.originalEvent===$[19];if(!a){a=c["*"][b.type]===true}if(!a&&typeof c[b.target.tagName]===$[19]){a=c[b.target.tagName][b.type]===true}if(!a){b.preventDefault();b.returnValue=false}return a},_onTouchEvent:function(c){try{if(!org.eclipse.swt.EventUtil.getSuspended()){var b=c.type;if(this._mouseEnabled){switch(b){case"touchstart":this._handleTouchStart(c);break;case"touchend":this._handleTouchEnd(c);break;case"touchmove":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)}},_getTouch:function(a){var b=a.touches.item(0);if(b===null){b=a.changedTouches.item(0)}return b},_handleTouchStart:function(a){var d=this._getTouch(a);var b=a.target;var c=[d.clientX,d.clientY];this._touchSession={type:this._getSessionType(a),initialTarget:b,initialPosition:c};if(this._touchSession.type!==$[12]&&this._touchSession.type!==$[64]){a.preventDefault()}this._moveMouseTo(b,a);this._fireMouseEvent($[1],b,a,c)},_getSessionType:function(b){var c=b.target;var a=$[16];if(this._isDraggableWidget(c)){a="drag"}else{if(this._allowScroll&&this._isScrollableWidget(c)){a=$[12]}else{if(this._isFocusable(c)){a=$[64]}}}return a},_isFocusable:function(a){var b=a.tagName;return(b==="INPUT"||b==="TEXTAREA")},_handleTouchMove:function(b){if(this._touchSession!==null){var e=this._getTouch(b);var d=[e.clientX,e.clientY];if(this._touchSession.type!==$[12]){event.preventDefault()}if(this._touchSession.type==="drag"){b.preventDefault();var c=b.target;this._fireMouseEvent($[34],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)}}}},_isScrollableWidget:function(c){var a=false;do{var b=c.style?c.style:{};if(b.overflow===$[12]||b.overflowX===$[12]||b.overflowY===$[12]){a=true}c=c.parentNode;if(c===document.body){c=null}}while(c&&!a);return a},_isDraggableWidget:function(f){var g=org.eclipse.swt.WidgetManager.getInstance();var b=org.eclipse.rwt.EventHandlerUtil.getOriginalTargetObject(f);var e=g.findControl(b);var a=false;if(e==null){e=b}if(e!=null&&e.classname in this._draggableTypes){var d=this._draggableTypes[e.classname];if(d==null){a=true}else{for(var c=0;c<d.length&&!a;c++){if(b.getAppearance()==d[c]){a=true}}}}return a},_handleTouchEnd:function(a){a.preventDefault();var d=this._getTouch(a);var c=[d.clientX,d.clientY];var b=a.target;if(this._touchSession!==null){this._fireMouseEvent($[5],b,a,c)}if(this._touchSession&&this._touchSession.initialTarget===b){this._fireMouseEvent($[16],b,a,c);this._touchSession=null;if(this._isDoubleClick(a)){this._lastMouseClickTarget=null;this._lastMouseClickTime=null;this._fireMouseEvent($[51],b,a,c)}else{this._lastMouseClickTarget=b;this._lastMouseClickTime=(new Date()).getTime()}}},_isDoubleClick:function(b){var d=b.target;var a=false;if(this._lastMouseClickTarget===d){var c=((new Date()).getTime())-this._lastMouseClickTime;a=c<org.eclipse.swt.EventUtil.DOUBLE_CLICK_TIME}return a},_onGestureEvent:function(b){b.preventDefault();var a=b.type;if(this._gestureListener!==null){this._gestureListener[0].call(this._gestureListener[1],b)}switch(a){case"gesturestart":this._disableMouse(b);break;case"gestureend":this._enableMouse(b);break}},_onOrientationEvent:function(a){},_disableMouse:function(a){this._cancelMouseSession(a);this._mouseEnabled=false},_cancelMouseSession:function(a){var b=this._getDummyTarget();this._moveMouseTo(b,a);if(this._touchSession!==null){this._fireMouseEvent($[5],b,a,[0,0])}this._touchSession=null},_getDummyTarget:function(){return qx.ui.core.ClientDocument.getInstance()._getTargetNode()},_enableMouse:function(){this._mouseEnabled=true},_moveMouseTo:function(c,a){var b=this._lastMouseOverTarget;if(b!==c){var d=[0,0];if(b!==null){this._fireMouseEvent($[8],b,a,d)}this._lastMouseOverTarget=c;this._fireMouseEvent($[6],c,a,d)}},_fireMouseEvent:function(c,e,a,b){var d=document.createEvent("MouseEvent");d.initMouseEvent(c,true,true,window,0,b[0],b[1],b[0],b[1],false,false,false,false,qx.event.type.MouseEvent.buttons.left,null);d.originalEvent=a;e.dispatchEvent(d)},_postMouseEvent:function(a){if(a===$[5]){qx.ui.popup.ToolTipManager.getInstance().setCurrentToolTip(null)}}}});
qx.Class.define("org.eclipse.swt.widgets.ToolTip",{extend:qx.ui.popup.Popup,include:org.eclipse.rwt.VisibilityAnimationMixin,construct:function(a){arguments.callee.base.call(this);this._style=a;this.setAutoHide(false);this.setDisplay(true);this.setVisibility(false);this.setAppearance("tool-tip");var b=qx.ui.core.ClientDocument.getInstance();this.setMaxWidth(b.getClientWidth()/2);this.setMaxHeight(b.getClientHeight()/2);this.addToDocument();this.addEventListener($[1],this._onMouseDown,this);this._hideAfterTimeout=false;this._hasSelectionListener=false;this._messageFont=this._getMessageFont();this._contentArea=null;this._textArea=null;this._image=null;this._text=null;this._message=null;this._createControls()},destruct:function(){this.removeEventListener($[1],this._onMouseDown,this);this._contentArea.dispose();this._textArea.dispose();this._image.dispose();this._text.dispose();this._message.dispose();this._messageFont=null},members:{setText:function(a){this._text.setText(a);if(this.getVisibility()){this._update()}},setMessage:function(a){this._message.setText(a);if(this.getVisibility()){this._update()}},setLocation:function(a,b){this.setLeft(a);this.setTop(b)},setHideAfterTimeout:function(a){this._hideAfterTimeout=a},setHasSelectionListener:function(a){this._hasSelectionListener=a},setVisible:function(a){this.setVisibility(a);if(a){this._update();this.bringToFront();if(this._hideAfterTimeout){qx.client.Timer.once(this._hide,this,5*1000)}}},addState:function(a){arguments.callee.base.call(this,a);this._image.addState(a)},removeState:function(a){arguments.callee.base.call(this,a);this._image.removeState(a)},_createControls:function(){this._contentArea=new qx.ui.layout.BoxLayout($[41]);this._contentArea.setWidth("100%");this._contentArea.setHeight("100%");this._contentArea.setSpacing(5);this._contentArea.setParent(this);this._image=new qx.ui.basic.Image();this._image.setAppearance("tool-tip-image");this._image.setParent(this._contentArea);this._textArea=new qx.ui.layout.BoxLayout($[32]);this._textArea.setParent(this._contentArea);this._textArea.setHeight("100%");this._textArea.setSpacing(5);this._text=new qx.ui.basic.Label();this._text.setAppearance("tool-tip-text");this._text.setParent(this._textArea);this._message=new qx.ui.basic.Label();this._message.setAppearance("tool-tip-message");this._message.setHeight("auto");this._message.setWrap(true);this._message.setParent(this._textArea)},_update:function(){var c=this._message.getText();var d=this._getTextSize(this._text.getText(),-1);var a=this._getTextSize(c,-1);var b=a.x;while(b>0&&!this._matchesWidthToHeightRatio(a)){b-=10;a=this._getTextSize(c,b)}a.x=this._max(a.x,d.x);this._message.setWidth(a.x);this._message.setHeight(a.y)},_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=org.eclipse.swt.FontSizeCalculation._measureItem(c);return{x:b[0],y:b[1]}},_onMouseDown:function(a){this._hide();if(this._hasSelectionListener){var c=this._getWidgetId();var b=org.eclipse.swt.Request.getInstance();b.addEvent($[69],c);b.send()}},_hide:function(){this.setVisible(false);qx.ui.core.Widget.flushGlobalQueues();var a=org.eclipse.swt.Request.getInstance();a.addParameter(this._getWidgetId()+".visible",false)},_getWidgetId:function(){var a=org.eclipse.swt.WidgetManager.getInstance();return a.findIdByWidget(this)},_getMessageFont:function(){var a=new org.eclipse.swt.theme.ThemeValues({});return a.getCssFont("ToolTip-Message","font")}}});
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.widgets.ToolTip",{factory:function(b){var d=org.eclipse.rwt.protocol.AdapterUtil.createStyleMap(b.style);var c=null;if(d.ICON_ERROR){c=$[140]}else{if(d.ICON_WARNING){c="warning"}else{if(d.ICON_INFORMATION){c="information"}}}var a=new org.eclipse.swt.widgets.ToolTip(c);org.eclipse.rwt.protocol.AdapterUtil.addStatesForStyles(a,b.style);return a},destructor:org.eclipse.rwt.protocol.AdapterUtil.getWidgetDestructor(),properties:[$[98],$[303],$[134],"autoHide","text","message","location",$[209]],propertyHandler:{roundedBorder:org.eclipse.rwt.protocol.AdapterUtil.getRoundedBorderHandler(),backgroundGradient:org.eclipse.rwt.protocol.AdapterUtil.getBackgroundGradientHandler(),autoHide:function(b,a){b.setHideAfterTimeout(a)},text:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,false);c.setText(d)},message:function(c,b){var a=org.eclipse.rwt.protocol.EncodingUtil;var d=a.escapeText(b,false);d=a.replaceNewLines(d,$[107]);c.setMessage(d)},location:function(b,a){b.setLocation(a[0],a[1])}},listeners:[$[24]],listenerHandler:{},methods:[]});
qx.Class.define("org.eclipse.swt.WidgetManager",{type:$[37],extend:qx.core.Object,construct:function(){arguments.callee.base.call(this);this._current=null;this._fontPool={}},statics:{_onAppearFocus:function(a){var b=this;b.focus();b.removeEventListener($[44],org.eclipse.swt.WidgetManager._onAppearFocus,b)}},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($[22],true)}org.eclipse.rwt.protocol.ObjectManager.add(d,c,a)},remove:function(a){var b=this.findIdByWidget(a);org.eclipse.rwt.protocol.ObjectManager.remove(b)},findWidgetById:function(a){return org.eclipse.rwt.protocol.ObjectManager.getObject(a)},findIdByWidget:function(a){return org.eclipse.rwt.protocol.ObjectManager.getId(a)},isControl:function(b){var a=null;if(b!=null){a=b.getUserData($[22])}return a===true},findControl:function(b){var a=b;while(a!=null&&!this.isControl(a)){a=a.getParent?a.getParent():null}return a},setParent:function(b,c){var a=this.findWidgetById(c);if(a instanceof org.eclipse.swt.custom.ScrolledComposite){}else{if(a instanceof qx.ui.pageview.tabview.TabView){}else{if(a instanceof org.eclipse.swt.widgets.ExpandBar){a.addWidget(b)}else{b.setParent(a)}}}},setHtmlId:function(a,b){if(a instanceof Object&&typeof a.setHtmlProperty==$[45]){a.setHtmlProperty("id",b)}},focus:function(a){var b=this.findWidgetById(a);if(b.isSeeable()){b.focus()}else{b.addEventListener($[44],org.eclipse.swt.WidgetManager._onAppearFocus,b)}},setFont:function(f,c,e,d,b){if(f.setFont){var a=this._createFont(c,e,d,b);f.setFont(a)}},_createFont:function(c,e,d,b){var f=c+e+d+b;var a=this._fontPool[f];if(!a){a=new qx.ui.core.Font(e,c);a.setBold(d);a.setItalic(b);this._fontPool[f]=a}return a},setToolTip:function(c,b){if(b!=null&&b!==""){c.setUserData($[161],b);var a=org.eclipse.rwt.widgets.WidgetToolTip.getInstance();c.setToolTip(a);if(a.getParent()!=null){if(a.getBoundToWidget()==c){a.updateText(c)}}}else{this._removeToolTipPopup(c)}},_removeToolTipPopup:function(a){a.setToolTip(null);a.setUserData($[161],null)},setBackgroundGradient:function(e,c,a,b){var f=null;if(c!=null&&a!=null){f=[];for(var d=0;d<c.length;d++){f[d]=[a[d]/100,c[d]]}f.horizontal=!b}e.setBackgroundGradient(f)},setRoundedBorder:function(h,b,e,f,i,c,a){if(b>0&&e!=null&&f>=0&&i>=0&&c>=0&&a>=0){var g=[f,i,c,a];var d=new org.eclipse.rwt.Border(b,$[77],e,g);h.setBorder(d)}else{h.resetBorder()}},setContextMenu:function(a,b){a.setContextMenu(b);if(b==null){this._removeListener(a,$[456])}else{this._addListener(a,$[456])}},setHasListener:function(c,b,a){if(a){this._addListener(c,b)}else{this._removeListener(c,b)}},_addListener:function(a,c){var d=this._listenerMap[c];for(var b=0;b<d.length;b++){a.addEventListener(d[b].nativeType,d[b].listener,d[b].context)}},_removeListener:function(a,c){var d=this._listenerMap[c];for(var b=0;b<d.length;b++){a.removeEventListener(d[b].nativeType,d[b].listener,d[b].context)}},_listenerMap:{focus:[{nativeType:$[126],context:undefined,listener:org.eclipse.swt.EventUtil.focusGained},{nativeType:$[104],context:undefined,listener:org.eclipse.swt.EventUtil.focusLost}],mouse:[{nativeType:$[1],context:undefined,listener:org.eclipse.swt.EventUtil.mouseDown},{nativeType:$[5],context:undefined,listener:org.eclipse.swt.EventUtil.mouseUp}],help:[{nativeType:$[10],context:undefined,listener:org.eclipse.swt.EventUtil.helpRequested}],contextMenu:[{nativeType:$[10],context:undefined,listener:org.eclipse.rwt.widgets.Menu.menuDetectedByKey},{nativeType:$[5],context:undefined,listener:org.eclipse.rwt.widgets.Menu.menuDetectedByMouse}],menuDetect:[{nativeType:$[10],context:undefined,listener:org.eclipse.swt.EventUtil.menuDetectedByKey},{nativeType:$[5],context:undefined,listener:org.eclipse.swt.EventUtil.menuDetectedByMouse}]}}});
namespace($[187]);org.eclipse.rwt.protocol.Processor={processMessage:function(c){this.processMeta(c.meta);var a=c.operations;for(var b=0;b<a.length;b++){this.processOperationArray(a[b])}},processMeta:function(b){if(b.requestCounter!==undefined){var a=org.eclipse.swt.Request.getInstance();a.setRequestCounter(b.requestCounter)}if(b.redirect!==undefined){document.location=b.redirect}},processOperationArray:function(a){var c=a[0];try{switch(c){case $[84]:this._processCreate(a[1],a[2],a[3]);break;case"set":this._processSet(a[1],a[2]);break;case"listen":this._processListen(a[1],a[2]);break;case"call":this._processCall(a[1],a[2],a[3]);break;case $[228]:this._processDestroy(a[1]);break}}catch(b){this._processError(b,a)}},processOperation:function(a){switch(a.action){case $[84]:this._processCreate(a.target,a.type,a.properties);break;case"set":this._processSet(a.target,a.properties);break;case $[228]:this._processDestroy(a.target);break;case"call":this._processCall(a.target,a.method,a.properties);break;case"listen":this._processListen(a.target,a.properties);break}},_processCreate:function(c,e,d){var a=org.eclipse.rwt.protocol.AdapterRegistry.getAdapter(e);var b=a.factory(d);this._addTarget(b,c,a);this._processSetImpl(b,a,d)},_processDestroy:function(d){var a=org.eclipse.rwt.protocol.ObjectManager.getEntry(d);var b=a.adapter;var c=a.object;if(b.destructor){b.destructor(c)}org.eclipse.rwt.protocol.ObjectManager.remove(d)},_processSet:function(b,c){var a=org.eclipse.rwt.protocol.ObjectManager.getEntry(b);this._processSetImpl(a.object,a.adapter,c)},_processSetImpl:function(c,a,e){if(e&&a.properties instanceof Array){for(var d=0;d<a.properties.length;d++){var g=a.properties[d];var f=e[g];if(f!==undefined){if(a.propertyHandler&&a.propertyHandler[g]){a.propertyHandler[g].call(window,c,f)}else{var b=this._getSetterName(g);c[b](f)}}}}},_processCall:function(d,f,e){var a=org.eclipse.rwt.protocol.ObjectManager.getEntry(d);var b=a.adapter;var c=a.object;if(b.methods instanceof Array&&b.methods.indexOf(f)!==-1){if(b.methodHandler&&b.methodHandler[f]){b.methodHandler[f](c,e)}else{c[f](e)}}},_processListen:function(d,f){var a=org.eclipse.rwt.protocol.ObjectManager.getEntry(d);var b=a.adapter;var c=a.object;if(b.listeners instanceof Array){for(var e=0;e<b.listeners.length;e++){var g=b.listeners[e];if(f[g]===true){this._addListener(b,c,g)}if(f[g]===false){this._removeListener(b,c,g)}}}},_processError:function(c,b){var f;if(c){f=c.message?c.message:c.toString()}else{f="No Error given!"}var e='Operation "'+b[0]+'"';e+=' on target "'+b[1]+'"';var a=org.eclipse.rwt.protocol.ObjectManager.getEntry(b[1]);var d=a?a.object:null;e+=' of type "'+(d&&d.classname?d.classname:d)+'"';e+=" failed:";e+="\n"+f+"\n";e+="Properties: \n"+this._getPropertiesString(b);throw new Error(e)},_getPropertiesString:function(b){var a="";var d;switch(b[0]){case"set":case"listen":d=b[2];break;case $[84]:case"call":d=b[3];break;default:d={};break}for(var c in d){a+=c+" = "+d[c]+"\n"}return a},_addTarget:function(c,b,a){if(c instanceof qx.ui.core.Widget){var d=org.eclipse.swt.WidgetManager.getInstance();d.add(c,b,false,a)}else{org.eclipse.rwt.protocol.ObjectManager.add(b,c,a)}},_addListener:function(a,c,d){if(a.listenerHandler&&a.listenerHandler[d]){a.listenerHandler[d](c,true)}else{var b=this._getListenerSetterName(d);c[b](true)}},_removeListener:function(a,c,d){if(a.listenerHandler&&a.listenerHandler[d]){a.listenerHandler[d](c,false)}else{var b=this._getListenerSetterName(d);c[b](false)}},_getSetterName:function(a){return"set"+qx.lang.String.toFirstUp(a)},_getListenerSetterName:function(a){return"setHas"+qx.lang.String.toFirstUp(a)+"Listener"}};
namespace($[217]);org.eclipse.rwt.UICallBack=function(){if(org.eclipse.rwt.UICallBack._instance!==undefined){throw new Error("UICallBack can not be created twice")}else{org.eclipse.rwt.UICallBack._instance=this}this._retryInterval=0;this._active=false;this._running=false;this._requestTimer=new qx.client.Timer(0);this._requestTimer.addEventListener($[26],this._doSendUICallBackRequest,this)};org.eclipse.rwt.UICallBack.getInstance=function(){if(org.eclipse.rwt.UICallBack._instance===undefined){new org.eclipse.rwt.UICallBack()}return org.eclipse.rwt.UICallBack._instance};org.eclipse.rwt.UICallBack.prototype={setActive:function(a){this._active=a},sendUIRequest:function(){org.eclipse.swt.Request.getInstance()._sendImmediate(true)},sendUICallBackRequest:function(){if(this._active&&!this._running){this._running=true;this._requestTimer.start()}},_doSendUICallBackRequest:function(){this._requestTimer.stop();var a=org.eclipse.swt.Request.getInstance().getUrl();var b=new qx.io.remote.Request(a,"GET",$[282]);b.addEventListener($[27],this._handleFinished,this);b.addEventListener($[38],this._handleFailed,this);b.setParameter("custom_service_handler","org.eclipse.rwt.internal.uicallback.UICallBackServiceHandler");org.eclipse.swt.Request.getInstance()._sendStandalone(b)},_handleFinished:function(d){this._running=false;if(d.getType()===$[27]){var e=d.getContent();try{var b=JSON.parse(e);org.eclipse.rwt.protocol.Processor.processMessage(b)}catch(a){throw new Error("Could not process UICallBack response: ["+e+"]: "+a)}this._retryInterval=0}var f=d.getTarget();var c=f.getRequest();f.dispose();c.dispose()},_handleFailed:function(a){this._running=false;if(org.eclipse.swt.Request.getInstance()._isConnectionError(a.getStatusCode())){qx.client.Timer.once(this.sendUICallBackRequest,this,this._retryInterval);this._increaseRetryInterval()}},_increaseRetryInterval:function(){if(this._retryInterval===0){this._retryInterval=1000}else{if(this._retryInterval<60*1000){this._retryInterval*=2}}}};
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.UICallBack",{factory:function(a){return org.eclipse.rwt.UICallBack.getInstance()},destructor:qx.lang.Function.returnTrue,properties:[$[68]],propertyHandler:{},listeners:[],listenerHandler:{},methods:["sendUIRequest"]});
namespace($[217]);org.eclipse.rwt.JSExecutor=function(){if(org.eclipse.rwt.JSExecutor._instance!==undefined){throw new Error("JSExecutor can not be created twice")}else{org.eclipse.rwt.JSExecutor._instance=this}};org.eclipse.rwt.JSExecutor.getInstance=function(){if(org.eclipse.rwt.JSExecutor._instance===undefined){new org.eclipse.rwt.JSExecutor()}return org.eclipse.rwt.JSExecutor._instance};org.eclipse.rwt.JSExecutor.prototype={execute:function(code){eval(code)}};
org.eclipse.rwt.protocol.AdapterRegistry.add("rwt.JSExecutor",{factory:function(a){return org.eclipse.rwt.JSExecutor.getInstance()},destructor:qx.lang.Function.returnTrue,properties:[],propertyHandler:{},listeners:[],listenerHandler:{},methods:[$[108]],methodHandler:{execute:function(b,a){b.execute(a.content)}}});
qx.Class.define("org.eclipse.rwt.System",{type:$[37],extend:qx.core.Target,construct:function(){if(this.isSupported()){arguments.callee.base.call(this);this._startupTime=new Date().getTime();this._onloadWrapped=qx.lang.Function.bind(this._onload,this);this._onbeforeunloadWrapped=qx.lang.Function.bind(this._onbeforeunload,this);this._onunloadWrapped=qx.lang.Function.bind(this._onunload,this);qx.html.EventRegistration.addEventListener(window,"load",this._onloadWrapped);qx.html.EventRegistration.addEventListener(window,$[245],this._onbeforeunloadWrapped);qx.html.EventRegistration.addEventListener(window,"unload",this._onunloadWrapped);qx.io.Alias.getInstance().add($[121],"./rwt-resources/resource/static");qx.io.Alias.getInstance().add("widget","./rwt-resources/resource/widget/rap");this._applyPatches();org.eclipse.rwt.GraphicsUtil.init();var a=org.eclipse.rwt.EventHandler;a.setAllowContextMenu(org.eclipse.rwt.widgets.Menu.getAllowContextMenu);a.setMenuManager(org.eclipse.rwt.MenuManager.getInstance())}else{this._handleUnsupported()}},events:{beforeunload:$[482],unload:$[3],uiready:$[3]},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()},_applyPatches:function(){if(!org.eclipse.rwt.Client.supportsCss3()){qx.Class.patch(qx.ui.core.Parent,org.eclipse.rwt.GraphicsMixin);qx.Class.patch(org.eclipse.rwt.widgets.BasicText,org.eclipse.rwt.GraphicsMixin);qx.Class.patch(org.eclipse.rwt.widgets.TreeRow,org.eclipse.rwt.GraphicsMixin);qx.Class.patch(org.eclipse.rwt.widgets.MultiCellWidget,org.eclipse.rwt.GraphicsMixin)}else{qx.Class.patch(org.eclipse.swt.widgets.ProgressBar,org.eclipse.rwt.GraphicsMixin)}qx.Class.patch(qx.event.type.DomEvent,org.eclipse.rwt.DomEventPatch)},getStartupTime:function(){return this._startupTime},_onload:function(a){if(!this._onloadDone){this._onloadDone=true;qx.ui.core.ClientDocument.getInstance();org.eclipse.rwt.MobileWebkitSupport.init();qx.client.Timer.once(this._preload,this,0)}},_preload:function(){var a=qx.io.image.Manager.getInstance().getVisibleImages();this.__preloader=new qx.io.image.PreloaderSystem(a,this._preloaderDone,this);this.__preloader.start()},_preloaderDone:function(){this.__preloader.dispose();this.__preloader=null;org.eclipse.rwt.EventHandler.init();org.eclipse.rwt.EventHandler.attachEvents();this.setUiReady(true);qx.ui.core.Widget.flushGlobalQueues();qx.client.Timer.once(this._postload,this,100)},_postload:function(){var a=qx.io.image.Manager.getInstance().getHiddenImages();this.__postloader=new qx.io.image.PreloaderSystem(a,this._postloaderDone,this);this.__postloader.start()},_postloaderDone:function(){this.__postloader.dispose();this.__postloader=null},_onbeforeunload:function(b){var a=new qx.event.type.DomEvent($[245],b,window,this);this.dispatchEvent(a,false);var c=a.getUserData($[385]);a.dispose();return c!==null?c:undefined},_onunload:function(a){this.createDispatchEvent("unload");org.eclipse.rwt.EventHandler.detachEvents();org.eclipse.rwt.EventHandler.cleanUp();qx.core.Object.dispose(true)},_isBrowserSupported:function(){var a=true;var c=org.eclipse.rwt.Client.getEngine();var b=org.eclipse.rwt.Client.getMajor();if(c===$[118]&&b<7){a=false}return a},_isModeSupported:function(){var a=true;var b=org.eclipse.rwt.Client.getEngine();if(b===$[214]&&document.documentMode<9){a=false}return a},_handleUnsupported:function(){document.write("<big style='background-color:white;color:black;'>");if(!this._isModeSupported()){document.write("Unsupported Browser mode: Your Browser is only supported when ");document.write("running in standard mode, but is running in quirksmode.")}else{document.write("Unsupported Browser: You're using an ");document.write("outdated browser version that is not supported anymore.")}document.write("</big>")}},destruct:function(){qx.html.EventRegistration.removeEventListener(window,"load",this._onloadWrapped);qx.html.EventRegistration.removeEventListener(window,$[245],this._onbeforeunloadWrapped);qx.html.EventRegistration.removeEventListener(window,"unload",this._onunloadWrapped)},defer:function(c,b,a){c.getInstance()}});
})(["qx.client","mousedown","Boolean","qx.event.type.Event","keypress","mouseup","mouseover","undefined","mouseout","string","keydown","pressed","scroll","hidden","Integer","right","click","absolute","image","object","shadow","String","isControl","height","selection","qx.debug","interval","completed","width","selected","center","bottom","vertical","abandoned","mousemove","highlight","variant_","singleton","failed","Right","keyup","horizontal","PageUp","PageDown","appear","function","middle","mousewheel","qx.event.type.DataEvent","contextmenu","computed=this.","dblclick","sending","timeout","Enter","aborted","receiving","this.","overflow","Number","backgroundColor","normal","number","changeWidth","focus","color","default","change","active","org.eclipse.swt.events.widgetSelected","=value;","changeHeight","solid","style","label","focused","opacity","rounded","maximized","dragstart","borderLeftWidth","qx.event.type.MouseEvent","transparent","Space","create","scrollY","scrollX","borderTopWidth","content","input","maxWidth","minWidth","parent_unfocused","backgroundImage","maxHeight","configured","overflowX","overflowY","customVariant","minHeight","alias","abstract","changeFont","Escape","focusout","frame","Object","<br/>","execute","changeValue","toolTip","rwt_BORDER","\" in class \"","webkit","gradient","if(this.","textarea","bounds","mshtml","qx.io.remote.Response","CSS1Compat","static","radio","fixed","qx.ui.core.Widget","reset","focusin","border","boolean","locationX","locationY","position","delete this.","pointer","backgroundGradient","unstyle","dragover","gecko","filter","other","error","lightshadow","maxLength","insertDom","!==undefined)","e-resize","background",".selection","return this.","qx.event.type.DragEvent","changeLeft","visibility","created","refresh","translucent","rwt_FLAT","barTop","\",value);","roundrect","datetime-field","display","toolTipText","expanded","calendar-day","stateOverChanged","fontSize","fillType","queued","org.eclipse.swt.events.widgetDefaultSelected","n-resize","cursor","changeParent","changeBackgroundColor","backgroundImageSize","changeVisibility","complex","padding","calendar-button","marginTop","marginLeft","changeEnabled","paddingTop","inherit","cancel","Display","linesvisible","rwt_SEPARATOR","org.eclipse.rwt.protocol","scrollbar-thumb","ne-resize","nw-resize","paddingRight","progress","background-color","changeFocusedChild","!active","\" is an invalid value for the property \"","Invalid key \"","textAlign","dragdrop","grayed","backgroundLayouted","rwt_MULTI","checked","datetime-separator","toggle","rwt_BAR","left-reversed","paddingBottom","visible","minimized","stroke","top-reversed","paddingLeft","newmshtml","qx.event.type.FocusEvent","else if(this.","org.eclipse.rwt","darkshadow","scrollHeight","rwt_VERTICAL","remove","outline","center-reversed","windowblur","Attention! The value \"","middle-reversed","shorthand","destroy","shadowLayouted","keyevent","-moz-scrollbars-vertical","checkBox","mouseevent","activeKeys","(empty)","marginRight","elementOver","minimum","Control","qx.ui.popup.ToolTip","enabled","borderWidths","dragmove","windowresize","beforeunload","border-box","lastChild","old=this.","domKeyevent","qx.event.handler.DragAndDropHandler","received","boxSizing","no-repeat","android","changeSelection","-moz-scrollbars-none","_applyResizable","dragend","!==undefined){",".bounds.x",".bounds.y","changeFocused","borderBottomWidth","borderRightWidth","_applyClip","\" in mixin \"",".bounds.width","borderRadii","Could not evaluate computed style: ","qx.event.type.KeyEvent","dragout","maximum","collapsed","_applyIndicatorFill","marginBottom","cancelKeys","-moz-scrollbars-horizontal",".bounds.height","dragenter","expandIcon","MozOpacity","application/javascript","increment","org.eclipse.swt.custom.CTabItem","Connection dropped","selectionChanged","rwt-resources/themes/images/","qx.ui.popup.PopupManager","changeHtml","qx.io.remote.XmlHttpTransport","DOMMouseScroll","rwt_NO_RADIO_GROUP","alignment","underline","typeof value === \"number\" && isFinite(value)","foreground","textLimit","separator","Invalid type of key \"","readonly","\" is not allowed!","otherMonth","roundedBorder","changeDate","crosshair","lineHeight","se-resize","backgroundRepeat","treeColumn","changeTextColor","Backspace","The configuration key \"","\"! The type of the key must be \"","dragEnter","updateRows","changeLeadItem","Conflict between mixin \"","SystemMessage-DisplayOverlay","_applyBackgroundGradient","changeActive","scrollBarsVisible","_applyIcon","w-resize","sw-resize","borderColor","changeBackgroundGradient","changeChecked","changeState","not-allowed","stroke-width","tabIndex","pageIncrement","_applyOpacity","_applyEnabled","backgroundPosition","changeTop","_manager","s-resize","\" of property \"","dnd_selected","hoverOut","Variant \"","HORIZONTAL","changeElement","col-resize","qx.ui.form.Button","userScroll","Content-Type","changeMode","_applyWrap","changeActiveChild","org.eclipse.rwt.widgets.MenuItem","_applyTextAlign","borderMaxWidth","disappear","qx.compatibility","postApplyDimensions failed ","org.eclipse.swt.events.modifyText","_applyState","if(old===undefined)old=null;","Unable to destroy function: ","unselectable","qx.ui.embed.Flash","qx.client.NativeWindow","org.eclipse.swt.custom.CTabFolder",".selectedItemId","',sizingMethod='crop')","sash-handle","changeSource","qx.ui.window.Manager"," does not support it","push-button","subMenuChanged",":content-box;","delete window.","headerHeight","bezierCurveTo","flyOutBottom","qx.ui.window.Window","ignoreFlexible","hasComputed","\" which must be typeof \"","qx.ui.pageview.tabview.TabView","borderBottomStyle","returnValue","_applyOrientation","qx.io.remote.Exchange","_focusedTextField","_applySource","separatorBorder","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='","qx.ui.pageview.AbstractButton","widget/ctabfolder/maximize.gif","_applyHeight","keyListener","qx.ui.pageview.AbstractPage","\" in member \"","minThumbSize","qx.ui.selection.RadioManager","flyInBottom","scrolledComposite","qx.util.range.Range","removeChild","borderLeftStyle","var prop=qx.core.Property;","datetime-button-up",".activeControl","\" must be defined!","static/image/blank.gif","_applyAnimation"," is not inside this parent.","pointerEvents","org.eclipse.swt.events.widgetSelected.detail",":border-box;","ctabfolder-button","qx.core.Object","if(value===undefined)prop.error(this,2,\"","org.eclipse.swt.events.ctabFolderRestored","createContent","right-reversed",";background-repeat:no-repeat;' ></div>","Includes of mixins must be mixins. The include number '","qx.ui.core.Parent","columnLayoutChanged","value !== null","org.eclipse.rwt.events.historyNavigated","Link-Hyperlink","org.eclipse.rwt.widgets.Text","rwt_HORIZONTAL","skipFlexible","quadraticCurveTo","scrollBarsSelection","Could not parse color: ","org.eclipse.rwt.widgets.BasicText","qx.event.handler.FocusHandler","' in mixin '","nextSelected","bottom-reversed","WebkitUserSelect","center center","qx.event.type.ChangeEvent","traverseListener","Cache-Control",".$$properties.","linearGradient","org.eclipse.swt.widgets.ExpandBar","datetime-button-down","rwt_INDETERMINATE","scale-thumb","itemsChanged","numericRound","background-image:url(","qx.ui.embed.IframeManager","MozUserSelect","_applyHorizontalChildrenAlign","contextMenu","org.eclipse.swt.dnd.","multipart/form-data","hoverFristItem","client-document-blocker","qx.io.remote.AbstractRemoteTransport","qx.io.remote.Request","_applySelectionIndicator","' of class '","qx.io.image.Preloader","if(old===computed)return value;","bottomRight","coolitem-handle","dragFinished","\" failed with exception "," modified: Failed to dispatch change event: ","org.eclipse.rwt.events.historyNavigated.entryId","Could not convert system colors to RGB: ","calendar-week","Alpha(opacity=","draggesture","textDecoration","\" which must be an instance of \"","changeSpacing","_applyBackgroundColor","static/html/blank.html","qx.event.type.DomEvent","stdDeviation","strokeStyle","_childrenQueue","\"! The value needs to be a map!","maximumChanged","if(computed===undefined)computed=null;","borderRightStyle","\" but is typeof \"",") but parent layout ","flyOutRight","_applyVerticalChildrenAlign","_applySpacing","KhtmlUserSelect","minimumChanged","_invalidate","\"! The value is undefined/null!","slider-thumb","tree-column","checkDisposedItems","org.eclipse.rwt.widgets.Button","Iframe source could not be set! This may be related to AdBlock Plus Firefox Extension.","_applyManager","widget/ctabfolder/restore.gif","Failed to check property ","_applyVisibility","borderTopStyle","widget/ctabfolder/minimize.gif","_applySeparatorBorder"]);