Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2014-01-31 09:56:29 +0000
committerIvan Furnadjiev2014-01-31 11:54:06 +0000
commitb4e5728607d1fb16b5d28ff3ab6bb976731c207b (patch)
tree3060588e7e4fe4401b50f0c58173c4008560fe44
parentfa907b860ec2fdf179edbea5780092166532ca4a (diff)
downloadorg.eclipse.rap-b4e5728607d1fb16b5d28ff3ab6bb976731c207b.tar.gz
org.eclipse.rap-b4e5728607d1fb16b5d28ff3ab6bb976731c207b.tar.xz
org.eclipse.rap-b4e5728607d1fb16b5d28ff3ab6bb976731c207b.zip
Set blank.gif as the background image of the textearea element
Sometimes IE9 does not react on mouse click if background image is not set. 422974: [Text] Multi-Line Text with border-radius not focusable by mouse in IE9 https://bugs.eclipse.org/bugs/show_bug.cgi?id=422974 Change-Id: Iaf6113acfd1b91d3a08d4ada2524ca2957dc937d
-rw-r--r--bundles/org.eclipse.rap.rwt/js/rwt/widgets/Text.js6
-rw-r--r--bundles/org.eclipse.rap.rwt/resources/client.js228
-rw-r--r--tests/org.eclipse.rap.rwt.jstest/js/org/eclipse/rwt/test/tests/TextTest.js18
3 files changed, 137 insertions, 115 deletions
diff --git a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/Text.js b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/Text.js
index 24b3522a23..a8aacd99df 100644
--- a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/Text.js
+++ b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/Text.js
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010, 2013 EclipseSource and others.
+ * Copyright (c) 2010, 2014 EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -189,6 +189,10 @@ rwt.qx.Class.define( "rwt.widgets.Text", {
this.base( arguments, value, oldValue );
if( this._inputTag == "textarea" ) {
this._styleWrap();
+ if( rwt.client.Client.isNewMshtml() && rwt.client.Client.getVersion() === 9 ) {
+ // Bug 422974 - [Text] Multi-Line Text with border-radius not focusable by mouse in IE9
+ rwt.html.Style.setBackgroundImage( this._inputElement, "static/image/blank.gif" );
+ }
}
// Fix for bug 306354
this._inputElement.style.paddingRight = "1px";
diff --git a/bundles/org.eclipse.rap.rwt/resources/client.js b/bundles/org.eclipse.rap.rwt/resources/client.js
index e231539c55..2cb9ba5b16 100644
--- a/bundles/org.eclipse.rap.rwt/resources/client.js
+++ b/bundles/org.eclipse.rap.rwt/resources/client.js
@@ -2,13 +2,13 @@
rwt={};rwt.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)}rwt.runtime.Bootstrap.__registry[b]=a.statics}}};rwt.qx.Class.define("rwt.runtime.Bootstrap",{statics:{LOADSTART:new Date(),time:function(){return new Date().getTime()},since:function(){return this.time()-this.LOADSTART},__registry:{}}});var namespace=function(a){rwt.qx.Class.createNamespace(a,{})};
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(/iPad|iPhone|iPod/.test(navigator.userAgent)&&/Version\/6/.test(navigator.userAgent)){(function(g){var a={};var d={};var e=g.setTimeout;var f=g.setInterval;var h=g.clearTimeout;var c=g.clearInterval;function i(p,m,k){var o,j=k[0],l=(p===f);function n(){if(j){j.apply(g,arguments);if(!l){delete m[o];j=null}}}k[0]=n;o=p.apply(g,k);m[o]={args:k,created:Date.now(),cb:j,id:o};return o}function b(p,n,j,q,s){var k=j[q];if(!k){return}var l=(p===f);n(k.id);if(!l){var m=k.args[1];var o=Date.now()-k.created;if(o<0){o=0}m-=o;if(m<0){m=0}k.args[1]=m}function r(){if(k.cb){k.cb.apply(g,arguments);if(!l){delete j[q];k.cb=null}}}k.args[0]=r;k.created=Date.now();k.id=p.apply(g,k.args)}g.setTimeout=function(){return i(e,a,arguments)};g.setInterval=function(){return i(f,d,arguments)};g.clearTimeout=function(k){var j=a[k];if(j){delete a[k];h(j.id)}};g.clearInterval=function(k){var j=d[k];if(j){delete d[k];c(j.id)}};g.addEventListener($[21],function(){var j;for(j in a){b(e,h,a,j)}for(j in d){b(f,c,d,j)}})}(window))};
rwt.qx.Class.define("rwt.util.Arrays",{statics:{fromArguments:function(a){return Array.prototype.slice.call(a,0)},fromShortHand:function(c){var b=c.length;if(b===0||b>4){throw new Error("Invalid number of arguments!")}var a=rwt.util.Arrays.copy(c);if(b===1){a[1]=a[2]=a[3]=a[0]}else{if(b===2){a[2]=a[0];a[3]=a[1]}else{if(b===3){a[3]=a[1]}}}return a},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}}});
-rwt.qx.Class.define("rwt.util.Variant",{statics:{__variants:{},__cache:{},compilerIsSet:function(){return true},define:function(b,c,a){if(rwt.util.Variant.compilerIsSet($[26],"on")){if(!this.__isValidArray(c)){throw new Error('Allowed values of variant "'+b+$[450])}if(a===undefined){throw new Error('Default value of variant "'+b+$[450])}}if(!this.__variants[b]){this.__variants[b]={}}else{if(rwt.util.Variant.compilerIsSet($[26],"on")){if(this.__variants[b].defaultValue!==undefined){throw new Error($[367]+b+'" is already defined!')}}}this.__variants[b].allowedValues=c;this.__variants[b].defaultValue=a},get:function(a){var b=this.__variants[a];if(rwt.util.Variant.compilerIsSet($[26],"on")){if(b===undefined){throw new Error($[367]+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(rwt.util.Variant.compilerIsSet($[26],"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(rwt.util.Variant.compilerIsSet($[26],"on")){if(!this.__isValidObject(this.__variants[c])){throw new Error($[367]+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[$[67]]!==undefined){return a[$[67]]}if(rwt.util.Variant.compilerIsSet($[26],"on")){throw new Error('No match for variant "'+c+'" in variants ['+rwt.util.Objects.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===$[20]&&a!==null&&a instanceof Array},__isValidObject:function(a){return typeof a===$[20]&&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($[26],["on","off"],"on");a.define($[389],["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()}});
+rwt.qx.Class.define("rwt.util.Variant",{statics:{__variants:{},__cache:{},compilerIsSet:function(){return true},define:function(b,c,a){if(rwt.util.Variant.compilerIsSet($[26],"on")){if(!this.__isValidArray(c)){throw new Error('Allowed values of variant "'+b+$[451])}if(a===undefined){throw new Error('Default value of variant "'+b+$[451])}}if(!this.__variants[b]){this.__variants[b]={}}else{if(rwt.util.Variant.compilerIsSet($[26],"on")){if(this.__variants[b].defaultValue!==undefined){throw new Error($[368]+b+'" is already defined!')}}}this.__variants[b].allowedValues=c;this.__variants[b].defaultValue=a},get:function(a){var b=this.__variants[a];if(rwt.util.Variant.compilerIsSet($[26],"on")){if(b===undefined){throw new Error($[368]+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(rwt.util.Variant.compilerIsSet($[26],"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(rwt.util.Variant.compilerIsSet($[26],"on")){if(!this.__isValidObject(this.__variants[c])){throw new Error($[368]+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[$[67]]!==undefined){return a[$[67]]}if(rwt.util.Variant.compilerIsSet($[26],"on")){throw new Error('No match for variant "'+c+'" in variants ['+rwt.util.Objects.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===$[20]&&a!==null&&a instanceof Array},__isValidObject:function(a){return typeof a===$[20]&&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($[26],["on","off"],"on");a.define($[390],["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()}});
rwt.qx.Class.define("rwt.client.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!==$[222];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===$[117]},isNewMshtml:function(){return this._engineName===$[155]},isGecko:function(){return this._engineName===$[123]},isOpera:function(){return this._engineName==="opera"},isWebkit:function(){return this._engineName===$[114]},isInQuirksMode:function(){return this._engineQuirksMode},getTimezoneOffset:function(){return(new Date()).getTimezoneOffset()},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()===$[179]},isMobileChrome:function(){return this.getPlatform()===$[177]&&this.getBrowser()===$[237]},isAndroidBrowser:function(){return this.getPlatform()===$[177]&&this.getBrowser()===$[177]},isMobileFirefox:function(){return this.getPlatform()===$[177]&&this.getBrowser()==="firefox"},supportsVml:function(){return(this.getEngine()===$[117])&&(this.getVersion()>=5.5)},supportsTouch:function(){return this.isMobileSafari()||this.isAndroidBrowser()||this.isMobileChrome()||this.isMobileFirefox()},supportsSvg:function(){var c=rwt.client.Client.getEngine();var b=rwt.client.Client.getVersion();var a=c===$[123]&&b>=1.8||c===$[114]&&b>=523||c==="opera"&&b>=9||c===$[155];if(this.isAndroidBrowser()){a=b>=534}return a},supportsCss3:function(){var c=rwt.client.Client.getEngine();var b=rwt.client.Client.getVersion();var a=c===$[114]&&b>=522||c===$[123]&&b>=2||c===$[155]&&b>=10;return a},isZoomed:function(){var a=false;if(this._engineName===$[117]||this._engineName===$[155]){if(this._engineVersionMajor>=8){a=(screen.deviceXDPI/screen.logicalXDPI)!==1}else{try{var d=document.body.getBoundingClientRect();var c=(d.right-d.left)/document.body.offsetWidth;a=c!==1}catch(b){a=false}}}return a},_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===$[10]&&b==="KDE"&&/KHTML\/([0-9\-\.]*)/.test(navigator.userAgent);if(a){this._engineName=$[114];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=$[114];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=$[237]}else{if(d.indexOf("Safari")!=-1){if(d.indexOf("Android")!=-1){this._browserName=$[177]}else{this._browserName=$[179]}}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=$[179]}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===$[10]&&c==="Gecko"&&/rv\:([^\);]+)(\)|;)/.test(b);if(a){this._engineName=$[123];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 b=navigator.userAgent;var a=/MSIE\s+([^\);]+)(\)|;)/.test(b);if(a){this._parseVersion(RegExp.$1);if(this._engineVersion>=9){this._engineName=$[155]}else{this._engineName=$[117]}this._browserName="explorer"}else{if(b.indexOf("Trident")!=-1&&/rv\:([^\);]+)(\)|;)/.test(b)){this._parseVersion(RegExp.$1);this._engineName=$[155];this._browserName="explorer"}}}},_parseVersion:function(a){if(typeof a===$[10]){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 $[123]:a.push("-moz-box-sizing");break;case $[114]: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($[117])!==-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=$[177]}else{this._browserPlatform="unix"}}else{if(a.indexOf("iPhone")!=-1||a.indexOf("iPod")!=-1||a.indexOf("iPad")!=-1){this._browserPlatform="ios"}else{this._browserPlatform=$[141]}}}}}},defer:function(c,a,b){c.__init();rwt.util.Variant.define($[0],[$[123],$[117],"opera",$[114]],rwt.client.Client.getEngine())}});
rwt.qx.Class.define("rwt.util.Objects",{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:rwt.util.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=rwt.util.Objects.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 rwt.util.Objects.mergeWith(b,a,false)},merge:function(d,b){var a=arguments.length;for(var c=1;c<a;c++){rwt.util.Objects.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}}});
-rwt.qx.Class.define("rwt.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=$[156]}return a},define:function(c,d){if(this._stopLoading){throw new Error("Stop loading "+c)}try{d=this._normalizeConfig(d);this.__validateConfig(c,d);var k;if(!d.extend){k=d.statics||{}}else{if(!d.construct){d.construct=this.__createDefaultConstructor()}k=this.__wrapConstructor(d.construct,c,d.type);if(d.statics){var p;for(var f=0,o=rwt.util.Objects.getKeys(d.statics),e=o.length;f<e;f++){p=o[f];k[p]=d.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(d.extend){var b=d.extend.prototype;var h=this.__createEmptyFunction();h.prototype=b;var g=new h();k.prototype=g;g.name=g.classname=c;g.basename=n;d.construct.base=k.superclass=d.extend;d.construct.self=k.constructor=g.constructor=k;if(d.destruct){k.$$destructor=d.destruct}var j=this;k.$$initializer=function(){if(d.properties){j.__addProperties(k,d.properties,true)}if(d.members){j.__addMembers(k,d.members,true,true,false)}if(d.events){j.__addEvents(k,d.events,true)}if(d.include){for(var q=0,a=d.include.length;q<a;q++){j.__addMixin(k,d.include[q],false)}}}}if(d.variants){for(var p in d.variants){rwt.util.Variant.define(p,d.variants[p].allowedValues,d.variants[p].defaultValue)}}if(d.defer){this.__initializeClass(k);d.defer.self=k;d.defer(k,k.prototype,{add:function(i,a){var l={};l[i]=a;rwt.qx.Class.__addProperties(k,l,true)}})}}catch(m){alert("Error loading class "+c+": "+(m.message?m.message: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 rwt.util.Objects.getLength(this.__registry)},getByName:function(a){return this.__registry[a]},include:function(b,a){rwt.qx.Class.__addMixin(b,a,false)},patch:function(b,a){rwt.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;var a=this;this.$$instance=new a();delete this.$$allowconstruct}return this.$$instance},genericToString:function(){return"[Class "+this.classname+"]"},__registry:rwt.runtime.Bootstrap.__registry,__allowedKeys:rwt.util.Variant.select($[26],{on:{type:$[10],extend:$[45],implement:$[20],include:$[20],construct:$[45],statics:$[20],properties:$[20],members:$[20],settings:$[20],variants:$[20],events:$[20],defer:$[45],destruct:$[45]},"default":null}),__staticAllowedKeys:rwt.util.Variant.select($[26],{on:{type:$[10],statics:$[20],settings:$[20],variants:$[20],defer:$[45]},"default":null}),__validateConfig:rwt.util.Variant.select($[26],{on:function(b,c){if(c.type&&!(c.type===$[156]||c.type==="abstract"||c.type===$[37])){throw new Error('Invalid type "'+c.type+'" definition for class "'+b+'"!')}var h=c.type===$[156]?this.__staticAllowedKeys:this.__allowedKeys;for(var k in c){if(!h[k]){throw new Error($[334]+k+$[113]+b+$[319])}if(c[k]==null){throw new Error($[209]+k+$[113]+b+$[553])}if(typeof c[k]!==h[k]){throw new Error($[316]+k+$[113]+b+$[335]+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($[209]+k+$[113]+b+$[538])}}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{rwt.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]=$[491];this.__addEvents(d,f,g)}if(c.inheritable){rwt.qx.Property.$$inheritable[b]=true}if(a){rwt.qx.Property.attachMethods(d,b,c)}if(c._fast){rwt.qx.LegacyProperty.addFastProperty(c,d.prototype)}else{if(c._cached){rwt.qx.LegacyProperty.addCachedProperty(c,d.prototype)}else{if(c._legacy){rwt.qx.LegacyProperty.addProperty(c,d.prototype)}}}}},__validateProperty:rwt.util.Variant.select($[26],{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+$[512]+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+$[512]+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?rwt.qx.Property.$$allowedGroupKeys:rwt.qx.Property.$$allowedKeys;for(var f in c){if(e[f]===undefined){throw new Error($[334]+f+$[362]+a+$[113]+d.classname+$[319])}if(c[f]===undefined){throw new Error($[209]+f+$[362]+a+$[113]+d.classname+'"! The value is undefined: '+c[f])}if(e[f]!==null&&typeof c[f]!==e[f]){throw new Error($[316]+f+$[362]+a+$[113]+d.classname+$[335]+e[f]+'"!')}}if(c.transform!=null){if(typeof c.transform!==$[10]){throw new Error('Invalid transform definition of property "'+a+$[113]+d.classname+'"! Needs to be a String.')}}if(c.check!=null){if(!(typeof c.check==$[10]||c.check instanceof Array||c.check instanceof Function)){throw new Error('Invalid check definition of property "'+a+$[113]+d.classname+'"! Needs to be a String, Array or Function.')}}if(c.event!=null&&!this.isSubClassOf(d,rwt.qx.Target)){throw new Error("Invalid property '"+a+"' in class '"+d.classname+"': Properties defining an event can only be defined in sub classes of 'rwt.qx.Target'!")}},"default":null}),__addMembers:function(k,f,d,b,c){var j=k.prototype;var n,h;for(var g=0,m=rwt.util.Objects.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=rwt.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){rwt.qx.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}}});
-rwt.qx.Class.define("rwt.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=rwt.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($[338]+h.name+'" and "'+j[g]+$[438]+g+'"!')}j[g]=h.name}for(var g in h.properties){if(f[g]){throw new Error($[338]+h.name+'" and "'+f[g]+'" in property "'+g+'"!')}f[g]=h.name}for(var g in h.members){if(a[g]){throw new Error($[338]+h.name+'" and "'+a[g]+$[438]+g+'"!')}a[g]=h.name}}return true},isCompatible:function(a,b){var c=rwt.qx.Class.getMixins(b);c.push(a);return rwt.qx.Mixin.checkCompatibility(c)},getByName:function(a){return this.__registry[a]},isDefined:function(a){return this.getByName(a)!==undefined},getTotalNumber:function(){return rwt.util.Objects.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:rwt.util.Variant.select($[26],{on:{include:$[20],statics:$[20],members:$[20],properties:$[20],events:$[20],destruct:$[45],construct:$[45]},"default":null}),__validateConfig:rwt.util.Variant.select($[26],{on:function(e,d){var j=this.__allowedKeys;for(var g in d){if(!j[g]){throw new Error($[334]+g+$[279]+e+$[319])}if(d[g]==null){throw new Error($[209]+g+$[279]+e+$[553])}if(j[g]!==null&&typeof d[g]!==j[g]){throw new Error($[316]+g+$[279]+e+$[335]+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($[209]+g+$[279]+e+$[538])}}if(d.include){for(var f=0,b=d.include,c=b.length;f<c;f++){if(b[f]==null){throw new Error($[467]+(f+1)+$[473]+e+"'is undefined/null!")}if(b[f].$$type!=="Mixin"){throw new Error($[467]+(f+1)+$[473]+e+"'is not a mixin!")}}this.checkCompatibility(d.include)}},"default":function(){}})}});
-rwt.qx.Class.define("rwt.qx.LegacyProperty",{statics:{getSetterName:function(a){return rwt.qx.Property.$$method.set[a]},getGetterName:function(a){return rwt.qx.Property.$$method.get[a]},getResetterName:function(a){return rwt.qx.Property.$$method.reset[a]},addFastProperty:function(b,d){var c=b.name;var g=rwt.util.Strings.toFirstUp(c);var h="_value"+g;var f="get"+g;var e="set"+g;var a="_compute"+g;d[h]=typeof b.defaultValue!==$[8]?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=rwt.util.Strings.toFirstUp(d);var g="_cached"+f;var a="_compute"+f;var b="_change"+f;if(typeof c.defaultValue!==$[8]){e[g]=c.defaultValue}e["get"+f]=function(){if(this[g]==null){this[g]=this[a]()}return this[g]};e[$[551]+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[$[551]+f].self=e.constructor;e["_recompute"+f].self=e.constructor},addProperty:function(c,f){if(typeof c!==$[20]){throw new Error("AddProperty: Param should be an object!")}if(typeof c.name!==$[10]){throw new Error("AddProperty: Malformed input parameters: name needed!")}if(c.dispose===undefined&&(c.type==$[45]||c.type==$[20])){c.dispose=true}c.method=rwt.util.Strings.toFirstUp(c.name);c.implMethod=c.impl?rwt.util.Strings.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===$[10]){c.hasType=true}else{if(typeof c.type!==$[8]){throw new Error("AddProperty: Invalid type definition for property "+c.name+": "+c.type)}else{c.hasType=false}}if(typeof c.instance===$[10]){c.hasInstance=true}else{if(typeof c.instance!==$[8]){throw new Error("AddProperty: Invalid instance definition for property "+c.name+": "+c.instance)}else{c.hasInstance=false}}if(typeof c.classname===$[10]){c.hasClassName=true}else{if(typeof c.classname!==$[8]){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=rwt.qx.Property.$$store.user[c.name]="__user$"+c.name;var a=$[58]+c.method;var d="_modify"+c.implMethod;var b="_check"+c.implMethod;var g=rwt.qx.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]=$[124]+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[$[124]+c.method]=function(){return this["set"+c.method](c.defaultValue)};if(c.type===$[127]){f[$[217]+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=rwt.util.Arrays.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($[233]+j+$[207]+c.name+$[421]+c.type+$[543]+typeof j+'"!')}if(rwt.qx.Class.getByName(c.instance)){if(c.hasInstance&&!(j instanceof rwt.qx.Class.getByName(c.instance))){throw new Error($[233]+j+$[207]+c.name+$[529]+c.instance+'"!')}}else{if(rwt.util.Variant.isSet($[389],"on")){if(c.hasInstance&&!(j instanceof qx.OO.classes[c.instance])){throw new Error($[233]+j+$[207]+c.name+$[529]+c.instance+'"!')}}}if(c.hasClassName&&j.classname!=c.classname){throw new Error($[233]+j+$[207]+c.name+'" which must be an object with the classname "'+c.classname+'"!')}if(c.hasPossibleValues&&j!=null&&!rwt.util.Arrays.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($[571]+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+$[522]+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+$[523]+i)}}return j}}else{f["set"+c.method]=function(k){var h=this[e];if(k===h){return k}if(!(c.allowNull&&k==null)){if(c.hasType&&typeof k!==c.type){throw new Error($[233]+k+$[207]+c.name+$[421]+c.type+$[543]+typeof k+'"!')}}if(this[b]){try{k=this[b](k,c);if(k===h){return k}}catch(i){throw new Error($[571]+c.name+" "+i)}}this[e]=k;if(this[d]){try{this[d](k,h,c)}catch(i){throw new Error('Setting property "'+c.name+'" to "'+k+$[522]+i)}}if(this.hasEventListeners&&this.hasEventListeners(a)){var j=new rwt.event.DataEvent(a,k,h,false);j.setTarget(this);try{this.dispatchEvent(j,true)}catch(i){throw new Error("Property "+c.name+$[523]+i)}}return k}}f["set"+c.method].self=f.constructor;if(typeof c.getAlias===$[10]){f[c.getAlias]=f["get"+c.method]}if(typeof c.setAlias===$[10]){f[c.setAlias]=f["set"+c.method]}}}});
-rwt.qx.Class.define("rwt.qx.Property",{statics:{__checks:{Boolean:'typeof value === "boolean"',String:'typeof value === "string"',NonEmptyString:'typeof value === "string" && value.length > 0',Number:$[312],Integer:'typeof value === "number" && isFinite(value) && value%1 === 0',Float:$[312],Double:$[312],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 rwt.qx.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" && rwt.util.Colors.isValid(value)',Border:$[469],Font:$[469],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:$[192],$$idcounter:0,$$store:{user:{},theme:{},inherit:{},init:{},useinit:{}},$$method:{get:{},set:{},reset:{},init:{},refresh:{},style:{},unstyle:{}},$$allowedKeys:{name:$[10],dispose:$[127],inheritable:$[127],nullable:$[127],themeable:$[127],refine:$[127],init:null,apply:$[10],event:$[10],check:null,transform:$[10],deferredInit:$[127]},$$allowedGroupKeys:{name:$[10],group:$[20],mode:$[10],themeable:$[127]},$$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=rwt.util.Strings.toFirstUp(b.substring(2))}else{d="_";e=rwt.util.Strings.toFirstUp(b.substring(1))}}else{d="";e=rwt.util.Strings.toFirstUp(b)}if(a.group){this.__attachGroupMethods(c,a,d,e)}else{this.__attachPropertyMethods(c,a,d,e)}},__attachGroupMethods:function(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==$[239]){var p="a=rwt.util.Arrays.fromShortHand(rwt.util.Arrays.fromArguments(a));";g.push(p);if(d){s.push(p)}}for(var j=0,q=e.group,f=q.length;j<f;j++){if(rwt.util.Variant.isSet($[26],"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($[54],this.$$method.set[q[j]],"(a[",j,"]);");o.push($[54],this.$$method.reset[q[j]],"();");if(d){if(rwt.util.Variant.isSet($[26],"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($[54],this.$$method.style[q[j]],"(a[",j,"]);");m.push($[54],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+$[124]+r;h[this.$$method.reset[b]]=new Function(o.join(""));if(d){this.$$method.style[b]=k+$[62]+r;h[this.$$method.style[b]]=new Function(s.join(""));this.$$method.unstyle[b]=k+$[137]+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===$[10]){d.dispose=this.__dispose[d.check]||rwt.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 rwt.qx.Property.executeOptimizedGetter(this,e,c,"get")};g.set[c]=f+"set"+h;b[g.set[c]]=function(i){return rwt.qx.Property.executeOptimizedSetter(this,e,c,"set",arguments)};g.reset[c]=f+$[124]+h;b[g.reset[c]]=function(){return rwt.qx.Property.executeOptimizedSetter(this,e,c,$[124])};if(d.inheritable||d.apply||d.event||d.deferredInit){g.init[c]=f+"init"+h;b[g.init[c]]=function(i){return rwt.qx.Property.executeOptimizedSetter(this,e,c,"init",arguments)}}if(d.inheritable){g.refresh[c]=f+$[153]+h;b[g.refresh[c]]=function(i){return rwt.qx.Property.executeOptimizedSetter(this,e,c,$[153],arguments)}}if(d.themeable){g.style[c]=f+$[62]+h;b[g.style[c]]=function(i){return rwt.qx.Property.executeOptimizedSetter(this,e,c,$[62],arguments)};g.unstyle[c]=f+$[137]+h;b[g.unstyle[c]]=function(){return rwt.qx.Property.executeOptimizedSetter(this,e,c,$[137])}}if(d.check===$[2]){b[f+$[217]+h]=new Function($[150]+g.set[c]+"(!this."+g.get[c]+"())");b[f+"is"+h]=new Function($[150]+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(rwt.util.Variant.isSet($[26],"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(rwt.util.Variant.isSet($[26],"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($[116],this.$$store.inherit[d],$[148]);g.push($[150],this.$$store.inherit[d],";");g.push("else ")}g.push($[116],this.$$store.user[d],$[148]);g.push($[150],this.$$store.user[d],";");if(c.themeable){g.push($[225],this.$$store.theme[d],$[148]);g.push($[150],this.$$store.theme[d],";")}if(c.deferredInit&&c.init===undefined){g.push($[225],this.$$store.init[d],$[148]);g.push($[150],this.$$store.init[d],";")}g.push("else ");if(c.init!==undefined){g.push($[150],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===$[62]||(e==="init"&&d.init===undefined);var l=e===$[124]||e===$[137];var c=d.apply||d.event||d.inheritable;if(e===$[62]||e===$[137]){var j=this.$$store.theme[a]}else{if(e==="init"){var j=this.$$store.init[a]}else{var j=this.$$store.user[a]}}if(rwt.util.Variant.isSet($[26],"on")){b.push($[560]);if(e==="init"){b.push('if(this.$$initialized)prop.error(this,0,"'+a+'","'+e+$[165])}if(e===$[153]){}else{if(i){b.push('if(arguments.length!==1)prop.error(this,1,"'+a+'","'+e+$[165]);b.push($[460]+a+'","'+e+$[165])}else{b.push('if(arguments.length!==0)prop.error(this,3,"'+a+'","'+e+$[165])}}}else{if(!d.nullable||d.check||d.inheritable){b.push($[560])}if(rwt.util.Variant.isSet($[26],"on")&&e==="set"){b.push($[460]+a+'","'+e+$[165])}}if(i){if(d.transform){b.push("value=this.",d.transform,"(value);")}}if(c){if(i){b.push($[116],j,"===value)return value;")}else{if(l){b.push($[116],j,"===undefined)return;")}}}if(d.inheritable){b.push("var inherit=prop.$$inherit;")}if(i&&rwt.util.Variant.isSet($[26],"on")){if(!d.nullable){b.push('if(value===null)prop.error(this,4,"'+a+'","'+e+$[165])}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(rwt.qx.Class.isDefined(d.check)){b.push("!(value instanceof ",d.check,")")}else{if(typeof d.check===$[45]){b.push("!",g.classname,$[480],a);b.push(".check.call(this, value)")}else{if(typeof d.check===$[10]){b.push("!(",d.check,")")}else{if(d.check instanceof Array){d.checkMap=rwt.util.Objects.fromArray(d.check);b.push(g.classname,$[480],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+$[165])}}if(!c){if(e==="set"){b.push($[54],this.$$store.user[a],$[65])}else{if(e===$[124]){b.push($[116],this.$$store.user[a],$[148]);b.push($[133],this.$$store.user[a],";")}else{if(e===$[62]){b.push($[54],this.$$store.theme[a],$[65])}else{if(e===$[137]){b.push($[116],this.$$store.theme[a],$[148]);b.push($[133],this.$$store.theme[a],";")}else{if(e==="init"&&i){b.push($[54],this.$$store.init[a],$[65])}}}}}}else{if(d.inheritable){b.push("var computed, old=this.",this.$$store.inherit[a],";")}else{b.push("var computed, old;")}b.push($[116],this.$$store.user[a],$[274]);if(e==="set"){if(!d.inheritable){b.push($[262],this.$$store.user[a],";")}b.push($[48],this.$$store.user[a],$[65])}else{if(e===$[124]){if(!d.inheritable){b.push($[262],this.$$store.user[a],";")}b.push($[133],this.$$store.user[a],";");b.push($[116],this.$$store.theme[a],$[148]);b.push($[48],this.$$store.theme[a],";");b.push($[225],this.$$store.init[a],$[274]);b.push($[48],this.$$store.init[a],";");b.push($[54],this.$$store.useinit[a],"=true;");b.push("}")}else{if(d.inheritable){b.push($[48],this.$$store.user[a],";")}else{b.push("old=computed=this.",this.$$store.user[a],";")}if(e===$[62]){b.push($[54],this.$$store.theme[a],$[65])}else{if(e===$[137]){b.push($[133],this.$$store.theme[a],";")}else{if(e==="init"&&i){b.push($[54],this.$$store.init[a],$[65])}}}}}b.push("}");if(d.themeable){b.push($[225],this.$$store.theme[a],$[274]);if(!d.inheritable){b.push($[262],this.$$store.theme[a],";")}if(e==="set"){b.push($[48],this.$$store.user[a],$[65])}else{if(e===$[62]){b.push($[48],this.$$store.theme[a],$[65])}else{if(e===$[137]){b.push($[133],this.$$store.theme[a],";");b.push($[116],this.$$store.init[a],$[274]);b.push($[48],this.$$store.init[a],";");b.push($[54],this.$$store.useinit[a],"=true;");b.push("}")}else{if(e==="init"){if(i){b.push($[54],this.$$store.init[a],$[65])}b.push($[48],this.$$store.theme[a],";")}else{if(e===$[153]){b.push($[48],this.$$store.theme[a],";")}}}}}b.push("}")}b.push($[225],this.$$store.useinit[a],"){");if(!d.inheritable){b.push($[262],this.$$store.init[a],";")}if(e==="init"){if(i){b.push($[48],this.$$store.init[a],$[65])}else{b.push($[48],this.$$store.init[a],";")}}else{if(e==="set"||e===$[62]||e===$[153]){b.push($[133],this.$$store.useinit[a],";");if(e==="set"){b.push($[48],this.$$store.user[a],$[65])}else{if(e===$[62]){b.push($[48],this.$$store.theme[a],$[65])}else{if(e===$[153]){b.push($[48],this.$$store.init[a],";")}}}}}b.push("}");if(e==="set"||e===$[62]||e==="init"){b.push("else{");if(e==="set"){b.push($[48],this.$$store.user[a],$[65])}else{if(e===$[62]){b.push($[48],this.$$store.theme[a],$[65])}else{if(e==="init"){if(i){b.push($[48],this.$$store.init[a],$[65])}else{b.push($[48],this.$$store.init[a],";")}b.push($[54],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($[54],this.$$store.init[a],"!==undefined&&");b.push($[54],this.$$store.init[a],"!==inherit){");b.push($[48],this.$$store.init[a],";");b.push($[54],this.$$store.useinit[a],"=true;");b.push("}else{");b.push($[133],this.$$store.useinit[a],";}");b.push("}");b.push($[518]);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($[133],this.$$store.inherit[a],";");b.push("else this.",this.$$store.inherit[a],"=computed;");b.push("var backup=computed;");b.push($[540]);b.push($[393])}else{if(c){if(e!=="set"&&e!==$[62]){b.push($[540])}b.push($[518]);b.push($[393])}}if(c){if(d.apply){b.push($[54],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)}}});
+rwt.qx.Class.define("rwt.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=$[156]}return a},define:function(c,d){if(this._stopLoading){throw new Error("Stop loading "+c)}try{d=this._normalizeConfig(d);this.__validateConfig(c,d);var k;if(!d.extend){k=d.statics||{}}else{if(!d.construct){d.construct=this.__createDefaultConstructor()}k=this.__wrapConstructor(d.construct,c,d.type);if(d.statics){var p;for(var f=0,o=rwt.util.Objects.getKeys(d.statics),e=o.length;f<e;f++){p=o[f];k[p]=d.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(d.extend){var b=d.extend.prototype;var h=this.__createEmptyFunction();h.prototype=b;var g=new h();k.prototype=g;g.name=g.classname=c;g.basename=n;d.construct.base=k.superclass=d.extend;d.construct.self=k.constructor=g.constructor=k;if(d.destruct){k.$$destructor=d.destruct}var j=this;k.$$initializer=function(){if(d.properties){j.__addProperties(k,d.properties,true)}if(d.members){j.__addMembers(k,d.members,true,true,false)}if(d.events){j.__addEvents(k,d.events,true)}if(d.include){for(var q=0,a=d.include.length;q<a;q++){j.__addMixin(k,d.include[q],false)}}}}if(d.variants){for(var p in d.variants){rwt.util.Variant.define(p,d.variants[p].allowedValues,d.variants[p].defaultValue)}}if(d.defer){this.__initializeClass(k);d.defer.self=k;d.defer(k,k.prototype,{add:function(i,a){var l={};l[i]=a;rwt.qx.Class.__addProperties(k,l,true)}})}}catch(m){alert("Error loading class "+c+": "+(m.message?m.message: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 rwt.util.Objects.getLength(this.__registry)},getByName:function(a){return this.__registry[a]},include:function(b,a){rwt.qx.Class.__addMixin(b,a,false)},patch:function(b,a){rwt.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;var a=this;this.$$instance=new a();delete this.$$allowconstruct}return this.$$instance},genericToString:function(){return"[Class "+this.classname+"]"},__registry:rwt.runtime.Bootstrap.__registry,__allowedKeys:rwt.util.Variant.select($[26],{on:{type:$[10],extend:$[45],implement:$[20],include:$[20],construct:$[45],statics:$[20],properties:$[20],members:$[20],settings:$[20],variants:$[20],events:$[20],defer:$[45],destruct:$[45]},"default":null}),__staticAllowedKeys:rwt.util.Variant.select($[26],{on:{type:$[10],statics:$[20],settings:$[20],variants:$[20],defer:$[45]},"default":null}),__validateConfig:rwt.util.Variant.select($[26],{on:function(b,c){if(c.type&&!(c.type===$[156]||c.type==="abstract"||c.type===$[37])){throw new Error('Invalid type "'+c.type+'" definition for class "'+b+'"!')}var h=c.type===$[156]?this.__staticAllowedKeys:this.__allowedKeys;for(var k in c){if(!h[k]){throw new Error($[335]+k+$[113]+b+$[319])}if(c[k]==null){throw new Error($[209]+k+$[113]+b+$[553])}if(typeof c[k]!==h[k]){throw new Error($[316]+k+$[113]+b+$[336]+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($[209]+k+$[113]+b+$[538])}}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{rwt.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]=$[491];this.__addEvents(d,f,g)}if(c.inheritable){rwt.qx.Property.$$inheritable[b]=true}if(a){rwt.qx.Property.attachMethods(d,b,c)}if(c._fast){rwt.qx.LegacyProperty.addFastProperty(c,d.prototype)}else{if(c._cached){rwt.qx.LegacyProperty.addCachedProperty(c,d.prototype)}else{if(c._legacy){rwt.qx.LegacyProperty.addProperty(c,d.prototype)}}}}},__validateProperty:rwt.util.Variant.select($[26],{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+$[512]+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+$[512]+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?rwt.qx.Property.$$allowedGroupKeys:rwt.qx.Property.$$allowedKeys;for(var f in c){if(e[f]===undefined){throw new Error($[335]+f+$[363]+a+$[113]+d.classname+$[319])}if(c[f]===undefined){throw new Error($[209]+f+$[363]+a+$[113]+d.classname+'"! The value is undefined: '+c[f])}if(e[f]!==null&&typeof c[f]!==e[f]){throw new Error($[316]+f+$[363]+a+$[113]+d.classname+$[336]+e[f]+'"!')}}if(c.transform!=null){if(typeof c.transform!==$[10]){throw new Error('Invalid transform definition of property "'+a+$[113]+d.classname+'"! Needs to be a String.')}}if(c.check!=null){if(!(typeof c.check==$[10]||c.check instanceof Array||c.check instanceof Function)){throw new Error('Invalid check definition of property "'+a+$[113]+d.classname+'"! Needs to be a String, Array or Function.')}}if(c.event!=null&&!this.isSubClassOf(d,rwt.qx.Target)){throw new Error("Invalid property '"+a+"' in class '"+d.classname+"': Properties defining an event can only be defined in sub classes of 'rwt.qx.Target'!")}},"default":null}),__addMembers:function(k,f,d,b,c){var j=k.prototype;var n,h;for(var g=0,m=rwt.util.Objects.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=rwt.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){rwt.qx.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}}});
+rwt.qx.Class.define("rwt.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=rwt.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($[339]+h.name+'" and "'+j[g]+$[439]+g+'"!')}j[g]=h.name}for(var g in h.properties){if(f[g]){throw new Error($[339]+h.name+'" and "'+f[g]+'" in property "'+g+'"!')}f[g]=h.name}for(var g in h.members){if(a[g]){throw new Error($[339]+h.name+'" and "'+a[g]+$[439]+g+'"!')}a[g]=h.name}}return true},isCompatible:function(a,b){var c=rwt.qx.Class.getMixins(b);c.push(a);return rwt.qx.Mixin.checkCompatibility(c)},getByName:function(a){return this.__registry[a]},isDefined:function(a){return this.getByName(a)!==undefined},getTotalNumber:function(){return rwt.util.Objects.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:rwt.util.Variant.select($[26],{on:{include:$[20],statics:$[20],members:$[20],properties:$[20],events:$[20],destruct:$[45],construct:$[45]},"default":null}),__validateConfig:rwt.util.Variant.select($[26],{on:function(e,d){var j=this.__allowedKeys;for(var g in d){if(!j[g]){throw new Error($[335]+g+$[279]+e+$[319])}if(d[g]==null){throw new Error($[209]+g+$[279]+e+$[553])}if(j[g]!==null&&typeof d[g]!==j[g]){throw new Error($[316]+g+$[279]+e+$[336]+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($[209]+g+$[279]+e+$[538])}}if(d.include){for(var f=0,b=d.include,c=b.length;f<c;f++){if(b[f]==null){throw new Error($[467]+(f+1)+$[473]+e+"'is undefined/null!")}if(b[f].$$type!=="Mixin"){throw new Error($[467]+(f+1)+$[473]+e+"'is not a mixin!")}}this.checkCompatibility(d.include)}},"default":function(){}})}});
+rwt.qx.Class.define("rwt.qx.LegacyProperty",{statics:{getSetterName:function(a){return rwt.qx.Property.$$method.set[a]},getGetterName:function(a){return rwt.qx.Property.$$method.get[a]},getResetterName:function(a){return rwt.qx.Property.$$method.reset[a]},addFastProperty:function(b,d){var c=b.name;var g=rwt.util.Strings.toFirstUp(c);var h="_value"+g;var f="get"+g;var e="set"+g;var a="_compute"+g;d[h]=typeof b.defaultValue!==$[8]?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=rwt.util.Strings.toFirstUp(d);var g="_cached"+f;var a="_compute"+f;var b="_change"+f;if(typeof c.defaultValue!==$[8]){e[g]=c.defaultValue}e["get"+f]=function(){if(this[g]==null){this[g]=this[a]()}return this[g]};e[$[551]+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[$[551]+f].self=e.constructor;e["_recompute"+f].self=e.constructor},addProperty:function(c,f){if(typeof c!==$[20]){throw new Error("AddProperty: Param should be an object!")}if(typeof c.name!==$[10]){throw new Error("AddProperty: Malformed input parameters: name needed!")}if(c.dispose===undefined&&(c.type==$[45]||c.type==$[20])){c.dispose=true}c.method=rwt.util.Strings.toFirstUp(c.name);c.implMethod=c.impl?rwt.util.Strings.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===$[10]){c.hasType=true}else{if(typeof c.type!==$[8]){throw new Error("AddProperty: Invalid type definition for property "+c.name+": "+c.type)}else{c.hasType=false}}if(typeof c.instance===$[10]){c.hasInstance=true}else{if(typeof c.instance!==$[8]){throw new Error("AddProperty: Invalid instance definition for property "+c.name+": "+c.instance)}else{c.hasInstance=false}}if(typeof c.classname===$[10]){c.hasClassName=true}else{if(typeof c.classname!==$[8]){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=rwt.qx.Property.$$store.user[c.name]="__user$"+c.name;var a=$[58]+c.method;var d="_modify"+c.implMethod;var b="_check"+c.implMethod;var g=rwt.qx.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]=$[124]+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[$[124]+c.method]=function(){return this["set"+c.method](c.defaultValue)};if(c.type===$[127]){f[$[217]+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=rwt.util.Arrays.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($[233]+j+$[207]+c.name+$[422]+c.type+$[543]+typeof j+'"!')}if(rwt.qx.Class.getByName(c.instance)){if(c.hasInstance&&!(j instanceof rwt.qx.Class.getByName(c.instance))){throw new Error($[233]+j+$[207]+c.name+$[529]+c.instance+'"!')}}else{if(rwt.util.Variant.isSet($[390],"on")){if(c.hasInstance&&!(j instanceof qx.OO.classes[c.instance])){throw new Error($[233]+j+$[207]+c.name+$[529]+c.instance+'"!')}}}if(c.hasClassName&&j.classname!=c.classname){throw new Error($[233]+j+$[207]+c.name+'" which must be an object with the classname "'+c.classname+'"!')}if(c.hasPossibleValues&&j!=null&&!rwt.util.Arrays.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($[571]+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+$[522]+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+$[523]+i)}}return j}}else{f["set"+c.method]=function(k){var h=this[e];if(k===h){return k}if(!(c.allowNull&&k==null)){if(c.hasType&&typeof k!==c.type){throw new Error($[233]+k+$[207]+c.name+$[422]+c.type+$[543]+typeof k+'"!')}}if(this[b]){try{k=this[b](k,c);if(k===h){return k}}catch(i){throw new Error($[571]+c.name+" "+i)}}this[e]=k;if(this[d]){try{this[d](k,h,c)}catch(i){throw new Error('Setting property "'+c.name+'" to "'+k+$[522]+i)}}if(this.hasEventListeners&&this.hasEventListeners(a)){var j=new rwt.event.DataEvent(a,k,h,false);j.setTarget(this);try{this.dispatchEvent(j,true)}catch(i){throw new Error("Property "+c.name+$[523]+i)}}return k}}f["set"+c.method].self=f.constructor;if(typeof c.getAlias===$[10]){f[c.getAlias]=f["get"+c.method]}if(typeof c.setAlias===$[10]){f[c.setAlias]=f["set"+c.method]}}}});
+rwt.qx.Class.define("rwt.qx.Property",{statics:{__checks:{Boolean:'typeof value === "boolean"',String:'typeof value === "string"',NonEmptyString:'typeof value === "string" && value.length > 0',Number:$[312],Integer:'typeof value === "number" && isFinite(value) && value%1 === 0',Float:$[312],Double:$[312],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 rwt.qx.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" && rwt.util.Colors.isValid(value)',Border:$[469],Font:$[469],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:$[192],$$idcounter:0,$$store:{user:{},theme:{},inherit:{},init:{},useinit:{}},$$method:{get:{},set:{},reset:{},init:{},refresh:{},style:{},unstyle:{}},$$allowedKeys:{name:$[10],dispose:$[127],inheritable:$[127],nullable:$[127],themeable:$[127],refine:$[127],init:null,apply:$[10],event:$[10],check:null,transform:$[10],deferredInit:$[127]},$$allowedGroupKeys:{name:$[10],group:$[20],mode:$[10],themeable:$[127]},$$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=rwt.util.Strings.toFirstUp(b.substring(2))}else{d="_";e=rwt.util.Strings.toFirstUp(b.substring(1))}}else{d="";e=rwt.util.Strings.toFirstUp(b)}if(a.group){this.__attachGroupMethods(c,a,d,e)}else{this.__attachPropertyMethods(c,a,d,e)}},__attachGroupMethods:function(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==$[239]){var p="a=rwt.util.Arrays.fromShortHand(rwt.util.Arrays.fromArguments(a));";g.push(p);if(d){s.push(p)}}for(var j=0,q=e.group,f=q.length;j<f;j++){if(rwt.util.Variant.isSet($[26],"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($[54],this.$$method.set[q[j]],"(a[",j,"]);");o.push($[54],this.$$method.reset[q[j]],"();");if(d){if(rwt.util.Variant.isSet($[26],"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($[54],this.$$method.style[q[j]],"(a[",j,"]);");m.push($[54],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+$[124]+r;h[this.$$method.reset[b]]=new Function(o.join(""));if(d){this.$$method.style[b]=k+$[62]+r;h[this.$$method.style[b]]=new Function(s.join(""));this.$$method.unstyle[b]=k+$[137]+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===$[10]){d.dispose=this.__dispose[d.check]||rwt.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 rwt.qx.Property.executeOptimizedGetter(this,e,c,"get")};g.set[c]=f+"set"+h;b[g.set[c]]=function(i){return rwt.qx.Property.executeOptimizedSetter(this,e,c,"set",arguments)};g.reset[c]=f+$[124]+h;b[g.reset[c]]=function(){return rwt.qx.Property.executeOptimizedSetter(this,e,c,$[124])};if(d.inheritable||d.apply||d.event||d.deferredInit){g.init[c]=f+"init"+h;b[g.init[c]]=function(i){return rwt.qx.Property.executeOptimizedSetter(this,e,c,"init",arguments)}}if(d.inheritable){g.refresh[c]=f+$[153]+h;b[g.refresh[c]]=function(i){return rwt.qx.Property.executeOptimizedSetter(this,e,c,$[153],arguments)}}if(d.themeable){g.style[c]=f+$[62]+h;b[g.style[c]]=function(i){return rwt.qx.Property.executeOptimizedSetter(this,e,c,$[62],arguments)};g.unstyle[c]=f+$[137]+h;b[g.unstyle[c]]=function(){return rwt.qx.Property.executeOptimizedSetter(this,e,c,$[137])}}if(d.check===$[2]){b[f+$[217]+h]=new Function($[150]+g.set[c]+"(!this."+g.get[c]+"())");b[f+"is"+h]=new Function($[150]+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(rwt.util.Variant.isSet($[26],"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(rwt.util.Variant.isSet($[26],"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($[116],this.$$store.inherit[d],$[148]);g.push($[150],this.$$store.inherit[d],";");g.push("else ")}g.push($[116],this.$$store.user[d],$[148]);g.push($[150],this.$$store.user[d],";");if(c.themeable){g.push($[225],this.$$store.theme[d],$[148]);g.push($[150],this.$$store.theme[d],";")}if(c.deferredInit&&c.init===undefined){g.push($[225],this.$$store.init[d],$[148]);g.push($[150],this.$$store.init[d],";")}g.push("else ");if(c.init!==undefined){g.push($[150],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===$[62]||(e==="init"&&d.init===undefined);var l=e===$[124]||e===$[137];var c=d.apply||d.event||d.inheritable;if(e===$[62]||e===$[137]){var j=this.$$store.theme[a]}else{if(e==="init"){var j=this.$$store.init[a]}else{var j=this.$$store.user[a]}}if(rwt.util.Variant.isSet($[26],"on")){b.push($[560]);if(e==="init"){b.push('if(this.$$initialized)prop.error(this,0,"'+a+'","'+e+$[165])}if(e===$[153]){}else{if(i){b.push('if(arguments.length!==1)prop.error(this,1,"'+a+'","'+e+$[165]);b.push($[460]+a+'","'+e+$[165])}else{b.push('if(arguments.length!==0)prop.error(this,3,"'+a+'","'+e+$[165])}}}else{if(!d.nullable||d.check||d.inheritable){b.push($[560])}if(rwt.util.Variant.isSet($[26],"on")&&e==="set"){b.push($[460]+a+'","'+e+$[165])}}if(i){if(d.transform){b.push("value=this.",d.transform,"(value);")}}if(c){if(i){b.push($[116],j,"===value)return value;")}else{if(l){b.push($[116],j,"===undefined)return;")}}}if(d.inheritable){b.push("var inherit=prop.$$inherit;")}if(i&&rwt.util.Variant.isSet($[26],"on")){if(!d.nullable){b.push('if(value===null)prop.error(this,4,"'+a+'","'+e+$[165])}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(rwt.qx.Class.isDefined(d.check)){b.push("!(value instanceof ",d.check,")")}else{if(typeof d.check===$[45]){b.push("!",g.classname,$[480],a);b.push(".check.call(this, value)")}else{if(typeof d.check===$[10]){b.push("!(",d.check,")")}else{if(d.check instanceof Array){d.checkMap=rwt.util.Objects.fromArray(d.check);b.push(g.classname,$[480],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+$[165])}}if(!c){if(e==="set"){b.push($[54],this.$$store.user[a],$[65])}else{if(e===$[124]){b.push($[116],this.$$store.user[a],$[148]);b.push($[133],this.$$store.user[a],";")}else{if(e===$[62]){b.push($[54],this.$$store.theme[a],$[65])}else{if(e===$[137]){b.push($[116],this.$$store.theme[a],$[148]);b.push($[133],this.$$store.theme[a],";")}else{if(e==="init"&&i){b.push($[54],this.$$store.init[a],$[65])}}}}}}else{if(d.inheritable){b.push("var computed, old=this.",this.$$store.inherit[a],";")}else{b.push("var computed, old;")}b.push($[116],this.$$store.user[a],$[274]);if(e==="set"){if(!d.inheritable){b.push($[262],this.$$store.user[a],";")}b.push($[48],this.$$store.user[a],$[65])}else{if(e===$[124]){if(!d.inheritable){b.push($[262],this.$$store.user[a],";")}b.push($[133],this.$$store.user[a],";");b.push($[116],this.$$store.theme[a],$[148]);b.push($[48],this.$$store.theme[a],";");b.push($[225],this.$$store.init[a],$[274]);b.push($[48],this.$$store.init[a],";");b.push($[54],this.$$store.useinit[a],"=true;");b.push("}")}else{if(d.inheritable){b.push($[48],this.$$store.user[a],";")}else{b.push("old=computed=this.",this.$$store.user[a],";")}if(e===$[62]){b.push($[54],this.$$store.theme[a],$[65])}else{if(e===$[137]){b.push($[133],this.$$store.theme[a],";")}else{if(e==="init"&&i){b.push($[54],this.$$store.init[a],$[65])}}}}}b.push("}");if(d.themeable){b.push($[225],this.$$store.theme[a],$[274]);if(!d.inheritable){b.push($[262],this.$$store.theme[a],";")}if(e==="set"){b.push($[48],this.$$store.user[a],$[65])}else{if(e===$[62]){b.push($[48],this.$$store.theme[a],$[65])}else{if(e===$[137]){b.push($[133],this.$$store.theme[a],";");b.push($[116],this.$$store.init[a],$[274]);b.push($[48],this.$$store.init[a],";");b.push($[54],this.$$store.useinit[a],"=true;");b.push("}")}else{if(e==="init"){if(i){b.push($[54],this.$$store.init[a],$[65])}b.push($[48],this.$$store.theme[a],";")}else{if(e===$[153]){b.push($[48],this.$$store.theme[a],";")}}}}}b.push("}")}b.push($[225],this.$$store.useinit[a],"){");if(!d.inheritable){b.push($[262],this.$$store.init[a],";")}if(e==="init"){if(i){b.push($[48],this.$$store.init[a],$[65])}else{b.push($[48],this.$$store.init[a],";")}}else{if(e==="set"||e===$[62]||e===$[153]){b.push($[133],this.$$store.useinit[a],";");if(e==="set"){b.push($[48],this.$$store.user[a],$[65])}else{if(e===$[62]){b.push($[48],this.$$store.theme[a],$[65])}else{if(e===$[153]){b.push($[48],this.$$store.init[a],";")}}}}}b.push("}");if(e==="set"||e===$[62]||e==="init"){b.push("else{");if(e==="set"){b.push($[48],this.$$store.user[a],$[65])}else{if(e===$[62]){b.push($[48],this.$$store.theme[a],$[65])}else{if(e==="init"){if(i){b.push($[48],this.$$store.init[a],$[65])}else{b.push($[48],this.$$store.init[a],";")}b.push($[54],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($[54],this.$$store.init[a],"!==undefined&&");b.push($[54],this.$$store.init[a],"!==inherit){");b.push($[48],this.$$store.init[a],";");b.push($[54],this.$$store.useinit[a],"=true;");b.push("}else{");b.push($[133],this.$$store.useinit[a],";}");b.push("}");b.push($[518]);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($[133],this.$$store.inherit[a],";");b.push("else this.",this.$$store.inherit[a],"=computed;");b.push("var backup=computed;");b.push($[540]);b.push($[394])}else{if(c){if(e!=="set"&&e!==$[62]){b.push($[540])}b.push($[518]);b.push($[394])}}if(c){if(d.apply){b.push($[54],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)}}});
rwt.qx.Class.define("rwt.util.Strings",{statics:{trim:function(a){return a.replace(/^\s+|\s+$/g,"")},pad:function(f,e,d,c){if(typeof d===$[8]){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}}});
rwt.qx.Class.define($[577],{extend:Object,construct:function(){this._hashCode=rwt.qx.Object.__availableHashCode++;if(this._autoDispose){this.__dbKey=rwt.qx.Object.__freeAvailableDbKeys.pop();if(!this.__dbKey){this.__dbKey=rwt.qx.Object.__db.length;rwt.qx.Object.__db.push(this)}else{rwt.qx.Object.__db[this.__dbKey]=this}}},statics:{__availableHashCode:0,__freeAvailableDbKeys:[],__db:[],__disposeAll:false,$$type:$[195],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,setUserData:function(a,b){if(!this.__userData){this.__userData={}}this.__userData[a]=b},getUserData:function(a){if(!this.__userData){return null}var b=this.__userData[a];return b===undefined?null:b},toHashCode:function(){return this._hashCode},toString:function(){if(this.classname){return"[object "+this.classname+"]"}return"[object Object]"},base:function(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=rwt.qx.Property.$$method.set;if(typeof b===$[10]){return this[d[b]](a)}else{for(var c in b){this[d[c]](b[c])}return this}},get:function(b){var a=rwt.qx.Property.$$method.get;return this[a[b]]()},reset:function(b){var a=rwt.qx.Property.$$method.reset;this[a[b]]()},__disposed:false,getDisposed:function(){return this.__disposed},isDisposed:function(){return this.__disposed},dispose:function(){if(this.__disposed){return}this.__disposed=true;var c=this.constructor;var b;while(c.superclass){if(c.$$destructor){c.$$destructor.call(this)}if(c.$$includes){b=c.$$flatIncludes;for(var d=0,a=b.length;d<a;d++){if(b[d].$$destructor){b[d].$$destructor.call(this)}}}c=c.superclass}},debug:rwt.util.Variant.select($[26],{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:rwt.util.Variant.select($[26],{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 rwt.qx.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==$[20]){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==$[20]){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=rwt.qx.Property.$$store;var i=h.user;var e=h.theme;var b=h.inherit;var g=h.useinit;var c=h.init;while(d){f=d.$$properties;if(f){for(var a in f){if(f[a].dispose){this[i[a]]=this[e[a]]=this[b[a]]=this[g[a]]=this[c[a]]=undefined}}}d=d.superclass}this._disposeFields("__userData");if(this.__dbKey!=null){if(rwt.qx.Object.__disposeAll){rwt.qx.Object.__db[this.__dbKey]=null}else{delete rwt.qx.Object.__db[this.__dbKey]}rwt.qx.Object.__freeAvailableDbKeys.push(this.__dbKey)}}});
rwt.qx.Class.define("rwt.util.Functions",{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(rwt.util.Arrays.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}}});
@@ -20,23 +20,23 @@ rwt.qx.Class.define($[491],{extend:rwt.event.Event,construct:function(b,c,a){arg
rwt.qx.Class.define("rwt.client.Timer",{extend:rwt.qx.Target,construct:function(a){arguments.callee.base.call(this);this.setEnabled(false);if(a!=null){this.setInterval(a)}this.__oninterval=rwt.util.Functions.bind(this._oninterval,this);this.__event=new rwt.event.Event($[27])},events:{interval:$[11]},statics:{once:function(a,c,b){var d=new rwt.client.Timer(b);d.addEventListener($[27],function(f){d.dispose();a.call(c,f);c=null},c);d.start()}},properties:{enabled:{init:true,check:$[2],apply:$[509]},interval:{check:$[18],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($[27])){this.dispatchEvent(this.__event,false)}}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}}},destruct:function(){if(this.__intervalHandler){window.clearInterval(this.__intervalHandler)}this._disposeFields("__intervalHandler","__oninterval","__event")}});
rwt.qx.Class.define("rwt.html.Entity",{statics:{TO_CHARCODE:{quot:34,amp:38,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,fnof:402,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,bull:8226,hellip:8230,prime:8242,Prime:8243,oline:8254,frasl:8260,weierp:8472,image:8465,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,circ:710,tilde:732,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,permil:8240,lsaquo:8249,rsaquo:8250,euro:8364}}});
rwt.qx.Class.define("rwt.html.EventRegistration",{statics:{addEventListener:rwt.util.Variant.select($[0],{mshtml:function(a,b,c){a.attachEvent("on"+b,c)},"default":function(a,b,c){a.addEventListener(b,c,false)}}),removeEventListener:rwt.util.Variant.select($[0],{mshtml:function(a,b,c){a.detachEvent("on"+b,c)},"default":function(a,b,c){a.removeEventListener(b,c,false)}})}});
-rwt.qx.Class.define("rwt.event.EventHandlerUtil",{type:$[156],statics:{_lastUpDownType:{},_lastKeyCode:null,cleanUp:function(){delete this.__onKeyEvent;delete this._lastUpDownType;delete this._lastKeyCode},applyBrowserFixes:rwt.util.Variant.select($[0],{gecko:function(){var b=rwt.widgets.base.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()}};rwt.html.EventRegistration.addEventListener(a,$[1],this._ffMouseFixListener)},"default":function(){}}),getDomEvent:rwt.util.Variant.select($[0],{mshtml:function(a){return a.length>0?a[0]:window.event},"default":function(a){return a[0]}}),getDomTarget:rwt.util.Variant.select($[0],{mshtml:function(a){return a.target||a.srcElement},webkit:function(a){var b=a.target||a.srcElement;if(b&&(b.nodeType==rwt.html.Nodes.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=rwt.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:[$[3],$[29],$[6],$[1],$[5],$[14],$[49],$[44],(rwt.client.Client.isGecko()?$[307]:$[47]),$[7],$[4],$[34]],_domEventBlocker:function(a){rwt.event.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.rwtWidget==null){b=b.parentNode}}catch(a){b=null}return b?b.rwtWidget: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.rwtWidget}}return this.getOriginalTargetObject(b)},getRelatedTargetObjectFromEvent:function(b){var a=rwt.event.EventHandlerUtil;var c=b.relatedTarget;if(!c){if(b.type==$[3]){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:rwt.util.Variant.select($[0],{gecko:function(a){return a.keyCode},"default":function(b){var a=b.type!==$[4]||b.keyCode===13||b.keyCode===27;return a?b.keyCode:0}}),getCharCode:rwt.util.Variant.select($[0],{"default":function(a){var b=a.type===$[4]&&a.keyCode!==13&&a.keyCode!==27;return b?a.charCode:0},"mshtml|newmshtml|opera":function(a){var b=a.type===$[4]&&a.keyCode!==13&&a.keyCode!==27;return b?a.keyCode:0}}),_isFirstKeyDown:function(a){return this._lastUpDownType[a]!==$[7]},getEventPseudoTypes:rwt.util.Variant.select($[0],{"default":function(c,d,b){var a;if(c.type===$[7]){var e=!this.isNonPrintableKeyCode(d);if(this._isFirstKeyDown(d)){a=e?[$[7]]:[$[7],$[4]]}else{a=e?[]:[$[4]]}}else{a=[c.type]}return a},gecko:function(c,d,b){var a;if(c.type===$[7]&&this.isModifier(d)){if(this._isFirstKeyDown(d)){a=[$[7],$[4]]}else{a=[$[4]]}}else{if(c.type===$[7]&&!this._isFirstKeyDown(d)){a=[]}else{a=[c.type]}}return a}}),mustRestoreKeyup:function(b,c){var a=[];if(c[0]===$[7]){if(!this._isFirstKeyDown(93)&&b!==93){a.push(93)}}return a},mustRestoreKeypress:rwt.util.Variant.select($[0],{"default":function(b,c){var a=false;if(this.wasStopped(b)){a=(c.length===1&&c[0]===$[7])||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}},clearStuckKey:function(a){this._lastUpDownType[a]=$[34]},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:rwt.util.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},shouldBlock:function(c,f,b,d){var a=true;var e;if(!isNaN(f)&&f!==0){e=this.keyCodeToIdentifier(f)}else{e=this.charCodeToIdentifier(b)}if(this._nonBlockableKeysMap[e]||d.altKey){a=false}else{if(d.ctrlKey){a=this._blockableCtrlKeysMap[e]===true}}return a},_specialCharCodeMap:{13:$[51],27:$[118],32:$[83]},_nonBlockableKeysMap:{Control:true,Alt:true,Shift:true,Meta:true,Win:true,F1:true,F2:true,F3:true,F4:true,F5:true,F6:true,F7:true,F8:true,F9:true,F10:true,F11:true,F12:true},_blockableCtrlKeysMap:{F:true,A:true,C:true,V:true,X:true,Z:true,Y:true},_keyCodeToIdentifierMap:{8:$[330],9:"Tab",16:"Shift",17:$[250],18:"Alt",20:"CapsLock",224:"Meta",37:"Left",38:"Up",39:$[36],40:"Down",33:$[41],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)}});
+rwt.qx.Class.define("rwt.event.EventHandlerUtil",{type:$[156],statics:{_lastUpDownType:{},_lastKeyCode:null,cleanUp:function(){delete this.__onKeyEvent;delete this._lastUpDownType;delete this._lastKeyCode},applyBrowserFixes:rwt.util.Variant.select($[0],{gecko:function(){var b=rwt.widgets.base.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()}};rwt.html.EventRegistration.addEventListener(a,$[1],this._ffMouseFixListener)},"default":function(){}}),getDomEvent:rwt.util.Variant.select($[0],{mshtml:function(a){return a.length>0?a[0]:window.event},"default":function(a){return a[0]}}),getDomTarget:rwt.util.Variant.select($[0],{mshtml:function(a){return a.target||a.srcElement},webkit:function(a){var b=a.target||a.srcElement;if(b&&(b.nodeType==rwt.html.Nodes.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=rwt.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:[$[3],$[29],$[6],$[1],$[5],$[14],$[49],$[44],(rwt.client.Client.isGecko()?$[307]:$[47]),$[7],$[4],$[34]],_domEventBlocker:function(a){rwt.event.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.rwtWidget==null){b=b.parentNode}}catch(a){b=null}return b?b.rwtWidget: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.rwtWidget}}return this.getOriginalTargetObject(b)},getRelatedTargetObjectFromEvent:function(b){var a=rwt.event.EventHandlerUtil;var c=b.relatedTarget;if(!c){if(b.type==$[3]){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:rwt.util.Variant.select($[0],{gecko:function(a){return a.keyCode},"default":function(b){var a=b.type!==$[4]||b.keyCode===13||b.keyCode===27;return a?b.keyCode:0}}),getCharCode:rwt.util.Variant.select($[0],{"default":function(a){var b=a.type===$[4]&&a.keyCode!==13&&a.keyCode!==27;return b?a.charCode:0},"mshtml|newmshtml|opera":function(a){var b=a.type===$[4]&&a.keyCode!==13&&a.keyCode!==27;return b?a.keyCode:0}}),_isFirstKeyDown:function(a){return this._lastUpDownType[a]!==$[7]},getEventPseudoTypes:rwt.util.Variant.select($[0],{"default":function(c,d,b){var a;if(c.type===$[7]){var e=!this.isNonPrintableKeyCode(d);if(this._isFirstKeyDown(d)){a=e?[$[7]]:[$[7],$[4]]}else{a=e?[]:[$[4]]}}else{a=[c.type]}return a},gecko:function(c,d,b){var a;if(c.type===$[7]&&this.isModifier(d)){if(this._isFirstKeyDown(d)){a=[$[7],$[4]]}else{a=[$[4]]}}else{if(c.type===$[7]&&!this._isFirstKeyDown(d)){a=[]}else{a=[c.type]}}return a}}),mustRestoreKeyup:function(b,c){var a=[];if(c[0]===$[7]){if(!this._isFirstKeyDown(93)&&b!==93){a.push(93)}}return a},mustRestoreKeypress:rwt.util.Variant.select($[0],{"default":function(b,c){var a=false;if(this.wasStopped(b)){a=(c.length===1&&c[0]===$[7])||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}},clearStuckKey:function(a){this._lastUpDownType[a]=$[34]},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:rwt.util.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},shouldBlock:function(c,f,b,d){var a=true;var e;if(!isNaN(f)&&f!==0){e=this.keyCodeToIdentifier(f)}else{e=this.charCodeToIdentifier(b)}if(this._nonBlockableKeysMap[e]||d.altKey){a=false}else{if(d.ctrlKey){a=this._blockableCtrlKeysMap[e]===true}}return a},_specialCharCodeMap:{13:$[51],27:$[118],32:$[83]},_nonBlockableKeysMap:{Control:true,Alt:true,Shift:true,Meta:true,Win:true,F1:true,F2:true,F3:true,F4:true,F5:true,F6:true,F7:true,F8:true,F9:true,F10:true,F11:true,F12:true},_blockableCtrlKeysMap:{F:true,A:true,C:true,V:true,X:true,Z:true,Y:true},_keyCodeToIdentifierMap:{8:$[331],9:"Tab",16:"Shift",17:$[250],18:"Alt",20:"CapsLock",224:"Meta",37:"Left",38:"Up",39:$[36],40:"Down",33:$[41],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)}});
namespace($[184]);rwt.remote.HandlerRegistry={_registry:{},add:function(a,b){this._registry[a]=b},remove:function(a){delete this._registry[a]},getHandler:function(b){var a=this._registry[b];if(a===undefined){throw new Error("No Handler for type "+b)}return a},hasHandler:function(a){return this._registry[a]!=null}};
namespace($[184]);rwt.remote.ObjectRegistry={_map:{},_callbacks:{},add:function(d,a,c){this._map[d]={object:a,handler:c};a._rwtId=d;if(typeof a.applyObjectId===$[45]){a.applyObjectId(d)}if(this._callbacks[d]){for(var b=0;b<this._callbacks[d].length;b++){this._callbacks[d][b](a)}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(b){var a=this.getEntry(b);return a?a.object:undefined},getEntry:function(c){var a=this._map[c];if(a==null&&rwt.remote.HandlerRegistry.hasHandler(c)){var b=rwt.remote.HandlerRegistry.getHandler(c);if(b.service===true){this.add(c,b.factory(),b);a=this._map[c]}}return a},addRegistrationCallback:function(b,a){if(!this._callbacks[b]){this._callbacks[b]=[]}this._callbacks[b].push(a)}};
-namespace($[184]);rwt.remote.HandlerUtil={SERVER_DATA:"org.eclipse.swt.widgets.Widget#data",_controlDestructor:function(a){rwt.remote.HandlerUtil._widgetDestructor(a)},_childrenFinder:function(a){return rwt.remote.HandlerUtil.getDestroyableChildren(a)},_widgetDestructor:function(b){var a=b.getUserData($[95]);if(a){rwt.remote.HandlerUtil.removeDestroyableChild(a,b)}b.setToolTip(null);b.setUserData($[126],null);b.destroy()},_controlProperties:["children",$[352],$[111],$[103],$[253],$[313],$[61],$[79],$[131],$[86],$[96],"font","menu",$[247],$[290],"data"],_controlPropertyHandler:{data:function(c,a){var b=rwt.remote.HandlerUtil.getServerData(c);rwt.util.Objects.mergeWith(b,a)},children:function(d,c){if(c!==null){var b=c.length;var e=function(g){var f=c.indexOf(rwt.remote.ObjectRegistry.getId(g));g.setZIndex(b-f)};for(var a=0;a<b;a++){rwt.remote.HandlerUtil.callWithTarget(c[a],e)}}d.setUserData($[399],c)},foreground:function(b,a){if(a===null){b.resetTextColor()}else{b.setTextColor(rwt.util.Colors.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?$[81]:rwt.util.Colors.rgbToRgbString(b);c.setBackgroundColor(a)}},backgroundImage:function(b,a){if(a===null){b.resetBackgroundImage();b.setUserData($[186],null)}else{b.setUserData($[186],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($[443])===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=rwt.util.Encoding;var e=b.escapeText(c,false);e=b.replaceNewLines(e,$[88]);d.setUserData($[126],e);var a=rwt.widgets.base.WidgetToolTip.getInstance();d.setToolTip(a);if(a.getParent()!=null){if(a.getBoundToWidget()==d){a.updateText(d)}}}else{d.setToolTip(null);d.setUserData($[126],null)}},font:function(b,c){if(b.setFont){if(c===null){b.resetFont()}else{var a=rwt.html.Font.fromArray(c);b.setFont(a)}}},menu:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(e){b.setContextMenu(e);var c=rwt.widgets.Menu.menuDetectedByKey;var d=rwt.widgets.Menu.menuDetectedByMouse;if(e==null){b.removeEventListener($[7],c);b.removeEventListener($[5],d)}else{b.addEventListener($[7],c);b.addEventListener($[5],d)}})},activeKeys:function(b,a){var c=rwt.util.Objects.fromArray(a);b.setUserData($[247],c)},cancelKeys:function(b,a){var c=rwt.util.Objects.fromArray(a);b.setUserData($[290],c)}},_controlListeners:["FocusIn","FocusOut","MouseDown","MouseUp",$[464],"KeyDown","Traverse","MenuDetect","Help",$[281],"Deactivate"],_controlListenerHandler:{KeyDown:function(b,a){b.setUserData($[436],a?true:null)},Traverse:function(b,a){b.setUserData($[479],a?true:null)},FocusIn:function(d,c){var a=rwt.remote.EventUtil;var b=rwt.remote.EventUtil.focusGained;if(c){d.addEventListener($[147],b,a)}else{d.removeEventListener($[147],b,a)}},FocusOut:function(c,b){var a=rwt.remote.EventUtil;var d=rwt.remote.EventUtil.focusLost;if(b){c.addEventListener($[120],d,a)}else{c.removeEventListener($[120],d,a)}},MouseDown:function(d,c){var b;var a=rwt.remote.EventUtil.mouseDown;if(c){d.addEventListener($[1],a,b)}else{d.removeEventListener($[1],a,b)}},MouseUp:function(d,c){var b;var a=rwt.remote.EventUtil.mouseUp;if(c){d.addEventListener($[5],a,b)}else{d.removeEventListener($[5],a,b)}},MouseDoubleClick:function(e,d){var c;var b=rwt.remote.EventUtil.mouseDoubleClick;var a=rwt.remote.EventUtil.mouseUpCounter;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;var a=rwt.remote.EventUtil.menuDetectedByKey;var b=rwt.remote.EventUtil.menuDetectedByMouse;if(d){e.addEventListener($[7],a,c);e.addEventListener($[5],b,c)}else{e.removeEventListener($[7],a,c);e.removeEventListener($[5],b,c)}},Help:function(d,c){var b;var a=rwt.remote.EventUtil.helpRequested;if(c){d.addEventListener($[7],a,b)}else{d.removeEventListener($[7],a,b)}},Activate:function(b,a){b.setUserData($[504],a?true:null)},Deactivate:function(b,a){b.setUserData($[530],a?true:null)}},_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,rwt.util.Colors.rgbToRgbString(b[d])]}g.horizontal=!c}f.setBackgroundGradient(g)},roundedBorder:function(e,d){if(d){var c=d[0];var a=rwt.util.Colors.rgbToRgbString(d[1]);var f=d.slice(-4);var b=new rwt.html.Border(c,$[84],a,f);e.setBorder(b)}else{e.resetBorder()}}},getWidgetDestructor:function(){return this._widgetDestructor},getControlDestructor:function(){return this._controlDestructor},getDestroyableChildrenFinder:function(a){return this._childrenFinder},extendControlProperties:function(a){return a.concat(this._controlProperties)},extendControlPropertyHandler:function(a){return rwt.util.Objects.mergeWith(a,this._controlPropertyHandler,false)},extendControlListeners:function(a){return a.concat(this._controlListeners)},extendControlListenerHandler:function(a){return rwt.util.Objects.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 rwt.widgets.ScrolledComposite){b.setUserData($[443],a)}else{if(a instanceof rwt.widgets.TabFolder){b.setUserData("tabFolder",a)}else{if(a instanceof rwt.widgets.ExpandBar){a.addWidget(b)}else{b.setParent(a)}}}rwt.remote.HandlerUtil.addDestroyableChild(a,b);b.setUserData($[95],a)},callWithTarget:function(c,a){if(c==null){a(null)}else{var b=rwt.remote.ObjectRegistry.getObject(c);if(b){a(b)}else{rwt.remote.ObjectRegistry.addRegistrationCallback(c,a)}}},filterUnregisteredObjects:function(d){var b=rwt.remote.ObjectRegistry;var a=[];for(var c=0;c<d.length;c++){if(b.getId(d[c])){a.push(d[c])}}return a},getShell:function(b){var a=b;while(a&&!(a instanceof rwt.widgets.Shell)){a=a.getParent()}return a},addDestroyableChild:function(a,c){var b=a.getUserData($[291]);if(b==null){b={};a.setUserData($[291],b)}b[rwt.qx.Object.toHashCode(c)]=c},removeDestroyableChild:function(a,c){var b=a.getUserData($[291]);if(b!=null){delete b[rwt.qx.Object.toHashCode(c)]}},getDestroyableChildren:function(c){var d=c.getUserData($[291]);if(d==null){d={}}var a=[];for(var b in d){a.push(d[b])}return a},getServerData:function(b){var a=b.getUserData(rwt.remote.HandlerUtil.SERVER_DATA);if(a==null){a={};b.setUserData(rwt.remote.HandlerUtil.SERVER_DATA,a)}return a}};
+namespace($[184]);rwt.remote.HandlerUtil={SERVER_DATA:"org.eclipse.swt.widgets.Widget#data",_controlDestructor:function(a){rwt.remote.HandlerUtil._widgetDestructor(a)},_childrenFinder:function(a){return rwt.remote.HandlerUtil.getDestroyableChildren(a)},_widgetDestructor:function(b){var a=b.getUserData($[95]);if(a){rwt.remote.HandlerUtil.removeDestroyableChild(a,b)}b.setToolTip(null);b.setUserData($[126],null);b.destroy()},_controlProperties:["children",$[353],$[111],$[103],$[253],$[313],$[61],$[79],$[131],$[86],$[96],"font","menu",$[247],$[290],"data"],_controlPropertyHandler:{data:function(c,a){var b=rwt.remote.HandlerUtil.getServerData(c);rwt.util.Objects.mergeWith(b,a)},children:function(d,c){if(c!==null){var b=c.length;var e=function(g){var f=c.indexOf(rwt.remote.ObjectRegistry.getId(g));g.setZIndex(b-f)};for(var a=0;a<b;a++){rwt.remote.HandlerUtil.callWithTarget(c[a],e)}}d.setUserData($[400],c)},foreground:function(b,a){if(a===null){b.resetTextColor()}else{b.setTextColor(rwt.util.Colors.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?$[81]:rwt.util.Colors.rgbToRgbString(b);c.setBackgroundColor(a)}},backgroundImage:function(b,a){if(a===null){b.resetBackgroundImage();b.setUserData($[186],null)}else{b.setUserData($[186],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($[444])===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=rwt.util.Encoding;var e=b.escapeText(c,false);e=b.replaceNewLines(e,$[88]);d.setUserData($[126],e);var a=rwt.widgets.base.WidgetToolTip.getInstance();d.setToolTip(a);if(a.getParent()!=null){if(a.getBoundToWidget()==d){a.updateText(d)}}}else{d.setToolTip(null);d.setUserData($[126],null)}},font:function(b,c){if(b.setFont){if(c===null){b.resetFont()}else{var a=rwt.html.Font.fromArray(c);b.setFont(a)}}},menu:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(e){b.setContextMenu(e);var c=rwt.widgets.Menu.menuDetectedByKey;var d=rwt.widgets.Menu.menuDetectedByMouse;if(e==null){b.removeEventListener($[7],c);b.removeEventListener($[5],d)}else{b.addEventListener($[7],c);b.addEventListener($[5],d)}})},activeKeys:function(b,a){var c=rwt.util.Objects.fromArray(a);b.setUserData($[247],c)},cancelKeys:function(b,a){var c=rwt.util.Objects.fromArray(a);b.setUserData($[290],c)}},_controlListeners:["FocusIn","FocusOut","MouseDown","MouseUp",$[464],"KeyDown","Traverse","MenuDetect","Help",$[281],"Deactivate"],_controlListenerHandler:{KeyDown:function(b,a){b.setUserData($[437],a?true:null)},Traverse:function(b,a){b.setUserData($[479],a?true:null)},FocusIn:function(d,c){var a=rwt.remote.EventUtil;var b=rwt.remote.EventUtil.focusGained;if(c){d.addEventListener($[147],b,a)}else{d.removeEventListener($[147],b,a)}},FocusOut:function(c,b){var a=rwt.remote.EventUtil;var d=rwt.remote.EventUtil.focusLost;if(b){c.addEventListener($[120],d,a)}else{c.removeEventListener($[120],d,a)}},MouseDown:function(d,c){var b;var a=rwt.remote.EventUtil.mouseDown;if(c){d.addEventListener($[1],a,b)}else{d.removeEventListener($[1],a,b)}},MouseUp:function(d,c){var b;var a=rwt.remote.EventUtil.mouseUp;if(c){d.addEventListener($[5],a,b)}else{d.removeEventListener($[5],a,b)}},MouseDoubleClick:function(e,d){var c;var b=rwt.remote.EventUtil.mouseDoubleClick;var a=rwt.remote.EventUtil.mouseUpCounter;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;var a=rwt.remote.EventUtil.menuDetectedByKey;var b=rwt.remote.EventUtil.menuDetectedByMouse;if(d){e.addEventListener($[7],a,c);e.addEventListener($[5],b,c)}else{e.removeEventListener($[7],a,c);e.removeEventListener($[5],b,c)}},Help:function(d,c){var b;var a=rwt.remote.EventUtil.helpRequested;if(c){d.addEventListener($[7],a,b)}else{d.removeEventListener($[7],a,b)}},Activate:function(b,a){b.setUserData($[504],a?true:null)},Deactivate:function(b,a){b.setUserData($[530],a?true:null)}},_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,rwt.util.Colors.rgbToRgbString(b[d])]}g.horizontal=!c}f.setBackgroundGradient(g)},roundedBorder:function(e,d){if(d){var c=d[0];var a=rwt.util.Colors.rgbToRgbString(d[1]);var f=d.slice(-4);var b=new rwt.html.Border(c,$[84],a,f);e.setBorder(b)}else{e.resetBorder()}}},getWidgetDestructor:function(){return this._widgetDestructor},getControlDestructor:function(){return this._controlDestructor},getDestroyableChildrenFinder:function(a){return this._childrenFinder},extendControlProperties:function(a){return a.concat(this._controlProperties)},extendControlPropertyHandler:function(a){return rwt.util.Objects.mergeWith(a,this._controlPropertyHandler,false)},extendControlListeners:function(a){return a.concat(this._controlListeners)},extendControlListenerHandler:function(a){return rwt.util.Objects.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 rwt.widgets.ScrolledComposite){b.setUserData($[444],a)}else{if(a instanceof rwt.widgets.TabFolder){b.setUserData("tabFolder",a)}else{if(a instanceof rwt.widgets.ExpandBar){a.addWidget(b)}else{b.setParent(a)}}}rwt.remote.HandlerUtil.addDestroyableChild(a,b);b.setUserData($[95],a)},callWithTarget:function(c,a){if(c==null){a(null)}else{var b=rwt.remote.ObjectRegistry.getObject(c);if(b){a(b)}else{rwt.remote.ObjectRegistry.addRegistrationCallback(c,a)}}},filterUnregisteredObjects:function(d){var b=rwt.remote.ObjectRegistry;var a=[];for(var c=0;c<d.length;c++){if(b.getId(d[c])){a.push(d[c])}}return a},getShell:function(b){var a=b;while(a&&!(a instanceof rwt.widgets.Shell)){a=a.getParent()}return a},addDestroyableChild:function(a,c){var b=a.getUserData($[291]);if(b==null){b={};a.setUserData($[291],b)}b[rwt.qx.Object.toHashCode(c)]=c},removeDestroyableChild:function(a,c){var b=a.getUserData($[291]);if(b!=null){delete b[rwt.qx.Object.toHashCode(c)]}},getDestroyableChildren:function(c){var d=c.getUserData($[291]);if(d==null){d={}}var a=[];for(var b in d){a.push(d[b])}return a},getServerData:function(b){var a=b.getUserData(rwt.remote.HandlerUtil.SERVER_DATA);if(a==null){a={};b.setUserData(rwt.remote.HandlerUtil.SERVER_DATA,a)}return a}};
namespace("rwt.util");rwt.util.Encoding={_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===true){a=c.replace(this._escapeRegExpMnemonics,this._getEscapeResolverMnemonics())}else{if(typeof b===$[31]){a=this._escapeWithMnemonic(c,b)}else{a=c.replace(this._escapeRegExp,this._getEscapeResolver())}}return this.truncateAtZero(a)},truncateAtZero:function(c){var a=c;var b=a.indexOf(String.fromCharCode(0));if(b!==-1){a=a.substring(0,b)}return a},replaceNewLines:function(c,a){var b=arguments.length>1?a:"\\n";return c.replace(this._newlineRegExp,b)},replaceWhiteSpaces:function(b){var a=b.replace(this._outerWhitespaceRegExp,this._outerWhitespaceResolver);a=a.replace(this._whitespaceRegExp,this._whitespaceResolver);return a},escapeLeadingTrailingSpaces:function(a){return a.replace(this._outerWhitespaceRegExp2,this._outerWhitespaceResolver)},escapeRegexpChars:function(a){return a.replace(/([\\\.\(\)\[\]\{\}\^\$\?\+\*])/g,"\\$1")},unescape:function(a){return this._unescapeEntities(a,rwt.html.Entity.TO_CHARCODE)},_escapeWithMnemonic:function(c,a){var b=[c.slice(0,a).replace(this._escapeRegExp,this._getEscapeResolver()),'<span style="text-decoration:underline">',c.charAt(a).replace(this._escapeRegExp,this._getEscapeResolver()),"</span>",c.slice(a+1).replace(this._escapeRegExp,this._getEscapeResolver())];return b.join("")},_getEscapeResolverMnemonics:function(){if(this._escapeResolverMnemonics===null){this._getEscapeResolver();var a=this;this._escapeResolverMnemonics=function(c){var b;if(c==="&"&&!a._mnemonicFound){b="";a._mnemonicFound=true}else{b=a._escapeResolver(c)}return b}}return this._escapeResolverMnemonics},_getEscapeResolver:function(){if(this._escapeResolver===null){var a=this;this._escapeResolver=function(b){return a._escapeMap[b]}}return this._escapeResolver},_outerWhitespaceResolver:function(a){return a.replace(/ /g,"&nbsp;")},_whitespaceResolver:function(a){return a.slice(1).replace(/ /g,"&nbsp;")+" "},_unescapeEntities:function(b,a){return b.replace(/&[#\w]+;/gi,function(c){var d=c;var c=c.substring(1,c.length-1);var e=a[c];if(e){d=String.fromCharCode(e)}else{if(c.charAt(0)==="#"){if(c.charAt(1).toUpperCase()==="X"){e=c.substring(2);if(e.match(/^[0-9A-Fa-f]+$/gi)){d=String.fromCharCode(parseInt(e,16))}}else{e=c.substring(1);if(e.match(/^\d+$/gi)){d=String.fromCharCode(parseInt(e,10))}}}}return d})}};
-namespace("rwt.widgets");rwt.widgets.Display=function(a){this._document=rwt.widgets.base.ClientDocument.getInstance();this._server=rwt.remote.Server.getInstance();this._exitConfirmation=null;this._hasResizeListener=false;this._initialized=false;if(rwt.widgets.Display._current!==undefined){throw new Error("Display can not be created twice")}else{rwt.widgets.Display._current=this}};rwt.widgets.Display.getCurrent=function(){return rwt.widgets.Display._current};rwt.widgets.Display._onAppearFocus=function(a){var b=this;b.focus();b.removeEventListener($[38],rwt.widgets.Display._onAppearFocus,b)};rwt.widgets.Display.prototype={applyObjectId:function(){if(!this._initialized){this.init()}},init:function(){this._server.getMessageWriter().appendHead($[513],true);this._appendQueryString();this._appendWindowSize();this._appendSystemDPI();this._appendColorDepth();this._appendInitialHistoryEvent();this._appendTimezoneOffset();this._attachListener();this._server.send();this._initialized=true},allowEvent:function(){rwt.remote.KeyEventSupport.getInstance().allowEvent()},cancelEvent:function(){rwt.remote.KeyEventSupport.getInstance().cancelEvent()},beep:function(){},setExitConfirmation:function(a){this._exitConfirmation=a},setFocusControl:function(a){var b=rwt.remote.ObjectRegistry.getObject(a);if(b.isSeeable()){b.focus()}else{b.addEventListener($[38],rwt.widgets.Display._onAppearFocus,b)}},setMnemonicActivator:function(a){rwt.widgets.util.MnemonicHandler.getInstance().setActivator(a)},setEnableUiTests:function(a){rwt.widgets.base.Widget._renderHtmlIds=a},getDPI:function(){var a=[0,0];if(typeof screen.systemXDPI==$[31]){a[0]=parseInt(screen.systemXDPI,10);a[1]=parseInt(screen.systemYDPI,10)}else{var b=document.createElement("div");b.style.width="1in";b.style.height="1in";b.style.padding=0;document.body.appendChild(b);a[0]=parseInt(b.offsetWidth,10);a[1]=parseInt(b.offsetHeight,10);document.body.removeChild(b)}return a},setHasResizeListener:function(a){this._hasResizeListener=a},_attachListener:function(){this._document.addEventListener($[257],this._onResize,this);this._document.addEventListener($[4],this._onKeyPress,this);this._server.addEventListener("send",this._onSend,this);rwt.remote.KeyEventSupport.getInstance();rwt.runtime.System.getInstance().addEventListener($[259],this._onBeforeUnload,this);rwt.runtime.System.getInstance().addEventListener("unload",this._onUnload,this)},_onResize:function(a){this._appendWindowSize();if(this._hasResizeListener){rwt.remote.Server.getInstance().getRemoteObject(this).notify($[210])}},_onKeyPress:function(a){if(a.getKeyIdentifier()==$[118]){a.preventDefault()}},_onSend:function(b){var d=rwt.event.MouseEvent.getPageX();var c=rwt.event.MouseEvent.getPageY();var a=[Math.round(d),Math.round(c)];rwt.remote.Server.getInstance().getRemoteObject(this).set("cursorLocation",a)},_onBeforeUnload:function(a){if(this._exitConfirmation!==null&&this._exitConfirmation!==""){a.getDomEvent().returnValue=this._exitConfirmation;a.setUserData($[423],this._exitConfirmation)}},_onUnload:function(){this._document.removeEventListener($[257],this._onResize,this);this._document.removeEventListener($[4],this._onKeyPress,this);this._server.removeEventListener("send",this._onSend,this);this._sendShutdown()},_sendShutdown:function(){var a=rwt.remote.Server.getInstance();a.getMessageWriter().appendHead("rwt_shutdown",true);a.sendImmediate(false)},_appendWindowSize:function(){var b=rwt.html.Window.getInnerWidth(window);var a=rwt.html.Window.getInnerHeight(window);var c=[0,0,b,a];rwt.remote.Server.getInstance().getRemoteObject(this).set($[96],c)},_appendSystemDPI:function(){var a=this.getDPI();rwt.remote.Server.getInstance().getRemoteObject(this).set("dpi",a)},_appendColorDepth:function(){var a=16;if(typeof screen.colorDepth==$[31]){a=parseInt(screen.colorDepth,10)}if(rwt.client.Client.isGecko()){a=a==24?32:a}rwt.remote.Server.getInstance().getRemoteObject(this).set("colorDepth",a)},_appendInitialHistoryEvent:function(){var c=window.location.hash;if(c!==""){var b=$[380];var d=rwt.client.BrowserNavigation.getInstance();var a=rwt.remote.HandlerRegistry.getHandler(b);rwt.remote.ObjectRegistry.add(b,d,a);rwt.remote.Server.getInstance().getRemoteObject(d).notify($[374],{state:decodeURIComponent(c.substr(1))})}},_appendTimezoneOffset:function(){var b=rwt.remote.ObjectRegistry.getObject($[546]);var a=rwt.remote.Server.getInstance().getRemoteObject(b);a.set("timezoneOffset",b.getTimezoneOffset())},_appendQueryString:function(){var a=window.location.search;if(a!==""){this._server.getMessageWriter().appendHead("queryString",a.substr(1))}}};
+namespace("rwt.widgets");rwt.widgets.Display=function(a){this._document=rwt.widgets.base.ClientDocument.getInstance();this._server=rwt.remote.Server.getInstance();this._exitConfirmation=null;this._hasResizeListener=false;this._initialized=false;if(rwt.widgets.Display._current!==undefined){throw new Error("Display can not be created twice")}else{rwt.widgets.Display._current=this}};rwt.widgets.Display.getCurrent=function(){return rwt.widgets.Display._current};rwt.widgets.Display._onAppearFocus=function(a){var b=this;b.focus();b.removeEventListener($[38],rwt.widgets.Display._onAppearFocus,b)};rwt.widgets.Display.prototype={applyObjectId:function(){if(!this._initialized){this.init()}},init:function(){this._server.getMessageWriter().appendHead($[513],true);this._appendQueryString();this._appendWindowSize();this._appendSystemDPI();this._appendColorDepth();this._appendInitialHistoryEvent();this._appendTimezoneOffset();this._attachListener();this._server.send();this._initialized=true},allowEvent:function(){rwt.remote.KeyEventSupport.getInstance().allowEvent()},cancelEvent:function(){rwt.remote.KeyEventSupport.getInstance().cancelEvent()},beep:function(){},setExitConfirmation:function(a){this._exitConfirmation=a},setFocusControl:function(a){var b=rwt.remote.ObjectRegistry.getObject(a);if(b.isSeeable()){b.focus()}else{b.addEventListener($[38],rwt.widgets.Display._onAppearFocus,b)}},setMnemonicActivator:function(a){rwt.widgets.util.MnemonicHandler.getInstance().setActivator(a)},setEnableUiTests:function(a){rwt.widgets.base.Widget._renderHtmlIds=a},getDPI:function(){var a=[0,0];if(typeof screen.systemXDPI==$[31]){a[0]=parseInt(screen.systemXDPI,10);a[1]=parseInt(screen.systemYDPI,10)}else{var b=document.createElement("div");b.style.width="1in";b.style.height="1in";b.style.padding=0;document.body.appendChild(b);a[0]=parseInt(b.offsetWidth,10);a[1]=parseInt(b.offsetHeight,10);document.body.removeChild(b)}return a},setHasResizeListener:function(a){this._hasResizeListener=a},_attachListener:function(){this._document.addEventListener($[257],this._onResize,this);this._document.addEventListener($[4],this._onKeyPress,this);this._server.addEventListener("send",this._onSend,this);rwt.remote.KeyEventSupport.getInstance();rwt.runtime.System.getInstance().addEventListener($[259],this._onBeforeUnload,this);rwt.runtime.System.getInstance().addEventListener("unload",this._onUnload,this)},_onResize:function(a){this._appendWindowSize();if(this._hasResizeListener){rwt.remote.Server.getInstance().getRemoteObject(this).notify($[210])}},_onKeyPress:function(a){if(a.getKeyIdentifier()==$[118]){a.preventDefault()}},_onSend:function(b){var d=rwt.event.MouseEvent.getPageX();var c=rwt.event.MouseEvent.getPageY();var a=[Math.round(d),Math.round(c)];rwt.remote.Server.getInstance().getRemoteObject(this).set("cursorLocation",a)},_onBeforeUnload:function(a){if(this._exitConfirmation!==null&&this._exitConfirmation!==""){a.getDomEvent().returnValue=this._exitConfirmation;a.setUserData($[424],this._exitConfirmation)}},_onUnload:function(){this._document.removeEventListener($[257],this._onResize,this);this._document.removeEventListener($[4],this._onKeyPress,this);this._server.removeEventListener("send",this._onSend,this);this._sendShutdown()},_sendShutdown:function(){var a=rwt.remote.Server.getInstance();a.getMessageWriter().appendHead("rwt_shutdown",true);a.sendImmediate(false)},_appendWindowSize:function(){var b=rwt.html.Window.getInnerWidth(window);var a=rwt.html.Window.getInnerHeight(window);var c=[0,0,b,a];rwt.remote.Server.getInstance().getRemoteObject(this).set($[96],c)},_appendSystemDPI:function(){var a=this.getDPI();rwt.remote.Server.getInstance().getRemoteObject(this).set("dpi",a)},_appendColorDepth:function(){var a=16;if(typeof screen.colorDepth==$[31]){a=parseInt(screen.colorDepth,10)}if(rwt.client.Client.isGecko()){a=a==24?32:a}rwt.remote.Server.getInstance().getRemoteObject(this).set("colorDepth",a)},_appendInitialHistoryEvent:function(){var c=window.location.hash;if(c!==""){var b=$[381];var d=rwt.client.BrowserNavigation.getInstance();var a=rwt.remote.HandlerRegistry.getHandler(b);rwt.remote.ObjectRegistry.add(b,d,a);rwt.remote.Server.getInstance().getRemoteObject(d).notify($[375],{state:decodeURIComponent(c.substr(1))})}},_appendTimezoneOffset:function(){var b=rwt.remote.ObjectRegistry.getObject($[546]);var a=rwt.remote.Server.getInstance().getRemoteObject(b);a.set("timezoneOffset",b.getTimezoneOffset())},_appendQueryString:function(){var a=window.location.search;if(a!==""){this._server.getMessageWriter().appendHead("queryString",a.substr(1))}}};
rwt.remote.HandlerRegistry.add("rwt.widgets.Display",{factory:function(a){return new rwt.widgets.Display(a)},destructor:null,properties:["exitConfirmation","mnemonicActivator",$[463],"enableUiTests",$[247],$[290]],methods:["allowEvent","cancelEvent","beep"],propertyHandler:{activeKeys:function(a,b){var c=rwt.util.Objects.fromArray(b);rwt.remote.KeyEventSupport.getInstance().setKeyBindings(c)},cancelKeys:function(a,b){var c=rwt.util.Objects.fromArray(b);rwt.remote.KeyEventSupport.getInstance().setCancelKeys(c)}},listeners:["KeyDown",$[210]]});
-rwt.qx.Class.define($[134],{extend:rwt.qx.Target,type:"abstract",construct:function(){arguments.callee.base.call(this);this._layoutChanges={};this._outerFrame=[0,0];this.initHideFocus()},events:{beforeAppear:$[11],appear:$[11],beforeDisappear:$[11],disappear:$[11],insertDom:$[11],create:$[11],execute:$[11],flush:$[52],mouseover:$[85],mousemove:$[85],mouseout:$[85],mousedown:$[85],mouseup:$[85],mousewheel:$[85],click:$[85],dblclick:$[85],contextmenu:$[85],elementOver:$[85],elementOut:$[85],keydown:$[267],keypress:$[267],keyup:$[267],focusout:$[216],focusin:$[216],blur:$[216],focus:$[216],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(rwt.widgets.base.Widget._autoFlushTimeout==null){if(!rwt.widgets.base.Widget._inFlushGlobalQueues||a<rwt.widgets.base.Widget._flushGlobalQueuesPhase){rwt.widgets.base.Widget._autoFlushTimeout=window.setTimeout(rwt.widgets.base.Widget._autoFlushHelper,0)}}},_removeAutoFlush:function(){if(rwt.widgets.base.Widget._autoFlushTimeout!=null){window.clearTimeout(rwt.widgets.base.Widget._autoFlushTimeout);rwt.widgets.base.Widget._autoFlushTimeout=null}},_autoFlushHelper:function(){try{rwt.widgets.base.Widget._autoFlushTimeout=null;if(!rwt.qx.Object.inGlobalDispose()){rwt.widgets.base.Widget.flushGlobalQueues()}}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},flushGlobalQueues:function(){if(rwt.widgets.base.Widget._autoFlushTimeout!=null){rwt.widgets.base.Widget._removeAutoFlush()}if(rwt.widgets.base.Widget._inFlushGlobalQueues){return}if(!rwt.runtime.System.getInstance().getUiReady()){return}rwt.widgets.base.Widget._inFlushGlobalQueues=true;rwt.widgets.base.Widget.flushGlobalWidgetQueue();rwt.widgets.base.Widget.flushGlobalStateQueue();rwt.widgets.base.Widget.flushGlobalElementQueue();rwt.widgets.base.Widget.flushGlobalJobQueue();rwt.widgets.base.Widget.flushGlobalLayoutQueue();rwt.widgets.base.Widget.flushGlobalDisplayQueue();rwt.widgets.base.Widget.flushGlobalDisposeQueue();rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_IDLE;delete rwt.widgets.base.Widget._inFlushGlobalQueues},addToGlobalWidgetQueue:function(a){if(!a._isInGlobalWidgetQueue&&a._isDisplayable){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_WIDGET)}rwt.widgets.base.Widget._globalWidgetQueue.push(a);a._isInGlobalWidgetQueue=true}},removeFromGlobalWidgetQueue:function(a){if(a._isInGlobalWidgetQueue){rwt.util.Arrays.remove(rwt.widgets.base.Widget._globalWidgetQueue,a);delete a._isInGlobalWidgetQueue}},flushGlobalWidgetQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_WIDGET;var a=rwt.widgets.base.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)}rwt.widgets.base.Widget._globalWidgetQueue=[]},addToGlobalElementQueue:function(a){if(!a._isInGlobalElementQueue&&a._isDisplayable){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_ELEMENT)}rwt.widgets.base.Widget._globalElementQueue.push(a);a._isInGlobalElementQueue=true}},removeFromGlobalElementQueue:function(a){if(a._isInGlobalElementQueue){rwt.util.Arrays.remove(rwt.widgets.base.Widget._globalElementQueue,a);delete a._isInGlobalElementQueue}},flushGlobalElementQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_ELEMENT;var a=rwt.widgets.base.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)}rwt.widgets.base.Widget._globalElementQueue=[]},addToGlobalStateQueue:function(a){if(!a._isInGlobalStateQueue&&a._isDisplayable){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_STATE)}rwt.widgets.base.Widget._globalStateQueue.push(a);a._isInGlobalStateQueue=true}},removeFromGlobalStateQueue:function(a){if(a._isInGlobalStateQueue){rwt.util.Arrays.remove(rwt.widgets.base.Widget._globalStateQueue,a);delete a._isInGlobalStateQueue}},flushGlobalStateQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_STATE;var d=rwt.widgets.base.Widget;while(d._globalStateQueue.length>0){var a=rwt.util.Arrays.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(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_JOB)}rwt.widgets.base.Widget._globalJobQueue.push(a);a._isInGlobalJobQueue=true}},removeFromGlobalJobQueue:function(a){if(a._isInGlobalJobQueue){rwt.util.Arrays.remove(rwt.widgets.base.Widget._globalJobQueue,a);delete a._isInGlobalJobQueue}},flushGlobalJobQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_JOB;var a=rwt.widgets.base.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)}rwt.widgets.base.Widget._globalJobQueue=[]},addToGlobalLayoutQueue:function(a){if(!a._isInGlobalLayoutQueue&&a._isDisplayable){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_LAYOUT)}rwt.widgets.base.Widget._globalLayoutQueue.push(a);a._isInGlobalLayoutQueue=true}},removeFromGlobalLayoutQueue:function(a){if(a._isInGlobalLayoutQueue){rwt.util.Arrays.remove(rwt.widgets.base.Widget._globalLayoutQueue,a);delete a._isInGlobalLayoutQueue}},flushGlobalLayoutQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_LAYOUT;var a=rwt.widgets.base.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)}rwt.widgets.base.Widget._globalLayoutQueue=[]},addToGlobalDisplayQueue:function(b){if(!b._isInGlobalDisplayQueue&&b._isDisplayable){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_DISPLAY)}var a=b.getParent();if(a.isSeeable()){var c=a.toHashCode();if(rwt.widgets.base.Widget._lazyGlobalDisplayQueues[c]){rwt.widgets.base.Widget._lazyGlobalDisplayQueues[c].push(b)}else{rwt.widgets.base.Widget._lazyGlobalDisplayQueues[c]=[b]}}else{rwt.widgets.base.Widget._fastGlobalDisplayQueue.push(b)}b._isInGlobalDisplayQueue=true}},removeFromGlobalDisplayQueue:function(a){},flushGlobalDisplayQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_DISPLAY;var e,h,d,g;var f=rwt.widgets.base.Widget._fastGlobalDisplayQueue;var c=rwt.widgets.base.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(rwt.util.Objects.isEmpty(c)){rwt.widgets.base.Widget._lazyGlobalDisplayQueues={}}for(var b=0,a=f.length;b<a;b++){delete f[b]._isInGlobalDisplayQueue}rwt.widgets.base.Widget._fastGlobalDisplayQueue=[]},addToGlobalDisposeQueue:function(a){if(!a._isInGlobalDisposeQueue&&!a.isDisposed()){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_DISPOSE)}rwt.widgets.base.Widget._globalDisposeQueue.push(a);a._markInDispose()}},flushGlobalDisposeQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_DISPOSE;var a=rwt.widgets.base.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)}rwt.widgets.base.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()||rwt.widgets.base.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",$[13],"top",$[28],$[25],$[17],$[90],$[89],$[97],$[92]];var p=["Left",$[36],"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+$[136];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=[$[25],$[17],$[90],$[89],$[97],$[92],"left",$[13],"top",$[28]];for(var g=0,d=e.length,h,c,f;g<d;g++){h=e[g];c="_computed"+rwt.util.Strings.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){rwt.html.Scroll.disableScrolling(a)}else{b.addEventListener($[38],this._blockScrollingOnAppear,b)}},enableScrolling:function(b){var a=b._getTargetNode();if(a){rwt.html.Scroll.enableScrolling(a)}else{b.removeEventListener($[38],this._blockScrollingOnAppear,b)}},_blockScrollingOnAppear:function(){var a=rwt.widgets.base.Widget._blockScrollingOnAppear;this.removeEventListener($[38],a,this);rwt.widgets.base.Widget.disableScrolling(this)}},properties:{enabled:{init:$[192],check:$[2],inheritable:true,apply:$[509],event:$[191]},parent:{check:$[442],nullable:true,event:$[178],apply:"_applyParent"},element:{check:"Element",nullable:true,apply:"_applyElement",event:$[371]},visibility:{check:$[2],init:true,apply:$[574],event:$[187]},display:{check:$[2],init:true,apply:"_applyDisplay",event:"changeDisplay"},anonymous:{check:$[2],init:false,event:"changeAnonymous"},horizontalAlign:{check:["left",$[24],$[13]],themeable:true,nullable:true},verticalAlign:{check:["top",$[46],$[28]],themeable:true,nullable:true},allowStretchX:{check:$[2],init:true},allowStretchY:{check:$[2],init:true},zIndex:{check:$[56],apply:"_applyZIndex",event:"changeZIndex",themeable:true,nullable:true,init:null},backgroundColor:{nullable:true,init:null,check:"Color",apply:$[532],event:$[182],themeable:true},backgroundGradient:{check:"Array",nullable:true,init:null,apply:$[340],event:$[347],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:$[192],check:"Color",apply:"_applyTextColor",event:$[329],themeable:true,inheritable:true},border:{nullable:true,init:null,apply:"_applyBorder",event:"changeBorder",check:"Border",themeable:true},font:{nullable:true,init:$[192],apply:"_applyFont",check:"Font",event:$[102],themeable:true,inheritable:true},opacity:{check:$[56],apply:$[356],themeable:true,nullable:true,init:null},cursor:{check:$[50],apply:"_applyCursor",themeable:true,nullable:true,init:null},backgroundImage:{check:$[50],nullable:true,apply:"_applyBackgroundImage",themeable:true},backgroundRepeat:{check:["repeat","repeat-x","repeat-y",$[152]],nullable:true,apply:"_applyBackgroundRepeat",themeable:true},backgroundPosition:{check:[$[357],"left center",$[328],$[306],"right center","right bottom","center top",$[341],"center bottom"],nullable:true,apply:"_applyBackgroundPosition",themeable:true},overflow:{check:[$[9],"auto",$[21],$[94],$[93]],nullable:true,apply:"_applyOverflow",event:"changeOverflow",themeable:true,init:null},containerOverflow:{check:$[2],nullable:false,apply:"_applyContainerOverflow",themeable:true,init:true},clipLeft:{check:$[18],apply:$[278],themeable:true,nullable:true},clipTop:{check:$[18],apply:$[278],themeable:true,nullable:true},clipWidth:{check:$[18],apply:$[278],themeable:true,nullable:true},clipHeight:{check:$[18],apply:$[278],themeable:true,nullable:true},tabIndex:{check:$[18],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:$[277]},selectable:{check:$[2],init:null,nullable:true,apply:"_applySelectable"},toolTip:{check:$[252],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:$[50],init:"widget",apply:"_applyAppearance",event:"changeAppearance"},supportsDropMethod:{check:"Function",nullable:true,init:null},marginTop:{check:$[56],apply:"_applyMarginTop",nullable:true,themeable:true},marginRight:{check:$[56],apply:"_applyMarginRight",nullable:true,themeable:true},marginBottom:{check:$[56],apply:"_applyMarginBottom",nullable:true,themeable:true},marginLeft:{check:$[56],apply:"_applyMarginLeft",nullable:true,themeable:true},paddingTop:{check:$[56],apply:"_applyPaddingTop",nullable:true,themeable:true},paddingRight:{check:$[56],apply:"_applyPaddingRight",nullable:true,themeable:true},paddingBottom:{check:$[56],apply:"_applyPaddingBottom",nullable:true,themeable:true},paddingLeft:{check:$[56],apply:"_applyPaddingLeft",nullable:true,themeable:true},left:{apply:"_applyLeft",event:$[268],nullable:true,themeable:true,init:null},right:{apply:"_applyRight",event:"changeRight",nullable:true,themeable:true,init:null},width:{apply:"_applyWidth",event:$[74],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:"changeTop",nullable:true,themeable:true,init:null},bottom:{apply:"_applyBottom",event:"changeBottom",nullable:true,themeable:true,init:null},height:{apply:$[435],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:[$[25],$[17]],themeable:true},space:{group:["left",$[25],"top",$[17]],themeable:true},edge:{group:["top",$[13],$[28],"left"],themeable:true,mode:$[239]},padding:{group:[$[162],$[169],$[181],$[185]],mode:$[239],themeable:true},margin:{group:[$[158],$[202],$[238],$[161]],mode:$[239],themeable:true},heights:{group:[$[97],$[17],$[92]],themeable:true},widths:{group:[$[90],$[25],$[89]],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($[13],b);this.addToQueue($[13])},_applyTop:function(b,a){this._unitDetectionPixelPercent("top",b);this.addToQueue("top")},_applyBottom:function(b,a){this._unitDetectionPixelPercent($[28],b);this.addToQueue($[28])},_applyWidth:function(b,a){this._unitDetectionPixelPercentAutoFlex($[25],b);this.addToQueue($[25])},_applyMinWidth:function(b,a){this._unitDetectionPixelPercentAuto($[90],b);this.addToQueue($[90])},_applyMaxWidth:function(b,a){this._unitDetectionPixelPercentAuto($[89],b);this.addToQueue($[89])},_applyHeight:function(b,a){this._unitDetectionPixelPercentAutoFlex($[17],b);this.addToQueue($[17])},_applyMinHeight:function(b,a){this._unitDetectionPixelPercentAuto($[97],b);this.addToQueue($[97])},_applyMaxHeight:function(b,a){this._unitDetectionPixelPercentAuto($[92],b);this.addToQueue($[92])},getChildren:rwt.util.Functions.returnNull,getChildrenLength:rwt.util.Functions.returnZero,hasChildren:rwt.util.Functions.returnFalse,isEmpty:rwt.util.Functions.returnTrue,indexOf:rwt.util.Functions.returnNegativeIndex,contains:rwt.util.Functions.returnFalse,getVisibleChildren:rwt.util.Functions.returnNull,getVisibleChildrenLength:rwt.util.Functions.returnZero,hasVisibleChildren:rwt.util.Functions.returnFalse,isVisibleEmpty:rwt.util.Functions.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;rwt.util.Arrays.removeAt(a.getChildren(),b);a._invalidateVisibleChildren();a._removeChildFromChildrenQueue(this);a.getLayoutImpl().updateChildrenOnRemoveChild(this,b);a.addToJobQueue($[444]);a._invalidatePreferredInnerDimensions();this._oldParent=a}if(c){this._hasParent=true;if(typeof this._insertIndex==$[31]){rwt.util.Arrays.insertAt(c.getChildren(),this,this._insertIndex);delete this._insertIndex}else{c.getChildren().push(this)}}else{this._hasParent=false}rwt.qx.Property.refresh(this);return this._handleDisplayable("parent")},_applyDisplay:function(b,a){return this._handleDisplayable($[167])},_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){rwt.widgets.base.Widget.addToGlobalElementQueue(this)}rwt.widgets.base.Widget.addToGlobalStateQueue(this);if(!rwt.util.Objects.isEmpty(this._jobQueue)){rwt.widgets.base.Widget.addToGlobalJobQueue(this)}if(!rwt.util.Objects.isEmpty(this._childrenQueue)){rwt.widgets.base.Widget.addToGlobalLayoutQueue(this)}}else{rwt.widgets.base.Widget.removeFromGlobalElementQueue(this);rwt.widgets.base.Widget.removeFromGlobalStateQueue(this);rwt.widgets.base.Widget.removeFromGlobalJobQueue(this);rwt.widgets.base.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($[444]);var a=rwt.client.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:rwt.util.Functions.returnTrue,removeFromCustomQueues:rwt.util.Functions.returnTrue,_handleDisplayableCustom:rwt.util.Functions.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($[38])},_ieFixLayoutOnAppear:rwt.util.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":rwt.util.Functions.returnTrue}),_beforeDisappear:function(){this.removeState("over");if(rwt.qx.Class.isDefined($[383])){this.removeState($[12]);this.removeState($[33])}this.dispatchSimpleEvent("beforeDisappear")},_afterDisappear:function(){this._isSeeable=false;this.dispatchSimpleEvent($[387])},_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($[145])},_afterRemoveDom:function(){this._isInDom=false},_applyVisibility:function(b,a){if(b){if(this._isDisplayable&&(this._isCreated||this._isInGlobalElementQueue)){this._beforeAppear()}this.removeStyleProperty($[167]);if(this._isDisplayable&&this._isCreated){this._afterAppear();this._ieFixLayoutOnAppear()}}else{if(this._isDisplayable&&this._isCreated){this._beforeDisappear()}this.setStyleProperty($[167],"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($[241])){this.setParent(null);rwt.widgets.base.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(){rwt.widgets.base.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.rwtWidget=null}if(b){b.rwtWidget=this;b.style.position=$[15];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($[68]);this.addToStateQueue()}else{this._element=this._style=null}},addToJobQueue:function(a){if(this._hasParent){rwt.widgets.base.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||rwt.util.Objects.isEmpty(k)){return}var n=this instanceof rwt.widgets.base.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 rwt.widgets.base.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:rwt.util.Functions.returnTrue,_isHeightEssential:rwt.util.Functions.returnTrue,_computeBoxWidthFallback:function(){return 0},_computeBoxHeightFallback:function(){return 0},_computeBoxWidth:function(){var a=this.getParent().getLayoutImpl();return Math.max(0,rwt.util.Numbers.limit(a.computeChildBoxWidth(this),this.getMinWidthValue(),this.getMaxWidthValue()))},_computeBoxHeight:function(){var a=this.getParent().getLayoutImpl();return Math.max(0,rwt.util.Numbers.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($[25])}return true},_recomputeFlexY:function(){if(!this.getHasFlexY()){return false}if(this._computedHeightTypeFlex){this._computedHeightValue=null;this.addToLayoutChanges($[17])}return true},_recomputePercentX:function(){if(!this.getHasPercentX()){return false}if(this._computedWidthTypePercent){this._computedWidthValue=null;this.addToLayoutChanges($[25])}if(this._computedMinWidthTypePercent){this._computedMinWidthValue=null;this.addToLayoutChanges($[90])}if(this._computedMaxWidthTypePercent){this._computedMaxWidthValue=null;this.addToLayoutChanges($[89])}if(this._computedLeftTypePercent){this._computedLeftValue=null;this.addToLayoutChanges("left")}if(this._computedRightTypePercent){this._computedRightValue=null;this.addToLayoutChanges($[13])}return true},_recomputePercentY:function(){if(!this.getHasPercentY()){return false}if(this._computedHeightTypePercent){this._computedHeightValue=null;this.addToLayoutChanges($[17])}if(this._computedMinHeightTypePercent){this._computedMinHeightValue=null;this.addToLayoutChanges($[97])}if(this._computedMaxHeightTypePercent){this._computedMaxHeightValue=null;this.addToLayoutChanges($[92])}if(this._computedTopTypePercent){this._computedTopValue=null;this.addToLayoutChanges("top")}if(this._computedBottomTypePercent){this._computedBottomValue=null;this.addToLayoutChanges($[28])}return true},_recomputeRangeX:rwt.util.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this._computedLeftTypeNull||this._computedRightTypeNull){return false}this.addToLayoutChanges($[25]);return true},"default":function(){return !(this._computedLeftTypeNull||this._computedRightTypeNull)}}),_recomputeRangeY:rwt.util.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this._computedTopTypeNull||this._computedBottomTypeNull){return false}this.addToLayoutChanges($[17]);return true},"default":function(){return !(this._computedTopTypeNull||this._computedBottomTypeNull)}}),_recomputeStretchingX:rwt.util.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){this._computedWidthValue=null;this.addToLayoutChanges($[25]);return true}return false},"default":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){return true}return false}}),_recomputeStretchingY:rwt.util.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){this._computedHeightValue=null;this.addToLayoutChanges($[17]);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 rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedWidthParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedWidthParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedWidthValue=this.getPreferredBoxWidth();case rwt.widgets.base.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexWidth===undefined){throw new Error("Widget "+this+": having horizontal flex size (width="+this.getWidth()+$[544]+this.getParent()+$[405])}this.getParent().getLayoutImpl().computeChildrenFlexWidth();return this._computedWidthValue=this._computedWidthFlexValue}return null},getMinWidthValue:function(){if(this._computedMinWidthValue!=null){return this._computedMinWidthValue}switch(this._computedMinWidthType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMinWidthParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMinWidthParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedMinWidthValue=this.getPreferredBoxWidth()}return null},getMaxWidthValue:function(){if(this._computedMaxWidthValue!=null){return this._computedMaxWidthValue}switch(this._computedMaxWidthType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMaxWidthParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMaxWidthParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedMaxWidthValue=this.getPreferredBoxWidth()}return null},getLeftValue:function(){if(this._computedLeftValue!=null){return this._computedLeftValue}switch(this._computedLeftType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedLeftValue=this._computeValuePixel(this._computedLeftParsed);case rwt.widgets.base.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 rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedRightValue=this._computeValuePixel(this._computedRightParsed);case rwt.widgets.base.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 rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedHeightValue=this._computeValuePixelLimit(this._computedHeightParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedHeightValue=this._computeValuePercentYLimit(this._computedHeightParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedHeightValue=this.getPreferredBoxHeight();case rwt.widgets.base.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexHeight===undefined){throw new Error("Widget "+this+": having vertical flex size (height="+this.getHeight()+$[544]+this.getParent()+$[405])}this.getParent().getLayoutImpl().computeChildrenFlexHeight();return this._computedHeightValue=this._computedHeightFlexValue}return null},getMinHeightValue:function(){if(this._computedMinHeightValue!=null){return this._computedMinHeightValue}switch(this._computedMinHeightType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedMinHeightValue=this._computeValuePixelLimit(this._computedMinHeightParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedMinHeightValue=this._computeValuePercentYLimit(this._computedMinHeightParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedMinHeightValue=this.getPreferredBoxHeight()}return null},getMaxHeightValue:function(){if(this._computedMaxHeightValue!=null){return this._computedMaxHeightValue}switch(this._computedMaxHeightType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedMaxHeightValue=this._computeValuePixelLimit(this._computedMaxHeightParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedMaxHeightValue=this._computeValuePercentYLimit(this._computedMaxHeightParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedMaxHeightValue=this.getPreferredBoxHeight()}return null},getTopValue:function(){if(this._computedTopValue!=null){return this._computedTopValue}switch(this._computedTopType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedTopValue=this._computeValuePixel(this._computedTopParsed);case rwt.widgets.base.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 rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedBottomValue=this._computeValuePixel(this._computedBottomParsed);case rwt.widgets.base.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){if(this._initialLayoutDone){this.addToJobQueue(a)}else{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 rwt.widgets.base.Widget.TYPE_AUTO;case Infinity:case -Infinity:return rwt.widgets.base.Widget.TYPE_NULL}switch(typeof a){case $[31]:return isNaN(a)?rwt.widgets.base.Widget.TYPE_NULL:rwt.widgets.base.Widget.TYPE_PIXEL;case $[10]:return a.indexOf("%")!=-1?rwt.widgets.base.Widget.TYPE_PERCENT:a.indexOf("*")!=-1?rwt.widgets.base.Widget.TYPE_FLEX:rwt.widgets.base.Widget.TYPE_NULL}return rwt.widgets.base.Widget.TYPE_NULL},_evalUnitsPixelPercentAuto:function(a){switch(a){case"auto":return rwt.widgets.base.Widget.TYPE_AUTO;case Infinity:case -Infinity:return rwt.widgets.base.Widget.TYPE_NULL}switch(typeof a){case $[31]:return isNaN(a)?rwt.widgets.base.Widget.TYPE_NULL:rwt.widgets.base.Widget.TYPE_PIXEL;case $[10]:return a.indexOf("%")!=-1?rwt.widgets.base.Widget.TYPE_PERCENT:rwt.widgets.base.Widget.TYPE_NULL}return rwt.widgets.base.Widget.TYPE_NULL},_evalUnitsPixelPercent:function(a){switch(a){case Infinity:case -Infinity:return rwt.widgets.base.Widget.TYPE_NULL}switch(typeof a){case $[31]:return isNaN(a)?rwt.widgets.base.Widget.TYPE_NULL:rwt.widgets.base.Widget.TYPE_PIXEL;case $[10]:return a.indexOf("%")!=-1?rwt.widgets.base.Widget.TYPE_PERCENT:rwt.widgets.base.Widget.TYPE_NULL}return rwt.widgets.base.Widget.TYPE_NULL},_unitDetectionPixelPercentAutoFlex:function(b,j){var a=rwt.widgets.base.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];this[n]=this._evalUnitsPixelPercentAutoFlex(j);switch(this[n]){case rwt.widgets.base.Widget.TYPE_PIXEL:this[l]=true;this[k]=this[i]=this[h]=this[g]=false;this[c]=this[m]=Math.round(j);break;case rwt.widgets.base.Widget.TYPE_PERCENT:this[k]=true;this[l]=this[i]=this[h]=this[g]=false;this[c]=parseFloat(j);this[m]=null;break;case rwt.widgets.base.Widget.TYPE_AUTO:this[i]=true;this[l]=this[k]=this[h]=this[g]=false;this[c]=this[m]=null;break;case rwt.widgets.base.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 $[90]:case $[89]:case $[25]:case"left":case $[13]:this._invalidateHasPercentX();break;case $[92]:case $[97]:case $[17]:case"top":case $[28]:this._invalidateHasPercentY();break}}if(f!=this[i]){switch(b){case $[90]:case $[89]:case $[25]:this._invalidateHasAutoX();break;case $[97]:case $[92]:case $[17]:this._invalidateHasAutoY();break}}if(d!=this[h]){switch(b){case $[25]:this._invalidateHasFlexX();break;case $[17]:this._invalidateHasFlexY();break}}},_unitDetectionPixelPercentAuto:function(b,h){var a=rwt.widgets.base.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];this[l]=this._evalUnitsPixelPercentAuto(h);switch(this[l]){case rwt.widgets.base.Widget.TYPE_PIXEL:this[j]=true;this[i]=this[g]=this[f]=false;this[c]=this[k]=Math.round(h);break;case rwt.widgets.base.Widget.TYPE_PERCENT:this[i]=true;this[j]=this[g]=this[f]=false;this[c]=parseFloat(h);this[k]=null;break;case rwt.widgets.base.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 $[90]:case $[89]:case $[25]:case"left":case $[13]:this._invalidateHasPercentX();break;case $[97]:case $[92]:case $[17]:case"top":case $[28]:this._invalidateHasPercentY();break}}if(e!=this[g]){switch(b){case $[90]:case $[89]:case $[25]:this._invalidateHasAutoX();break;case $[97]:case $[92]:case $[17]:this._invalidateHasAutoY();break}}},_unitDetectionPixelPercent:function(b,f){var a=rwt.widgets.base.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];this[j]=this._evalUnitsPixelPercent(f);switch(this[j]){case rwt.widgets.base.Widget.TYPE_PIXEL:this[h]=true;this[g]=this[e]=false;this[c]=this[i]=Math.round(f);break;case rwt.widgets.base.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 $[90]:case $[89]:case $[25]:case"left":case $[13]:this._invalidateHasPercentX();break;case $[97]:case $[92]:case $[17]:case"top":case $[28]: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=rwt.widgets.base.Widget.getActiveSiblingHelper(this,this.getParent(),-1,a,null);return b?b:this.getParent().getLastActiveChild()},getNextActiveSibling:function(a){var b=rwt.widgets.base.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){rwt.widgets.base.Widget.addToGlobalStateQueue(this)}}},removeState:function(a){if(this.__states&&this.__states[a]){delete this.__states[a];if(this._hasParent){rwt.widgets.base.Widget.addToGlobalStateQueue(this)}}},_styleFromMap:function(c){this._prepareStyleMap(c);var b=rwt.qx.Property.$$method.style;var d=rwt.qx.Property.$$method.unstyle;var a;for(var e in c){a=c[e];if(a===$[8]){this[d[e]]()}else{this[b[e]](a)}}},_unstyleFromArray:function(c){var d=rwt.qx.Property.$$method.unstyle;for(var b=0,a=c.length;b<a;b++){this[d[c[b]]]()}},_prepareStyleMap:rwt.util.Variant.select($[0],{mshtml:function(c){if(c.shadow&&c.border&&c.border.getStyle()!==$[84]){var b=c.border.getWidthTop();var a=c.border.getColorTop();var d=[0,0,0,0];c.border=new rwt.html.Border(b,$[84],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=rwt.theme.AppearanceManager.getInstance().styleFrom(b,this.__states);if(a){this._styleFromMap(a)}}},_resetAppearanceThemeWrapper:function(a,e){var f=this.getAppearance();if(f){var c=rwt.theme.AppearanceManager.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:rwt.util.Variant.select($[0],{mshtml:function(a){},"default":function(a){if(a.focused){if(!rwt.widgets.util.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty($[230],"1px dotted")}}else{this.setStyleProperty($[230],"none")}}}),addToStateQueue:function(){rwt.widgets.base.Widget.addToGlobalStateQueue(this)},recursiveAddToStateQueue:function(){this.addToStateQueue()},_applyAppearance:function(e,a){if(!this.__states){this.__states={}}var c=rwt.theme.AppearanceManager.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:rwt.util.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,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(rwt.qx.Class.isDefined($[383])){this.removeState($[33]);this.removeState($[12])}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:rwt.util.Functions.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:rwt.util.Variant.select($[0],{mshtml:function(b,a){this.setHtmlProperty("hideFocus",b)},"default":rwt.util.Functions.returnTrue}),_visualizeBlur:function(){if(this.getEnableElementFocus()&&(!this.getFocusRoot().getFocusedChild()||(this.getFocusRoot().getFocusedChild()&&this.getFocusRoot().getFocusedChild().getEnableElementFocus()))){try{this.getElement().blur()}catch(a){}}this.removeState($[72])},_visualizeFocus:function(){var a=rwt.widgets.util.FocusHandler;if(!a.mouseFocus&&!a.blockFocus&&this.getEnableElementFocus()){try{this.getElement().focus()}catch(b){}}this.addState($[72])},focus:function(){delete rwt.widgets.util.FocusHandler.mouseFocus;this.setFocused(true)},blur:function(){delete rwt.widgets.util.FocusHandler.mouseFocus;this.setFocused(false)},_applyCapture:function(c,b){var a=rwt.event.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:rwt.util.Variant.select($[0],{mshtml:function(b,a){this.setHtmlProperty($[352],b<0?-1:1)},"default":function(b,a){this.setStyleProperty("userFocus",(b<0?"ignore":$[53]));this.setHtmlProperty($[352],b<0?-1:1)}}),_applySelectable:rwt.util.Variant.select($[0],{mshtml:function(b,a){},gecko:function(b,a){if(b){this.removeStyleProperty($[496])}else{this.setStyleProperty($[496],"none")}},webkit:function(b,a){if(b){this.removeStyleProperty($[477]);this.removeStyleProperty($[549])}else{this.setStyleProperty($[477],"none");this.setStyleProperty($[549],"none")}},"default":function(b,a){if(b){return this.removeStyleProperty("userSelect")}else{this.setStyleProperty("userSelect","none")}}}),_applyOpacity:function(b,a){rwt.html.Style.setOpacity(this,b)},__cursorMap:rwt.util.Variant.select($[0],{mshtml:{"default":$[67],wait:"wait",crosshair:$[324],help:"help",move:"move",text:"text",pointer:$[154],"e-resize":$[170],"n-resize":$[176],"w-resize":$[344],"s-resize":$[361],"ne-resize":$[201],"se-resize":$[326],"nw-resize":$[204],"sw-resize":$[345],"col-resize":$[286],"row-resize":"row-resize",progress:$[251],"not-allowed":$[350],"no-drop":"no-drop",cursor:"hand","ew-resize":$[170],"ns-resize":$[176],"nesw-resize":$[201],"nwse-resize":$[204]},opera:{"default":$[67],wait:"wait",crosshair:$[324],help:"help",move:"move",text:"text",pointer:$[154],"e-resize":$[170],"n-resize":$[176],"w-resize":$[344],"s-resize":$[361],"ne-resize":$[201],"se-resize":$[326],"nw-resize":$[204],"sw-resize":$[345],progress:$[251],"not-allowed":$[350],"no-drop":"no-drop","col-resize":$[170],"row-resize":$[176],"ew-resize":$[170],"ns-resize":$[176],"nesw-resize":$[201],"nwse-resize":$[204]},"default":{"default":$[67],wait:"wait",crosshair:$[324],help:"help",move:"move",text:"text",pointer:$[154],"e-resize":$[170],"n-resize":$[176],"w-resize":$[344],"s-resize":$[361],"ne-resize":$[201],"se-resize":$[326],"nw-resize":$[204],"sw-resize":$[345],"col-resize":$[286],"row-resize":"row-resize",progress:$[251],"not-allowed":$[350],"no-drop":"no-drop"}}),_applyCursor:function(c,a){if(c){var b="url( "+c+" ), default";this.setStyleProperty($[131],this.__cursorMap[c]||b)}else{this.removeStyleProperty($[131])}},_applyCommand:function(b,a){},_applyBackgroundImage:function(c,a){var b=rwt.html.ImageManager.getInstance();if(a){b.hide(a)}if(c){b.show(c)}this._styleBackgroundImage(c)},_styleBackgroundImage:function(a){if(a){this.setStyleProperty($[79],"url("+a+")");this.setStyleProperty($[130],this.getStyleProperty($[130]));this.setStyleProperty($[105],this.getStyleProperty($[105]))}else{this.removeStyleProperty($[79]);if(rwt.client.Client.supportsCss3()){rwt.html.Style.setBackgroundGradient(this,this.getBackgroundGradient())}}},_applyBackgroundRepeat:function(b,a){if(b){this.setStyleProperty($[130],b)}else{this.removeStyleProperty($[130])}},_applyBackgroundPosition:function(b,a){if(b){this.setStyleProperty($[105],b)}else{this.removeStyleProperty($[105])}},_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:rwt.util.Variant.select($[0],{"default":function(g,c){var f=g;var d=$[63];switch(g){case $[94]:d=$[100];f=$[21];break;case $[93]:d=$[101];f=$[21];break}var b=[$[63],$[100],$[101]];for(var e=0;e<b.length;e++){if(b[e]!=d){this.removeStyleProperty(b[e])}}switch(g){case $[94]:this.setStyleProperty($[101],$[9]);break;case $[93]:this.setStyleProperty($[100],$[9]);break}this._renderOverflow(d,f,g,c);this.addToQueue($[63])},gecko:function(d,a){var c=d;var b=$[63];switch(c){case $[9]:c=$[333];break;case $[94]:c=$[575];break;case $[93]:c=$[394];break}this._renderOverflow(b,c,d,a);this.addToQueue($[63])},opera:function(g,c){var f=g;var d=$[63];if(rwt.client.Client.getVersion()<9.8){switch(f){case $[94]:case $[93]:f=$[21];break}}else{switch(f){case $[94]:d=$[100];f=$[21];break;case $[93]:d=$[101];f=$[21];break}var b=[$[63],$[100],$[101]];for(var e=0;e<b.length;e++){if(b[e]!=d){this.removeStyleProperty(b[e])}}switch(g){case $[94]:this.setStyleProperty($[101],$[9]);break;case $[93]:this.setStyleProperty($[100],$[9]);break}}this._renderOverflow(d,f,g,c);this.addToQueue($[63])}}),_renderOverflow:function(b,c,d,a){this.setStyleProperty(b,c||"");this._invalidateFrameWidth();this._invalidateFrameHeight()},getOverflowX:function(){var a=this.getOverflow();return a==$[93]?$[9]:a},getOverflowY:function(){var a=this.getOverflow();return a==$[94]?$[9]:a},_applyContainerOverflow:function(b,a){if(this._innerStyle){this._style.overflow=b?"":$[9]}},_applyBackgroundColor:function(b,a){this._styleBackgroundColor(b)},_applyBackgroundGradient:function(b,a){rwt.html.Style.setBackgroundGradient(this,b);if(b===null){this.setStyleProperty($[79],this.getStyleProperty($[79]));this.setStyleProperty($[130],this.getStyleProperty($[130]));this.setStyleProperty($[105],this.getStyleProperty($[105]));this.setStyleProperty($[57],this.getStyleProperty($[57]))}},_applyShadow:function(b,a){rwt.html.Style.setBoxShadow(this,b)},_applyTextShadow:function(b,a){rwt.html.Style.setTextShadow(this,b)},_styleBackgroundColor:function(a){if(a==null||a===$[81]){this._removeBackgroundColor()}else{this.setStyleProperty($[57],a)}},_removeBackgroundColor:rwt.util.Variant.select($[0],{"default":function(){this.removeStyleProperty($[57])},newmshtml:function(){this.setStyleProperty($[57],"rgba( 0, 0, 0, 0 )")}}),_applyTextColor:function(b,a){},_applyFont:function(b,a){},_cachedBorderTop:0,_cachedBorderRight:0,_cachedBorderBottom:0,_cachedBorderLeft:0,_targetNodeEnabled:false,_applyBorder:function(b,a){this._queueBorder(b);if(b&&b.getStyle()===$[84]){this._prepareGraphicsSupport()}},_prepareGraphicsSupport:(function(){var a;if(rwt.client.Client.supportsCss3()){a=rwt.util.Functions.returnTrue}else{a=function(){if(!this._targetNodeEnabled&&!this._isCreated){this._targetNodeEnabled=true}}}return a}()),_queueBorder:function(a){this.addToQueue($[125]);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{rwt.html.Border.resetWidget(this)}this._outerFrame=this._computeOuterFrame()},_computeOuterFrame:function(){var a=[0,0];if(this._innerStyle&&this.__borderObject){var b=this.__borderObject.getWidths();if(this.__borderObject.getStyle()===$[188]&&b[0]===2){a=[2,2]}else{a=[b[1]+b[3],b[0]+b[2]]}}return a},prepareEnhancedBorder:function(b){if(!this._innerStyle){this._targetNode=document.createElement("div");this._innerStyle=this._targetNode.style;this._targetNodeEnabled=true;if(rwt.client.Client.isMshtml()){this.addToQueue($[25]);this.addToQueue($[17])}else{this._innerStyle.width="100%";this._innerStyle.height="100%"}this._innerStyle.position=$[15];if(!b){for(var a in this._styleProperties){switch(a){case"zIndex":case $[98]:case $[55]:case $[198]:case $[167]:case $[131]:case $[321]: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 $[396]: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($[162]);this._invalidateFrameHeight()},_applyPaddingRight:function(b,a){this.addToQueue($[169]);this._invalidateFrameWidth()},_applyPaddingBottom:function(b,a){this.addToQueue($[181]);this._invalidateFrameHeight()},_applyPaddingLeft:function(b,a){this.addToQueue($[185]);this._invalidateFrameWidth()},renderPadding:function(a){},_applyMarginLeft:function(b,a){this.addToQueue($[161])},_applyMarginRight:function(b,a){this.addToQueue($[202])},_applyMarginTop:function(b,a){this.addToQueue($[158])},_applyMarginBottom:function(b,a){this.addToQueue($[238])},execute:function(){var a=this.getCommand();if(a){a.execute(this)}this.createDispatchEvent($[107])},_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 rwt.html.Offset.getLeft(this.getElement())},getOffsetTop:function(){this._visualPropertyCheck();return rwt.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 rwt.html.ScrollIntoView.scrollX(this.getElement(),a)},scrollIntoViewY:function(a){if(!this._isCreated||!this._isDisplayable){return false}return rwt.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(c){if(this._adapters===undefined){this._adapters={}}var b=c.classname;var a=this._adapters[b];if(a==null){new c(this);a=this._adapters[b]}return a},applyObjectId:function(a){if(rwt.widgets.base.Widget._renderHtmlIds){this.setHtmlAttribute("id",a)}}},defer:function(b,a){b.__initApplyMethods(a);if(rwt.client.Client.isMshtml()){a._renderRuntimeWidth=function(d){this._style.pixelWidth=(d==null)?0:d;if(this._targetNodeEnabled){var c=(d!=null)?Math.max(0,d-this._outerFrame[0]):d;this._innerStyle.pixelWidth=c==null?0:c}};a._renderRuntimeHeight=function(d){this._style.pixelHeight=(d==null)?0:d;if(this._targetNodeEnabled){var c=(d!=null)?Math.max(0,d-this._outerFrame[1]):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(){this.dispatchSimpleEvent($[193],{target:this});var b=this.getElement();if(b){b.rwtWidget=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","_outerFrame")}});
-rwt.qx.Class.define("rwt.widgets.util.WidgetRenderAdapter",{extend:rwt.qx.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:$[52],height:$[52],top:$[52],left:$[52],opacity:$[52],backgroundColor:$[52],backgroundGradient:$[52]},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:$[574],height:"_renderRuntimeHeight",top:"_renderRuntimeTop",left:"_renderRuntimeLeft",opacity:$[356],backgroundColor:"_styleBackgroundColor",backgroundGradient:$[340]}}});
-rwt.qx.Class.define("rwt.animation.AnimationRenderer",{extend:rwt.qx.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=rwt.util.Functions.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==$[10]){this._converterFunction=rwt.animation.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 rwt.widgets.base.Widget&&this._context._isCreated!==true){if(this._context._isInGlobalElementQueue){rwt.widgets.base.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==$[387]){this._updateWidgetVisibility();this._forceWidgetRenderer()}this.cancelActivateOnce()},_prepareValue:function(c){var a=c;switch(this._renderType){case $[57]:if(typeof c==$[10]){if(c==$[81]||c===""||c.slice(0,4)==="rgba"){a=null}else{a=rwt.util.Colors.cssStringToRgb(c)}}break;case $[135]:if(c){var a=[];for(var b=0;b<c.length;b++){a[b]=[c[b][0],rwt.util.Colors.cssStringToRgb(c[b][1])]}}break;case $[55]: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(rwt.widgets.util.WidgetRenderAdapter);this._renderType=a;this._animationType=b;this._renderFunction=this._renderAdapter.getOriginalRenderer(this._renderType);var d=rwt.animation.AnimationRenderer.converterByRenderType;this.setConverter(d[this._renderType]);this._handleAnimationType()}},clearAnimation:function(){if(this._renderType!==null){this._animationType=0;this._handleAnimationType();this._renderType=null;this.setRenderFunction(null,null);this._renderAdapter=null}},isAnimated:function(b){var a=false;if(this._animationType>0&&this._active){var c=b&this._animationType;if(typeof b===$[8]||c!==0){a=true}}return a},setInvisibilityGetter:function(a){this._invisibilityGetter=a},setAutoStart:function(a){this._autoStartEnabled=a},setAutoCheck:function(a){this._autoCheck=a},getValueFromWidget:function(){var a=null;switch(this._renderType){case $[55]:a=this._context.getOpacity();break;case $[17]: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 $[57]:var c=$[57];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 $[135]: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 $[135]:case $[57]: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($[103],this._onVisibilityChange,this);this._context.addEventListener($[68],this._onCreate,this)}else{this._renderAdapter.removeRenderListener($[103],this._onVisibilityChange,this);this._context.removeEventListener($[68],this._onCreate,this)}},_attachToWidgetRenderer:function(a){if(a){this._renderAdapter.addRenderListener(this._renderType,this._onOriginalRenderer,this)}else{this._renderAdapter.removeRenderListener(this._renderType,this._onOriginalRenderer,this)}},_onVisibilityChange:function(a){var c=a[0];var b=false;if(c){b=this._onBeforeAppear()}else{if(!this._context.isCreated()){this._animation.cancel()}if(this._context.isSeeable()){b=this._onBeforeDisappear()}else{b=true}}return b},_onCreate:function(){if(this._context.isDisplayable()){this._onBeforeAppear()}},_onBeforeAppear:function(){if(this._context.isCreated()){this._animation.skip()}else{this._animation.cancel()}var a=rwt.animation.AnimationRenderer.ANIMATION_APPEAR;if(this._context.isCreated()&&this.isAnimated(a)){this.setEndValue(this.getValueFromWidget());if(this._invisibilityGetter!=null){this.setStartValue(this._invisibilityGetter(this._context));this._render(0)}this._autoStart(a)}return true},_onBeforeDisappear:function(){this._animation.skip();var b=rwt.animation.AnimationRenderer.ANIMATION_DISAPPEAR;var a=!this.isAnimated(b);if(!a){if(this._invisibilityGetter!==null){this.setEndValue(this._invisibilityGetter(this._context))}this.setStartValue(this.getValueFromWidget());this._autoStart(b)}return a},_onOriginalRenderer:function(f){var g=f[0];var e=f[1];var c=false;if(this._animation.isStarted()){var d=this._animation.getConfig();var b=this._endValue;if(d==$[58]||d==$[38]){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=rwt.animation.AnimationRenderer.ANIMATION_CHANGE;if(this.isAnimated(a)&&this._context.isSeeable()){this.setStartValue(typeof e!==$[8]?e:this.getValueFromWidget());this.setEndValue(g);if(!this._autoStart(a)&&this._autoStartEnabled){c=true}}else{c=true}}return c},_forceWidgetRenderer:function(){var a=rwt.animation.AnimationRenderer.applyFunctionNames[this._renderType];this._context[a](this._context.get(this._renderType))},_autoStart:function(b){var a=false;if(this._autoStartEnabled&&this.isAnimated(b)&&(this._autoCheck?this.checkValues():true)){a=this._animation.start(this._typeToConfig(b))}else{this.cancelActivateOnce()}return a},_typeToConfig:function(b){var a=null;switch(b){case rwt.animation.AnimationRenderer.ANIMATION_APPEAR:a=$[38];break;case rwt.animation.AnimationRenderer.ANIMATION_DISAPPEAR:a=$[387];break;case rwt.animation.AnimationRenderer.ANIMATION_CHANGE:a=$[58];break}return a},_updateWidgetVisibility:function(){var a=this._context.getVisibility();this._renderAdapter.forceRender($[103],a)}},statics:{ANIMATION_APPEAR:1,ANIMATION_DISAPPEAR:2,ANIMATION_CHANGE:4,applyFunctionNames:{height:$[435],opacity:$[356],backgroundColor:$[532],backgroundGradient:$[340],top:"_applyTop",left:"_applyLeft"},converterByRenderType:{height:"numericPositiveRound",top:$[492],left:$[492],opacity:"factor",backgroundColor:$[64],backgroundGradient:$[115]},converter:{none:function(a){return a},round:Math.round,positive:function(a){return Math.max(0,a)},numeric:function(c,b,a){return b+(a-b)*c},numericRound:function(d,c,b){var a=c+(b-c)*d;return Math.round(a)},numericPositive:function(c,b,a){var d=a-b;return Math.max(0,b+d*c)},numericPositiveRound:function(d,c,b){var e=b-c;var a=Math.max(0,c+e*d);return Math.round(a)},factor:function(d,c,b){var a=c+(b-c)*d;return Math.max(0,Math.min(a,1))},color:function(g,c,b){var a=[];var d;var f;for(var e=0;e<3;e++){f=b[e]-c[e];d=Math.round(c[e]+f*g);a[e]=Math.max(0,Math.min(d,255))}return rwt.util.Colors.rgbToRgbString(a)},gradient:function(f,c,b){var g=rwt.animation.AnimationRenderer.converter.color;var h=rwt.animation.AnimationRenderer.converter.factor;var a=[];var e=Math.min(b.length,c.length);for(var d=0;d<e;d++){a[d]=[h(f,c[d][0],b[d][0]),g(f,c[d][1],b[d][1])]}return a}}}});
+rwt.qx.Class.define($[134],{extend:rwt.qx.Target,type:"abstract",construct:function(){arguments.callee.base.call(this);this._layoutChanges={};this._outerFrame=[0,0];this.initHideFocus()},events:{beforeAppear:$[11],appear:$[11],beforeDisappear:$[11],disappear:$[11],insertDom:$[11],create:$[11],execute:$[11],flush:$[52],mouseover:$[85],mousemove:$[85],mouseout:$[85],mousedown:$[85],mouseup:$[85],mousewheel:$[85],click:$[85],dblclick:$[85],contextmenu:$[85],elementOver:$[85],elementOut:$[85],keydown:$[267],keypress:$[267],keyup:$[267],focusout:$[216],focusin:$[216],blur:$[216],focus:$[216],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(rwt.widgets.base.Widget._autoFlushTimeout==null){if(!rwt.widgets.base.Widget._inFlushGlobalQueues||a<rwt.widgets.base.Widget._flushGlobalQueuesPhase){rwt.widgets.base.Widget._autoFlushTimeout=window.setTimeout(rwt.widgets.base.Widget._autoFlushHelper,0)}}},_removeAutoFlush:function(){if(rwt.widgets.base.Widget._autoFlushTimeout!=null){window.clearTimeout(rwt.widgets.base.Widget._autoFlushTimeout);rwt.widgets.base.Widget._autoFlushTimeout=null}},_autoFlushHelper:function(){try{rwt.widgets.base.Widget._autoFlushTimeout=null;if(!rwt.qx.Object.inGlobalDispose()){rwt.widgets.base.Widget.flushGlobalQueues()}}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},flushGlobalQueues:function(){if(rwt.widgets.base.Widget._autoFlushTimeout!=null){rwt.widgets.base.Widget._removeAutoFlush()}if(rwt.widgets.base.Widget._inFlushGlobalQueues){return}if(!rwt.runtime.System.getInstance().getUiReady()){return}rwt.widgets.base.Widget._inFlushGlobalQueues=true;rwt.widgets.base.Widget.flushGlobalWidgetQueue();rwt.widgets.base.Widget.flushGlobalStateQueue();rwt.widgets.base.Widget.flushGlobalElementQueue();rwt.widgets.base.Widget.flushGlobalJobQueue();rwt.widgets.base.Widget.flushGlobalLayoutQueue();rwt.widgets.base.Widget.flushGlobalDisplayQueue();rwt.widgets.base.Widget.flushGlobalDisposeQueue();rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_IDLE;delete rwt.widgets.base.Widget._inFlushGlobalQueues},addToGlobalWidgetQueue:function(a){if(!a._isInGlobalWidgetQueue&&a._isDisplayable){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_WIDGET)}rwt.widgets.base.Widget._globalWidgetQueue.push(a);a._isInGlobalWidgetQueue=true}},removeFromGlobalWidgetQueue:function(a){if(a._isInGlobalWidgetQueue){rwt.util.Arrays.remove(rwt.widgets.base.Widget._globalWidgetQueue,a);delete a._isInGlobalWidgetQueue}},flushGlobalWidgetQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_WIDGET;var a=rwt.widgets.base.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)}rwt.widgets.base.Widget._globalWidgetQueue=[]},addToGlobalElementQueue:function(a){if(!a._isInGlobalElementQueue&&a._isDisplayable){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_ELEMENT)}rwt.widgets.base.Widget._globalElementQueue.push(a);a._isInGlobalElementQueue=true}},removeFromGlobalElementQueue:function(a){if(a._isInGlobalElementQueue){rwt.util.Arrays.remove(rwt.widgets.base.Widget._globalElementQueue,a);delete a._isInGlobalElementQueue}},flushGlobalElementQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_ELEMENT;var a=rwt.widgets.base.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)}rwt.widgets.base.Widget._globalElementQueue=[]},addToGlobalStateQueue:function(a){if(!a._isInGlobalStateQueue&&a._isDisplayable){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_STATE)}rwt.widgets.base.Widget._globalStateQueue.push(a);a._isInGlobalStateQueue=true}},removeFromGlobalStateQueue:function(a){if(a._isInGlobalStateQueue){rwt.util.Arrays.remove(rwt.widgets.base.Widget._globalStateQueue,a);delete a._isInGlobalStateQueue}},flushGlobalStateQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_STATE;var d=rwt.widgets.base.Widget;while(d._globalStateQueue.length>0){var a=rwt.util.Arrays.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(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_JOB)}rwt.widgets.base.Widget._globalJobQueue.push(a);a._isInGlobalJobQueue=true}},removeFromGlobalJobQueue:function(a){if(a._isInGlobalJobQueue){rwt.util.Arrays.remove(rwt.widgets.base.Widget._globalJobQueue,a);delete a._isInGlobalJobQueue}},flushGlobalJobQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_JOB;var a=rwt.widgets.base.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)}rwt.widgets.base.Widget._globalJobQueue=[]},addToGlobalLayoutQueue:function(a){if(!a._isInGlobalLayoutQueue&&a._isDisplayable){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_LAYOUT)}rwt.widgets.base.Widget._globalLayoutQueue.push(a);a._isInGlobalLayoutQueue=true}},removeFromGlobalLayoutQueue:function(a){if(a._isInGlobalLayoutQueue){rwt.util.Arrays.remove(rwt.widgets.base.Widget._globalLayoutQueue,a);delete a._isInGlobalLayoutQueue}},flushGlobalLayoutQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_LAYOUT;var a=rwt.widgets.base.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)}rwt.widgets.base.Widget._globalLayoutQueue=[]},addToGlobalDisplayQueue:function(b){if(!b._isInGlobalDisplayQueue&&b._isDisplayable){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_DISPLAY)}var a=b.getParent();if(a.isSeeable()){var c=a.toHashCode();if(rwt.widgets.base.Widget._lazyGlobalDisplayQueues[c]){rwt.widgets.base.Widget._lazyGlobalDisplayQueues[c].push(b)}else{rwt.widgets.base.Widget._lazyGlobalDisplayQueues[c]=[b]}}else{rwt.widgets.base.Widget._fastGlobalDisplayQueue.push(b)}b._isInGlobalDisplayQueue=true}},removeFromGlobalDisplayQueue:function(a){},flushGlobalDisplayQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_DISPLAY;var e,h,d,g;var f=rwt.widgets.base.Widget._fastGlobalDisplayQueue;var c=rwt.widgets.base.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(rwt.util.Objects.isEmpty(c)){rwt.widgets.base.Widget._lazyGlobalDisplayQueues={}}for(var b=0,a=f.length;b<a;b++){delete f[b]._isInGlobalDisplayQueue}rwt.widgets.base.Widget._fastGlobalDisplayQueue=[]},addToGlobalDisposeQueue:function(a){if(!a._isInGlobalDisposeQueue&&!a.isDisposed()){if(rwt.widgets.base.Widget._autoFlushTimeout==null){rwt.widgets.base.Widget._initAutoFlush(rwt.widgets.base.Widget._FLUSH_PHASE_DISPOSE)}rwt.widgets.base.Widget._globalDisposeQueue.push(a);a._markInDispose()}},flushGlobalDisposeQueue:function(){rwt.widgets.base.Widget._flushGlobalQueuesPhase=rwt.widgets.base.Widget._FLUSH_PHASE_DISPOSE;var a=rwt.widgets.base.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)}rwt.widgets.base.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()||rwt.widgets.base.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",$[13],"top",$[28],$[25],$[17],$[90],$[89],$[97],$[92]];var p=["Left",$[36],"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+$[136];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=[$[25],$[17],$[90],$[89],$[97],$[92],"left",$[13],"top",$[28]];for(var g=0,d=e.length,h,c,f;g<d;g++){h=e[g];c="_computed"+rwt.util.Strings.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){rwt.html.Scroll.disableScrolling(a)}else{b.addEventListener($[38],this._blockScrollingOnAppear,b)}},enableScrolling:function(b){var a=b._getTargetNode();if(a){rwt.html.Scroll.enableScrolling(a)}else{b.removeEventListener($[38],this._blockScrollingOnAppear,b)}},_blockScrollingOnAppear:function(){var a=rwt.widgets.base.Widget._blockScrollingOnAppear;this.removeEventListener($[38],a,this);rwt.widgets.base.Widget.disableScrolling(this)}},properties:{enabled:{init:$[192],check:$[2],inheritable:true,apply:$[509],event:$[191]},parent:{check:$[443],nullable:true,event:$[178],apply:"_applyParent"},element:{check:"Element",nullable:true,apply:"_applyElement",event:$[372]},visibility:{check:$[2],init:true,apply:$[574],event:$[187]},display:{check:$[2],init:true,apply:"_applyDisplay",event:"changeDisplay"},anonymous:{check:$[2],init:false,event:"changeAnonymous"},horizontalAlign:{check:["left",$[24],$[13]],themeable:true,nullable:true},verticalAlign:{check:["top",$[46],$[28]],themeable:true,nullable:true},allowStretchX:{check:$[2],init:true},allowStretchY:{check:$[2],init:true},zIndex:{check:$[56],apply:"_applyZIndex",event:"changeZIndex",themeable:true,nullable:true,init:null},backgroundColor:{nullable:true,init:null,check:"Color",apply:$[532],event:$[182],themeable:true},backgroundGradient:{check:"Array",nullable:true,init:null,apply:$[341],event:$[348],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:$[192],check:"Color",apply:"_applyTextColor",event:$[330],themeable:true,inheritable:true},border:{nullable:true,init:null,apply:"_applyBorder",event:"changeBorder",check:"Border",themeable:true},font:{nullable:true,init:$[192],apply:"_applyFont",check:"Font",event:$[102],themeable:true,inheritable:true},opacity:{check:$[56],apply:$[357],themeable:true,nullable:true,init:null},cursor:{check:$[50],apply:"_applyCursor",themeable:true,nullable:true,init:null},backgroundImage:{check:$[50],nullable:true,apply:"_applyBackgroundImage",themeable:true},backgroundRepeat:{check:["repeat","repeat-x","repeat-y",$[152]],nullable:true,apply:"_applyBackgroundRepeat",themeable:true},backgroundPosition:{check:[$[358],"left center",$[329],$[306],"right center","right bottom","center top",$[342],"center bottom"],nullable:true,apply:"_applyBackgroundPosition",themeable:true},overflow:{check:[$[9],"auto",$[21],$[94],$[93]],nullable:true,apply:"_applyOverflow",event:"changeOverflow",themeable:true,init:null},containerOverflow:{check:$[2],nullable:false,apply:"_applyContainerOverflow",themeable:true,init:true},clipLeft:{check:$[18],apply:$[278],themeable:true,nullable:true},clipTop:{check:$[18],apply:$[278],themeable:true,nullable:true},clipWidth:{check:$[18],apply:$[278],themeable:true,nullable:true},clipHeight:{check:$[18],apply:$[278],themeable:true,nullable:true},tabIndex:{check:$[18],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:$[277]},selectable:{check:$[2],init:null,nullable:true,apply:"_applySelectable"},toolTip:{check:$[252],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:$[50],init:"widget",apply:"_applyAppearance",event:"changeAppearance"},supportsDropMethod:{check:"Function",nullable:true,init:null},marginTop:{check:$[56],apply:"_applyMarginTop",nullable:true,themeable:true},marginRight:{check:$[56],apply:"_applyMarginRight",nullable:true,themeable:true},marginBottom:{check:$[56],apply:"_applyMarginBottom",nullable:true,themeable:true},marginLeft:{check:$[56],apply:"_applyMarginLeft",nullable:true,themeable:true},paddingTop:{check:$[56],apply:"_applyPaddingTop",nullable:true,themeable:true},paddingRight:{check:$[56],apply:"_applyPaddingRight",nullable:true,themeable:true},paddingBottom:{check:$[56],apply:"_applyPaddingBottom",nullable:true,themeable:true},paddingLeft:{check:$[56],apply:"_applyPaddingLeft",nullable:true,themeable:true},left:{apply:"_applyLeft",event:$[268],nullable:true,themeable:true,init:null},right:{apply:"_applyRight",event:"changeRight",nullable:true,themeable:true,init:null},width:{apply:"_applyWidth",event:$[74],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:"changeTop",nullable:true,themeable:true,init:null},bottom:{apply:"_applyBottom",event:"changeBottom",nullable:true,themeable:true,init:null},height:{apply:$[436],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:[$[25],$[17]],themeable:true},space:{group:["left",$[25],"top",$[17]],themeable:true},edge:{group:["top",$[13],$[28],"left"],themeable:true,mode:$[239]},padding:{group:[$[162],$[169],$[181],$[185]],mode:$[239],themeable:true},margin:{group:[$[158],$[202],$[238],$[161]],mode:$[239],themeable:true},heights:{group:[$[97],$[17],$[92]],themeable:true},widths:{group:[$[90],$[25],$[89]],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($[13],b);this.addToQueue($[13])},_applyTop:function(b,a){this._unitDetectionPixelPercent("top",b);this.addToQueue("top")},_applyBottom:function(b,a){this._unitDetectionPixelPercent($[28],b);this.addToQueue($[28])},_applyWidth:function(b,a){this._unitDetectionPixelPercentAutoFlex($[25],b);this.addToQueue($[25])},_applyMinWidth:function(b,a){this._unitDetectionPixelPercentAuto($[90],b);this.addToQueue($[90])},_applyMaxWidth:function(b,a){this._unitDetectionPixelPercentAuto($[89],b);this.addToQueue($[89])},_applyHeight:function(b,a){this._unitDetectionPixelPercentAutoFlex($[17],b);this.addToQueue($[17])},_applyMinHeight:function(b,a){this._unitDetectionPixelPercentAuto($[97],b);this.addToQueue($[97])},_applyMaxHeight:function(b,a){this._unitDetectionPixelPercentAuto($[92],b);this.addToQueue($[92])},getChildren:rwt.util.Functions.returnNull,getChildrenLength:rwt.util.Functions.returnZero,hasChildren:rwt.util.Functions.returnFalse,isEmpty:rwt.util.Functions.returnTrue,indexOf:rwt.util.Functions.returnNegativeIndex,contains:rwt.util.Functions.returnFalse,getVisibleChildren:rwt.util.Functions.returnNull,getVisibleChildrenLength:rwt.util.Functions.returnZero,hasVisibleChildren:rwt.util.Functions.returnFalse,isVisibleEmpty:rwt.util.Functions.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;rwt.util.Arrays.removeAt(a.getChildren(),b);a._invalidateVisibleChildren();a._removeChildFromChildrenQueue(this);a.getLayoutImpl().updateChildrenOnRemoveChild(this,b);a.addToJobQueue($[445]);a._invalidatePreferredInnerDimensions();this._oldParent=a}if(c){this._hasParent=true;if(typeof this._insertIndex==$[31]){rwt.util.Arrays.insertAt(c.getChildren(),this,this._insertIndex);delete this._insertIndex}else{c.getChildren().push(this)}}else{this._hasParent=false}rwt.qx.Property.refresh(this);return this._handleDisplayable("parent")},_applyDisplay:function(b,a){return this._handleDisplayable($[167])},_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){rwt.widgets.base.Widget.addToGlobalElementQueue(this)}rwt.widgets.base.Widget.addToGlobalStateQueue(this);if(!rwt.util.Objects.isEmpty(this._jobQueue)){rwt.widgets.base.Widget.addToGlobalJobQueue(this)}if(!rwt.util.Objects.isEmpty(this._childrenQueue)){rwt.widgets.base.Widget.addToGlobalLayoutQueue(this)}}else{rwt.widgets.base.Widget.removeFromGlobalElementQueue(this);rwt.widgets.base.Widget.removeFromGlobalStateQueue(this);rwt.widgets.base.Widget.removeFromGlobalJobQueue(this);rwt.widgets.base.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($[445]);var a=rwt.client.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:rwt.util.Functions.returnTrue,removeFromCustomQueues:rwt.util.Functions.returnTrue,_handleDisplayableCustom:rwt.util.Functions.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($[38])},_ieFixLayoutOnAppear:rwt.util.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":rwt.util.Functions.returnTrue}),_beforeDisappear:function(){this.removeState("over");if(rwt.qx.Class.isDefined($[384])){this.removeState($[12]);this.removeState($[33])}this.dispatchSimpleEvent("beforeDisappear")},_afterDisappear:function(){this._isSeeable=false;this.dispatchSimpleEvent($[388])},_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($[145])},_afterRemoveDom:function(){this._isInDom=false},_applyVisibility:function(b,a){if(b){if(this._isDisplayable&&(this._isCreated||this._isInGlobalElementQueue)){this._beforeAppear()}this.removeStyleProperty($[167]);if(this._isDisplayable&&this._isCreated){this._afterAppear();this._ieFixLayoutOnAppear()}}else{if(this._isDisplayable&&this._isCreated){this._beforeDisappear()}this.setStyleProperty($[167],"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($[241])){this.setParent(null);rwt.widgets.base.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(){rwt.widgets.base.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.rwtWidget=null}if(b){b.rwtWidget=this;b.style.position=$[15];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($[68]);this.addToStateQueue()}else{this._element=this._style=null}},addToJobQueue:function(a){if(this._hasParent){rwt.widgets.base.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||rwt.util.Objects.isEmpty(k)){return}var n=this instanceof rwt.widgets.base.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 rwt.widgets.base.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:rwt.util.Functions.returnTrue,_isHeightEssential:rwt.util.Functions.returnTrue,_computeBoxWidthFallback:function(){return 0},_computeBoxHeightFallback:function(){return 0},_computeBoxWidth:function(){var a=this.getParent().getLayoutImpl();return Math.max(0,rwt.util.Numbers.limit(a.computeChildBoxWidth(this),this.getMinWidthValue(),this.getMaxWidthValue()))},_computeBoxHeight:function(){var a=this.getParent().getLayoutImpl();return Math.max(0,rwt.util.Numbers.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($[25])}return true},_recomputeFlexY:function(){if(!this.getHasFlexY()){return false}if(this._computedHeightTypeFlex){this._computedHeightValue=null;this.addToLayoutChanges($[17])}return true},_recomputePercentX:function(){if(!this.getHasPercentX()){return false}if(this._computedWidthTypePercent){this._computedWidthValue=null;this.addToLayoutChanges($[25])}if(this._computedMinWidthTypePercent){this._computedMinWidthValue=null;this.addToLayoutChanges($[90])}if(this._computedMaxWidthTypePercent){this._computedMaxWidthValue=null;this.addToLayoutChanges($[89])}if(this._computedLeftTypePercent){this._computedLeftValue=null;this.addToLayoutChanges("left")}if(this._computedRightTypePercent){this._computedRightValue=null;this.addToLayoutChanges($[13])}return true},_recomputePercentY:function(){if(!this.getHasPercentY()){return false}if(this._computedHeightTypePercent){this._computedHeightValue=null;this.addToLayoutChanges($[17])}if(this._computedMinHeightTypePercent){this._computedMinHeightValue=null;this.addToLayoutChanges($[97])}if(this._computedMaxHeightTypePercent){this._computedMaxHeightValue=null;this.addToLayoutChanges($[92])}if(this._computedTopTypePercent){this._computedTopValue=null;this.addToLayoutChanges("top")}if(this._computedBottomTypePercent){this._computedBottomValue=null;this.addToLayoutChanges($[28])}return true},_recomputeRangeX:rwt.util.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this._computedLeftTypeNull||this._computedRightTypeNull){return false}this.addToLayoutChanges($[25]);return true},"default":function(){return !(this._computedLeftTypeNull||this._computedRightTypeNull)}}),_recomputeRangeY:rwt.util.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this._computedTopTypeNull||this._computedBottomTypeNull){return false}this.addToLayoutChanges($[17]);return true},"default":function(){return !(this._computedTopTypeNull||this._computedBottomTypeNull)}}),_recomputeStretchingX:rwt.util.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){this._computedWidthValue=null;this.addToLayoutChanges($[25]);return true}return false},"default":function(){if(this.getAllowStretchX()&&this._computedWidthTypeNull){return true}return false}}),_recomputeStretchingY:rwt.util.Variant.select($[0],{"mshtml|newmshtml|opera|webkit":function(){if(this.getAllowStretchY()&&this._computedHeightTypeNull){this._computedHeightValue=null;this.addToLayoutChanges($[17]);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 rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedWidthParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedWidthParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedWidthValue=this.getPreferredBoxWidth();case rwt.widgets.base.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexWidth===undefined){throw new Error("Widget "+this+": having horizontal flex size (width="+this.getWidth()+$[544]+this.getParent()+$[406])}this.getParent().getLayoutImpl().computeChildrenFlexWidth();return this._computedWidthValue=this._computedWidthFlexValue}return null},getMinWidthValue:function(){if(this._computedMinWidthValue!=null){return this._computedMinWidthValue}switch(this._computedMinWidthType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMinWidthParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMinWidthParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedMinWidthValue=this.getPreferredBoxWidth()}return null},getMaxWidthValue:function(){if(this._computedMaxWidthValue!=null){return this._computedMaxWidthValue}switch(this._computedMaxWidthType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedWidthValue=this._computeValuePixelLimit(this._computedMaxWidthParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedWidthValue=this._computeValuePercentXLimit(this._computedMaxWidthParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedMaxWidthValue=this.getPreferredBoxWidth()}return null},getLeftValue:function(){if(this._computedLeftValue!=null){return this._computedLeftValue}switch(this._computedLeftType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedLeftValue=this._computeValuePixel(this._computedLeftParsed);case rwt.widgets.base.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 rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedRightValue=this._computeValuePixel(this._computedRightParsed);case rwt.widgets.base.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 rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedHeightValue=this._computeValuePixelLimit(this._computedHeightParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedHeightValue=this._computeValuePercentYLimit(this._computedHeightParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedHeightValue=this.getPreferredBoxHeight();case rwt.widgets.base.Widget.TYPE_FLEX:if(this.getParent().getLayoutImpl().computeChildrenFlexHeight===undefined){throw new Error("Widget "+this+": having vertical flex size (height="+this.getHeight()+$[544]+this.getParent()+$[406])}this.getParent().getLayoutImpl().computeChildrenFlexHeight();return this._computedHeightValue=this._computedHeightFlexValue}return null},getMinHeightValue:function(){if(this._computedMinHeightValue!=null){return this._computedMinHeightValue}switch(this._computedMinHeightType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedMinHeightValue=this._computeValuePixelLimit(this._computedMinHeightParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedMinHeightValue=this._computeValuePercentYLimit(this._computedMinHeightParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedMinHeightValue=this.getPreferredBoxHeight()}return null},getMaxHeightValue:function(){if(this._computedMaxHeightValue!=null){return this._computedMaxHeightValue}switch(this._computedMaxHeightType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedMaxHeightValue=this._computeValuePixelLimit(this._computedMaxHeightParsed);case rwt.widgets.base.Widget.TYPE_PERCENT:return this._computedMaxHeightValue=this._computeValuePercentYLimit(this._computedMaxHeightParsed);case rwt.widgets.base.Widget.TYPE_AUTO:return this._computedMaxHeightValue=this.getPreferredBoxHeight()}return null},getTopValue:function(){if(this._computedTopValue!=null){return this._computedTopValue}switch(this._computedTopType){case rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedTopValue=this._computeValuePixel(this._computedTopParsed);case rwt.widgets.base.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 rwt.widgets.base.Widget.TYPE_PIXEL:return this._computedBottomValue=this._computeValuePixel(this._computedBottomParsed);case rwt.widgets.base.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){if(this._initialLayoutDone){this.addToJobQueue(a)}else{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 rwt.widgets.base.Widget.TYPE_AUTO;case Infinity:case -Infinity:return rwt.widgets.base.Widget.TYPE_NULL}switch(typeof a){case $[31]:return isNaN(a)?rwt.widgets.base.Widget.TYPE_NULL:rwt.widgets.base.Widget.TYPE_PIXEL;case $[10]:return a.indexOf("%")!=-1?rwt.widgets.base.Widget.TYPE_PERCENT:a.indexOf("*")!=-1?rwt.widgets.base.Widget.TYPE_FLEX:rwt.widgets.base.Widget.TYPE_NULL}return rwt.widgets.base.Widget.TYPE_NULL},_evalUnitsPixelPercentAuto:function(a){switch(a){case"auto":return rwt.widgets.base.Widget.TYPE_AUTO;case Infinity:case -Infinity:return rwt.widgets.base.Widget.TYPE_NULL}switch(typeof a){case $[31]:return isNaN(a)?rwt.widgets.base.Widget.TYPE_NULL:rwt.widgets.base.Widget.TYPE_PIXEL;case $[10]:return a.indexOf("%")!=-1?rwt.widgets.base.Widget.TYPE_PERCENT:rwt.widgets.base.Widget.TYPE_NULL}return rwt.widgets.base.Widget.TYPE_NULL},_evalUnitsPixelPercent:function(a){switch(a){case Infinity:case -Infinity:return rwt.widgets.base.Widget.TYPE_NULL}switch(typeof a){case $[31]:return isNaN(a)?rwt.widgets.base.Widget.TYPE_NULL:rwt.widgets.base.Widget.TYPE_PIXEL;case $[10]:return a.indexOf("%")!=-1?rwt.widgets.base.Widget.TYPE_PERCENT:rwt.widgets.base.Widget.TYPE_NULL}return rwt.widgets.base.Widget.TYPE_NULL},_unitDetectionPixelPercentAutoFlex:function(b,j){var a=rwt.widgets.base.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];this[n]=this._evalUnitsPixelPercentAutoFlex(j);switch(this[n]){case rwt.widgets.base.Widget.TYPE_PIXEL:this[l]=true;this[k]=this[i]=this[h]=this[g]=false;this[c]=this[m]=Math.round(j);break;case rwt.widgets.base.Widget.TYPE_PERCENT:this[k]=true;this[l]=this[i]=this[h]=this[g]=false;this[c]=parseFloat(j);this[m]=null;break;case rwt.widgets.base.Widget.TYPE_AUTO:this[i]=true;this[l]=this[k]=this[h]=this[g]=false;this[c]=this[m]=null;break;case rwt.widgets.base.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 $[90]:case $[89]:case $[25]:case"left":case $[13]:this._invalidateHasPercentX();break;case $[92]:case $[97]:case $[17]:case"top":case $[28]:this._invalidateHasPercentY();break}}if(f!=this[i]){switch(b){case $[90]:case $[89]:case $[25]:this._invalidateHasAutoX();break;case $[97]:case $[92]:case $[17]:this._invalidateHasAutoY();break}}if(d!=this[h]){switch(b){case $[25]:this._invalidateHasFlexX();break;case $[17]:this._invalidateHasFlexY();break}}},_unitDetectionPixelPercentAuto:function(b,h){var a=rwt.widgets.base.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];this[l]=this._evalUnitsPixelPercentAuto(h);switch(this[l]){case rwt.widgets.base.Widget.TYPE_PIXEL:this[j]=true;this[i]=this[g]=this[f]=false;this[c]=this[k]=Math.round(h);break;case rwt.widgets.base.Widget.TYPE_PERCENT:this[i]=true;this[j]=this[g]=this[f]=false;this[c]=parseFloat(h);this[k]=null;break;case rwt.widgets.base.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 $[90]:case $[89]:case $[25]:case"left":case $[13]:this._invalidateHasPercentX();break;case $[97]:case $[92]:case $[17]:case"top":case $[28]:this._invalidateHasPercentY();break}}if(e!=this[g]){switch(b){case $[90]:case $[89]:case $[25]:this._invalidateHasAutoX();break;case $[97]:case $[92]:case $[17]:this._invalidateHasAutoY();break}}},_unitDetectionPixelPercent:function(b,f){var a=rwt.widgets.base.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];this[j]=this._evalUnitsPixelPercent(f);switch(this[j]){case rwt.widgets.base.Widget.TYPE_PIXEL:this[h]=true;this[g]=this[e]=false;this[c]=this[i]=Math.round(f);break;case rwt.widgets.base.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 $[90]:case $[89]:case $[25]:case"left":case $[13]:this._invalidateHasPercentX();break;case $[97]:case $[92]:case $[17]:case"top":case $[28]: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=rwt.widgets.base.Widget.getActiveSiblingHelper(this,this.getParent(),-1,a,null);return b?b:this.getParent().getLastActiveChild()},getNextActiveSibling:function(a){var b=rwt.widgets.base.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){rwt.widgets.base.Widget.addToGlobalStateQueue(this)}}},removeState:function(a){if(this.__states&&this.__states[a]){delete this.__states[a];if(this._hasParent){rwt.widgets.base.Widget.addToGlobalStateQueue(this)}}},_styleFromMap:function(c){this._prepareStyleMap(c);var b=rwt.qx.Property.$$method.style;var d=rwt.qx.Property.$$method.unstyle;var a;for(var e in c){a=c[e];if(a===$[8]){this[d[e]]()}else{this[b[e]](a)}}},_unstyleFromArray:function(c){var d=rwt.qx.Property.$$method.unstyle;for(var b=0,a=c.length;b<a;b++){this[d[c[b]]]()}},_prepareStyleMap:rwt.util.Variant.select($[0],{mshtml:function(c){if(c.shadow&&c.border&&c.border.getStyle()!==$[84]){var b=c.border.getWidthTop();var a=c.border.getColorTop();var d=[0,0,0,0];c.border=new rwt.html.Border(b,$[84],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=rwt.theme.AppearanceManager.getInstance().styleFrom(b,this.__states);if(a){this._styleFromMap(a)}}},_resetAppearanceThemeWrapper:function(a,e){var f=this.getAppearance();if(f){var c=rwt.theme.AppearanceManager.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:rwt.util.Variant.select($[0],{mshtml:function(a){},"default":function(a){if(a.focused){if(!rwt.widgets.util.FocusHandler.mouseFocus&&!this.getHideFocus()){this.setStyleProperty($[230],"1px dotted")}}else{this.setStyleProperty($[230],"none")}}}),addToStateQueue:function(){rwt.widgets.base.Widget.addToGlobalStateQueue(this)},recursiveAddToStateQueue:function(){this.addToStateQueue()},_applyAppearance:function(e,a){if(!this.__states){this.__states={}}var c=rwt.theme.AppearanceManager.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:rwt.util.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,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(rwt.qx.Class.isDefined($[384])){this.removeState($[33]);this.removeState($[12])}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:rwt.util.Functions.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:rwt.util.Variant.select($[0],{mshtml:function(b,a){this.setHtmlProperty("hideFocus",b)},"default":rwt.util.Functions.returnTrue}),_visualizeBlur:function(){if(this.getEnableElementFocus()&&(!this.getFocusRoot().getFocusedChild()||(this.getFocusRoot().getFocusedChild()&&this.getFocusRoot().getFocusedChild().getEnableElementFocus()))){try{this.getElement().blur()}catch(a){}}this.removeState($[72])},_visualizeFocus:function(){var a=rwt.widgets.util.FocusHandler;if(!a.mouseFocus&&!a.blockFocus&&this.getEnableElementFocus()){try{this.getElement().focus()}catch(b){}}this.addState($[72])},focus:function(){delete rwt.widgets.util.FocusHandler.mouseFocus;this.setFocused(true)},blur:function(){delete rwt.widgets.util.FocusHandler.mouseFocus;this.setFocused(false)},_applyCapture:function(c,b){var a=rwt.event.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:rwt.util.Variant.select($[0],{mshtml:function(b,a){this.setHtmlProperty($[353],b<0?-1:1)},"default":function(b,a){this.setStyleProperty("userFocus",(b<0?"ignore":$[53]));this.setHtmlProperty($[353],b<0?-1:1)}}),_applySelectable:rwt.util.Variant.select($[0],{mshtml:function(b,a){},gecko:function(b,a){if(b){this.removeStyleProperty($[496])}else{this.setStyleProperty($[496],"none")}},webkit:function(b,a){if(b){this.removeStyleProperty($[477]);this.removeStyleProperty($[549])}else{this.setStyleProperty($[477],"none");this.setStyleProperty($[549],"none")}},"default":function(b,a){if(b){return this.removeStyleProperty("userSelect")}else{this.setStyleProperty("userSelect","none")}}}),_applyOpacity:function(b,a){rwt.html.Style.setOpacity(this,b)},__cursorMap:rwt.util.Variant.select($[0],{mshtml:{"default":$[67],wait:"wait",crosshair:$[324],help:"help",move:"move",text:"text",pointer:$[154],"e-resize":$[170],"n-resize":$[176],"w-resize":$[345],"s-resize":$[362],"ne-resize":$[201],"se-resize":$[327],"nw-resize":$[204],"sw-resize":$[346],"col-resize":$[286],"row-resize":"row-resize",progress:$[251],"not-allowed":$[351],"no-drop":"no-drop",cursor:"hand","ew-resize":$[170],"ns-resize":$[176],"nesw-resize":$[201],"nwse-resize":$[204]},opera:{"default":$[67],wait:"wait",crosshair:$[324],help:"help",move:"move",text:"text",pointer:$[154],"e-resize":$[170],"n-resize":$[176],"w-resize":$[345],"s-resize":$[362],"ne-resize":$[201],"se-resize":$[327],"nw-resize":$[204],"sw-resize":$[346],progress:$[251],"not-allowed":$[351],"no-drop":"no-drop","col-resize":$[170],"row-resize":$[176],"ew-resize":$[170],"ns-resize":$[176],"nesw-resize":$[201],"nwse-resize":$[204]},"default":{"default":$[67],wait:"wait",crosshair:$[324],help:"help",move:"move",text:"text",pointer:$[154],"e-resize":$[170],"n-resize":$[176],"w-resize":$[345],"s-resize":$[362],"ne-resize":$[201],"se-resize":$[327],"nw-resize":$[204],"sw-resize":$[346],"col-resize":$[286],"row-resize":"row-resize",progress:$[251],"not-allowed":$[351],"no-drop":"no-drop"}}),_applyCursor:function(c,a){if(c){var b="url( "+c+" ), default";this.setStyleProperty($[131],this.__cursorMap[c]||b)}else{this.removeStyleProperty($[131])}},_applyCommand:function(b,a){},_applyBackgroundImage:function(c,a){var b=rwt.html.ImageManager.getInstance();if(a){b.hide(a)}if(c){b.show(c)}this._styleBackgroundImage(c)},_styleBackgroundImage:function(a){if(a){this.setStyleProperty($[79],"url("+a+")");this.setStyleProperty($[130],this.getStyleProperty($[130]));this.setStyleProperty($[105],this.getStyleProperty($[105]))}else{this.removeStyleProperty($[79]);if(rwt.client.Client.supportsCss3()){rwt.html.Style.setBackgroundGradient(this,this.getBackgroundGradient())}}},_applyBackgroundRepeat:function(b,a){if(b){this.setStyleProperty($[130],b)}else{this.removeStyleProperty($[130])}},_applyBackgroundPosition:function(b,a){if(b){this.setStyleProperty($[105],b)}else{this.removeStyleProperty($[105])}},_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:rwt.util.Variant.select($[0],{"default":function(g,c){var f=g;var d=$[63];switch(g){case $[94]:d=$[100];f=$[21];break;case $[93]:d=$[101];f=$[21];break}var b=[$[63],$[100],$[101]];for(var e=0;e<b.length;e++){if(b[e]!=d){this.removeStyleProperty(b[e])}}switch(g){case $[94]:this.setStyleProperty($[101],$[9]);break;case $[93]:this.setStyleProperty($[100],$[9]);break}this._renderOverflow(d,f,g,c);this.addToQueue($[63])},gecko:function(d,a){var c=d;var b=$[63];switch(c){case $[9]:c=$[334];break;case $[94]:c=$[575];break;case $[93]:c=$[395];break}this._renderOverflow(b,c,d,a);this.addToQueue($[63])},opera:function(g,c){var f=g;var d=$[63];if(rwt.client.Client.getVersion()<9.8){switch(f){case $[94]:case $[93]:f=$[21];break}}else{switch(f){case $[94]:d=$[100];f=$[21];break;case $[93]:d=$[101];f=$[21];break}var b=[$[63],$[100],$[101]];for(var e=0;e<b.length;e++){if(b[e]!=d){this.removeStyleProperty(b[e])}}switch(g){case $[94]:this.setStyleProperty($[101],$[9]);break;case $[93]:this.setStyleProperty($[100],$[9]);break}}this._renderOverflow(d,f,g,c);this.addToQueue($[63])}}),_renderOverflow:function(b,c,d,a){this.setStyleProperty(b,c||"");this._invalidateFrameWidth();this._invalidateFrameHeight()},getOverflowX:function(){var a=this.getOverflow();return a==$[93]?$[9]:a},getOverflowY:function(){var a=this.getOverflow();return a==$[94]?$[9]:a},_applyContainerOverflow:function(b,a){if(this._innerStyle){this._style.overflow=b?"":$[9]}},_applyBackgroundColor:function(b,a){this._styleBackgroundColor(b)},_applyBackgroundGradient:function(b,a){rwt.html.Style.setBackgroundGradient(this,b);if(b===null){this.setStyleProperty($[79],this.getStyleProperty($[79]));this.setStyleProperty($[130],this.getStyleProperty($[130]));this.setStyleProperty($[105],this.getStyleProperty($[105]));this.setStyleProperty($[57],this.getStyleProperty($[57]))}},_applyShadow:function(b,a){rwt.html.Style.setBoxShadow(this,b)},_applyTextShadow:function(b,a){rwt.html.Style.setTextShadow(this,b)},_styleBackgroundColor:function(a){if(a==null||a===$[81]){this._removeBackgroundColor()}else{this.setStyleProperty($[57],a)}},_removeBackgroundColor:rwt.util.Variant.select($[0],{"default":function(){this.removeStyleProperty($[57])},newmshtml:function(){this.setStyleProperty($[57],"rgba( 0, 0, 0, 0 )")}}),_applyTextColor:function(b,a){},_applyFont:function(b,a){},_cachedBorderTop:0,_cachedBorderRight:0,_cachedBorderBottom:0,_cachedBorderLeft:0,_targetNodeEnabled:false,_applyBorder:function(b,a){this._queueBorder(b);if(b&&b.getStyle()===$[84]){this._prepareGraphicsSupport()}},_prepareGraphicsSupport:(function(){var a;if(rwt.client.Client.supportsCss3()){a=rwt.util.Functions.returnTrue}else{a=function(){if(!this._targetNodeEnabled&&!this._isCreated){this._targetNodeEnabled=true}}}return a}()),_queueBorder:function(a){this.addToQueue($[125]);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{rwt.html.Border.resetWidget(this)}this._outerFrame=this._computeOuterFrame()},_computeOuterFrame:function(){var a=[0,0];if(this._innerStyle&&this.__borderObject){var b=this.__borderObject.getWidths();if(this.__borderObject.getStyle()===$[188]&&b[0]===2){a=[2,2]}else{a=[b[1]+b[3],b[0]+b[2]]}}return a},prepareEnhancedBorder:function(b){if(!this._innerStyle){this._targetNode=document.createElement("div");this._innerStyle=this._targetNode.style;this._targetNodeEnabled=true;if(rwt.client.Client.isMshtml()){this.addToQueue($[25]);this.addToQueue($[17])}else{this._innerStyle.width="100%";this._innerStyle.height="100%"}this._innerStyle.position=$[15];if(!b){for(var a in this._styleProperties){switch(a){case"zIndex":case $[98]:case $[55]:case $[198]:case $[167]:case $[131]:case $[321]: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 $[397]: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($[162]);this._invalidateFrameHeight()},_applyPaddingRight:function(b,a){this.addToQueue($[169]);this._invalidateFrameWidth()},_applyPaddingBottom:function(b,a){this.addToQueue($[181]);this._invalidateFrameHeight()},_applyPaddingLeft:function(b,a){this.addToQueue($[185]);this._invalidateFrameWidth()},renderPadding:function(a){},_applyMarginLeft:function(b,a){this.addToQueue($[161])},_applyMarginRight:function(b,a){this.addToQueue($[202])},_applyMarginTop:function(b,a){this.addToQueue($[158])},_applyMarginBottom:function(b,a){this.addToQueue($[238])},execute:function(){var a=this.getCommand();if(a){a.execute(this)}this.createDispatchEvent($[107])},_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 rwt.html.Offset.getLeft(this.getElement())},getOffsetTop:function(){this._visualPropertyCheck();return rwt.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 rwt.html.ScrollIntoView.scrollX(this.getElement(),a)},scrollIntoViewY:function(a){if(!this._isCreated||!this._isDisplayable){return false}return rwt.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(c){if(this._adapters===undefined){this._adapters={}}var b=c.classname;var a=this._adapters[b];if(a==null){new c(this);a=this._adapters[b]}return a},applyObjectId:function(a){if(rwt.widgets.base.Widget._renderHtmlIds){this.setHtmlAttribute("id",a)}}},defer:function(b,a){b.__initApplyMethods(a);if(rwt.client.Client.isMshtml()){a._renderRuntimeWidth=function(d){this._style.pixelWidth=(d==null)?0:d;if(this._targetNodeEnabled){var c=(d!=null)?Math.max(0,d-this._outerFrame[0]):d;this._innerStyle.pixelWidth=c==null?0:c}};a._renderRuntimeHeight=function(d){this._style.pixelHeight=(d==null)?0:d;if(this._targetNodeEnabled){var c=(d!=null)?Math.max(0,d-this._outerFrame[1]):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(){this.dispatchSimpleEvent($[193],{target:this});var b=this.getElement();if(b){b.rwtWidget=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","_outerFrame")}});
+rwt.qx.Class.define("rwt.widgets.util.WidgetRenderAdapter",{extend:rwt.qx.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:$[52],height:$[52],top:$[52],left:$[52],opacity:$[52],backgroundColor:$[52],backgroundGradient:$[52]},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:$[574],height:"_renderRuntimeHeight",top:"_renderRuntimeTop",left:"_renderRuntimeLeft",opacity:$[357],backgroundColor:"_styleBackgroundColor",backgroundGradient:$[341]}}});
+rwt.qx.Class.define("rwt.animation.AnimationRenderer",{extend:rwt.qx.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=rwt.util.Functions.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==$[10]){this._converterFunction=rwt.animation.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 rwt.widgets.base.Widget&&this._context._isCreated!==true){if(this._context._isInGlobalElementQueue){rwt.widgets.base.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==$[388]){this._updateWidgetVisibility();this._forceWidgetRenderer()}this.cancelActivateOnce()},_prepareValue:function(c){var a=c;switch(this._renderType){case $[57]:if(typeof c==$[10]){if(c==$[81]||c===""||c.slice(0,4)==="rgba"){a=null}else{a=rwt.util.Colors.cssStringToRgb(c)}}break;case $[135]:if(c){var a=[];for(var b=0;b<c.length;b++){a[b]=[c[b][0],rwt.util.Colors.cssStringToRgb(c[b][1])]}}break;case $[55]: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(rwt.widgets.util.WidgetRenderAdapter);this._renderType=a;this._animationType=b;this._renderFunction=this._renderAdapter.getOriginalRenderer(this._renderType);var d=rwt.animation.AnimationRenderer.converterByRenderType;this.setConverter(d[this._renderType]);this._handleAnimationType()}},clearAnimation:function(){if(this._renderType!==null){this._animationType=0;this._handleAnimationType();this._renderType=null;this.setRenderFunction(null,null);this._renderAdapter=null}},isAnimated:function(b){var a=false;if(this._animationType>0&&this._active){var c=b&this._animationType;if(typeof b===$[8]||c!==0){a=true}}return a},setInvisibilityGetter:function(a){this._invisibilityGetter=a},setAutoStart:function(a){this._autoStartEnabled=a},setAutoCheck:function(a){this._autoCheck=a},getValueFromWidget:function(){var a=null;switch(this._renderType){case $[55]:a=this._context.getOpacity();break;case $[17]: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 $[57]:var c=$[57];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 $[135]: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 $[135]:case $[57]: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($[103],this._onVisibilityChange,this);this._context.addEventListener($[68],this._onCreate,this)}else{this._renderAdapter.removeRenderListener($[103],this._onVisibilityChange,this);this._context.removeEventListener($[68],this._onCreate,this)}},_attachToWidgetRenderer:function(a){if(a){this._renderAdapter.addRenderListener(this._renderType,this._onOriginalRenderer,this)}else{this._renderAdapter.removeRenderListener(this._renderType,this._onOriginalRenderer,this)}},_onVisibilityChange:function(a){var c=a[0];var b=false;if(c){b=this._onBeforeAppear()}else{if(!this._context.isCreated()){this._animation.cancel()}if(this._context.isSeeable()){b=this._onBeforeDisappear()}else{b=true}}return b},_onCreate:function(){if(this._context.isDisplayable()){this._onBeforeAppear()}},_onBeforeAppear:function(){if(this._context.isCreated()){this._animation.skip()}else{this._animation.cancel()}var a=rwt.animation.AnimationRenderer.ANIMATION_APPEAR;if(this._context.isCreated()&&this.isAnimated(a)){this.setEndValue(this.getValueFromWidget());if(this._invisibilityGetter!=null){this.setStartValue(this._invisibilityGetter(this._context));this._render(0)}this._autoStart(a)}return true},_onBeforeDisappear:function(){this._animation.skip();var b=rwt.animation.AnimationRenderer.ANIMATION_DISAPPEAR;var a=!this.isAnimated(b);if(!a){if(this._invisibilityGetter!==null){this.setEndValue(this._invisibilityGetter(this._context))}this.setStartValue(this.getValueFromWidget());this._autoStart(b)}return a},_onOriginalRenderer:function(f){var g=f[0];var e=f[1];var c=false;if(this._animation.isStarted()){var d=this._animation.getConfig();var b=this._endValue;if(d==$[58]||d==$[38]){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=rwt.animation.AnimationRenderer.ANIMATION_CHANGE;if(this.isAnimated(a)&&this._context.isSeeable()){this.setStartValue(typeof e!==$[8]?e:this.getValueFromWidget());this.setEndValue(g);if(!this._autoStart(a)&&this._autoStartEnabled){c=true}}else{c=true}}return c},_forceWidgetRenderer:function(){var a=rwt.animation.AnimationRenderer.applyFunctionNames[this._renderType];this._context[a](this._context.get(this._renderType))},_autoStart:function(b){var a=false;if(this._autoStartEnabled&&this.isAnimated(b)&&(this._autoCheck?this.checkValues():true)){a=this._animation.start(this._typeToConfig(b))}else{this.cancelActivateOnce()}return a},_typeToConfig:function(b){var a=null;switch(b){case rwt.animation.AnimationRenderer.ANIMATION_APPEAR:a=$[38];break;case rwt.animation.AnimationRenderer.ANIMATION_DISAPPEAR:a=$[388];break;case rwt.animation.AnimationRenderer.ANIMATION_CHANGE:a=$[58];break}return a},_updateWidgetVisibility:function(){var a=this._context.getVisibility();this._renderAdapter.forceRender($[103],a)}},statics:{ANIMATION_APPEAR:1,ANIMATION_DISAPPEAR:2,ANIMATION_CHANGE:4,applyFunctionNames:{height:$[436],opacity:$[357],backgroundColor:$[532],backgroundGradient:$[341],top:"_applyTop",left:"_applyLeft"},converterByRenderType:{height:"numericPositiveRound",top:$[492],left:$[492],opacity:"factor",backgroundColor:$[64],backgroundGradient:$[115]},converter:{none:function(a){return a},round:Math.round,positive:function(a){return Math.max(0,a)},numeric:function(c,b,a){return b+(a-b)*c},numericRound:function(d,c,b){var a=c+(b-c)*d;return Math.round(a)},numericPositive:function(c,b,a){var d=a-b;return Math.max(0,b+d*c)},numericPositiveRound:function(d,c,b){var e=b-c;var a=Math.max(0,c+e*d);return Math.round(a)},factor:function(d,c,b){var a=c+(b-c)*d;return Math.max(0,Math.min(a,1))},color:function(g,c,b){var a=[];var d;var f;for(var e=0;e<3;e++){f=b[e]-c[e];d=Math.round(c[e]+f*g);a[e]=Math.max(0,Math.min(d,255))}return rwt.util.Colors.rgbToRgbString(a)},gradient:function(f,c,b){var g=rwt.animation.AnimationRenderer.converter.color;var h=rwt.animation.AnimationRenderer.converter.factor;var a=[];var e=Math.min(b.length,c.length);for(var d=0;d<e;d++){a[d]=[h(f,c[d][0],b[d][0]),g(f,c[d][1],b[d][1])]}return a}}}});
rwt.qx.Class.define("rwt.animation.Animation",{extend:rwt.qx.Target,construct:function(){arguments.callee.base.call(this);this._renderer=[];this._duration=1000;this._transitionFunction=rwt.animation.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:$[52],finish:$[52],cancel:$[52]},members:{setDuration:function(a){this._duration=a},getDuration:function(a){return this._duration},setTransition:function(a){this._transitionFunction=rwt.animation.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 rwt.animation.AnimationRenderer(this)}if(typeof a!=$[8]){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(a){if(!this.isStarted()){rwt.animation.Animation._addToQueue(this);this._inQueue=true;this._config=a;this._init()}return this.isStarted()},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($[87],this._config);this._config=null;rwt.animation.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!"}rwt.util.Arrays.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{rwt.util.Arrays.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(!rwt.remote.EventUtil.getSuspended()){var g=new Date().getTime();var d=rwt.animation.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){rwt.animation.Animation._stopLoop();throw"Animation aborted: "+f}}}catch(b){rwt.runtime.ErrorHandler.processJavaScriptError(b)}},blockGlobalFlushs:function(a){rwt.widgets.base.Widget._inFlushGlobalQueues=a;if(!a){rwt.widgets.base.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 b=rwt.animation.AnimationRenderer;var a=rwt.animation.Animation;rwt.animation.AnimationUtil={snapTo:function(i,d,e,l,j){var f=this._createAnimation(i,d,"easeOut");var h=this._createRenderer(f,i,"left");var g=this._createRenderer(f,i,"top");var c=parseInt(i.getLeft(),10);var k=parseInt(i.getTop(),10);h.setStartValue(isNaN(c)?0:c);g.setStartValue(isNaN(k)?0:k);h.setEndValue(e);g.setEndValue(l);f.addEventListener("finish",function(){i.setLeft(e);i.setTop(l);if(j){i.setDisplay(false)}});f.start()},_createAnimation:function(d,e,f){var c=new a();c.setDuration(e);c.setTransition(f);var g=function(){c.cancel();c.dispose()};d.addEventListener($[296],g);d.addEventListener($[193],g);c.addEventListener($[87],function(){d.removeEventListener($[193],g);d.removeEventListener($[296],g);rwt.client.Timer.once(c.dispose,c,0)});return c},_createRenderer:function(h,g,f){var e=b.converterByRenderType;var d=g.getAdapter(rwt.widgets.util.WidgetRenderAdapter);var c=new b(h);c.setRenderFunction(d.getOriginalRenderer(f),g);c.setConverter(e[f]);return c}}}());
-(function(){var c=rwt.animation.Animation;var b=rwt.animation.AnimationRenderer;var a=rwt.event.EventHandlerUtil;rwt.qx.Mixin.define("rwt.animation.VisibilityAnimationMixin",{properties:{animation:{check:$[195],nullable:false,init:null,apply:$[454],themeable:true}},construct:function(){this.hide();this.addEventListener($[187],this._blockUserEvents,this);this.addEventListener($[241],this._onDestroyAnim,this);if(this instanceof rwt.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 $[440]:this._configureFlyIn(d[e],e);break}}},_configureFadeIn:function(d){var e=this._getAppearAnimation();e.setProperties(d);e.getDefaultRenderer().animate(this,$[55],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,$[17],e);g.addEventListener("init",this._initSlideAnimation,this);g.addEventListener($[87],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(rwt.animation.VisibilityAnimationMixin.hideTop);break;case $[440]:g.animate(this,"top",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideBottom);break;case"flyInLeft":g.animate(this,"left",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideLeft);break;case"flyInRight":g.animate(this,"left",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideRight);break}},_getAppearAnimation:function(){if(this._appearAnimation===null){this._appearAnimation=new c();if(rwt.client.Client.isMshtml()&&this instanceof rwt.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($[87],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 $[545]:case $[416]:this._configureFlyOut(d[e],e);break}}},_configureFadeOut:function(d){var f=this._getDisappearAnimation();var e=f.getDefaultRenderer();e.animate(this,$[55],b.ANIMATION_DISAPPEAR);f.setProperties(d)},_configureSlideOut:function(d){var f=this._getDisappearAnimation();var e=f.getDefaultRenderer();e.animate(this,$[17],b.ANIMATION_DISAPPEAR);f.addEventListener("init",this._initSlideAnimation,this);f.addEventListener($[87],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(rwt.animation.VisibilityAnimationMixin.hideTop);break;case $[416]:g.animate(this,"top",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideBottom);break;case"flyOutLeft":g.animate(this,"left",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideLeft);break;case $[545]:g.animate(this,"left",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideRight);break}},_getDisappearAnimation:function(){if(this._disappearAnimation===null){this._disappearAnimation=new c();if(this instanceof rwt.widgets.Shell){this._disappearAnimation.addEventListener("init",this._lockActiveState,this);this._disappearAnimation.addEventListener($[87],this._unlockActiveState,this);if(rwt.client.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=rwt.widgets.base.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()}}})}());
-rwt.qx.Class.define($[511],{statics:{__hints:{names:{"float":rwt.client.Client.isMshtml()?"styleFloat":"cssFloat",boxSizing:rwt.client.Client.isGecko()?$[500]:"boxSizing"},mshtmlPixel:{width:"pixelWidth",height:$[437],left:"pixelLeft",right:"pixelRight",top:"pixelTop",bottom:$[448]}},BROWSER_PREFIX:rwt.util.Variant.select($[0],{gecko:"-moz-",webkit:"-webkit-","default":""}),COMPUTED_MODE:1,CASCADED_MODE:2,LOCAL_MODE:3,get:rwt.util.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($[451]+a+$[557])}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($[388]);default:var e=rwt.html.Nodes.getDocument(b);var c=e.defaultView.getComputedStyle(b,null);return c?c[a]:null}}}),getStyleProperty:rwt.util.Objects.select((document.defaultView&&document.defaultView.getComputedStyle)?$[420]:"noComputed",{hasComputed:function(b,c){try{return b.ownerDocument.defaultView.getComputedStyle(b,"")[c]}catch(a){throw new Error($[190]+b+"["+c+"]: "+a)}},noComputed:rwt.util.Variant.select($[0],{mshtml:function(b,c){try{return b.currentStyle[c]}catch(a){throw new Error($[190]+b+"["+c+"]: "+a)}},"default":function(b,c){try{return b.style[c]}catch(a){throw new Error($[190]+b+"["+c+"]")}}})}),getStyleSize:function(a,b){return parseInt(rwt.html.Style.getStyleProperty(a,b),10)||0},getMarginLeft:function(a){return rwt.html.Style.getStyleSize(a,$[161])},getMarginTop:function(a){return rwt.html.Style.getStyleSize(a,$[158])},getMarginRight:function(a){return rwt.html.Style.getStyleSize(a,$[202])},getMarginBottom:function(a){return rwt.html.Style.getStyleSize(a,$[238])},getPaddingLeft:function(a){return rwt.html.Style.getStyleSize(a,$[185])},getPaddingTop:function(a){return rwt.html.Style.getStyleSize(a,$[162])},getPaddingRight:function(a){return rwt.html.Style.getStyleSize(a,$[169])},getPaddingBottom:function(a){return rwt.html.Style.getStyleSize(a,$[181])},getBorderLeft:function(a){return rwt.html.Style.getStyleProperty(a,$[318])=="none"?0:rwt.html.Style.getStyleSize(a,$[70])},getBorderTop:function(a){return rwt.html.Style.getStyleProperty(a,$[384])=="none"?0:rwt.html.Style.getStyleSize(a,$[76])},getBorderRight:function(a){return rwt.html.Style.getStyleProperty(a,$[372])=="none"?0:rwt.html.Style.getStyleSize(a,$[226])},getBorderBottom:function(a){return rwt.html.Style.getStyleProperty(a,$[304])=="none"?0:rwt.html.Style.getStyleSize(a,$[223])},setBackgroundImage:(function(){var a;if(rwt.client.Client.isMshtml()&&rwt.client.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:rwt.util.Variant.select($[0],{mshtml:function(c,b){if(b==null||b>=1||b<0){this.removeCssFilter(c)}else{var a=$[365]+Math.round(b*100)+")";this.setStyleProperty(c,$[98],a)}},gecko:function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[198]);this.removeStyleProperty(c,$[55])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[198],a);this.setStyleProperty(c,$[55],a)}},"default":function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[55])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[55],a)}}}),setBackgroundGradient:rwt.util.Variant.select($[0],{webkit:function(g,f){if(f){var d=["linear",$[357]];if(f.horizontal===true){d.push($[306])}else{d.push($[328])}for(var e=0;e<f.length;e++){var a=f[e][0];var b=f[e][1];d.push($[432]+a+","+b+")")}var c=this.BROWSER_PREFIX+"gradient( "+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}},gecko: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+$[258]+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}},"default":function(g,f){if(f){var d=[f.horizontal===true?"90deg":"180deg"];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=$[258]+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}}}),setBoxShadow:function(e,c){var d;if(rwt.client.Client.isWebkit()&&!rwt.client.Client.isMobileChrome()){d=this.BROWSER_PREFIX+"box-shadow"}else{d=$[321]}if(c){var a=c[0]?"inset ":"";a+=c.slice(1,4).join("px ")+"px";var b=rwt.util.Colors.stringToRgb(c[5]);b.push(c[6]);a+=" rgba("+b.join()+")";this.setStyleProperty(e,d,a)}else{this.removeStyleProperty(e,d)}},setTextShadow:rwt.util.Variant.select($[0],{"default":function(e,c){var d="textShadow";if(c){var a=c.slice(1,4).join("px ")+"px";var b=rwt.util.Colors.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=rwt.client.Client.getVersion();var b=rwt.client.Client.getEngine()===$[123]&&a>=1.9;var c=rwt.client.Client.getBrowser()===$[179]&&a>=530;if(b||c){this.setStyleProperty(e,$[265],d);e.setAttribute($[265],d)}else{this._passEventsThrough(e,d)}},setStyleProperty:function(c,b,a){if(c instanceof rwt.widgets.base.Widget){c.setStyleProperty(b,a)}else{c.style[b]=a}},removeStyleProperty:function(b,a){if(b instanceof rwt.widgets.base.Widget){b.removeStyleProperty(a)}else{b.style[a]=""}},removeCssFilter:function(c){var a=null;if(c instanceof rwt.widgets.base.Widget){if(c.isCreated()){a=c.getElement()}else{c.removeStyleProperty($[98])}}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,$[79],a);this.setStyleProperty(c,$[130],$[152]);this.setStyleProperty(c,$[105],$[24])},_setCssFilterImage:function(c,b){if(b){var a=$[309]+b+$[299];this.setStyleProperty(c,$[98],a)}else{this.removeCssFilter(c)}},_passEventsThrough:function(e,d){var f=rwt.html.EventRegistration;var b=rwt.event.EventHandler._mouseEventTypes;var c=this._passEventThroughHandler;if(d==="none"){this.setStyleProperty(e,$[131],$[67]);for(var a=0;a<b.length;a++){f.addEventListener(e,b[a],c)}}else{}},_passEventThroughHandler:function(){var a=rwt.event.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!==$[29]&&b!==$[3]&&b!==$[6]){if(b===$[1]){rwt.html.Style._refireEvent(e,$[3],c)}rwt.html.Style._refireEvent(e,b,c);if(b===$[5]){rwt.html.Style._refireEvent(e,$[6],c)}}d.style.display=""},_refireEvent:rwt.util.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($[533]);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)}})}});
+(function(){var c=rwt.animation.Animation;var b=rwt.animation.AnimationRenderer;var a=rwt.event.EventHandlerUtil;rwt.qx.Mixin.define("rwt.animation.VisibilityAnimationMixin",{properties:{animation:{check:$[195],nullable:false,init:null,apply:$[454],themeable:true}},construct:function(){this.hide();this.addEventListener($[187],this._blockUserEvents,this);this.addEventListener($[241],this._onDestroyAnim,this);if(this instanceof rwt.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 $[441]:this._configureFlyIn(d[e],e);break}}},_configureFadeIn:function(d){var e=this._getAppearAnimation();e.setProperties(d);e.getDefaultRenderer().animate(this,$[55],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,$[17],e);g.addEventListener("init",this._initSlideAnimation,this);g.addEventListener($[87],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(rwt.animation.VisibilityAnimationMixin.hideTop);break;case $[441]:g.animate(this,"top",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideBottom);break;case"flyInLeft":g.animate(this,"left",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideLeft);break;case"flyInRight":g.animate(this,"left",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideRight);break}},_getAppearAnimation:function(){if(this._appearAnimation===null){this._appearAnimation=new c();if(rwt.client.Client.isMshtml()&&this instanceof rwt.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($[87],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 $[545]:case $[417]:this._configureFlyOut(d[e],e);break}}},_configureFadeOut:function(d){var f=this._getDisappearAnimation();var e=f.getDefaultRenderer();e.animate(this,$[55],b.ANIMATION_DISAPPEAR);f.setProperties(d)},_configureSlideOut:function(d){var f=this._getDisappearAnimation();var e=f.getDefaultRenderer();e.animate(this,$[17],b.ANIMATION_DISAPPEAR);f.addEventListener("init",this._initSlideAnimation,this);f.addEventListener($[87],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(rwt.animation.VisibilityAnimationMixin.hideTop);break;case $[417]:g.animate(this,"top",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideBottom);break;case"flyOutLeft":g.animate(this,"left",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideLeft);break;case $[545]:g.animate(this,"left",f);g.setInvisibilityGetter(rwt.animation.VisibilityAnimationMixin.hideRight);break}},_getDisappearAnimation:function(){if(this._disappearAnimation===null){this._disappearAnimation=new c();if(this instanceof rwt.widgets.Shell){this._disappearAnimation.addEventListener("init",this._lockActiveState,this);this._disappearAnimation.addEventListener($[87],this._unlockActiveState,this);if(rwt.client.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=rwt.widgets.base.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()}}})}());
+rwt.qx.Class.define($[511],{statics:{__hints:{names:{"float":rwt.client.Client.isMshtml()?"styleFloat":"cssFloat",boxSizing:rwt.client.Client.isGecko()?$[500]:"boxSizing"},mshtmlPixel:{width:"pixelWidth",height:$[438],left:"pixelLeft",right:"pixelRight",top:"pixelTop",bottom:$[449]}},BROWSER_PREFIX:rwt.util.Variant.select($[0],{gecko:"-moz-",webkit:"-webkit-","default":""}),COMPUTED_MODE:1,CASCADED_MODE:2,LOCAL_MODE:3,get:rwt.util.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($[452]+a+$[557])}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($[389]);default:var e=rwt.html.Nodes.getDocument(b);var c=e.defaultView.getComputedStyle(b,null);return c?c[a]:null}}}),getStyleProperty:rwt.util.Objects.select((document.defaultView&&document.defaultView.getComputedStyle)?$[421]:"noComputed",{hasComputed:function(b,c){try{return b.ownerDocument.defaultView.getComputedStyle(b,"")[c]}catch(a){throw new Error($[190]+b+"["+c+"]: "+a)}},noComputed:rwt.util.Variant.select($[0],{mshtml:function(b,c){try{return b.currentStyle[c]}catch(a){throw new Error($[190]+b+"["+c+"]: "+a)}},"default":function(b,c){try{return b.style[c]}catch(a){throw new Error($[190]+b+"["+c+"]")}}})}),getStyleSize:function(a,b){return parseInt(rwt.html.Style.getStyleProperty(a,b),10)||0},getMarginLeft:function(a){return rwt.html.Style.getStyleSize(a,$[161])},getMarginTop:function(a){return rwt.html.Style.getStyleSize(a,$[158])},getMarginRight:function(a){return rwt.html.Style.getStyleSize(a,$[202])},getMarginBottom:function(a){return rwt.html.Style.getStyleSize(a,$[238])},getPaddingLeft:function(a){return rwt.html.Style.getStyleSize(a,$[185])},getPaddingTop:function(a){return rwt.html.Style.getStyleSize(a,$[162])},getPaddingRight:function(a){return rwt.html.Style.getStyleSize(a,$[169])},getPaddingBottom:function(a){return rwt.html.Style.getStyleSize(a,$[181])},getBorderLeft:function(a){return rwt.html.Style.getStyleProperty(a,$[318])=="none"?0:rwt.html.Style.getStyleSize(a,$[70])},getBorderTop:function(a){return rwt.html.Style.getStyleProperty(a,$[385])=="none"?0:rwt.html.Style.getStyleSize(a,$[76])},getBorderRight:function(a){return rwt.html.Style.getStyleProperty(a,$[373])=="none"?0:rwt.html.Style.getStyleSize(a,$[226])},getBorderBottom:function(a){return rwt.html.Style.getStyleProperty(a,$[304])=="none"?0:rwt.html.Style.getStyleSize(a,$[223])},setBackgroundImage:(function(){var a;if(rwt.client.Client.isMshtml()&&rwt.client.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:rwt.util.Variant.select($[0],{mshtml:function(c,b){if(b==null||b>=1||b<0){this.removeCssFilter(c)}else{var a=$[366]+Math.round(b*100)+")";this.setStyleProperty(c,$[98],a)}},gecko:function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[198]);this.removeStyleProperty(c,$[55])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[198],a);this.setStyleProperty(c,$[55],a)}},"default":function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[55])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[55],a)}}}),setBackgroundGradient:rwt.util.Variant.select($[0],{webkit:function(g,f){if(f){var d=["linear",$[358]];if(f.horizontal===true){d.push($[306])}else{d.push($[329])}for(var e=0;e<f.length;e++){var a=f[e][0];var b=f[e][1];d.push($[433]+a+","+b+")")}var c=this.BROWSER_PREFIX+"gradient( "+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}},gecko: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+$[258]+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}},"default":function(g,f){if(f){var d=[f.horizontal===true?"90deg":"180deg"];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=$[258]+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}}}),setBoxShadow:function(e,c){var d;if(rwt.client.Client.isWebkit()&&!rwt.client.Client.isMobileChrome()){d=this.BROWSER_PREFIX+"box-shadow"}else{d=$[321]}if(c){var a=c[0]?"inset ":"";a+=c.slice(1,4).join("px ")+"px";var b=rwt.util.Colors.stringToRgb(c[5]);b.push(c[6]);a+=" rgba("+b.join()+")";this.setStyleProperty(e,d,a)}else{this.removeStyleProperty(e,d)}},setTextShadow:rwt.util.Variant.select($[0],{"default":function(e,c){var d="textShadow";if(c){var a=c.slice(1,4).join("px ")+"px";var b=rwt.util.Colors.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=rwt.client.Client.getVersion();var b=rwt.client.Client.getEngine()===$[123]&&a>=1.9;var c=rwt.client.Client.getBrowser()===$[179]&&a>=530;if(b||c){this.setStyleProperty(e,$[265],d);e.setAttribute($[265],d)}else{this._passEventsThrough(e,d)}},setStyleProperty:function(c,b,a){if(c instanceof rwt.widgets.base.Widget){c.setStyleProperty(b,a)}else{c.style[b]=a}},removeStyleProperty:function(b,a){if(b instanceof rwt.widgets.base.Widget){b.removeStyleProperty(a)}else{b.style[a]=""}},removeCssFilter:function(c){var a=null;if(c instanceof rwt.widgets.base.Widget){if(c.isCreated()){a=c.getElement()}else{c.removeStyleProperty($[98])}}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,$[79],a);this.setStyleProperty(c,$[130],$[152]);this.setStyleProperty(c,$[105],$[24])},_setCssFilterImage:function(c,b){if(b){var a=$[309]+b+$[299];this.setStyleProperty(c,$[98],a)}else{this.removeCssFilter(c)}},_passEventsThrough:function(e,d){var f=rwt.html.EventRegistration;var b=rwt.event.EventHandler._mouseEventTypes;var c=this._passEventThroughHandler;if(d==="none"){this.setStyleProperty(e,$[131],$[67]);for(var a=0;a<b.length;a++){f.addEventListener(e,b[a],c)}}else{}},_passEventThroughHandler:function(){var a=rwt.event.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!==$[29]&&b!==$[3]&&b!==$[6]){if(b===$[1]){rwt.html.Style._refireEvent(e,$[3],c)}rwt.html.Style._refireEvent(e,b,c);if(b===$[5]){rwt.html.Style._refireEvent(e,$[6],c)}}d.style.display=""},_refireEvent:rwt.util.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($[533]);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)}})}});
rwt.qx.Class.define("rwt.html.Scroll",{statics:{disableScrolling:function(a){this.enableScrolling(a);a.scrollLeft=0;a.scrollTop=0;rwt.html.EventRegistration.addEventListener(a,$[21],this._onscroll)},enableScrolling:function(a){rwt.html.EventRegistration.removeEventListener(a,$[21],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}}}});
rwt.qx.Class.define("rwt.html.StyleSheet",{statics:{createElement:rwt.util.Objects.select(document.createStyleSheet?"ie4+":$[141],{"ie4+":function(a){var b=document.createStyleSheet();if(a){b.cssText=a}return b},other:function(b){var a=document.createElement($[62]);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:rwt.util.Objects.select(document.createStyleSheet?"ie4+":$[141],{"ie4+":function(a,c,b){a.addRule(c,b)},other:function(a,c,b){a.insertRule(c+"{"+b+"}",a.cssRules.length)}}),removeRule:rwt.util.Objects.select(document.createStyleSheet?"ie4+":$[141],{"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:rwt.util.Objects.select(document.createStyleSheet?"ie4+":$[141],{"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)}}})}});
-rwt.qx.Class.define($[442],{extend:rwt.widgets.base.Widget,construct:function(){arguments.callee.base.call(this);this._children=[];this._layoutImpl=this._createLayoutImpl()},properties:{focusHandler:{check:$[483],apply:"_applyFocusHandler",nullable:true},activeChild:{check:$[134],event:$[565],nullable:true},focusedChild:{check:$[134],apply:"_applyFocusedChild",event:$[256],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 rwt.widgets.util.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($[7],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(rwt.qx.Class.isDefined($[294])&&d){var b=rwt.widgets.util.PopupManager.getInstance();if(b){b.update(f)}}if(a){if(c.hasEventListeners($[120])){var e=new rwt.event.FocusEvent($[120],c);if(d){e.setRelatedTarget(f)}c.dispatchEvent(e);e.dispose()}}if(d){if(f.hasEventListeners($[147])){var e=new rwt.event.FocusEvent($[147],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 rwt.event.FocusEvent("blur",c);if(d){e.setRelatedTarget(f)}c.dispatchEvent(e);var b=rwt.widgets.util.ToolTipManager.getInstance();if(b){b.handleBlur(e)}e.dispose()}if(d){this.setActiveChild(f);f.setFocused(true);rwt.event.EventHandler.setFocusRoot(this);var e=new rwt.event.FocusEvent($[75],f);if(a){e.setRelatedTarget(c)}f.dispatchEvent(e);var b=rwt.widgets.util.ToolTipManager.getInstance();if(b){b.handleFocus(e)}e.dispose()}},_layoutImpl:null,_createLayoutImpl:function(){return new rwt.widgets.util.CanvasLayoutImpl(this)},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){rwt.util.Arrays.removeAt(a,c)}rwt.util.Arrays.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+$[455])}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+$[455])}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 rwt.widgets.base.Parent)&&!(d instanceof rwt.widgets.base.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 rwt.util.Arrays.getFirst(this.getChildren())||null},getFirstVisibleChild:function(){return rwt.util.Arrays.getFirst(this.getVisibleChildren())||null},getFirstActiveChild:function(a){return rwt.widgets.base.Widget.getActiveSiblingHelper(null,this,1,a,"first")||null},getLastChild:function(){return rwt.util.Arrays.getLast(this.getChildren())||null},getLastVisibleChild:function(){return rwt.util.Arrays.getLast(this.getVisibleChildren())||null},getLastActiveChild:function(a){return rwt.widgets.base.Widget.getActiveSiblingHelper(null,this,-1,a,"last")||null},forEachChild:function(c){var b=this.getChildren(),d,a=-1;if(!b){return}d=b[++a];while(d){c.call(d,a);d=b[++a]}},forEachVisibleChild:function(c){var b=this.getVisibleChildren(),d,a=-1;if(!b){return}d=b[++a];while(d){c.call(d,a);d=b[++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:rwt.util.Variant.select($[0],{mshtml:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this._isCreated){this._ieFixLayoutOnAppear()}})},"default":rwt.util.Functions.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){rwt.widgets.base.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(rwt.util.Objects.isEmpty(this._childrenQueue)){this._childrenQueue={};rwt.widgets.base.Widget.removeFromGlobalLayoutQueue(this)}}},_flushChildrenQueue:function(){if(!rwt.util.Objects.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;rwt.widgets.base.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",$[229],"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(rwt.widgets.base.Parent.prototype._remapStart+d+rwt.widgets.base.Parent.prototype._remapStop)}}},defer:function(c,a,b){if(rwt.client.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($[537],$[537],"_remappingChildTable","_remappingChildTarget","_cachedVisibleChildren")}});
+rwt.qx.Class.define($[443],{extend:rwt.widgets.base.Widget,construct:function(){arguments.callee.base.call(this);this._children=[];this._layoutImpl=this._createLayoutImpl()},properties:{focusHandler:{check:$[483],apply:"_applyFocusHandler",nullable:true},activeChild:{check:$[134],event:$[565],nullable:true},focusedChild:{check:$[134],apply:"_applyFocusedChild",event:$[256],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 rwt.widgets.util.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($[7],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(rwt.qx.Class.isDefined($[294])&&d){var b=rwt.widgets.util.PopupManager.getInstance();if(b){b.update(f)}}if(a){if(c.hasEventListeners($[120])){var e=new rwt.event.FocusEvent($[120],c);if(d){e.setRelatedTarget(f)}c.dispatchEvent(e);e.dispose()}}if(d){if(f.hasEventListeners($[147])){var e=new rwt.event.FocusEvent($[147],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 rwt.event.FocusEvent("blur",c);if(d){e.setRelatedTarget(f)}c.dispatchEvent(e);var b=rwt.widgets.util.ToolTipManager.getInstance();if(b){b.handleBlur(e)}e.dispose()}if(d){this.setActiveChild(f);f.setFocused(true);rwt.event.EventHandler.setFocusRoot(this);var e=new rwt.event.FocusEvent($[75],f);if(a){e.setRelatedTarget(c)}f.dispatchEvent(e);var b=rwt.widgets.util.ToolTipManager.getInstance();if(b){b.handleFocus(e)}e.dispose()}},_layoutImpl:null,_createLayoutImpl:function(){return new rwt.widgets.util.CanvasLayoutImpl(this)},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){rwt.util.Arrays.removeAt(a,c)}rwt.util.Arrays.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+$[455])}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+$[455])}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 rwt.widgets.base.Parent)&&!(d instanceof rwt.widgets.base.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 rwt.util.Arrays.getFirst(this.getChildren())||null},getFirstVisibleChild:function(){return rwt.util.Arrays.getFirst(this.getVisibleChildren())||null},getFirstActiveChild:function(a){return rwt.widgets.base.Widget.getActiveSiblingHelper(null,this,1,a,"first")||null},getLastChild:function(){return rwt.util.Arrays.getLast(this.getChildren())||null},getLastVisibleChild:function(){return rwt.util.Arrays.getLast(this.getVisibleChildren())||null},getLastActiveChild:function(a){return rwt.widgets.base.Widget.getActiveSiblingHelper(null,this,-1,a,"last")||null},forEachChild:function(c){var b=this.getChildren(),d,a=-1;if(!b){return}d=b[++a];while(d){c.call(d,a);d=b[++a]}},forEachVisibleChild:function(c){var b=this.getVisibleChildren(),d,a=-1;if(!b){return}d=b[++a];while(d){c.call(d,a);d=b[++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:rwt.util.Variant.select($[0],{mshtml:function(){arguments.callee.base.call(this);this.forEachVisibleChild(function(){if(this._isCreated){this._ieFixLayoutOnAppear()}})},"default":rwt.util.Functions.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){rwt.widgets.base.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(rwt.util.Objects.isEmpty(this._childrenQueue)){this._childrenQueue={};rwt.widgets.base.Widget.removeFromGlobalLayoutQueue(this)}}},_flushChildrenQueue:function(){if(!rwt.util.Objects.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;rwt.widgets.base.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",$[229],"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(rwt.widgets.base.Parent.prototype._remapStart+d+rwt.widgets.base.Parent.prototype._remapStop)}}},defer:function(c,a,b){if(rwt.client.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($[537],$[537],"_remappingChildTable","_remappingChildTarget","_cachedVisibleChildren")}});
rwt.qx.Class.define($[216],{extend:rwt.event.Event,construct:function(a,b){arguments.callee.base.call(this,a);this.setTarget(b);switch(a){case $[147]:case $[120]:this.setBubbles(true);this.setPropagationStopped(false)}}});
rwt.qx.Class.define("rwt.event.EventHandler",{type:$[156],statics:{_filter:{},_allowContextMenu:rwt.util.Functions.returnFalse,_captureWidget:null,_focusRoot:null,_menuManager:null,_focused:false,_lastMouseEventType:null,_lastMouseDown:false,_lastMouseEventDate:0,_mouseIsDown:false,_blockKeyEvents:false,init:function(){var a=rwt.util.Functions;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=rwt.util.Functions.bind(this._onKeyEvent,this);rwt.event.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;rwt.event.EventHandlerUtil.cleanUp()},attachEvents:function(){var a=rwt.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,$[75],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=rwt.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,$[75],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},setBlockKeyEvents:function(a){this._blockKeyEvents=a},getBlockKeyEvents:function(a){return this._blockKeyEvents},setMenuManager:function(a){this._menuManager=a},getMenuManager:function(a){return this._menuManager},setMouseEventFilter:function(b,a){this._filter[$[246]]=[b,a]},setKeyEventFilter:function(b,a){this._filter[$[243]]=[b,a]},setKeyDomEventFilter:function(b,a){this._filter[$[263]]=[b,a]},_onKeyEvent:function(){try{var e=rwt.event.EventHandlerUtil;var a=e.getDomEvent(arguments);var k=e.getKeyCode(a);var j=e.getCharCode(a);if(this._blockKeyEvents){if(e.shouldBlock(a.type,k,j,a)){e.stopDomEvent(a)}return}if(typeof this._filter[$[263]]!==$[8]){var b=this._filter[$[263]][1];var d=this._filter[$[263]][0];d.call(b,a.type,k,j,a)}var c=e.getEventPseudoTypes(a,k,j);var f=e.mustRestoreKeyup(k,c);for(var g=0;g<f.length;g++){this._onkeyevent_post(a,$[34],f[g],0);e.clearStuckKey(f[g])}for(var g=0;g<c.length;g++){this._onkeyevent_post(a,c[g],k,j)}if(e.mustRestoreKeypress(a,c)){this._onkeyevent_post(a,$[4],k,j)}e.saveData(a,k,j)}catch(h){rwt.runtime.ErrorHandler.processJavaScriptError(h)}},_onkeyevent_post:function(a,e,d,g){var f=true;if(typeof this._filter[$[243]]!==$[8]){var b=this._filter[$[243]][1];var c=this._filter[$[243]][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=rwt.event.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 rwt.event.KeyEvent(g,b,i,e,null,d,f,c);if(e!=null&&e.getEnabled()){switch(c){case $[118]:case"Tab":if(this._menuManager!=null){this._menuManager.update(e,g)}break}if(b.ctrlKey&&c=="A"){switch(i.tagName.toLowerCase()){case $[78]:case $[104]:case $[240]:break;default:a.stopDomEvent(b);break}}e.dispatchEvent(h);if(rwt.qx.Class.isDefined($[280])){rwt.event.DragAndDropHandler.getInstance().handleKeyEvent(h)}}h.dispose()},_onmouseevent:function(c){try{var d=true;if(typeof this._filter[$[246]]!==$[8]){var b=this._filter[$[246]][1];d=this._filter[$[246]][0].call(b,c)}if(d){this._processMouseEvent(c)}}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_processMouseEvent:rwt.util.Variant.select($[0],{mshtml:function(){var a=rwt.event.EventHandlerUtil;var b=a.getDomEvent(arguments);var c=a.getDomTarget(b);var d=b.type;if(d==$[29]){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==$[49]&&this._lastMouseEventType==$[5]&&((new Date()).valueOf()-this._lastMouseEventDate)<250){this._onmouseevent_post(b,$[14],c)}}switch(d){case $[1]:case $[5]:case $[14]:case $[49]:case $[44]:this._lastMouseEventType=d;this._lastMouseEventDate=(new Date()).valueOf();this._lastMouseDown=d==$[1];break}}this._onmouseevent_post(b,d,c)},"default":function(b){var a=rwt.event.EventHandlerUtil;var c=a.getDomTarget(b);var d=b.type;switch(d){case $[307]:d=$[47];break;case $[14]:case $[49]:if(b.which!==1){return}}this._onmouseevent_post(b,d,c)}}),_onmouseevent_post:function(e,l,n){var h=false;var b=rwt.event.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==$[44]){if(this._allowContextMenu(c,n)){h=true}else{b.stopDomEvent(e)}}if(g.getEnabled()&&!(g instanceof rwt.widgets.base.ClientDocument)&&l==$[1]){rwt.widgets.util.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==$[3]||l==$[6]){var d=b.getRelatedTargetObjectFromEvent(e);var o=l==$[3]?$[203]:"elementOut";this._fireElementHoverEvents(o,e,n,j,c,d,g);if(d==j){return}}var a=new rwt.event.MouseEvent(l,e,n,j,c,d);if(l!==$[44]){rwt.event.MouseEvent.storeEventState(a)}if(!h){g.dispatchEvent(a);if(g.getEnabled()){this._onmouseevent_special_post(l,j,c,g,a,e)}}else{if(l==$[3]){var f=rwt.widgets.util.ToolTipManager.getInstance();f.handleMouseEvent(a)}}a.dispose();rwt.widgets.base.Widget.flushGlobalQueues();if(p){this._onmouseevent_post(e,$[14],this._lastMouseDownDomTarget);this._lastMouseDownDomTarget=null;this._lastMouseDownDispatchTarget=null}},_fireElementHoverEvents:function(e,d,f,g,c,b,h){if(h.getEnabled()){var a=new rwt.event.MouseEvent(e,d,f,g,c,b);h.dispatchEvent(a)}},_onmouseevent_special_post:function(d,f,b,c,e,a){switch(d){case $[1]:rwt.widgets.util.PopupManager.getInstance().update(f);if(this._menuManager!=null){this._menuManager.update(f,d)}rwt.widgets.util.IframeManager.getInstance().handleMouseDown(e);break;case $[5]:if(this._menuManager!=null){this._menuManager.update(f,d)}if(rwt.qx.Class.isDefined($[554])){rwt.widgets.util.IframeManager.getInstance().handleMouseUp(e)}break}rwt.widgets.util.ToolTipManager.getInstance().handleMouseEvent(e);this._ignoreWindowBlur=d===$[1];if(rwt.qx.Class.isDefined($[280])&&f){rwt.event.DragAndDropHandler.getInstance().handleMouseEvent(e)}},_ondragevent:function(c){try{var a=rwt.event.EventHandlerUtil;if(!c){c=window.event}a.stopDomEvent(c)}catch(b){rwt.runtime.ErrorHandler.processJavaScriptError(b)}},_onselectevent:function(){try{var a=rwt.event.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){rwt.runtime.ErrorHandler.processJavaScriptError(b)}},_onwindowblur:function(b){try{if(!this._focused||this._ignoreWindowBlur||b.originalTarget!=window){return}this._focused=false;this.setCaptureWidget(null);if(rwt.qx.Class.isDefined($[294])){rwt.widgets.util.PopupManager.getInstance().update()}if(this._menuManager){this._menuManager.update()}if(rwt.qx.Class.isDefined($[280])){rwt.event.DragAndDropHandler.getInstance().globalCancelDrag()}rwt.widgets.base.ClientDocument.getInstance().createDispatchEvent($[232])}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_onwindowfocus:function(b){try{if(this._focused){return}this._focused=true;rwt.widgets.base.ClientDocument.getInstance().createDispatchEvent("windowfocus")}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_onwindowresize:function(g){try{var f=rwt.widgets.base.ClientDocument.getInstance();var b=f.getInnerWidth();var h=f.getInnerHeight();var d=f._computeInnerWidth();var a=f._computeInnerHeight();if(d!==b||a!==h){rwt.widgets.base.ClientDocument.getInstance().createDispatchEvent($[257])}}catch(c){rwt.runtime.ErrorHandler.processJavaScriptError(c)}},_mouseEventTypes:[$[3],$[29],$[6],$[1],$[5],$[14],$[49],$[44],rwt.client.Client.isGecko()?$[307]:$[47]],_keyEventTypes:[$[7],$[4],$[34]],_dragEventTypes:rwt.util.Variant.select($[0],{gecko:[$[212],$[139],$[292],"dragexit",$[526]],mshtml:[$[273],$[139],$[77],"drag",$[292],"dragleave"],"default":[$[77],$[212],$[139],"drag","dragleave",$[292],"dragexit",$[526]]}),_getKeyEventTarget:function(){var a=this.getFocusRoot();return this.getCaptureWidget()||(a==null?null:a.getActiveChild())},attachEventTypes:function(f,e){try{var d=rwt.client.Client.isGecko()?window:document.body;for(var c=0,a=f.length;c<a;c++){rwt.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=rwt.client.Client.isGecko()?window:document.body;for(var c=0,a=f.length;c<a;c++){rwt.html.EventRegistration.removeEventListener(d,f[c],e)}}catch(b){throw new Error("EventHandler: Failed to detach window event types: "+f+": "+b)}},_onmouseevent_click_fix:rwt.util.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}})}});
rwt.qx.Class.define("rwt.html.Nodes",{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===rwt.html.Nodes.DOCUMENT)},getDocument:function(a){if(this.isDocument(a)){return a}return a.ownerDocument||a.document||null},getWindow:rwt.util.Variant.select($[0],{mshtml:function(a){return this.getDocument(a).parentWindow},"default":function(a){return this.getDocument(a).defaultView}})}});
@@ -45,49 +45,49 @@ rwt.qx.Class.define($[267],{extend:rwt.event.DomEvent,construct:function(f,c,d,g
rwt.qx.Class.define($[85],{extend:rwt.event.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:$[13],C_BUTTON_NONE:"none",_screenX:0,_screenY:0,_clientX:0,_clientY:0,_pageX:0,_pageY:0,_button:null,buttons:rwt.util.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:rwt.util.Variant.select($[0],{mshtml:function(){return Math.round(this.getDomEvent().clientX+rwt.html.Viewport.getScrollLeft(window))},"default":function(){return Math.round(this.getDomEvent().pageX)}}),getPageY:rwt.util.Variant.select($[0],{mshtml:function(){return Math.round(this.getDomEvent().clientY+rwt.html.Viewport.getScrollTop(window))},"default":function(){return Math.round(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:rwt.util.Variant.select($[0],{mshtml:function(){if(this.getType()==$[14]){return true}else{return this.getButton()===rwt.event.MouseEvent.C_BUTTON_LEFT}},"default":function(){return this.getButton()===rwt.event.MouseEvent.C_BUTTON_LEFT}}),isMiddleButtonPressed:function(){return this.getButton()===rwt.event.MouseEvent.C_BUTTON_MIDDLE},isRightButtonPressed:function(){return this.getButton()===rwt.event.MouseEvent.C_BUTTON_RIGHT},__buttons:rwt.util.Variant.select($[0],{mshtml:{1:"left",2:$[13],4:$[46]},"default":{0:"left",2:$[13],1:$[46]}}),_computeButton:function(){switch(this.getDomEvent().type){case $[14]:case $[49]:return"left";case $[44]:return $[13];default:return this.__buttons[this.getDomEvent().button]||"none"}},_computeWheelDelta:rwt.util.Variant.select($[0],{"default":function(){return this.getDomEvent().wheelDelta/120},gecko:function(){return -(this.getDomEvent().detail/3)}})}});
rwt.qx.Class.define("rwt.util.ObjectManager",{extend:rwt.qx.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")}});
rwt.qx.Class.define($[554],{type:$[37],extend:rwt.util.ObjectManager,construct:function(){arguments.callee.base.call(this);this._blocked={}},members:{handleMouseDown:function(a){var c=this._blockData=rwt.util.Objects.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")}});
-rwt.qx.Class.define($[404],{extend:rwt.widgets.base.Parent,construct:function(){arguments.callee.base.call(this);this._locked=false},members:{setLocked:function(d){this._locked=d;var b=this.getChildren();var c=rwt.widgets.CoolItem;for(var a=0;a<b.length;a++){if(b[a] instanceof c){b[a].setLocked(d)}}},getLocked:function(){return this._locked}}});
-rwt.remote.HandlerRegistry.add($[404],{factory:function(b){var a=new rwt.widgets.CoolBar();rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(a,b.parent);a.setOverflow($[9]);a.setAppearance("coolbar");return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["locked"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})});
+rwt.qx.Class.define($[405],{extend:rwt.widgets.base.Parent,construct:function(){arguments.callee.base.call(this);this._locked=false},members:{setLocked:function(d){this._locked=d;var b=this.getChildren();var c=rwt.widgets.CoolItem;for(var a=0;a<b.length;a++){if(b[a] instanceof c){b[a].setLocked(d)}}},getLocked:function(){return this._locked}}});
+rwt.remote.HandlerRegistry.add($[405],{factory:function(b){var a=new rwt.widgets.CoolBar();rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(a,b.parent);a.setOverflow($[9]);a.setAppearance("coolbar");return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["locked"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})});
rwt.qx.Class.define("rwt.widgets.util.LayoutImpl",{extend:rwt.qx.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 rwt.util.Numbers.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 rwt.util.Numbers.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:rwt.util.Variant.select($[0],{mshtml:rwt.util.Functions.returnTrue,"default":function(b,a){if(a.minWidth){if(b._computedMinWidthTypeNull){b._resetRuntimeMinWidth()}else{b._renderRuntimeMinWidth(b.getMinWidthValue())}}else{if(a.initial&&!b._computedMinWidthTypeNull){b._renderRuntimeMinWidth(b.getMinWidthValue())}}if(a.maxWidth){if(b._computedMaxWidthTypeNull){b._resetRuntimeMaxWidth()}else{b._renderRuntimeMaxWidth(b.getMaxWidthValue())}}else{if(a.initial&&!b._computedMaxWidthTypeNull){b._renderRuntimeMaxWidth(b.getMaxWidthValue())}}}}),layoutChild_sizeLimitY:rwt.util.Variant.select($[0],{mshtml:rwt.util.Functions.returnTrue,"default":function(b,a){if(a.minHeight){if(b._computedMinHeightTypeNull){b._resetRuntimeMinHeight()}else{b._renderRuntimeMinHeight(b.getMinHeightValue())}}else{if(a.initial&&!b._computedMinHeightTypeNull){b._renderRuntimeMinHeight(b.getMinHeightValue())}}if(a.maxHeight){if(b._computedMaxHeightTypeNull){b._resetRuntimeMaxHeight()}else{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();if(c!=null){d._renderRuntimeMarginLeft(c)}else{d._resetRuntimeMarginLeft()}}if(a.marginRight||a.initial){var b=d.getMarginRight();if(b!=null){d._renderRuntimeMarginRight(b)}else{d._resetRuntimeMarginRight()}}},layoutChild_marginY:function(d,a){if(a.marginTop||a.initial){var c=d.getMarginTop();if(c!=null){d._renderRuntimeMarginTop(c)}else{d._resetRuntimeMarginTop()}}if(a.marginBottom||a.initial){var b=d.getMarginBottom();if(b!=null){d._renderRuntimeMarginBottom(b)}else{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")}});
rwt.qx.Class.define("rwt.util.Numbers",{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===$[31]&&b>c){return c}else{if(typeof a===$[31]&&b<a){return a}else{return b}}}}});
rwt.qx.Class.define("rwt.widgets.util.CanvasLayoutImpl",{extend:rwt.widgets.util.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!==null?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!==null?a:b._computeBoxWidthFallback()},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 rwt.util.Numbers.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 rwt.util.Numbers.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:rwt.util.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){if(b._computedWidthTypeNull){b._resetRuntimeWidth()}else{b._renderRuntimeWidth(b.getWidthValue())}}}}),layoutChild_sizeY:rwt.util.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){if(b._computedHeightTypeNull){b._resetRuntimeHeight()}else{b._renderRuntimeHeight(b.getHeightValue())}}}}),layoutChild_locationX:function(c,a){var b=this.getWidget();if(a.initial||a.left||a.parentPaddingLeft){if(c._computedLeftTypeNull){if(c._computedRightTypeNull&&b.getPaddingLeft()>0){c._renderRuntimeLeft(b.getPaddingLeft())}else{c._resetRuntimeLeft()}}else{c._renderRuntimeLeft(c.getLeftValue()+b.getPaddingLeft())}}if(a.initial||a.right||a.parentPaddingRight){if(c._computedRightTypeNull){if(c._computedLeftTypeNull&&b.getPaddingRight()>0){c._renderRuntimeRight(b.getPaddingRight())}else{c._resetRuntimeRight()}}else{c._renderRuntimeRight(c.getRightValue()+b.getPaddingRight())}}},layoutChild_locationY:function(c,a){var b=this.getWidget();if(a.initial||a.top||a.parentPaddingTop){if(c._computedTopTypeNull){if(c._computedBottomTypeNull&&b.getPaddingTop()>0){c._renderRuntimeTop(b.getPaddingTop())}else{c._resetRuntimeTop()}}else{c._renderRuntimeTop(c.getTopValue()+b.getPaddingTop())}}if(a.initial||a.bottom||a.parentPaddingBottom){if(c._computedBottomTypeNull){if(c._computedTopTypeNull&&b.getPaddingBottom()>0){c._renderRuntimeBottom(b.getPaddingBottom())}else{c._resetRuntimeBottom()}}else{c._renderRuntimeBottom(c.getBottomValue()+b.getPaddingBottom())}}}}});
-rwt.qx.Class.define("rwt.widgets.base.ClientDocument",{type:$[37],extend:rwt.widgets.base.Parent,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($[257],this._onwindowresize);this._modalWidgets=[];this._modalNativeWindow=null;this.activateFocusRoot();this.initHideFocus();this.initSelectable();rwt.event.EventHandler.setFocusRoot(this);if(rwt.client.Client.isGecko()){this.getElement().style.position=$[15];this.setSelectable(true)}},events:{focus:$[11],windowblur:$[11],windowfocus:$[11],windowresize:$[11]},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:$[50],nullable:true,themeable:true,apply:"_applyGlobalCursor",event:"changeGlobalCursor"}},members:{_applyParent:rwt.util.Functions.returnTrue,getTopLevelWidget:rwt.util.Functions.returnThis,getWindowElement:function(){return this._window},getDocumentElement:function(){return this._document},getParent:rwt.util.Functions.returnNull,getToolTip:rwt.util.Functions.returnNull,isSeeable:rwt.util.Functions.returnTrue,_isDisplayable:true,_hasParent:false,_initialLayoutDone:true,_isInDom:true,_getBlocker:function(){if(!this._blocker){this._blocker=new rwt.widgets.base.ClientDocumentBlocker();this._blocker.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(rwt.qx.Class.isDefined($[456])&&a instanceof rwt.widgets.base.Window){this._modalWidgets.push(a);var b=a.getZIndex();this._getBlocker().setZIndex(b);a.setZIndex(b+1)}else{if(rwt.qx.Class.isDefined($[398])&&a instanceof qx.client.NativeWindow){this._modalNativeWindow=a;this._getBlocker().setZIndex(10000000)}}},release:function(b){if(b){if(rwt.qx.Class.isDefined($[398])&&b instanceof qx.client.NativeWindow){this._modalNativeWindow=null}else{rwt.util.Arrays.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 rwt.html.StyleSheet.createElement(a)},addCssRule:function(a,c,b){return rwt.html.StyleSheet.addRule(a,c,b)},removeCssRule:function(a,b){return rwt.html.StyleSheet.removeRule(a,b)},removeAllCssRules:function(a){return rwt.html.StyleSheet.removeAllRules(a)},_applyGlobalCursor:rwt.util.Variant.select($[0],{mshtml:function(g,b){if(g==$[154]){g="hand"}if(b==$[154]){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){rwt.widgets.util.PopupManager.getInstance().update();this._recomputeInnerWidth();this._recomputeInnerHeight();rwt.widgets.base.Widget.flushGlobalQueues()},_computeInnerWidth:function(){return this._document.body.offsetWidth},_computeInnerHeight:function(){return this._document.body.offsetHeight}},defer:function(){var b=rwt.client.Client.getEngineBoxSizingAttributes();var a=b.join($[457])+$[457];var c=b.join($[410])+$[410];rwt.html.StyleSheet.createElement("html,body { margin:0;border:0;padding:0; } html { border:0 none; } *{"+a+"} img{"+c+"}");rwt.html.StyleSheet.createElement("html,body{width:100%;height:100%;overflow:hidden;}");rwt.widgets.base.ClientDocument.BOXSIZING=$[260]},destruct:function(){this._disposeObjects("_blocker");this._disposeFields("_window","_document","_modalWidgets","_modalNativeWindow","_globalCursorStyleSheet")}});
+rwt.qx.Class.define("rwt.widgets.base.ClientDocument",{type:$[37],extend:rwt.widgets.base.Parent,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($[257],this._onwindowresize);this._modalWidgets=[];this._modalNativeWindow=null;this.activateFocusRoot();this.initHideFocus();this.initSelectable();rwt.event.EventHandler.setFocusRoot(this);if(rwt.client.Client.isGecko()){this.getElement().style.position=$[15];this.setSelectable(true)}},events:{focus:$[11],windowblur:$[11],windowfocus:$[11],windowresize:$[11]},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:$[50],nullable:true,themeable:true,apply:"_applyGlobalCursor",event:"changeGlobalCursor"}},members:{_applyParent:rwt.util.Functions.returnTrue,getTopLevelWidget:rwt.util.Functions.returnThis,getWindowElement:function(){return this._window},getDocumentElement:function(){return this._document},getParent:rwt.util.Functions.returnNull,getToolTip:rwt.util.Functions.returnNull,isSeeable:rwt.util.Functions.returnTrue,_isDisplayable:true,_hasParent:false,_initialLayoutDone:true,_isInDom:true,_getBlocker:function(){if(!this._blocker){this._blocker=new rwt.widgets.base.ClientDocumentBlocker();this._blocker.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(rwt.qx.Class.isDefined($[456])&&a instanceof rwt.widgets.base.Window){this._modalWidgets.push(a);var b=a.getZIndex();this._getBlocker().setZIndex(b);a.setZIndex(b+1)}else{if(rwt.qx.Class.isDefined($[399])&&a instanceof qx.client.NativeWindow){this._modalNativeWindow=a;this._getBlocker().setZIndex(10000000)}}},release:function(b){if(b){if(rwt.qx.Class.isDefined($[399])&&b instanceof qx.client.NativeWindow){this._modalNativeWindow=null}else{rwt.util.Arrays.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 rwt.html.StyleSheet.createElement(a)},addCssRule:function(a,c,b){return rwt.html.StyleSheet.addRule(a,c,b)},removeCssRule:function(a,b){return rwt.html.StyleSheet.removeRule(a,b)},removeAllCssRules:function(a){return rwt.html.StyleSheet.removeAllRules(a)},_applyGlobalCursor:rwt.util.Variant.select($[0],{mshtml:function(g,b){if(g==$[154]){g="hand"}if(b==$[154]){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){rwt.widgets.util.PopupManager.getInstance().update();this._recomputeInnerWidth();this._recomputeInnerHeight();rwt.widgets.base.Widget.flushGlobalQueues()},_computeInnerWidth:function(){return this._document.body.offsetWidth},_computeInnerHeight:function(){return this._document.body.offsetHeight}},defer:function(){var b=rwt.client.Client.getEngineBoxSizingAttributes();var a=b.join($[457])+$[457];var c=b.join($[411])+$[411];rwt.html.StyleSheet.createElement("html,body { margin:0;border:0;padding:0; } html { border:0 none; } *{"+a+"} img{"+c+"}");rwt.html.StyleSheet.createElement("html,body{width:100%;height:100%;overflow:hidden;}");rwt.widgets.base.ClientDocument.BOXSIZING=$[260]},destruct:function(){this._disposeObjects("_blocker");this._disposeFields("_window","_document","_modalWidgets","_modalNativeWindow","_globalCursorStyleSheet")}});
rwt.qx.Class.define("rwt.widgets.base.Terminator",{extend:rwt.widgets.base.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:rwt.util.Functions.returnTrue,_computeBoxWidthFallback:function(){return this.getPreferredBoxWidth()},_computeBoxHeightFallback:function(){return this.getPreferredBoxHeight()},_computePreferredInnerWidth:rwt.util.Functions.returnZero,_computePreferredInnerHeight:rwt.util.Functions.returnZero,_isWidthEssential:function(){if(!this._computedLeftTypeNull&&!this._computedRightTypeNull){return true}if(!this._computedWidthTypeNull&&!this._computedWidthTypeAuto){return true}if(!this._computedMinWidthTypeNull&&!this._computedMinWidthTypeAuto){return true}if(!this._computedMaxWidthTypeNull&&!this._computedMaxWidthTypeAuto){return true}if(this._targetNode){return true}return false},_isHeightEssential:function(){if(!this._computedTopTypeNull&&!this._computedBottomTypeNull){return true}if(!this._computedHeightTypeNull&&!this._computedHeightTypeAuto){return true}if(!this._computedMinHeightTypeNull&&!this._computedMinHeightTypeAuto){return true}if(!this._computedMaxHeightTypeNull&&!this._computedMaxHeightTypeAuto){return true}if(this._targetNode){return true}return false}}});
rwt.qx.Class.define("rwt.widgets.base.ClientDocumentBlocker",{extend:rwt.widgets.base.Terminator,include:rwt.animation.VisibilityAnimationMixin,construct:function(){arguments.callee.base.call(this);this.initTop();this.initLeft();this.initWidth();this.initHeight();this.initZIndex()},properties:{appearance:{refine:true,init:$[507]},zIndex:{refine:true,init:100000000},top:{refine:true,init:0},left:{refine:true,init:0},width:{refine:true,init:"100%"},height:{refine:true,init:"100%"},display:{refine:true,init:false}},members:{getFocusRoot:function(){return null}}});
rwt.qx.Class.define("rwt.theme.AppearanceManager",{type:$[37],extend:rwt.util.ObjectManager,construct:function(){arguments.callee.base.call(this);this.__cache={};this.__stateMap={};this.__stateMapLength=1},members:{setCurrentTheme:function(a){this._currentTheme=a;this.syncAppearanceTheme()},getCurrentTheme:function(){return this._currentTheme},syncAppearanceTheme:function(){if(!this._currentTheme){return}if(this._currentTheme){this.__cache[this._currentTheme.name]={}}if(rwt.runtime.System.getInstance().getUiReady()){rwt.widgets.base.ClientDocument.getInstance()._recursiveAppearanceThemeUpdate(this._currentTheme)}},styleFrom:function(c,a){var b=this.getCurrentTheme();if(!b){return}return this.styleFromTheme(b,c,a)},styleFromTheme:function(i,e,m){var k=i.appearances[e];if(!k){if(rwt.util.Variant.isSet($[26],"on")){throw new Error("Missing appearance entry: "+e)}return null}if(!k.style){if(k.include){return this.styleFromTheme(i,k.include,m)}else{return null}}var b=this.__stateMap;var f=[e];for(var c in m){if(!b[c]){b[c]=this.__stateMapLength++}f[b[c]]=true}var h=f.join();var a=this.__cache[i.name];if(a&&a[h]!==undefined){return a[h]}var n;if(k.include||k.base){var j=k.style(m);var g;if(k.include){g=this.styleFromTheme(i,k.include,m)}n={};if(k.base){var d=this.styleFromTheme(k.base,e,m);if(k.include){for(var l in d){if(g[l]===undefined&&j[l]===undefined){n[l]=d[l]}}}else{for(var l in d){if(j[l]===undefined){n[l]=d[l]}}}}if(k.include){for(var l in g){if(j[l]===undefined){n[l]=g[l]}}}for(var l in j){n[l]=j[l]}}else{n=k.style(m)}if(a){a[h]=n||null}return n||null}},destruct:function(){this._disposeFields("__cache","__stateMap")}});
rwt.qx.Class.define("rwt.util.Colors",{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($[524]+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($[472]+a)},cssStringToRgb:function(a){if(this.isNamedColor(a)){return this.NAMED[a]}else{if(this.isSystemColor(a)){throw new Error($[524]+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($[472]+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(rwt.util.Strings.pad(a[0].toString(16).toLowerCase(),2)+rwt.util.Strings.pad(a[1].toString(16).toLowerCase(),2)+rwt.util.Strings.pad(a[2].toString(16).toLowerCase(),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,10);var b=parseInt(RegExp.$2,10);var a=parseInt(RegExp.$3,10);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)}}});
-rwt.qx.Class.define("rwt.html.Border",{extend:rwt.qx.Object,construct:function(c,b,a,d){arguments.callee.base.call(this);this._colors=null;this._widths=null;this._styles=null;this._innerColors=[null,null,null,null];this._radii=[null,null,null,null];this._singleColor=null;this._singleStyle=null;this._setWidth(c);this._setStyle(b?b:"none");this._setColor(a?a:"");if(b===$[188]){if(d===undefined){throw new Error("Missing innerColors")}this._setInnerColor(d)}else{if(b===$[84]){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:[$[76],$[226],$[223],$[70]],_EDGECOLOR:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],_EDGESTYLE:[$[384],$[372],$[304],$[318]],_EDGEMOZCOLORS:["MozBorderTopColors","MozBorderRightColors","MozBorderBottomColors","MozBorderLeftColors"],_BORDERRADII:rwt.util.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:rwt.util.Variant.select($[0],{gecko:function(c){var d=rwt.html.Border;var b=c._style;for(var a=0;a<4;a++){b[d._EDGEMOZCOLORS[a]]=""}},"default":function(c){var d=rwt.html.Border;var a=c._innerStyle;if(a){for(var b=0;b<4;b++){a[d._EDGEWIDTH[b]]="";a[d._EDGESTYLE[b]]="";a[d._EDGECOLOR[b]]=""}}}})},members:{_setColor:function(a){if(typeof a===$[10]){this._singleColor=a}this._colors=this._normalizeValue(a)},_setWidth:function(a){this._widths=this._normalizeValue(a)},_setStyle:function(a){if(typeof a===$[10]){this._singleStyle=a;if(a===$[188]||a===$[84]){this._styles=this._normalizeValue($[73])}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()===$[188]){this._renderComplexBorder(a)}else{if(this.getStyle()===$[84]){this._renderRoundedBorder(a)}else{this._renderSimpleBorder(a)}}},renderElement:function(a){if(this.getStyle()===$[188]||this.getStyle()===$[84]){throw new Error("Rendering complex or rounded border on elements currently unsupported")}this._renderSimpleBorderStyle(a.style)},_renderSimpleBorder:function(a){rwt.html.Border._resetComplexBorder(a);rwt.html.Border._resetRadii(a);this._renderSimpleBorderStyle(a._style)},_renderSimpleBorderStyle:function(b){var c=rwt.html.Border;for(var a=0;a<4;a++){b[c._EDGEWIDTH[a]]=(this._widths[a]||0)+"px";b[c._EDGESTYLE[a]]=this._styles[a]||"none";b[c._EDGECOLOR[a]]=this._colors[a]||""}},_renderComplexBorder:rwt.util.Variant.select($[0],{gecko:function(c){var d=rwt.html.Border;d._resetRadii(c);var b=c._style;for(var a=0;a<4;a++){b[d._EDGEWIDTH[a]]=(this._widths[a]||0)+"px";b[d._EDGECOLOR[a]]=this._colors[a]||"";if(this._widths[a]===2){b[d._EDGESTYLE[a]]=$[73];b[d._EDGEMOZCOLORS[a]]=this._colors[a]+" "+this._innerColors[a]}else{b[d._EDGESTYLE[a]]=this._styles[a]||"none";b[d._EDGEMOZCOLORS[a]]=""}}},"default":function(d){var e=rwt.html.Border;e._resetRadii(d);var c=d._style;var a=d._innerStyle;for(var b=0;b<4;b++){if(this._widths[b]===2){if(!a){d.prepareEnhancedBorder();a=d._innerStyle}c[e._EDGEWIDTH[b]]="1px";c[e._EDGESTYLE[b]]=$[73];c[e._EDGECOLOR[b]]=this._colors[b]||"";a[e._EDGEWIDTH[b]]="1px";a[e._EDGESTYLE[b]]=$[73];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=rwt.html.Border;this._renderSimpleBorder(c);var b=c._style;for(var a=0;a<4;a++){b[d._BORDERRADII[a]]=this._radii[a]+"px"}}}});
-rwt.qx.Class.define("rwt.html.Font",{extend:rwt.qx.Object,construct:function(a,b){arguments.callee.base.call(this);if(a!==undefined){this.setSize(a)}if(b!==undefined){this.setFamily(b)}},statics:{_fontPool:{},fromString:function(g){var b=new rwt.html.Font();var f=g.split(/\s+/);var d=[];for(var e=0;e<f.length;e++){var c=f[e];switch(c){case"bold":b.setBold(true);break;case"italic":b.setItalic(true);break;case $[311]:b.setDecoration($[311]);break;default:var a=parseInt(c,10);if(a==c||rwt.util.Strings.contains(c,"px")){b.setSize(a)}else{d.push(c)}break}}if(d.length>0){b.setFamily(d)}return b},fromArray:function(a){var d=a[0];var f=a[1];var e=a[2];var c=a[3];var g=d+f+e+c;var b=this._fontPool[g];if(!b){b=new rwt.html.Font(f,d);b.setBold(e);b.setItalic(c);this._fontPool[g]=b}return b},fromConfig:function(b){var a=new rwt.html.Font();a.set(b);return a},reset:function(a){a.removeStyleProperty("fontFamily");a.removeStyleProperty($[173]);a.removeStyleProperty("fontWeight");a.removeStyleProperty("fontStyle");a.removeStyleProperty($[283])},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:$[18],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:[$[311],"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":$[53]},_applyItalic:function(b,a){this.__italic=b===null?null:b?"italic":$[53]},_applyDecoration:function(b,a){this.__decoration=b===null?null:b},render:function(a){a.setStyleProperty("fontFamily",this.__family);a.setStyleProperty($[173],this.__size);a.setStyleProperty("fontWeight",this.__bold);a.setStyleProperty("fontStyle",this.__italic);a.setStyleProperty($[283],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?$[426]+this.__decoration+";":"")},toCss:function(){return(this.getItalic()?"italic ":"")+(this.getBold()?"bold ":"")+(this.__size?this.getSize()+"px ":"")+(this.__family?this.__family.replace(/\"/g,"'"):"")}}});
+rwt.qx.Class.define("rwt.html.Border",{extend:rwt.qx.Object,construct:function(c,b,a,d){arguments.callee.base.call(this);this._colors=null;this._widths=null;this._styles=null;this._innerColors=[null,null,null,null];this._radii=[null,null,null,null];this._singleColor=null;this._singleStyle=null;this._setWidth(c);this._setStyle(b?b:"none");this._setColor(a?a:"");if(b===$[188]){if(d===undefined){throw new Error("Missing innerColors")}this._setInnerColor(d)}else{if(b===$[84]){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:[$[76],$[226],$[223],$[70]],_EDGECOLOR:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],_EDGESTYLE:[$[385],$[373],$[304],$[318]],_EDGEMOZCOLORS:["MozBorderTopColors","MozBorderRightColors","MozBorderBottomColors","MozBorderLeftColors"],_BORDERRADII:rwt.util.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:rwt.util.Variant.select($[0],{gecko:function(c){var d=rwt.html.Border;var b=c._style;for(var a=0;a<4;a++){b[d._EDGEMOZCOLORS[a]]=""}},"default":function(c){var d=rwt.html.Border;var a=c._innerStyle;if(a){for(var b=0;b<4;b++){a[d._EDGEWIDTH[b]]="";a[d._EDGESTYLE[b]]="";a[d._EDGECOLOR[b]]=""}}}})},members:{_setColor:function(a){if(typeof a===$[10]){this._singleColor=a}this._colors=this._normalizeValue(a)},_setWidth:function(a){this._widths=this._normalizeValue(a)},_setStyle:function(a){if(typeof a===$[10]){this._singleStyle=a;if(a===$[188]||a===$[84]){this._styles=this._normalizeValue($[73])}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()===$[188]){this._renderComplexBorder(a)}else{if(this.getStyle()===$[84]){this._renderRoundedBorder(a)}else{this._renderSimpleBorder(a)}}},renderElement:function(a){if(this.getStyle()===$[188]||this.getStyle()===$[84]){throw new Error("Rendering complex or rounded border on elements currently unsupported")}this._renderSimpleBorderStyle(a.style)},_renderSimpleBorder:function(a){rwt.html.Border._resetComplexBorder(a);rwt.html.Border._resetRadii(a);this._renderSimpleBorderStyle(a._style)},_renderSimpleBorderStyle:function(b){var c=rwt.html.Border;for(var a=0;a<4;a++){b[c._EDGEWIDTH[a]]=(this._widths[a]||0)+"px";b[c._EDGESTYLE[a]]=this._styles[a]||"none";b[c._EDGECOLOR[a]]=this._colors[a]||""}},_renderComplexBorder:rwt.util.Variant.select($[0],{gecko:function(c){var d=rwt.html.Border;d._resetRadii(c);var b=c._style;for(var a=0;a<4;a++){b[d._EDGEWIDTH[a]]=(this._widths[a]||0)+"px";b[d._EDGECOLOR[a]]=this._colors[a]||"";if(this._widths[a]===2){b[d._EDGESTYLE[a]]=$[73];b[d._EDGEMOZCOLORS[a]]=this._colors[a]+" "+this._innerColors[a]}else{b[d._EDGESTYLE[a]]=this._styles[a]||"none";b[d._EDGEMOZCOLORS[a]]=""}}},"default":function(d){var e=rwt.html.Border;e._resetRadii(d);var c=d._style;var a=d._innerStyle;for(var b=0;b<4;b++){if(this._widths[b]===2){if(!a){d.prepareEnhancedBorder();a=d._innerStyle}c[e._EDGEWIDTH[b]]="1px";c[e._EDGESTYLE[b]]=$[73];c[e._EDGECOLOR[b]]=this._colors[b]||"";a[e._EDGEWIDTH[b]]="1px";a[e._EDGESTYLE[b]]=$[73];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=rwt.html.Border;this._renderSimpleBorder(c);var b=c._style;for(var a=0;a<4;a++){b[d._BORDERRADII[a]]=this._radii[a]+"px"}}}});
+rwt.qx.Class.define("rwt.html.Font",{extend:rwt.qx.Object,construct:function(a,b){arguments.callee.base.call(this);if(a!==undefined){this.setSize(a)}if(b!==undefined){this.setFamily(b)}},statics:{_fontPool:{},fromString:function(g){var b=new rwt.html.Font();var f=g.split(/\s+/);var d=[];for(var e=0;e<f.length;e++){var c=f[e];switch(c){case"bold":b.setBold(true);break;case"italic":b.setItalic(true);break;case $[311]:b.setDecoration($[311]);break;default:var a=parseInt(c,10);if(a==c||rwt.util.Strings.contains(c,"px")){b.setSize(a)}else{d.push(c)}break}}if(d.length>0){b.setFamily(d)}return b},fromArray:function(a){var d=a[0];var f=a[1];var e=a[2];var c=a[3];var g=d+f+e+c;var b=this._fontPool[g];if(!b){b=new rwt.html.Font(f,d);b.setBold(e);b.setItalic(c);this._fontPool[g]=b}return b},fromConfig:function(b){var a=new rwt.html.Font();a.set(b);return a},reset:function(a){a.removeStyleProperty("fontFamily");a.removeStyleProperty($[173]);a.removeStyleProperty("fontWeight");a.removeStyleProperty("fontStyle");a.removeStyleProperty($[283])},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:$[18],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:[$[311],"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":$[53]},_applyItalic:function(b,a){this.__italic=b===null?null:b?"italic":$[53]},_applyDecoration:function(b,a){this.__decoration=b===null?null:b},render:function(a){a.setStyleProperty("fontFamily",this.__family);a.setStyleProperty($[173],this.__size);a.setStyleProperty("fontWeight",this.__bold);a.setStyleProperty("fontStyle",this.__italic);a.setStyleProperty($[283],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?$[427]+this.__decoration+";":"")},toCss:function(){return(this.getItalic()?"italic ":"")+(this.getBold()?"bold ":"")+(this.__size?this.getSize()+"px ":"")+(this.__family?this.__family.replace(/\"/g,"'"):"")}}});
rwt.qx.Class.define($[483],{extend:rwt.qx.Target,construct:function(a){arguments.callee.base.call(this);if(a!=null){this._attachedWidget=a}},statics:{mouseFocus:false,blockFocus:false},members:{getAttachedWidget:function(){return this._attachedWidget},_onkeyevent:function(a,d){if(d.getKeyIdentifier()!="Tab"){return}d.stopPropagation();d.preventDefault();rwt.widgets.util.FocusHandler.mouseFocus=false;var c=this.getAttachedWidget().getFocusedChild();if(!d.isShiftPressed()){var b=c?this.getWidgetAfter(a,c):this.getFirstWidget(a)}else{var b=c?this.getWidgetBefore(a,c):this.getLastWidget(a)}if(b){b.setFocused(true);b._ontabfocus()}},compareTabOrder:function(f,d){if(f==d){return 0}var h=f.getTabIndex();var g=d.getTabIndex();if(h!=g){return h-g}var j=rwt.html.Location.getTop(f.getElement());var i=rwt.html.Location.getTop(d.getElement());if(j!=i){return j-i}var b=rwt.html.Location.getLeft(f.getElement());var a=rwt.html.Location.getLeft(d.getElement());if(b!=a){return b-a}var e=f.getZIndex();var c=d.getZIndex();if(e!=c){return e-c}return 0},getFirstWidget:function(a){return this._getFirst(a,null)},getLastWidget:function(a){return this._getLast(a,null)},getWidgetAfter:function(b,a){if(b==a){return this.getFirstWidget(b)}if(a.getAnonymous()){a=a.getParent()}if(a==null){return[]}var c=[];this._getAllAfter(b,a,c);c.sort(this.compareTabOrder);return c.length>0?c[0]:this.getFirstWidget(b)},getWidgetBefore:function(c,b){if(c==b){return this.getLastWidget(c)}if(b.getAnonymous()){b=b.getParent()}if(b==null){return[]}var d=[];this._getAllBefore(c,b,d);d.sort(this.compareTabOrder);var a=d.length;return a>0?d[a-1]:this.getLastWidget(c)},_getAllAfter:function(e,f,b){var d=e.getChildren();var g;var a=d.length||0;for(var c=0;c<a;c++){g=d[c];if(g.isDisposed()||!(g instanceof rwt.widgets.base.Parent)&&!(g instanceof rwt.widgets.base.Terminator)){continue}if(g.isFocusable()&&g.getTabIndex()>0&&this.compareTabOrder(f,g)<0){b.push(d[c])}if(!g.isFocusRoot()&&g instanceof rwt.widgets.base.Parent){this._getAllAfter(g,f,b)}}},_getAllBefore:function(e,f,b){var d=e.getChildren();var g;var a=d.length;for(var c=0;c<a;c++){g=d[c];if(!(g instanceof rwt.widgets.base.Parent)&&!(g instanceof rwt.widgets.base.Terminator)){continue}if(g.isFocusable()&&g.getTabIndex()>0&&this.compareTabOrder(f,g)>0){b.push(g)}if(!g.isFocusRoot()&&g instanceof rwt.widgets.base.Parent){this._getAllBefore(g,f,b)}}},_getFirst:function(d,f){var c=d.getChildren();var e;var a=c.length;for(var b=0;b<a;b++){e=c[b];if(!(e instanceof rwt.widgets.base.Parent)&&!(e instanceof rwt.widgets.base.Terminator)){continue}if(e.isFocusable()&&e.getTabIndex()>0){if(f==null||this.compareTabOrder(e,f)<0){f=e}}if(!e.isFocusRoot()&&e instanceof rwt.widgets.base.Parent){f=this._getFirst(e,f)}}return f},_getLast:function(e,b){var d=e.getChildren();var f;var a=d.length;for(var c=0;c<a;c++){f=d[c];if(!(f instanceof rwt.widgets.base.Parent)&&!(f instanceof rwt.widgets.base.Terminator)){continue}if(f.isFocusable()&&f.getTabIndex()>0){if(b==null||this.compareTabOrder(f,b)>0){b=f}}if(!f.isFocusRoot()&&f instanceof rwt.widgets.base.Parent){b=this._getLast(f,b)}}return b}},destruct:function(){this._disposeFields("_attachedWidget")}});
rwt.qx.Class.define("rwt.html.Location",{statics:{__style:function(b,a){return rwt.html.Style.get(b,a,rwt.html.Style.COMPUTED_MODE,false)},__num:function(b,a){return parseInt(rwt.html.Style.get(b,a,rwt.html.Style.COMPUTED_MODE,false),10)||0},__computeScroll:function(b){var e=0,d=0;if(b.getBoundingClientRect){var c=rwt.html.Nodes.getWindow(b);if(!rwt.client.Client.isMobileSafari()){e-=rwt.html.Viewport.getScrollLeft(c);d-=rwt.html.Viewport.getScrollTop(c)}}else{var a=rwt.html.Nodes.getDocument(b).body;b=b.parentNode;while(b&&b!=a){e+=b.scrollLeft;d+=b.scrollTop;b=b.parentNode}}return{left:Math.ceil(e),top:Math.ceil(d)}},__computeBody:rwt.util.Variant.select($[0],{mshtml:function(b){var e=rwt.html.Nodes.getDocument(b);var a=e.body;var d=a.offsetLeft;var c=a.offsetTop;d-=this.__num(a,$[70]);c-=this.__num(a,$[76]);if(e.compatMode===$[222]){d+=this.__num(a,$[161]);c+=this.__num(a,$[158])}return{left:Math.ceil(d),top:Math.ceil(c)}},webkit:function(b){var e=rwt.html.Nodes.getDocument(b);var a=e.body;var d=a.offsetLeft;var c=a.offsetTop;d+=this.__num(a,$[70]);c+=this.__num(a,$[76]);if(e.compatMode===$[222]){d+=this.__num(a,$[161]);c+=this.__num(a,$[158])}return{left:Math.ceil(d),top:Math.ceil(c)}},gecko:function(b){var a=rwt.html.Nodes.getDocument(b).body;var d=a.offsetLeft;var c=a.offsetTop;if(rwt.widgets.base.ClientDocument.BOXSIZING!==$[260]){d+=this.__num(a,$[70]);c+=this.__num(a,$[76]);if(!b.getBoundingClientRect){var e;while(b){if(this.__style(b,$[132])===$[15]||this.__style(b,$[132])===$[138]){e=true;break}b=b.offsetParent}if(!e){d+=this.__num(a,$[70]);c+=this.__num(a,$[76])}}}return{left:Math.ceil(d),top:Math.ceil(c)}},"default":function(b){var a=rwt.html.Nodes.getDocument(b).body;var d=a.offsetLeft;var c=a.offsetTop;return{left:Math.ceil(d),top:Math.ceil(c)}}}),__computeOffset:rwt.util.Variant.select($[0],{"mshtml|newmshtml|webkit|opera":function(c){var f=rwt.html.Nodes.getDocument(c);if(c.getBoundingClientRect){var b=c.getBoundingClientRect();var e=b.left;var d=b.top}else{var e=c.offsetLeft;var d=c.offsetTop;c=c.offsetParent;var a=f.body;while(c&&c!=a){e+=c.offsetLeft;d+=c.offsetTop;e+=this.__num(c,$[70]);d+=this.__num(c,$[76]);c=c.offsetParent}}return{left:Math.ceil(e),top:Math.ceil(d)}},gecko:function(d){if(d.getBoundingClientRect){var c=d.getBoundingClientRect();var f=Math.round(c.left);var e=Math.round(c.top)}else{var f=0;var e=0;var a=rwt.html.Nodes.getDocument(d).body;var b=rwt.widgets.base.ClientDocument.BOXSIZING;if(b!==$[260]){f-=this.__num(d,$[70]);e-=this.__num(d,$[76])}while(d&&d!==a){f+=d.offsetLeft;e+=d.offsetTop;if(b!==$[260]){f+=this.__num(d,$[70]);e+=this.__num(d,$[76])}if(d.parentNode&&this.__style(d.parentNode,$[63])!=$[219]){f+=this.__num(d.parentNode,$[70]);e+=this.__num(d.parentNode,$[76])}d=d.offsetParent}}return{left:Math.ceil(f),top:Math.ceil(e)}},"default":function(b){var d=0;var c=0;var a=rwt.html.Nodes.getDocument(b).body;while(b&&b!==a){d+=b.offsetLeft;c+=b.offsetTop;b=b.offsetParent}return{left:Math.ceil(d),top:Math.ceil(c)}}}),get:function(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==$[136]||f==$[21]){var a=rwt.html.Overflow.getX(d);if(a==$[21]||a=="auto"){j+=d.scrollWidth-d.offsetWidth+this.__num(d,$[70])+this.__num(d,$[226])}var k=rwt.html.Overflow.getY(d);if(k==$[21]||k=="auto"){b+=d.scrollHeight-d.offsetHeight+this.__num(d,$[76])+this.__num(d,$[223])}}if(f===$[136]){c+=this.__num(d,$[185]);h+=this.__num(d,$[162]);j-=this.__num(d,$[169]);b-=this.__num(d,$[181])}if(f===$[136]||f===$[21]){c-=d.scrollLeft;h-=d.scrollTop;j-=d.scrollLeft;b-=d.scrollTop}if(f===$[136]||f===$[21]||f===$[125]){c+=this.__num(d,$[70]);h+=this.__num(d,$[76]);j-=this.__num(d,$[226]);b-=this.__num(d,$[223])}if(f==="margin"){c-=this.__num(d,$[161]);h-=this.__num(d,$[158]);j+=this.__num(d,$[202]);b+=this.__num(d,$[238])}}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}}}});
-rwt.qx.Class.define($[511],{statics:{__hints:{names:{"float":rwt.client.Client.isMshtml()?"styleFloat":"cssFloat",boxSizing:rwt.client.Client.isGecko()?$[500]:"boxSizing"},mshtmlPixel:{width:"pixelWidth",height:$[437],left:"pixelLeft",right:"pixelRight",top:"pixelTop",bottom:$[448]}},BROWSER_PREFIX:rwt.util.Variant.select($[0],{gecko:"-moz-",webkit:"-webkit-","default":""}),COMPUTED_MODE:1,CASCADED_MODE:2,LOCAL_MODE:3,get:rwt.util.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($[451]+a+$[557])}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($[388]);default:var e=rwt.html.Nodes.getDocument(b);var c=e.defaultView.getComputedStyle(b,null);return c?c[a]:null}}}),getStyleProperty:rwt.util.Objects.select((document.defaultView&&document.defaultView.getComputedStyle)?$[420]:"noComputed",{hasComputed:function(b,c){try{return b.ownerDocument.defaultView.getComputedStyle(b,"")[c]}catch(a){throw new Error($[190]+b+"["+c+"]: "+a)}},noComputed:rwt.util.Variant.select($[0],{mshtml:function(b,c){try{return b.currentStyle[c]}catch(a){throw new Error($[190]+b+"["+c+"]: "+a)}},"default":function(b,c){try{return b.style[c]}catch(a){throw new Error($[190]+b+"["+c+"]")}}})}),getStyleSize:function(a,b){return parseInt(rwt.html.Style.getStyleProperty(a,b),10)||0},getMarginLeft:function(a){return rwt.html.Style.getStyleSize(a,$[161])},getMarginTop:function(a){return rwt.html.Style.getStyleSize(a,$[158])},getMarginRight:function(a){return rwt.html.Style.getStyleSize(a,$[202])},getMarginBottom:function(a){return rwt.html.Style.getStyleSize(a,$[238])},getPaddingLeft:function(a){return rwt.html.Style.getStyleSize(a,$[185])},getPaddingTop:function(a){return rwt.html.Style.getStyleSize(a,$[162])},getPaddingRight:function(a){return rwt.html.Style.getStyleSize(a,$[169])},getPaddingBottom:function(a){return rwt.html.Style.getStyleSize(a,$[181])},getBorderLeft:function(a){return rwt.html.Style.getStyleProperty(a,$[318])=="none"?0:rwt.html.Style.getStyleSize(a,$[70])},getBorderTop:function(a){return rwt.html.Style.getStyleProperty(a,$[384])=="none"?0:rwt.html.Style.getStyleSize(a,$[76])},getBorderRight:function(a){return rwt.html.Style.getStyleProperty(a,$[372])=="none"?0:rwt.html.Style.getStyleSize(a,$[226])},getBorderBottom:function(a){return rwt.html.Style.getStyleProperty(a,$[304])=="none"?0:rwt.html.Style.getStyleSize(a,$[223])},setBackgroundImage:(function(){var a;if(rwt.client.Client.isMshtml()&&rwt.client.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:rwt.util.Variant.select($[0],{mshtml:function(c,b){if(b==null||b>=1||b<0){this.removeCssFilter(c)}else{var a=$[365]+Math.round(b*100)+")";this.setStyleProperty(c,$[98],a)}},gecko:function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[198]);this.removeStyleProperty(c,$[55])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[198],a);this.setStyleProperty(c,$[55],a)}},"default":function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[55])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[55],a)}}}),setBackgroundGradient:rwt.util.Variant.select($[0],{webkit:function(g,f){if(f){var d=["linear",$[357]];if(f.horizontal===true){d.push($[306])}else{d.push($[328])}for(var e=0;e<f.length;e++){var a=f[e][0];var b=f[e][1];d.push($[432]+a+","+b+")")}var c=this.BROWSER_PREFIX+"gradient( "+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}},gecko: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+$[258]+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}},"default":function(g,f){if(f){var d=[f.horizontal===true?"90deg":"180deg"];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=$[258]+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}}}),setBoxShadow:function(e,c){var d;if(rwt.client.Client.isWebkit()&&!rwt.client.Client.isMobileChrome()){d=this.BROWSER_PREFIX+"box-shadow"}else{d=$[321]}if(c){var a=c[0]?"inset ":"";a+=c.slice(1,4).join("px ")+"px";var b=rwt.util.Colors.stringToRgb(c[5]);b.push(c[6]);a+=" rgba("+b.join()+")";this.setStyleProperty(e,d,a)}else{this.removeStyleProperty(e,d)}},setTextShadow:rwt.util.Variant.select($[0],{"default":function(e,c){var d="textShadow";if(c){var a=c.slice(1,4).join("px ")+"px";var b=rwt.util.Colors.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=rwt.client.Client.getVersion();var b=rwt.client.Client.getEngine()===$[123]&&a>=1.9;var c=rwt.client.Client.getBrowser()===$[179]&&a>=530;if(b||c){this.setStyleProperty(e,$[265],d);e.setAttribute($[265],d)}else{this._passEventsThrough(e,d)}},setStyleProperty:function(c,b,a){if(c instanceof rwt.widgets.base.Widget){c.setStyleProperty(b,a)}else{c.style[b]=a}},removeStyleProperty:function(b,a){if(b instanceof rwt.widgets.base.Widget){b.removeStyleProperty(a)}else{b.style[a]=""}},removeCssFilter:function(c){var a=null;if(c instanceof rwt.widgets.base.Widget){if(c.isCreated()){a=c.getElement()}else{c.removeStyleProperty($[98])}}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,$[79],a);this.setStyleProperty(c,$[130],$[152]);this.setStyleProperty(c,$[105],$[24])},_setCssFilterImage:function(c,b){if(b){var a=$[309]+b+$[299];this.setStyleProperty(c,$[98],a)}else{this.removeCssFilter(c)}},_passEventsThrough:function(e,d){var f=rwt.html.EventRegistration;var b=rwt.event.EventHandler._mouseEventTypes;var c=this._passEventThroughHandler;if(d==="none"){this.setStyleProperty(e,$[131],$[67]);for(var a=0;a<b.length;a++){f.addEventListener(e,b[a],c)}}else{}},_passEventThroughHandler:function(){var a=rwt.event.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!==$[29]&&b!==$[3]&&b!==$[6]){if(b===$[1]){rwt.html.Style._refireEvent(e,$[3],c)}rwt.html.Style._refireEvent(e,b,c);if(b===$[5]){rwt.html.Style._refireEvent(e,$[6],c)}}d.style.display=""},_refireEvent:rwt.util.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($[533]);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)}})}});
-rwt.qx.Class.define("rwt.html.Overflow",{statics:{getX:rwt.util.Variant.select($[0],{gecko:rwt.client.Client.getVersion()<1.8?function(a,b){var c=rwt.html.Style.get(a,$[63],b,false);if(c===$[333]){c=$[9]}return c}:function(a,b){return rwt.html.Style.get(a,$[100],b,false)},opera:rwt.client.Client.getVersion()<9.5?function(a,b){return rwt.html.Style.get(a,$[63],b,false)}:function(a,b){return rwt.html.Style.get(a,$[100],b,false)},"default":function(a,b){return rwt.html.Style.get(a,$[100],b,false)}}),getY:rwt.util.Variant.select($[0],{gecko:rwt.client.Client.getVersion()<1.8?function(a,b){var c=rwt.html.Style.get(a,$[63],b,false);if(c===$[333]){c=$[9]}return c}:function(a,b){return rwt.html.Style.get(a,$[101],b,false)},opera:rwt.client.Client.getVersion()<9.5?function(a,b){return rwt.html.Style.get(a,$[63],b,false)}:function(a,b){return rwt.html.Style.get(a,$[101],b,false)},"default":function(a,b){return rwt.html.Style.get(a,$[101],b,false)}})}});
+rwt.qx.Class.define($[511],{statics:{__hints:{names:{"float":rwt.client.Client.isMshtml()?"styleFloat":"cssFloat",boxSizing:rwt.client.Client.isGecko()?$[500]:"boxSizing"},mshtmlPixel:{width:"pixelWidth",height:$[438],left:"pixelLeft",right:"pixelRight",top:"pixelTop",bottom:$[449]}},BROWSER_PREFIX:rwt.util.Variant.select($[0],{gecko:"-moz-",webkit:"-webkit-","default":""}),COMPUTED_MODE:1,CASCADED_MODE:2,LOCAL_MODE:3,get:rwt.util.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($[452]+a+$[557])}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($[389]);default:var e=rwt.html.Nodes.getDocument(b);var c=e.defaultView.getComputedStyle(b,null);return c?c[a]:null}}}),getStyleProperty:rwt.util.Objects.select((document.defaultView&&document.defaultView.getComputedStyle)?$[421]:"noComputed",{hasComputed:function(b,c){try{return b.ownerDocument.defaultView.getComputedStyle(b,"")[c]}catch(a){throw new Error($[190]+b+"["+c+"]: "+a)}},noComputed:rwt.util.Variant.select($[0],{mshtml:function(b,c){try{return b.currentStyle[c]}catch(a){throw new Error($[190]+b+"["+c+"]: "+a)}},"default":function(b,c){try{return b.style[c]}catch(a){throw new Error($[190]+b+"["+c+"]")}}})}),getStyleSize:function(a,b){return parseInt(rwt.html.Style.getStyleProperty(a,b),10)||0},getMarginLeft:function(a){return rwt.html.Style.getStyleSize(a,$[161])},getMarginTop:function(a){return rwt.html.Style.getStyleSize(a,$[158])},getMarginRight:function(a){return rwt.html.Style.getStyleSize(a,$[202])},getMarginBottom:function(a){return rwt.html.Style.getStyleSize(a,$[238])},getPaddingLeft:function(a){return rwt.html.Style.getStyleSize(a,$[185])},getPaddingTop:function(a){return rwt.html.Style.getStyleSize(a,$[162])},getPaddingRight:function(a){return rwt.html.Style.getStyleSize(a,$[169])},getPaddingBottom:function(a){return rwt.html.Style.getStyleSize(a,$[181])},getBorderLeft:function(a){return rwt.html.Style.getStyleProperty(a,$[318])=="none"?0:rwt.html.Style.getStyleSize(a,$[70])},getBorderTop:function(a){return rwt.html.Style.getStyleProperty(a,$[385])=="none"?0:rwt.html.Style.getStyleSize(a,$[76])},getBorderRight:function(a){return rwt.html.Style.getStyleProperty(a,$[373])=="none"?0:rwt.html.Style.getStyleSize(a,$[226])},getBorderBottom:function(a){return rwt.html.Style.getStyleProperty(a,$[304])=="none"?0:rwt.html.Style.getStyleSize(a,$[223])},setBackgroundImage:(function(){var a;if(rwt.client.Client.isMshtml()&&rwt.client.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:rwt.util.Variant.select($[0],{mshtml:function(c,b){if(b==null||b>=1||b<0){this.removeCssFilter(c)}else{var a=$[366]+Math.round(b*100)+")";this.setStyleProperty(c,$[98],a)}},gecko:function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[198]);this.removeStyleProperty(c,$[55])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[198],a);this.setStyleProperty(c,$[55],a)}},"default":function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[55])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[55],a)}}}),setBackgroundGradient:rwt.util.Variant.select($[0],{webkit:function(g,f){if(f){var d=["linear",$[358]];if(f.horizontal===true){d.push($[306])}else{d.push($[329])}for(var e=0;e<f.length;e++){var a=f[e][0];var b=f[e][1];d.push($[433]+a+","+b+")")}var c=this.BROWSER_PREFIX+"gradient( "+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}},gecko: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+$[258]+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}},"default":function(g,f){if(f){var d=[f.horizontal===true?"90deg":"180deg"];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=$[258]+d.join()+")";this.setStyleProperty(g,$[61],c)}else{this.removeStyleProperty(g,$[61])}}}),setBoxShadow:function(e,c){var d;if(rwt.client.Client.isWebkit()&&!rwt.client.Client.isMobileChrome()){d=this.BROWSER_PREFIX+"box-shadow"}else{d=$[321]}if(c){var a=c[0]?"inset ":"";a+=c.slice(1,4).join("px ")+"px";var b=rwt.util.Colors.stringToRgb(c[5]);b.push(c[6]);a+=" rgba("+b.join()+")";this.setStyleProperty(e,d,a)}else{this.removeStyleProperty(e,d)}},setTextShadow:rwt.util.Variant.select($[0],{"default":function(e,c){var d="textShadow";if(c){var a=c.slice(1,4).join("px ")+"px";var b=rwt.util.Colors.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=rwt.client.Client.getVersion();var b=rwt.client.Client.getEngine()===$[123]&&a>=1.9;var c=rwt.client.Client.getBrowser()===$[179]&&a>=530;if(b||c){this.setStyleProperty(e,$[265],d);e.setAttribute($[265],d)}else{this._passEventsThrough(e,d)}},setStyleProperty:function(c,b,a){if(c instanceof rwt.widgets.base.Widget){c.setStyleProperty(b,a)}else{c.style[b]=a}},removeStyleProperty:function(b,a){if(b instanceof rwt.widgets.base.Widget){b.removeStyleProperty(a)}else{b.style[a]=""}},removeCssFilter:function(c){var a=null;if(c instanceof rwt.widgets.base.Widget){if(c.isCreated()){a=c.getElement()}else{c.removeStyleProperty($[98])}}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,$[79],a);this.setStyleProperty(c,$[130],$[152]);this.setStyleProperty(c,$[105],$[24])},_setCssFilterImage:function(c,b){if(b){var a=$[309]+b+$[299];this.setStyleProperty(c,$[98],a)}else{this.removeCssFilter(c)}},_passEventsThrough:function(e,d){var f=rwt.html.EventRegistration;var b=rwt.event.EventHandler._mouseEventTypes;var c=this._passEventThroughHandler;if(d==="none"){this.setStyleProperty(e,$[131],$[67]);for(var a=0;a<b.length;a++){f.addEventListener(e,b[a],c)}}else{}},_passEventThroughHandler:function(){var a=rwt.event.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!==$[29]&&b!==$[3]&&b!==$[6]){if(b===$[1]){rwt.html.Style._refireEvent(e,$[3],c)}rwt.html.Style._refireEvent(e,b,c);if(b===$[5]){rwt.html.Style._refireEvent(e,$[6],c)}}d.style.display=""},_refireEvent:rwt.util.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($[533]);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)}})}});
+rwt.qx.Class.define("rwt.html.Overflow",{statics:{getX:rwt.util.Variant.select($[0],{gecko:rwt.client.Client.getVersion()<1.8?function(a,b){var c=rwt.html.Style.get(a,$[63],b,false);if(c===$[334]){c=$[9]}return c}:function(a,b){return rwt.html.Style.get(a,$[100],b,false)},opera:rwt.client.Client.getVersion()<9.5?function(a,b){return rwt.html.Style.get(a,$[63],b,false)}:function(a,b){return rwt.html.Style.get(a,$[100],b,false)},"default":function(a,b){return rwt.html.Style.get(a,$[100],b,false)}}),getY:rwt.util.Variant.select($[0],{gecko:rwt.client.Client.getVersion()<1.8?function(a,b){var c=rwt.html.Style.get(a,$[63],b,false);if(c===$[334]){c=$[9]}return c}:function(a,b){return rwt.html.Style.get(a,$[101],b,false)},opera:rwt.client.Client.getVersion()<9.5?function(a,b){return rwt.html.Style.get(a,$[63],b,false)}:function(a,b){return rwt.html.Style.get(a,$[101],b,false)},"default":function(a,b){return rwt.html.Style.get(a,$[101],b,false)}})}});
rwt.qx.Class.define("rwt.html.ImageManager",{type:$[37],extend:rwt.qx.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")}});
rwt.qx.Class.define("rwt.html.Offset",{statics:{getLeft:rwt.util.Variant.select($[0],{gecko:function(c){var f=c.offsetLeft;var b=c.parentNode;var e=rwt.html.Style.getStyleProperty(c,$[132]);var d=rwt.html.Style.getStyleProperty(b,$[132]);if(e!=$[15]&&e!=$[138]){f-=rwt.html.Style.getBorderLeft(b)}if(d!=$[15]&&d!=$[138]){while(b){b=b.parentNode;if(!b||typeof b.tagName!==$[10]){break}var a=rwt.html.Style.getStyleProperty(b,$[132]);if(a==$[15]||a==$[138]){f-=rwt.html.Style.getBorderLeft(b)+rwt.html.Style.getPaddingLeft(b);break}}}return f},"default":function(a){return a.offsetLeft}}),getTop:rwt.util.Variant.select($[0],{gecko:function(c){var f=c.offsetTop;var b=c.parentNode;var e=rwt.html.Style.getStyleProperty(c,$[132]);var d=rwt.html.Style.getStyleProperty(b,$[132]);if(e!=$[15]&&e!=$[138]){f-=rwt.html.Style.getBorderTop(b)}if(d!=$[15]&&d!=$[138]){while(b){b=b.parentNode;if(!b||typeof b.tagName!==$[10]){break}var a=rwt.html.Style.getStyleProperty(b,$[132]);if(a==$[15]||a==$[138]){f-=rwt.html.Style.getBorderTop(b)+rwt.html.Style.getPaddingTop(b);break}}}return f},"default":function(a){return a.offsetTop}})}});
-rwt.qx.Class.define("rwt.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(rwt.html.Style.getStyleProperty(g,$[63])){case $[21]:case"auto":case $[575]:d=true;break;default:switch(rwt.html.Style.getStyleProperty(g,$[100])){case $[21]: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(rwt.html.Style.getStyleProperty(f,$[63])){case $[21]:case"auto":case $[394]:e=true;break;default:switch(rwt.html.Style.getStyleProperty(f,$[101])){case $[21]: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}}});
-rwt.qx.Class.define("rwt.widgets.base.BoxLayout",{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setOrientation(a)}else{this.initOrientation()}},statics:{STR_REVERSED:"-reversed"},properties:{orientation:{check:[$[39],$[30]],init:$[39],apply:$[425],event:"changeOrientation"},spacing:{check:$[18],init:0,themeable:true,apply:$[548],event:$[531]},horizontalChildrenAlign:{check:["left",$[24],$[13]],init:"left",themeable:true,apply:$[498]},verticalChildrenAlign:{check:["top",$[46],$[28]],init:"top",themeable:true,apply:$[547]},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()==$[30]?new rwt.widgets.util.VerticalBoxLayoutImpl(this):new rwt.widgets.util.HorizontalBoxLayoutImpl(this)},_layoutHorizontal:false,_layoutVertical:false,_layoutMode:"left",isHorizontal:function(){return this._layoutHorizontal},isVertical:function(){return this._layoutVertical},getLayoutMode:function(){if(this._layoutMode==null){this._updateLayoutMode()}return this._layoutMode},_updateLayoutMode:function(){this._layoutMode=this._layoutVertical?this.getVerticalChildrenAlign():this.getHorizontalChildrenAlign();if(this.getReverseChildrenOrder()){this._layoutMode+=rwt.widgets.base.BoxLayout.STR_REVERSED}},_invalidateLayoutMode:function(){this._layoutMode=null},_applyOrientation:function(b,a){this._layoutHorizontal=b==$[39];this._layoutVertical=b==$[30];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();var e=this.getSpacing();var a=-e;var b=0;var d=c[b];while(d!=null){a+=d.getOuterWidth()+e;b++;d=c[b]}return a},_computeAccumulatedChildrenOuterHeight:function(){var c=this.getVisibleChildren(),e,a=-1,d=this.getSpacing(),b=-d;e=c[++a];while(e){b+=e.getOuterHeight()+d;e=c[++a]}return b},_recomputeChildrenStretchingX:function(){var b=this.getVisibleChildren(),c,a=-1;c=b[++a];while(c){if(c._recomputeStretchingX()&&c._recomputeBoxWidth()){c._recomputeOuterWidth()}c=b[++a]}},_recomputeChildrenStretchingY:function(){var b=this.getVisibleChildren(),c,a=-1;c=b[++a];while(c){if(c._recomputeStretchingY()&&c._recomputeBoxHeight()){c._recomputeOuterHeight()}c=b[++a]}}}});
+rwt.qx.Class.define("rwt.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(rwt.html.Style.getStyleProperty(g,$[63])){case $[21]:case"auto":case $[575]:d=true;break;default:switch(rwt.html.Style.getStyleProperty(g,$[100])){case $[21]: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(rwt.html.Style.getStyleProperty(f,$[63])){case $[21]:case"auto":case $[395]:e=true;break;default:switch(rwt.html.Style.getStyleProperty(f,$[101])){case $[21]: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}}});
+rwt.qx.Class.define("rwt.widgets.base.BoxLayout",{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setOrientation(a)}else{this.initOrientation()}},statics:{STR_REVERSED:"-reversed"},properties:{orientation:{check:[$[39],$[30]],init:$[39],apply:$[426],event:"changeOrientation"},spacing:{check:$[18],init:0,themeable:true,apply:$[548],event:$[531]},horizontalChildrenAlign:{check:["left",$[24],$[13]],init:"left",themeable:true,apply:$[498]},verticalChildrenAlign:{check:["top",$[46],$[28]],init:"top",themeable:true,apply:$[547]},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()==$[30]?new rwt.widgets.util.VerticalBoxLayoutImpl(this):new rwt.widgets.util.HorizontalBoxLayoutImpl(this)},_layoutHorizontal:false,_layoutVertical:false,_layoutMode:"left",isHorizontal:function(){return this._layoutHorizontal},isVertical:function(){return this._layoutVertical},getLayoutMode:function(){if(this._layoutMode==null){this._updateLayoutMode()}return this._layoutMode},_updateLayoutMode:function(){this._layoutMode=this._layoutVertical?this.getVerticalChildrenAlign():this.getHorizontalChildrenAlign();if(this.getReverseChildrenOrder()){this._layoutMode+=rwt.widgets.base.BoxLayout.STR_REVERSED}},_invalidateLayoutMode:function(){this._layoutMode=null},_applyOrientation:function(b,a){this._layoutHorizontal=b==$[39];this._layoutVertical=b==$[30];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();var e=this.getSpacing();var a=-e;var b=0;var d=c[b];while(d!=null){a+=d.getOuterWidth()+e;b++;d=c[b]}return a},_computeAccumulatedChildrenOuterHeight:function(){var c=this.getVisibleChildren(),e,a=-1,d=this.getSpacing(),b=-d;e=c[++a];while(e){b+=e.getOuterHeight()+d;e=c[++a]}return b},_recomputeChildrenStretchingX:function(){var b=this.getVisibleChildren(),c,a=-1;c=b[++a];while(c){if(c._recomputeStretchingX()&&c._recomputeBoxWidth()){c._recomputeOuterWidth()}c=b[++a]}},_recomputeChildrenStretchingY:function(){var b=this.getVisibleChildren(),c,a=-1;c=b[++a];while(c){if(c._recomputeStretchingY()&&c._recomputeBoxHeight()){c._recomputeOuterHeight()}c=b[++a]}}}});
rwt.qx.Class.define("rwt.widgets.util.VerticalBoxLayoutImpl",{extend:rwt.widgets.util.LayoutImpl,properties:{enableFlexSupport:{check:$[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-rwt.util.Numbers.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{rwt.util.Arrays.removeAt(e,q);m._computedHeightFlexValue=Math.round(m._computedHeightFlexValue);n+=Math.round(m._computedHeightFlexValue+a)}}else{a=rwt.util.Validation.isValidNumber(m.getMinHeightValue())?m._computedHeightFlexValue-m.getMinHeightValue():m._computedHeightFlexValue;if(a>0){m._allocationLoops=Math.floor(a/m._computedHeightParsed)}else{rwt.util.Arrays.removeAt(e,q);m._computedHeightFlexValue=Math.round(m._computedHeightFlexValue);n+=Math.round(m._computedHeightFlexValue-a)}}}while(b!==0&&c>0){c=e.length;k=Infinity;l=0;for(q=0;q<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;rwt.util.Arrays.removeAt(e,q)}else{if(b===0){m._computedHeightFlexValue=Math.round(m._computedHeightFlexValue);n+=m._computedHeightFlexValue;delete m._allocationLoops}else{m._allocationLoops-=k}}}}}}m._computedHeightFlexValue+=s-n},invalidateChildrenFlexHeight:function(){delete this._childrenFlexHeightComputed},computeChildrenNeededHeight:function(){var a=this.getWidget();return rwt.widgets.util.LayoutImpl.prototype.computeChildrenNeededHeight_sum.call(this)+((a.getVisibleChildrenLength()-1)*a.getSpacing())},updateSelfOnChildOuterHeightChange:function(a){this.getWidget()._invalidateAccumulatedChildrenOuterHeight()},updateChildOnInnerWidthChange:function(c){var a=c._recomputePercentX();var b=c._recomputeStretchingX();if((c.getHorizontalAlign()||this.getWidget().getHorizontalChildrenAlign())==$[24]){c.addToLayoutChanges($[128])}return a||b},updateChildOnInnerHeightChange:function(c){if(this.getWidget().getVerticalChildrenAlign()==$[46]){c.addToLayoutChanges($[110])}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($[110])}if(a.horizontalChildrenAlign){c._addChildrenToLayoutQueue($[128])}if(a.stretchChildrenOrthogonalAxis){d=true}if(d){c._recomputeChildrenStretchingX();c._addChildrenToLayoutQueue($[25])}if(b){c._recomputeChildrenStretchingY();c._addChildrenToLayoutQueue($[17])}return true},updateChildrenOnRemoveChild:function(g,c){var b=this.getWidget();var e=b.getVisibleChildren();var a=e.length;var f;var d=-1;if(this.getEnableFlexSupport()){for(var d=0;d<a;d++){f=e[d];if(f.getHasFlexY()){c=Math.min(c,d);break}}d=-1}switch(b.getLayoutMode()){case $[28]:case $[221]:while((f=e[++d])&&d<c){f.addToLayoutChanges($[110])}break;case $[46]:case $[236]:f=e[++d];while(f){f.addToLayoutChanges($[110]);f=e[++d]}break;default:d+=c;f=e[++d];while(f){f.addToLayoutChanges($[110]);f=e[++d]}}},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($[110])}},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 $[28]:case $[221]: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 $[236]:e=-1;h=f[++e];while(h){b._layoutChild(h);h=f[++e]}break;default:e=-1;var g=false;h=f[++e];while(h){if(g||d[h.toHashCode()]){b._layoutChild(h);g=true}h=f[++e]}}},layoutChild:function(b,a){this.layoutChild_sizeX(b,a);this.layoutChild_sizeY(b,a);this.layoutChild_sizeLimitX(b,a);this.layoutChild_sizeLimitY(b,a);this.layoutChild_locationX(b,a);this.layoutChild_locationY(b,a);this.layoutChild_marginX(b,a);this.layoutChild_marginY(b,a)},layoutChild_sizeX:rwt.util.Variant.select($[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:rwt.util.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 $[28]:case $[221]:var b=d.getPaddingBottom()+d.getAccumulatedChildrenOuterHeight()-e.getOuterHeight();break;case $[46]:case $[236]: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 $[28]:case $[221]: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 $[28]:case $[475]:case $[236]: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(rwt.client.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==$[24]?Math.round((c.getInnerWidth()-e.getOuterWidth())/2):0;if(d==$[13]){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)}}}});
rwt.qx.Class.define("rwt.util.Validation",{statics:{isValidNumber:function(a){return typeof a===$[31]&&!isNaN(a)},isValidString:function(a){return typeof a===$[10]&&a!==""}}});
rwt.qx.Class.define("rwt.widgets.util.HorizontalBoxLayoutImpl",{extend:rwt.widgets.util.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-rwt.util.Numbers.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{rwt.util.Arrays.removeAt(e,s);n._computedWidthFlexValue=Math.round(n._computedWidthFlexValue);o+=Math.round(n._computedWidthFlexValue+a)}}else{a=rwt.util.Validation.isValidNumber(n.getMinWidthValue())?n._computedWidthFlexValue-n.getMinWidthValue():n._computedWidthFlexValue;if(a>0){n._allocationLoops=Math.floor(a/n._computedWidthParsed)}else{rwt.util.Arrays.removeAt(e,s);n._computedWidthFlexValue=Math.round(n._computedWidthFlexValue);o+=Math.round(n._computedWidthFlexValue-a)}}}while(b!==0&&c>0){c=e.length;k=Infinity;m=0;for(s=0;s<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;rwt.util.Arrays.removeAt(e,s)}else{if(b===0){n._computedWidthFlexValue=Math.round(n._computedWidthFlexValue);o+=n._computedWidthFlexValue;delete n._allocationLoops}else{n._allocationLoops-=k}}}}}}n._computedWidthFlexValue+=d-o},invalidateChildrenFlexWidth:function(){delete this._childrenFlexWidthComputed},computeChildrenNeededWidth:function(){var a=this.getWidget();return rwt.widgets.util.LayoutImpl.prototype.computeChildrenNeededWidth_sum.call(this)+((a.getVisibleChildrenLength()-1)*a.getSpacing())},updateSelfOnChildOuterWidthChange:function(a){this.getWidget()._invalidateAccumulatedChildrenOuterWidth()},updateChildOnInnerWidthChange:function(c){if(this.getWidget().getHorizontalChildrenAlign()==$[24]){c.addToLayoutChanges($[128])}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($[110])}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($[128])}if(a.verticalChildrenAlign){c._addChildrenToLayoutQueue($[110])}if(a.stretchChildrenOrthogonalAxis){b=true}if(d){c._recomputeChildrenStretchingX();c._addChildrenToLayoutQueue($[25])}if(b){c._recomputeChildrenStretchingY();c._addChildrenToLayoutQueue($[17])}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 $[13]:case $[218]:while((f=e[++d])&&d<c){f.addToLayoutChanges($[128])}break;case $[24]:case $[231]:f=e[++d];while(f){f.addToLayoutChanges($[128]);f=e[++d]}break;default:d+=c;f=e[++d];while(f){f.addToLayoutChanges($[128]);f=e[++d]}}},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($[128])}},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 $[13]:case $[218]: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 $[24]:case $[231]:e=-1;h=f[++e];while(h){b._layoutChild(h);h=f[++e]}break;default:e=-1;var g=false;h=f[++e];while(h){if(g||d[h.toHashCode()]){b._layoutChild(h);g=true}h=f[++e]}}},layoutChild:function(b,a){this.layoutChild_sizeX(b,a);this.layoutChild_sizeY(b,a);this.layoutChild_sizeLimitX(b,a);this.layoutChild_sizeLimitY(b,a);this.layoutChild_locationX(b,a);this.layoutChild_locationY(b,a);this.layoutChild_marginX(b,a);this.layoutChild_marginY(b,a)},layoutChild_sizeX:rwt.util.Variant.select($[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:rwt.util.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 $[13]:case $[218]:var b=d.getPaddingRight()+d.getAccumulatedChildrenOuterWidth()-e.getOuterWidth();break;case $[24]:case $[231]: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 $[13]:case $[218]: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 $[13]:case $[465]:case $[231]: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(rwt.client.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==$[28]){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)}}}});
-rwt.qx.Class.define("rwt.widgets.base.Atom",{extend:rwt.widgets.base.BoxLayout,construct:function(c,e,d,a,b){arguments.callee.base.call(this);this.getLayoutImpl().setEnableFlexSupport(false);if(c!==undefined){this.setLabel(c)}if(rwt.qx.Class.isDefined($[397])&&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:$[39]},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:$[24]},verticalChildrenAlign:{refine:true,init:$[46]},spacing:{refine:true,init:4},label:{apply:"_applyLabel",nullable:true,dispose:true,check:"Label"},icon:{check:$[50],apply:$[343],nullable:true,themeable:true},disabledIcon:{check:$[50],apply:"_applyDisabledIcon",nullable:true,themeable:true},show:{init:"both",check:["both",$[59],"icon","none"],themeable:true,nullable:true,inheritable:true,apply:"_applyShow",event:"changeShow"},iconPosition:{init:"left",check:["top",$[13],$[28],"left"],themeable:true,apply:"_applyIconPosition"},iconWidth:{check:$[18],themeable:true,apply:"_applyIconWidth",nullable:true},iconHeight:{check:$[18],themeable:true,apply:"_applyIconHeight",nullable:true}},members:{_flashMode:false,_labelObject:null,_iconObject:null,_createLabel:function(){var a=this._labelObject=new rwt.widgets.base.Label(this.getLabel());a.setAnonymous(true);this.addAt(a,this._iconObject?1:0)},_createIcon:function(){if(this._flashMode&&rwt.qx.Class.isDefined($[397])){var b=this._iconObject=new qx.ui.embed.Flash(this.getIcon())}else{var b=this._iconObject=new rwt.widgets.base.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()){if(a){this._iconObject.setSource(a)}else{this._iconObject.resetSource()}}else{if(b){this._iconObject.setSource(b)}else{this._iconObject.resetSource()}}this._iconObject.setEnabled(true)}else{if(a){this._iconObject.setSource(a)}else{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 $[28]:this.setOrientation($[30]);this.setReverseChildrenOrder(b==$[28]);break;default:this.setOrientation($[39]);this.setReverseChildrenOrder(b==$[13]);break}},_applyShow:function(b,a){this._handleIcon();this._handleLabel()},_applyLabel:function(b,a){if(this._labelObject){if(b){this._labelObject.setText(b)}else{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 $[59]:case"both":case $[192]:this._labelIsVisible=!!this.getLabel();break;default:this._labelIsVisible=false}if(this._labelIsVisible){if(this._labelObject){this._labelObject.setDisplay(true)}else{this._createLabel()}}else{if(this._labelObject){this._labelObject.setDisplay(false)}}},_handleIcon:function(){switch(this.getShow()){case"icon":case"both":case $[192]:this._iconIsVisible=!!this.getIcon();break;default:this._iconIsVisible=false}if(this._iconIsVisible){if(this._iconObject){this._iconObject.setDisplay(true)}else{this._createIcon()}}else{if(this._iconObject){this._iconObject.setDisplay(false)}}}},destruct:function(){this._disposeObjects("_iconObject","_labelObject")}});
-rwt.remote.HandlerRegistry.add($[379],{factory:function(b){var c=rwt.remote.HandlerUtil.createStyleMap(b.style);c.MARKUP_ENABLED=b.markupEnabled;var a=new rwt.widgets.Label(c);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["text",$[164],$[16],$[310],"appearance","leftMargin","topMargin","rightMargin","bottomMargin",$[135]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({backgroundGradient:rwt.remote.HandlerUtil.getBackgroundGradientHandler()}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})});
-rwt.qx.Class.define("rwt.widgets.base.Label",{extend:rwt.widgets.base.Terminator,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setText(a)}this.initWidth();this.initHeight();this.initSelectable();this.initCursor();this.initWrap()},properties:{appearance:{refine:true,init:$[59]},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:$[378]},textAlign:{check:["left",$[24],$[13],"justify"],nullable:true,themeable:true,apply:$[382]},textOverflow:{check:$[2],init:true},mode:{check:["html","text","auto"],init:"auto"}},members:{_content:"",_applyTextAlign:function(b,a){if(b===null){this.removeStyleProperty($[211])}else{this.setStyleProperty($[211],b)}},_applyFont:function(b,a){this._styleFont(b)},_styleFont:function(a){this._invalidatePreferredInnerDimensions();if(a){a.render(this)}else{rwt.html.Font.reset(this)}},_applyTextColor:function(b,a){this._styleTextColor(b)},_styleTextColor:function(a){if(a){this.setStyleProperty($[64],a)}else{this.removeStyleProperty($[64])}},_applyWrap:function(b,a){if(b==null){this.removeStyleProperty("whiteSpace")}else{this.setStyleProperty("whiteSpace",b?$[53]:"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=rwt.widgets.util.FontSizeCalculation;var b=a.computeTextDimensions(this._content,c);this._cachedPreferredInnerWidth=b[0];this._cachedPreferredInnerHeight=b[1]},_computePreferredInnerWidth:function(){this._computeObjectNeededDimensions();return this._cachedPreferredInnerWidth},_computePreferredInnerHeight:function(){this._computeObjectNeededDimensions();return this._cachedPreferredInnerHeight},_postApply:function(){var b=this._content;var a=this._getTargetNode();if(b==null){a.innerHTML=""}else{var c=a.style;if(!this.getWrap()){if(this.getInnerWidth()<this.getPreferredInnerWidth()){c.overflow=$[9]}else{c.overflow=""}}a.innerHTML=b}}}});
-rwt.qx.Class.define("rwt.widgets.base.Image",{extend:rwt.widgets.base.Terminator,construct:function(c,b,a){arguments.callee.base.call(this);this._blank=rwt.remote.Server.RESOURCE_PATH+$[453];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:$[11]},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:$[16]},source:{check:$[50],apply:$[430],event:$[403],nullable:true,themeable:true},preloader:{check:$[484],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){rwt.html.ImageManager.getInstance().show(a);this._registeredAsVisible=true}return arguments.callee.base.call(this)},_beforeDisappear:function(){var a=this.getSource();if(a&&this._registeredAsVisible){rwt.html.ImageManager.getInstance().hide(a);delete this._registeredAsVisible}return arguments.callee.base.call(this)},_applySource:function(c,a){var b=rwt.html.ImageManager.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(){this._syncSource(this.getSource())},_syncSource:function(b){if(b===null){this.setPreloader(null)}else{var a=rwt.html.ImagePreloaderManager.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:rwt.util.Variant.select($[0],{webkit:function(){this._image=document.createElement("img")},"default":function(){this._image=new Image()}}),_imageNodeCreated:rwt.util.Variant.select($[0],{"gecko|opera|webkit":function(){this._styleEnabled()},"default":rwt.util.Functions.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:rwt.util.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=$[309]+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:rwt.util.Variant.select($[0],{mshtml:function(){this._image.src=this._blank;this._image.style.filter=""},"default":function(){this._image.src=this._blank}}),_styleEnabled:rwt.util.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:rwt.util.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($[390]+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($[390]+a)}}}),_changeInnerWidth:rwt.util.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:rwt.util.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")}});
+rwt.qx.Class.define("rwt.widgets.base.Atom",{extend:rwt.widgets.base.BoxLayout,construct:function(c,e,d,a,b){arguments.callee.base.call(this);this.getLayoutImpl().setEnableFlexSupport(false);if(c!==undefined){this.setLabel(c)}if(rwt.qx.Class.isDefined($[398])&&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:$[39]},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:$[24]},verticalChildrenAlign:{refine:true,init:$[46]},spacing:{refine:true,init:4},label:{apply:"_applyLabel",nullable:true,dispose:true,check:"Label"},icon:{check:$[50],apply:$[344],nullable:true,themeable:true},disabledIcon:{check:$[50],apply:"_applyDisabledIcon",nullable:true,themeable:true},show:{init:"both",check:["both",$[59],"icon","none"],themeable:true,nullable:true,inheritable:true,apply:"_applyShow",event:"changeShow"},iconPosition:{init:"left",check:["top",$[13],$[28],"left"],themeable:true,apply:"_applyIconPosition"},iconWidth:{check:$[18],themeable:true,apply:"_applyIconWidth",nullable:true},iconHeight:{check:$[18],themeable:true,apply:"_applyIconHeight",nullable:true}},members:{_flashMode:false,_labelObject:null,_iconObject:null,_createLabel:function(){var a=this._labelObject=new rwt.widgets.base.Label(this.getLabel());a.setAnonymous(true);this.addAt(a,this._iconObject?1:0)},_createIcon:function(){if(this._flashMode&&rwt.qx.Class.isDefined($[398])){var b=this._iconObject=new qx.ui.embed.Flash(this.getIcon())}else{var b=this._iconObject=new rwt.widgets.base.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()){if(a){this._iconObject.setSource(a)}else{this._iconObject.resetSource()}}else{if(b){this._iconObject.setSource(b)}else{this._iconObject.resetSource()}}this._iconObject.setEnabled(true)}else{if(a){this._iconObject.setSource(a)}else{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 $[28]:this.setOrientation($[30]);this.setReverseChildrenOrder(b==$[28]);break;default:this.setOrientation($[39]);this.setReverseChildrenOrder(b==$[13]);break}},_applyShow:function(b,a){this._handleIcon();this._handleLabel()},_applyLabel:function(b,a){if(this._labelObject){if(b){this._labelObject.setText(b)}else{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 $[59]:case"both":case $[192]:this._labelIsVisible=!!this.getLabel();break;default:this._labelIsVisible=false}if(this._labelIsVisible){if(this._labelObject){this._labelObject.setDisplay(true)}else{this._createLabel()}}else{if(this._labelObject){this._labelObject.setDisplay(false)}}},_handleIcon:function(){switch(this.getShow()){case"icon":case"both":case $[192]:this._iconIsVisible=!!this.getIcon();break;default:this._iconIsVisible=false}if(this._iconIsVisible){if(this._iconObject){this._iconObject.setDisplay(true)}else{this._createIcon()}}else{if(this._iconObject){this._iconObject.setDisplay(false)}}}},destruct:function(){this._disposeObjects("_iconObject","_labelObject")}});
+rwt.remote.HandlerRegistry.add($[380],{factory:function(b){var c=rwt.remote.HandlerUtil.createStyleMap(b.style);c.MARKUP_ENABLED=b.markupEnabled;var a=new rwt.widgets.Label(c);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["text",$[164],$[16],$[310],"appearance","leftMargin","topMargin","rightMargin","bottomMargin",$[135]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({backgroundGradient:rwt.remote.HandlerUtil.getBackgroundGradientHandler()}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})});
+rwt.qx.Class.define("rwt.widgets.base.Label",{extend:rwt.widgets.base.Terminator,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setText(a)}this.initWidth();this.initHeight();this.initSelectable();this.initCursor();this.initWrap()},properties:{appearance:{refine:true,init:$[59]},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:$[379]},textAlign:{check:["left",$[24],$[13],"justify"],nullable:true,themeable:true,apply:$[383]},textOverflow:{check:$[2],init:true},mode:{check:["html","text","auto"],init:"auto"}},members:{_content:"",_applyTextAlign:function(b,a){if(b===null){this.removeStyleProperty($[211])}else{this.setStyleProperty($[211],b)}},_applyFont:function(b,a){this._styleFont(b)},_styleFont:function(a){this._invalidatePreferredInnerDimensions();if(a){a.render(this)}else{rwt.html.Font.reset(this)}},_applyTextColor:function(b,a){this._styleTextColor(b)},_styleTextColor:function(a){if(a){this.setStyleProperty($[64],a)}else{this.removeStyleProperty($[64])}},_applyWrap:function(b,a){if(b==null){this.removeStyleProperty("whiteSpace")}else{this.setStyleProperty("whiteSpace",b?$[53]:"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=rwt.widgets.util.FontSizeCalculation;var b=a.computeTextDimensions(this._content,c);this._cachedPreferredInnerWidth=b[0];this._cachedPreferredInnerHeight=b[1]},_computePreferredInnerWidth:function(){this._computeObjectNeededDimensions();return this._cachedPreferredInnerWidth},_computePreferredInnerHeight:function(){this._computeObjectNeededDimensions();return this._cachedPreferredInnerHeight},_postApply:function(){var b=this._content;var a=this._getTargetNode();if(b==null){a.innerHTML=""}else{var c=a.style;if(!this.getWrap()){if(this.getInnerWidth()<this.getPreferredInnerWidth()){c.overflow=$[9]}else{c.overflow=""}}a.innerHTML=b}}}});
+rwt.qx.Class.define("rwt.widgets.base.Image",{extend:rwt.widgets.base.Terminator,construct:function(c,b,a){arguments.callee.base.call(this);this._blank=rwt.remote.Server.RESOURCE_PATH+$[326];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:$[11]},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:$[16]},source:{check:$[50],apply:$[431],event:$[404],nullable:true,themeable:true},preloader:{check:$[484],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){rwt.html.ImageManager.getInstance().show(a);this._registeredAsVisible=true}return arguments.callee.base.call(this)},_beforeDisappear:function(){var a=this.getSource();if(a&&this._registeredAsVisible){rwt.html.ImageManager.getInstance().hide(a);delete this._registeredAsVisible}return arguments.callee.base.call(this)},_applySource:function(c,a){var b=rwt.html.ImageManager.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(){this._syncSource(this.getSource())},_syncSource:function(b){if(b===null){this.setPreloader(null)}else{var a=rwt.html.ImagePreloaderManager.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:rwt.util.Variant.select($[0],{webkit:function(){this._image=document.createElement("img")},"default":function(){this._image=new Image()}}),_imageNodeCreated:rwt.util.Variant.select($[0],{"gecko|opera|webkit":function(){this._styleEnabled()},"default":rwt.util.Functions.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:rwt.util.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=$[309]+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:rwt.util.Variant.select($[0],{mshtml:function(){this._image.src=this._blank;this._image.style.filter=""},"default":function(){this._image.src=this._blank}}),_styleEnabled:rwt.util.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:rwt.util.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($[391]+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($[391]+a)}}}),_changeInnerWidth:rwt.util.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:rwt.util.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")}});
rwt.qx.Class.define("rwt.html.ImagePreloaderManager",{type:$[37],extend:rwt.qx.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 rwt.html.ImagePreloader(a)}},destruct:function(){this._disposeFields("_objects")}});
rwt.qx.Class.define($[484],{extend:rwt.qx.Target,events:{load:$[11],error:$[11]},construct:function(a){if(rwt.html.ImagePreloaderManager.getInstance().has(a)){return rwt.html.ImagePreloaderManager.getInstance().get(a)}arguments.callee.base.call(this);this._element=new Image();this._element.onload=rwt.util.Functions.bind(this.__onload,this);this._element.onerror=rwt.util.Functions.bind(this.__onerror,this);this._source=a;this._element.src=a;this._checkPng();rwt.html.ImagePreloaderManager.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:rwt.util.Variant.select($[0],{"default":rwt.util.Functions.returnTrue,mshtml:function(){this._isPng=/\.png$/i.test(this._element.nameProp)}}),_isPng:false,getIsPng:function(){return this._isPng},getWidth:rwt.util.Variant.select($[0],{gecko:function(){return this._element.naturalWidth},"default":function(){return this._element.width}}),getHeight:rwt.util.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 rwt.event.Event("load"),true)}},__onerror:function(){if(this._isLoaded||this._isErroneous){return}this._isLoaded=false;this._isErroneous=true;if(this.hasEventListeners($[142])){this.dispatchEvent(new rwt.event.Event($[142]),true)}}},destruct:function(){if(this._element){this._element.onload=this._element.onerror=null}this._disposeFields("_element","_isLoaded","_isErroneous","_isPng")}});
rwt.qx.Class.define("rwt.widgets.util.Layout",{statics:{ORIENTATION_HORIZONTAL:$[39],ORIENTATION_VERTICAL:$[30],ALIGN_LEFT:"left",ALIGN_LEFT_REVERSED:$[218],ALIGN_CENTER:$[24],ALIGN_CENTER_REVERSED:$[231],ALIGN_RIGHT:$[13],ALIGN_RIGHT_REVERSED:$[465],ALIGN_TOP:"top",ALIGN_TOP_REVERSED:$[221],ALIGN_MIDDLE:$[46],ALIGN_MIDDLE_REVERSED:$[236],ALIGN_BOTTOM:$[28],ALIGN_BOTTOM_REVERSED:$[475]}});
rwt.qx.Class.define("rwt.widgets.base.HorizontalBoxLayout",{extend:rwt.widgets.base.BoxLayout});
-rwt.qx.Class.define("rwt.widgets.base.Spinner",{extend:rwt.widgets.base.HorizontalBoxLayout,construct:function(c,b,a){arguments.callee.base.call(this);if(rwt.client.Client.isMshtml()){this.setStyleProperty($[173],"0px")}this._textfield=new rwt.widgets.base.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 rwt.widgets.base.VerticalBoxLayout();this._buttonlayout.setWidth("auto");this.add(this._buttonlayout);this._upbutton=new rwt.widgets.base.Button();this._upbutton.setAppearance("spinner-button-up");this._upbutton.setTabIndex(null);this._upbutton.setHeight("1*");this._buttonlayout.add(this._upbutton);this._downbutton=new rwt.widgets.base.Button();this._downbutton.setAppearance("spinner-button-down");this._downbutton.setTabIndex(null);this._downbutton.setHeight("1*");this._buttonlayout.add(this._downbutton);this._timer=new rwt.client.Timer(this.getInterval());this.setManager(new rwt.util.Range());this.initWrap();this.addEventListener($[4],this._onkeypress,this);this.addEventListener($[7],this._onkeydown,this);this.addEventListener($[34],this._onkeyup,this);this.addEventListener($[47],this._onmousewheel,this);this._textfield.addEventListener($[108],this._ontextchange,this);this._textfield.addEventListener($[78],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($[27],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:$[52]},properties:{appearance:{refine:true,init:"spinner"},width:{refine:true,init:60},height:{refine:true,init:22},incrementAmount:{check:$[56],init:1,apply:"_applyIncrementAmount"},wheelIncrementAmount:{check:$[56],init:1},pageIncrementAmount:{check:$[56],init:10},interval:{check:$[18],init:100},firstInterval:{check:$[18],init:500},minTimer:{check:$[18],init:20},timerDecrease:{check:$[18],init:2},amountGrowth:{check:$[56],init:1.01},wrap:{check:$[2],init:false,apply:$[378]},editable:{check:$[2],init:true,apply:"_applyEditable"},manager:{check:$[418],apply:$[567],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($[58],this._onchange,this)}if(b){b.addEventListener($[58],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==$[51]&&!b.isAltPressed()){this._checkValue(true,false);if(this.getSelectTextOnInteract()){this._textfield.selectAll()}}else{switch(a){case"Up":case"Down":case"Left":case $[36]:case"Shift":case $[250]:case"Alt":case $[118]:case"Delete":case $[330]:case"Insert":case"Home":case"End":case $[41]: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 $[41]:case $[43]:this._intervalIncrease=a==$[41];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 $[41]: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($[12]);a.addEventListener($[5],this._onmouseup,this);a.addEventListener($[6],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($[12]);a.removeEventListener($[5],this._onmouseup,this);a.removeEventListener($[6],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($[12]);this._downbutton.setEnabled(false);this._timer.stop()}else{this._downbutton.resetEnabled()}if(a==this.getMax()&&!this.getWrap()){this._upbutton.removeState($[12]);this._upbutton.setEnabled(false);this._timer.stop()}else{this._upbutton.resetEnabled()}this.createDispatchDataEvent($[58],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)){this._timer.restartWith(this.getInterval())}break;case false:if(!(this.getValue()==this.getMin()&&!a)){this._timer.restartWith(this.getInterval())}break}},__checkValue:function(i,c){var b=this._textfield.getInputElement();if(!b){return}if((b.value==="")||(b.value==="-")){if(!i){this.resetValue();return}}else{var h=b.value;var g;g=h;var d=parseFloat(g);var e=this.getManager().limit(d);var a=this.getManager().getValue();var j=e;if(isNaN(d)||(e!=d)||(d!=g)){if(c){this._textfield.setValue(this._last_value)}else{if(isNaN(e)){j=a}else{j=e}}}if(c){return}var f;f=String(j);if((j===a)&&(h!==f)){this._textfield.setValue(f)}this.getManager().setValue(j)}},_increment:function(){if(this.getManager().incrementValue){this.getManager().incrementValue((this._intervalIncrease?1:-1)*this._computedIncrementAmount)}else{var a=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this._computedIncrementAmount);a=this.getManager().limit(a);this.getManager().setValue(a)}},_pageIncrement:function(){if(this.getManager().pageIncrementValue){this.getManager().pageIncrementValue()}else{var a=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this.getPageIncrementAmount());a=this.getManager().limit(a);this.getManager().setValue(a)}},_resetIncrements:function(){this._computedIncrementAmount=this.getIncrementAmount();this.resetInterval()}},destruct:function(){var a=this.getManager();if(a){a.dispose()}this._disposeObjects("_textfield","_buttonlayout","_upbutton","_downbutton","_timer")}});
-rwt.qx.Class.define($[494],{extend:rwt.widgets.base.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=rwt.util.Functions.bindEvent(this._oninputDom,this);this.addEventListener("blur",this._onblur);this.addEventListener($[7],this._onkeydown);this.addEventListener($[4],this._onkeypress);this.addEventListener($[34],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=$[9]},destruct:function(){if(this._inputElement!=null){if(rwt.client.Client.isMshtml()){this._inputElement.onpropertychange=null}else{this._inputElement.removeEventListener($[78],this.__oninput,false)}}this._inputElement=null;this.__font=null;if(this._checkTimer){this._checkTimer.dispose();this._checkTimer=null}},events:{input:$[52]},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:$[108],apply:"_applyValue",dispose:true},textAlign:{check:["left",$[24],$[13],"justify"],nullable:true,themeable:true,apply:$[382]},maxLength:{check:$[18],apply:"_applyMaxLength",nullable:true},readOnly:{check:$[2],apply:"_applyReadOnly",init:false,event:"changeReadOnly"}},members:{_LINE_HEIGT_FACTOR:1.2,_inputTag:$[78],_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===$[8]){b=0}if(typeof a===$[8]){a=0}if(this._selectionStart!==b||this._selectionLength!==a){this._handleSelectionChange(b,a)}}},_handleSelectionChange:function(b,a){this._selectionStart=b;this._selectionLength=a},_setSelectionStart:rwt.util.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:rwt.util.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:rwt.util.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:rwt.util.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(rwt.client.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=$[81];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:rwt.util.Variant.select($[0],{"default":function(){this._inputElement.style.margin="1px 0 1px -1px";this._inputElement.addEventListener($[78],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=Math.max(2,this.getInnerWidth())+"px"},_syncFieldHeight:function(){if(this._inputTag!==$[78]){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===$[154]&&rwt.client.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($[317])}else{this.removeState($[317])}},_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{rwt.html.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(){rwt.html.Style.setTextShadow(this._inputElement,this.__textShadow)},_visualizeFocus:function(){arguments.callee.base.call(this);if(!rwt.widgets.util.FocusHandler.blockFocus){try{this._inputElement.focus()}catch(a){}}},_visualizeBlur:function(){arguments.callee.base.call(this);try{this._inputElement.blur()}catch(a){}},_afterAppear:function(){arguments.callee.base.call(this);this._applyBrowserFixesOnAppear();this._centerFieldVertically();this._renderSelection()},_centerFieldVertically:function(){if(this._inputTag===$[78]&&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($[162],b+"px")}}},_getInputElementHeight:rwt.util.Variant.select($[0],{mshtml:function(){var a=this._inputElement.offsetHeight;if(a!==0){a-=2}return a},"default":function(){return this._inputElement.offsetHeight}}),_oninputDom:rwt.util.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($[78])){c=this.dispatchEvent(new rwt.event.DataEvent($[78],this._typed),true)}if(c){rwt.client.Timer.once(this._updateValueProperty,this,0)}else{if(rwt.client.Client.isWebkit()||rwt.client.Client.isMshtml()){rwt.client.Timer.once(this._renderSelection,this,0);this._selectionNeedsUpdate=true}}}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_updateValueProperty:function(){this.setValue(this.getComputedValue().toString())},_ontabfocus:function(){this.selectAll()},_applyFocused:function(b,a){arguments.callee.base.call(this,b,a);if(b&&!rwt.widgets.util.FocusHandler.mouseFocus){this._renderSelection()}},_onblur:function(){if(this.getParent()!=null){this._setSelectionLength(0)}},_onkeydown:function(a){if(a.getKeyIdentifier()==$[330]&&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:rwt.util.Variant.select($[0],{"default":function(){},newmshtml:function(){this._checkTimer=new rwt.client.Timer(0);this._checkTimer.addEventListener($[27],this._checkValueChanged,this);this.addEventListener($[4],this._checkTimer.start,this._checkTimer);this.addEventListener($[34],this._checkTimer.start,this._checkTimer);this.addEventListener($[29],this._checkValueChanged,this);this.addEventListener($[6],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:rwt.util.Variant.select($[0],{"default":function(){},mshtml:function(){if(this._firstInputFixApplied!==true&&this._inputElement){rwt.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:rwt.util.Variant.select($[0],{"default":function(){},webkit:function(){this.addEventListener($[7],this._preventEnter,this);this.addEventListener($[4],this._preventEnter,this);this.addEventListener($[34],this._preventEnter,this)}}),_preventEnter:function(a){if(a.getKeyIdentifier()===$[51]){a.preventDefault()}},isValidString:function(a){return typeof a===$[10]&&a!==""}}});
+rwt.qx.Class.define("rwt.widgets.base.Spinner",{extend:rwt.widgets.base.HorizontalBoxLayout,construct:function(c,b,a){arguments.callee.base.call(this);if(rwt.client.Client.isMshtml()){this.setStyleProperty($[173],"0px")}this._textfield=new rwt.widgets.base.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 rwt.widgets.base.VerticalBoxLayout();this._buttonlayout.setWidth("auto");this.add(this._buttonlayout);this._upbutton=new rwt.widgets.base.Button();this._upbutton.setAppearance("spinner-button-up");this._upbutton.setTabIndex(null);this._upbutton.setHeight("1*");this._buttonlayout.add(this._upbutton);this._downbutton=new rwt.widgets.base.Button();this._downbutton.setAppearance("spinner-button-down");this._downbutton.setTabIndex(null);this._downbutton.setHeight("1*");this._buttonlayout.add(this._downbutton);this._timer=new rwt.client.Timer(this.getInterval());this.setManager(new rwt.util.Range());this.initWrap();this.addEventListener($[4],this._onkeypress,this);this.addEventListener($[7],this._onkeydown,this);this.addEventListener($[34],this._onkeyup,this);this.addEventListener($[47],this._onmousewheel,this);this._textfield.addEventListener($[108],this._ontextchange,this);this._textfield.addEventListener($[78],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($[27],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:$[52]},properties:{appearance:{refine:true,init:"spinner"},width:{refine:true,init:60},height:{refine:true,init:22},incrementAmount:{check:$[56],init:1,apply:"_applyIncrementAmount"},wheelIncrementAmount:{check:$[56],init:1},pageIncrementAmount:{check:$[56],init:10},interval:{check:$[18],init:100},firstInterval:{check:$[18],init:500},minTimer:{check:$[18],init:20},timerDecrease:{check:$[18],init:2},amountGrowth:{check:$[56],init:1.01},wrap:{check:$[2],init:false,apply:$[379]},editable:{check:$[2],init:true,apply:"_applyEditable"},manager:{check:$[419],apply:$[567],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($[58],this._onchange,this)}if(b){b.addEventListener($[58],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==$[51]&&!b.isAltPressed()){this._checkValue(true,false);if(this.getSelectTextOnInteract()){this._textfield.selectAll()}}else{switch(a){case"Up":case"Down":case"Left":case $[36]:case"Shift":case $[250]:case"Alt":case $[118]:case"Delete":case $[331]:case"Insert":case"Home":case"End":case $[41]: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 $[41]:case $[43]:this._intervalIncrease=a==$[41];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 $[41]: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($[12]);a.addEventListener($[5],this._onmouseup,this);a.addEventListener($[6],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($[12]);a.removeEventListener($[5],this._onmouseup,this);a.removeEventListener($[6],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($[12]);this._downbutton.setEnabled(false);this._timer.stop()}else{this._downbutton.resetEnabled()}if(a==this.getMax()&&!this.getWrap()){this._upbutton.removeState($[12]);this._upbutton.setEnabled(false);this._timer.stop()}else{this._upbutton.resetEnabled()}this.createDispatchDataEvent($[58],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)){this._timer.restartWith(this.getInterval())}break;case false:if(!(this.getValue()==this.getMin()&&!a)){this._timer.restartWith(this.getInterval())}break}},__checkValue:function(i,c){var b=this._textfield.getInputElement();if(!b){return}if((b.value==="")||(b.value==="-")){if(!i){this.resetValue();return}}else{var h=b.value;var g;g=h;var d=parseFloat(g);var e=this.getManager().limit(d);var a=this.getManager().getValue();var j=e;if(isNaN(d)||(e!=d)||(d!=g)){if(c){this._textfield.setValue(this._last_value)}else{if(isNaN(e)){j=a}else{j=e}}}if(c){return}var f;f=String(j);if((j===a)&&(h!==f)){this._textfield.setValue(f)}this.getManager().setValue(j)}},_increment:function(){if(this.getManager().incrementValue){this.getManager().incrementValue((this._intervalIncrease?1:-1)*this._computedIncrementAmount)}else{var a=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this._computedIncrementAmount);a=this.getManager().limit(a);this.getManager().setValue(a)}},_pageIncrement:function(){if(this.getManager().pageIncrementValue){this.getManager().pageIncrementValue()}else{var a=this.getManager().getValue()+((this._intervalIncrease?1:-1)*this.getPageIncrementAmount());a=this.getManager().limit(a);this.getManager().setValue(a)}},_resetIncrements:function(){this._computedIncrementAmount=this.getIncrementAmount();this.resetInterval()}},destruct:function(){var a=this.getManager();if(a){a.dispose()}this._disposeObjects("_textfield","_buttonlayout","_upbutton","_downbutton","_timer")}});
+rwt.qx.Class.define($[494],{extend:rwt.widgets.base.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=rwt.util.Functions.bindEvent(this._oninputDom,this);this.addEventListener("blur",this._onblur);this.addEventListener($[7],this._onkeydown);this.addEventListener($[4],this._onkeypress);this.addEventListener($[34],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=$[9]},destruct:function(){if(this._inputElement!=null){if(rwt.client.Client.isMshtml()){this._inputElement.onpropertychange=null}else{this._inputElement.removeEventListener($[78],this.__oninput,false)}}this._inputElement=null;this.__font=null;if(this._checkTimer){this._checkTimer.dispose();this._checkTimer=null}},events:{input:$[52]},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:$[108],apply:"_applyValue",dispose:true},textAlign:{check:["left",$[24],$[13],"justify"],nullable:true,themeable:true,apply:$[383]},maxLength:{check:$[18],apply:"_applyMaxLength",nullable:true},readOnly:{check:$[2],apply:"_applyReadOnly",init:false,event:"changeReadOnly"}},members:{_LINE_HEIGT_FACTOR:1.2,_inputTag:$[78],_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===$[8]){b=0}if(typeof a===$[8]){a=0}if(this._selectionStart!==b||this._selectionLength!==a){this._handleSelectionChange(b,a)}}},_handleSelectionChange:function(b,a){this._selectionStart=b;this._selectionLength=a},_setSelectionStart:rwt.util.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:rwt.util.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:rwt.util.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:rwt.util.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(rwt.client.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=$[81];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:rwt.util.Variant.select($[0],{"default":function(){this._inputElement.style.margin="1px 0 1px -1px";this._inputElement.addEventListener($[78],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=Math.max(2,this.getInnerWidth())+"px"},_syncFieldHeight:function(){if(this._inputTag!==$[78]){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===$[154]&&rwt.client.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($[317])}else{this.removeState($[317])}},_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{rwt.html.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(){rwt.html.Style.setTextShadow(this._inputElement,this.__textShadow)},_visualizeFocus:function(){arguments.callee.base.call(this);if(!rwt.widgets.util.FocusHandler.blockFocus){try{this._inputElement.focus()}catch(a){}}},_visualizeBlur:function(){arguments.callee.base.call(this);try{this._inputElement.blur()}catch(a){}},_afterAppear:function(){arguments.callee.base.call(this);this._applyBrowserFixesOnAppear();this._centerFieldVertically();this._renderSelection()},_centerFieldVertically:function(){if(this._inputTag===$[78]&&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($[162],b+"px")}}},_getInputElementHeight:rwt.util.Variant.select($[0],{mshtml:function(){var a=this._inputElement.offsetHeight;if(a!==0){a-=2}return a},"default":function(){return this._inputElement.offsetHeight}}),_oninputDom:rwt.util.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($[78])){c=this.dispatchEvent(new rwt.event.DataEvent($[78],this._typed),true)}if(c){rwt.client.Timer.once(this._updateValueProperty,this,0)}else{if(rwt.client.Client.isWebkit()||rwt.client.Client.isMshtml()){rwt.client.Timer.once(this._renderSelection,this,0);this._selectionNeedsUpdate=true}}}catch(a){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_updateValueProperty:function(){this.setValue(this.getComputedValue().toString())},_ontabfocus:function(){this.selectAll()},_applyFocused:function(b,a){arguments.callee.base.call(this,b,a);if(b&&!rwt.widgets.util.FocusHandler.mouseFocus){this._renderSelection()}},_onblur:function(){if(this.getParent()!=null){this._setSelectionLength(0)}},_onkeydown:function(a){if(a.getKeyIdentifier()==$[331]&&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:rwt.util.Variant.select($[0],{"default":function(){},newmshtml:function(){this._checkTimer=new rwt.client.Timer(0);this._checkTimer.addEventListener($[27],this._checkValueChanged,this);this.addEventListener($[4],this._checkTimer.start,this._checkTimer);this.addEventListener($[34],this._checkTimer.start,this._checkTimer);this.addEventListener($[29],this._checkValueChanged,this);this.addEventListener($[6],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:rwt.util.Variant.select($[0],{"default":function(){},mshtml:function(){if(this._firstInputFixApplied!==true&&this._inputElement){rwt.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:rwt.util.Variant.select($[0],{"default":function(){},webkit:function(){this.addEventListener($[7],this._preventEnter,this);this.addEventListener($[4],this._preventEnter,this);this.addEventListener($[34],this._preventEnter,this)}}),_preventEnter:function(a){if(a.getKeyIdentifier()===$[51]){a.preventDefault()}},isValidString:function(a){return typeof a===$[10]&&a!==""}}});
rwt.qx.Class.define("rwt.widgets.base.VerticalBoxLayout",{extend:rwt.widgets.base.BoxLayout,properties:{orientation:{refine:true,init:$[30]}}});
-rwt.qx.Class.define($[383],{extend:rwt.widgets.base.Atom,construct:function(e,d,c,a,b){arguments.callee.base.call(this,e,d,c,a,b);this.initTabIndex();this.addEventListener($[3],this._onmouseover);this.addEventListener($[6],this._onmouseout);this.addEventListener($[1],this._onmousedown);this.addEventListener($[5],this._onmouseup);this.addEventListener($[7],this._onkeydown);this.addEventListener($[34],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($[12])}this.addState("over")},_onmouseout:function(a){if(a.getTarget()!=this){return}this.removeState("over");if(this.hasState($[12])){this.setCapture(true);this.removeState($[12]);this.addState($[33])}},_onmousedown:function(a){if(a.getTarget()!=this||!a.isLeftButtonPressed()){return}this.removeState($[33]);this.addState($[12])},_onmouseup:function(b){this.setCapture(false);var a=this.hasState($[12]);var c=this.hasState($[33]);if(a){this.removeState($[12])}if(c){this.removeState($[33])}if(!c){this.addState("over");if(a){this.execute()}}},_onkeydown:function(a){switch(a.getKeyIdentifier()){case $[51]:case $[83]:this.removeState($[33]);this.addState($[12]);a.stopPropagation()}},_onkeyup:function(a){switch(a.getKeyIdentifier()){case $[51]:case $[83]:if(this.hasState($[12])){this.removeState($[33]);this.removeState($[12]);this.execute();a.stopPropagation()}}}}});
-rwt.qx.Class.define($[418],{extend:rwt.qx.Target,events:{change:$[11]},properties:{value:{check:"!isNaN(value)&&value>=this.getMin()&&value<=this.getMax()",nullable:true,event:$[58],init:0},precision:{check:$[18],nullable:true,event:$[58],init:0},min:{check:$[56],apply:"_applyMin",event:$[58],init:0},max:{check:$[56],apply:"_applyMax",event:$[58],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}}}});
-rwt.qx.Class.define($[385],{extend:rwt.widgets.base.BoxLayout,construct:function(){arguments.callee.base.call(this);this.addEventListener($[277],rwt.widgets.util.TabUtil.onTabFolderChangeFocused);this.addEventListener($[4],rwt.widgets.util.TabUtil.onTabFolderKeyPress);this._bar=new rwt.widgets.base.TabFolderBar();this._pane=new rwt.widgets.base.TabFolderPane();this.add(this._bar,this._pane)},properties:{appearance:{refine:true,init:"tab-view"},orientation:{refine:true,init:$[30]},alignTabsToLeft:{check:$[2],init:true,apply:"_applyAlignTabsToLeft"},placeBarOnTop:{check:$[2],init:true,apply:"_applyPlaceBarOnTop"}},members:{getPane:function(){return this._pane},getBar:function(){return this._bar},_applyAlignTabsToLeft:function(c,b){var a=this._bar;a.setHorizontalChildrenAlign(c?"left":$[13]);a._addChildrenToStateQueue()},_applyPlaceBarOnTop:function(c,b){var a=this._bar;if(c){a.moveSelfToBegin()}else{a.moveSelfToEnd()}a._addChildrenToStateQueue()}},destruct:function(){this._disposeObjects("_bar","_pane")}});
+rwt.qx.Class.define($[384],{extend:rwt.widgets.base.Atom,construct:function(e,d,c,a,b){arguments.callee.base.call(this,e,d,c,a,b);this.initTabIndex();this.addEventListener($[3],this._onmouseover);this.addEventListener($[6],this._onmouseout);this.addEventListener($[1],this._onmousedown);this.addEventListener($[5],this._onmouseup);this.addEventListener($[7],this._onkeydown);this.addEventListener($[34],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($[12])}this.addState("over")},_onmouseout:function(a){if(a.getTarget()!=this){return}this.removeState("over");if(this.hasState($[12])){this.setCapture(true);this.removeState($[12]);this.addState($[33])}},_onmousedown:function(a){if(a.getTarget()!=this||!a.isLeftButtonPressed()){return}this.removeState($[33]);this.addState($[12])},_onmouseup:function(b){this.setCapture(false);var a=this.hasState($[12]);var c=this.hasState($[33]);if(a){this.removeState($[12])}if(c){this.removeState($[33])}if(!c){this.addState("over");if(a){this.execute()}}},_onkeydown:function(a){switch(a.getKeyIdentifier()){case $[51]:case $[83]:this.removeState($[33]);this.addState($[12]);a.stopPropagation()}},_onkeyup:function(a){switch(a.getKeyIdentifier()){case $[51]:case $[83]:if(this.hasState($[12])){this.removeState($[33]);this.removeState($[12]);this.execute();a.stopPropagation()}}}}});
+rwt.qx.Class.define($[419],{extend:rwt.qx.Target,events:{change:$[11]},properties:{value:{check:"!isNaN(value)&&value>=this.getMin()&&value<=this.getMax()",nullable:true,event:$[58],init:0},precision:{check:$[18],nullable:true,event:$[58],init:0},min:{check:$[56],apply:"_applyMin",event:$[58],init:0},max:{check:$[56],apply:"_applyMax",event:$[58],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}}}});
+rwt.qx.Class.define($[386],{extend:rwt.widgets.base.BoxLayout,construct:function(){arguments.callee.base.call(this);this.addEventListener($[277],rwt.widgets.util.TabUtil.onTabFolderChangeFocused);this.addEventListener($[4],rwt.widgets.util.TabUtil.onTabFolderKeyPress);this._bar=new rwt.widgets.base.TabFolderBar();this._pane=new rwt.widgets.base.TabFolderPane();this.add(this._bar,this._pane)},properties:{appearance:{refine:true,init:"tab-view"},orientation:{refine:true,init:$[30]},alignTabsToLeft:{check:$[2],init:true,apply:"_applyAlignTabsToLeft"},placeBarOnTop:{check:$[2],init:true,apply:"_applyPlaceBarOnTop"}},members:{getPane:function(){return this._pane},getBar:function(){return this._bar},_applyAlignTabsToLeft:function(c,b){var a=this._bar;a.setHorizontalChildrenAlign(c?"left":$[13]);a._addChildrenToStateQueue()},_applyPlaceBarOnTop:function(c,b){var a=this._bar;if(c){a.moveSelfToBegin()}else{a.moveSelfToEnd()}a._addChildrenToStateQueue()}},destruct:function(){this._disposeObjects("_bar","_pane")}});
rwt.qx.Class.define($[561],{extend:rwt.qx.Target,construct:function(a,b){arguments.callee.base.call(this);this._items=[];this.setName(a!=null?a:rwt.widgets.util.RadioManager.AUTO_NAME_PREFIX+this.toHashCode());if(b!=null){this.add.apply(this,b)}},statics:{AUTO_NAME_PREFIX:"qx-radio-"},properties:{selected:{nullable:true,apply:"_applySelected",event:"changeSelected",check:$[577]},name:{check:$[50],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(rwt.util.Arrays.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){rwt.util.Arrays.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)}});
-rwt.qx.Class.define("rwt.widgets.base.TabFolderBar",{extend:rwt.widgets.base.BoxLayout,construct:function(){arguments.callee.base.call(this);this.initZIndex();this.initHeight();this._manager=new rwt.widgets.util.RadioManager()},properties:{appearance:{refine:true,init:"tab-view-bar"},zIndex:{refine:true,init:2},height:{refine:true,init:"auto"}},members:{getManager:function(){return this._manager}},destruct:function(){this._disposeObjects($[360])}});
+rwt.qx.Class.define("rwt.widgets.base.TabFolderBar",{extend:rwt.widgets.base.BoxLayout,construct:function(){arguments.callee.base.call(this);this.initZIndex();this.initHeight();this._manager=new rwt.widgets.util.RadioManager()},properties:{appearance:{refine:true,init:"tab-view-bar"},zIndex:{refine:true,init:2},height:{refine:true,init:"auto"}},members:{getManager:function(){return this._manager}},destruct:function(){this._disposeObjects($[361])}});
rwt.qx.Class.define("rwt.widgets.base.TabFolderPane",{extend:rwt.widgets.base.Parent,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*"}}});
rwt.qx.Class.define("rwt.widgets.base.Popup",{extend:rwt.widgets.base.Parent,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:$[18],init:0},restrictToPageRight:{check:$[18],init:0},restrictToPageTop:{check:$[18],init:0},restrictToPageBottom:{check:$[18],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}}}rwt.widgets.util.PopupManager.getInstance().add(this);rwt.widgets.util.PopupManager.getInstance().update(this);this._showTimeStamp=(new Date()).valueOf();this.bringToFront()},_beforeDisappear:function(){arguments.callee.base.call(this);rwt.widgets.util.PopupManager.getInstance().remove(this);this._hideTimeStamp=(new Date()).valueOf()},_afterAppear:function(){arguments.callee.base.call(this);if(this.getRestrictToPageOnOpen()){var l=rwt.widgets.base.ClientDocument.getInstance();var h=l.getClientWidth();var p=l.getClientHeight();var b=rwt.html.Viewport.getScrollTop();var f=rwt.html.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=rwt.util.Objects.getValues(rwt.widgets.util.PopupManager.getInstance().getAll());var g=function(j,i){return j.getZIndex()-i.getZIndex()};if(rwt.event.EventHandler.getMenuManager()!=null){var c=rwt.event.EventHandler.getMenuManager();var f=rwt.util.Objects.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 rwt.widgets.base.Widget){c=c.getElement()}if(c){var b=rwt.html.Location.get(c);this.setLocation(b.left+(a||0),b.top+(d||0))}else{throw new Error("Missing reference element")}},centerToBrowser:function(){var c=rwt.widgets.base.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(){rwt.widgets.util.PopupManager.getInstance().remove(this);this._disposeFields("_showTimeStamp","_hideTimeStamp")}});
rwt.qx.Class.define($[294],{type:$[37],extend:rwt.util.ObjectManager,construct:function(){arguments.callee.base.call(this)},members:{update:function(c){if(!(c instanceof rwt.widgets.base.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(rwt.qx.Class.isDefined($[252])&&c instanceof rwt.widgets.base.ToolTip&&!(a instanceof rwt.widgets.base.ToolTip)){continue}a.hide()}}}});
-rwt.qx.Class.define("rwt.widgets.util.SelectionManager",{extend:rwt.qx.Target,construct:function(a){arguments.callee.base.call(this);this._selectedItems=new rwt.widgets.util.Selection(this);if(a!=null){this.setBoundedWidget(a)}},events:{changeSelection:$[52]},properties:{boundedWidget:{check:$[134],nullable:true},multiSelection:{check:$[2],init:true},dragSelection:{check:$[2],init:true},canDeselect:{check:$[2],init:true},fireChange:{check:$[2],init:true},anchorItem:{check:$[195],nullable:true,apply:"_applyAnchorItem",event:"changeAnchorItem"},leadItem:{check:$[195],nullable:true,apply:"_applyLeadItem",event:$[337]},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){if(a){b.addState($[23])}else{b.removeState($[23])}if(b.handleStateChange){b.handleStateChange()}},renderItemAnchorState:function(a,b){if(b){a.addState("anchor")}else{a.removeState("anchor")}if(a.handleStateChange!=null){a.handleStateChange()}},renderItemLeadState:function(b,a){if(a){b.addState("lead")}else{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);if(c){this._selectedItems.add(d)}else{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 $[36]:return this.getRight(this.getLeadItem());case $[41]: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($[269])){this.dispatchEvent(new rwt.event.DataEvent($[269],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")}});
+rwt.qx.Class.define("rwt.widgets.util.SelectionManager",{extend:rwt.qx.Target,construct:function(a){arguments.callee.base.call(this);this._selectedItems=new rwt.widgets.util.Selection(this);if(a!=null){this.setBoundedWidget(a)}},events:{changeSelection:$[52]},properties:{boundedWidget:{check:$[134],nullable:true},multiSelection:{check:$[2],init:true},dragSelection:{check:$[2],init:true},canDeselect:{check:$[2],init:true},fireChange:{check:$[2],init:true},anchorItem:{check:$[195],nullable:true,apply:"_applyAnchorItem",event:"changeAnchorItem"},leadItem:{check:$[195],nullable:true,apply:"_applyLeadItem",event:$[338]},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){if(a){b.addState($[23])}else{b.removeState($[23])}if(b.handleStateChange){b.handleStateChange()}},renderItemAnchorState:function(a,b){if(b){a.addState("anchor")}else{a.removeState("anchor")}if(a.handleStateChange!=null){a.handleStateChange()}},renderItemLeadState:function(b,a){if(a){b.addState("lead")}else{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);if(c){this._selectedItems.add(d)}else{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 $[36]:return this.getRight(this.getLeadItem());case $[41]: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($[269])){this.dispatchEvent(new rwt.event.DataEvent($[269],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")}});
rwt.qx.Class.define("rwt.widgets.util.Selection",{extend:rwt.qx.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 rwt.util.Objects.isEmpty(this.__storage)}},destruct:function(){this._disposeFields("__storage","__manager")}});
rwt.qx.Class.define("rwt.widgets.base.AbstractSlider",{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);this.setOverflow($[9]);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 rwt.client.Timer(250);this._repeatTimer=new rwt.client.Timer(100);this._thumb=new rwt.widgets.base.BasicButton("push",true);this._minButton=new rwt.widgets.base.BasicButton("push",true);this._maxButton=new rwt.widgets.base.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($[27],this._onRepeatTimerInterval,this);this._delayTimer.addEventListener($[27],this._repeatTimerStart,this);this.addEventListener($[74],this._onChangeSize,this);this.addEventListener($[71],this._onChangeSize,this);this.addEventListener($[191],this._onChangeEnabled,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[5],this._onMouseUp,this);this.addEventListener($[6],this._onMouseOut,this);this.addEventListener($[3],this._onMouseOver,this);this.addEventListener($[29],this._onMouseMove,this);this.addEventListener($[47],this._onMouseWheel,this);this._thumb.addEventListener($[1],this._onThumbMouseDown,this);this._thumb.addEventListener($[29],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($[172],this._onMinButtonMouseEvent,this);this._maxButton.addEventListener($[172],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($[12])){this._autoRepeat="minButton";this._setSelection(this._selection-this._increment)}else{this._autoRepeat=""}},_onMaxButtonMouseEvent:function(a){a.stopPropagation();if(this._maxButton.hasState($[12])){this._autoRepeat="maxButton";this._setSelection(this._selection+this._increment)}else{this._autoRepeat=""}},_onThumbMouseDown:function(b){b.stopPropagation();this._thumb.addState($[12]);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($[12])){a.stopPropagation();this._repeatTimer.stop();this._thumb.setCapture(false);this._thumb.removeState($[12])}},_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)}rwt.widgets.util.WidgetUtil.fixIEBoxHeight(this._thumb);rwt.widgets.util.WidgetUtil.fixIEBoxHeight(this._minButton);rwt.widgets.util.WidgetUtil.fixIEBoxHeight(this._maxButton);this._minButton.setTabIndex(null);this._maxButton.setTabIndex(null);this._thumb.setTabIndex(null)},_setStates:function(){var a=this._horizontal?$[470]:$[228];var b=this._horizontal?$[39]:$[30];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($[72])},_visualizeBlur:function(){arguments.callee.base.call(this);this._thumb.removeState($[72])},_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=rwt.html.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}}});
rwt.qx.Class.define("rwt.widgets.base.ScrollBar",{extend:rwt.widgets.base.AbstractSlider,construct:function(a){arguments.callee.base.call(this,a);this._idealValue=0;this._selectionFactor=1;this._lastDispatchedValue=0;this._mergeEvents=false;this._renderSum=0;this._renderSamples=0;this._eventTimerId=null;this._setMinimum(0);this._hasSelectionListener=false;this._minThumbSize=this._getMinThumbSize();this.setIncrement(20);this.addEventListener($[14],this._stopEvent,this);this.addEventListener($[49],this._stopEvent,this);this._eventTimer=null},destruct:function(){if(this._eventTimer!=null){this._eventTimer.dispose();this._eventTimer=null}},statics:{MERGE_THRESHOLD:4},events:{changeValue:$[11]},members:{_configureAppearance:function(){this.setAppearance("scrollbar");this._thumb.setAppearance($[200]);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);this._updateThumbLength()},getMaximum:function(){return this._maximum},setIncrement:function(a){this._setIncrement(a);this._updatePageIncrement()},setHasSelectionListener:function(a){this._hasSelectionListener=a},getHasSelectionListener:function(){return this._hasSelectionListener},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 rwt.client.Timer(125);this._eventTimer.addEventListener($[27],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>600}else{a=c>1500}if(a){this.setMergeEvents(true)}}},isHorizontal:function(){return this._horizontal},_onChangeSize:function(){arguments.callee.base.call(this);this._updateThumbLength();this._updatePageIncrement()},_updateThumbSize:function(){arguments.callee.base.call(this);var a=this._getThumbSize();if(a<this._minThumbSize){this._renderMinThumbSize()}else{this._selectionFactor=1;this._checkIdealValue()}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)}},_checkIdealValue:function(){if(this._idealValue!==null&&this._idealValue){this._setSelection(this._idealValue*this._selectionFactor)}},_renderMinThumbSize:function(){if(this._maximum>0&&this._getLineSize()>0){var a=this._getThumbSize();if(a<this._minThumbSize){var c=this._getSliderSize();var b=this._minThumbSize*this._maximum/this._getLineSize();this._setThumb(b);if(this._maximum===c){this._selectionFactor=1}else{this._selectionFactor=(this._maximum-b)/(this._maximum-c)}}}this._checkIdealValue()},_setSelection:function(a){if(a!==(this._idealValue*this._selectionFactor)){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 rwt.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=rwt.widgets.base.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($[108])},_updateStepsize:function(){var a=this._selection;arguments.callee.base.call(this);if(a!==this._selection){this._dispatchValueChanged()}}}});
@@ -98,130 +98,130 @@ rwt.qx.Class.define("rwt.widgets.base.PopupAtom",{extend:rwt.widgets.base.Popup,
rwt.qx.Class.define($[252],{extend:rwt.widgets.base.PopupAtom,construct:function(a,b){arguments.callee.base.call(this,a,b);this._showTimer=new rwt.client.Timer(this.getShowInterval());this._showTimer.addEventListener($[27],this._onshowtimer,this);this._hideTimer=new rwt.client.Timer(this.getHideInterval());this._hideTimer.addEventListener($[27],this._onhidetimer,this);this.addEventListener($[3],this._onmouseover);this.addEventListener($[6],this._onmouseover)},properties:{appearance:{refine:true,init:"widget-tool-tip"},hideOnHover:{check:$[2],init:true},mousePointerOffsetX:{check:$[18],init:1},mousePointerOffsetY:{check:$[18],init:20},showInterval:{check:$[18],init:1000,apply:"_applyShowInterval"},hideInterval:{check:$[18],init:4000,apply:"_applyHideInterval"},boundToWidget:{check:$[134],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=rwt.widgets.base.ClientDocument.getInstance();var j=z.getClientWidth();var f=z.getClientHeight();var c=parseInt(this.getRestrictToPageLeft(),10);var t=parseInt(this.getRestrictToPageRight(),10);var y=parseInt(this.getRestrictToPageTop(),10);var d=parseInt(this.getRestrictToPageBottom(),10);var i=(this._wantedLeft==null)?this.getLeft():this._wantedLeft;var p=this.getTop();var s=this.getBoxWidth();var r=this.getBoxHeight();var m=rwt.event.MouseEvent.getPageX();var l=rwt.event.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(rwt.event.MouseEvent.getPageX()+this.getMousePointerOffsetX());this.setTop(rwt.event.MouseEvent.getPageY()+this.getMousePointerOffsetY());this.show()},_onhidetimer:function(a){return this.hide()}},destruct:function(){var a=rwt.widgets.util.ToolTipManager.getInstance();a.remove(this);if(a.getCurrentToolTip()==this){a.resetCurrentToolTip()}this._disposeObjects("_showTimer","_hideTimer")}});
rwt.qx.Class.define("rwt.widgets.util.ToolTipManager",{type:$[37],extend:rwt.util.ObjectManager,properties:{currentToolTip:{check:$[252],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===$[3]){this._handleMouseOver(b)}else{if(a===$[6]){this._handleMouseOut(b)}}},_handleMouseOver:function(b){var c=b.getTarget();var a;if(!(c instanceof rwt.widgets.base.Widget)&&c.nodeType==1){c=rwt.event.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)}}}});
rwt.qx.Class.define("rwt.html.Window",{statics:{getInnerWidth:rwt.util.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:rwt.util.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:rwt.util.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:rwt.util.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}})}});
-rwt.qx.Class.define($[380],{type:$[37],extend:rwt.qx.Target,construct:rwt.util.Variant.select($[0],{mshtml:function(){arguments.callee.base.call(this);this._hasNavigationListener=false;this._iframe=document.createElement($[240]);this._iframe.style.visibility=$[9];this._iframe.style.position=$[15];this._iframe.style.left=$[244];this._iframe.style.top=$[244];var a=rwt.remote.Server.RESOURCE_PATH+$[369];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:$[52]},properties:{timeoutInterval:{check:$[56],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(){rwt.client.Timer.once(function(){history.back()},0)},navigateForward:function(){rwt.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 rwt.client.Timer(this.getTimeoutInterval());this._timer.addEventListener($[27],function(b){var a=this.__getState();if(a!=this._state){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:rwt.util.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:rwt.util.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:rwt.util.Variant.select($[0],{mshtml:function(b,a){if(!this._iframe.contentWindow||!this._iframe.contentWindow.document){rwt.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(a){var b=a.getData();var c=rwt.remote.Server.getInstance();c.getRemoteObject(this).notify($[374],{state:b})}},destruct:function(){this._timer.stop();this._disposeObjects("_timer");this._disposeFields("_iframe","_titles")}});
-rwt.remote.HandlerRegistry.add($[380],{factory:function(a){return rwt.client.BrowserNavigation.getInstance()},service:true,listeners:[$[374]],methods:["addToHistory"],methodHandler:{addToHistory:function(b,d){var a=d.entries;for(var c=0;c<a.length;c++){b.addToHistory(a[c][0],a[c][1])}}}});
+rwt.qx.Class.define($[381],{type:$[37],extend:rwt.qx.Target,construct:rwt.util.Variant.select($[0],{mshtml:function(){arguments.callee.base.call(this);this._hasNavigationListener=false;this._iframe=document.createElement($[240]);this._iframe.style.visibility=$[9];this._iframe.style.position=$[15];this._iframe.style.left=$[244];this._iframe.style.top=$[244];var a=rwt.remote.Server.RESOURCE_PATH+$[370];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:$[52]},properties:{timeoutInterval:{check:$[56],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(){rwt.client.Timer.once(function(){history.back()},0)},navigateForward:function(){rwt.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 rwt.client.Timer(this.getTimeoutInterval());this._timer.addEventListener($[27],function(b){var a=this.__getState();if(a!=this._state){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:rwt.util.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:rwt.util.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:rwt.util.Variant.select($[0],{mshtml:function(b,a){if(!this._iframe.contentWindow||!this._iframe.contentWindow.document){rwt.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(a){var b=a.getData();var c=rwt.remote.Server.getInstance();c.getRemoteObject(this).notify($[375],{state:b})}},destruct:function(){this._timer.stop();this._disposeObjects("_timer");this._disposeFields("_iframe","_titles")}});
+rwt.remote.HandlerRegistry.add($[381],{factory:function(a){return rwt.client.BrowserNavigation.getInstance()},service:true,listeners:[$[375]],methods:["addToHistory"],methodHandler:{addToHistory:function(b,d){var a=d.entries;for(var c=0;c<a.length;c++){b.addToHistory(a[c][0],a[c][1])}}}});
rwt.qx.Class.define($[280],{type:$[37],extend:rwt.util.ObjectManager,construct:function(){arguments.callee.base.call(this);this.__data={};this.__actions={};this.__cursors={};var e,d;var c=["move","copy",$[99],"nodrop"];for(var b=0,a=c.length;b<a;b++){d=c[b];e=this.__cursors[d]=new rwt.widgets.base.Image();e.setAppearance("cursor-dnd-"+d);e.setZIndex(100000000)}},properties:{sourceWidget:{check:$[134],nullable:true},destinationWidget:{check:$[134],nullable:true,apply:"_applyDestinationWidget"},currentAction:{check:$[50],nullable:true,event:"changeCurrentAction"},defaultCursorDeltaX:{check:$[18],init:5},defaultCursorDeltaY:{check:$[18],init:15}},members:{__lastDestinationEvent:null,_applyDestinationWidget:function(b,a){if(b){b.dispatchEvent(new rwt.event.DragEvent($[212],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:rwt.util.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=rwt.widgets.base.ClientDocument.getInstance();a.add(this.__feedbackWidget);this.__feedbackWidget.setZIndex(100000000)}},_fireUserEvents:function(b,a,c){if(b&&b!=a&&b.hasEventListeners($[284])){b.dispatchEvent(new rwt.event.DragEvent($[284],c,b,a),true)}if(a){if(b!=a&&a.hasEventListeners($[139])){a.dispatchEvent(new rwt.event.DragEvent($[139],c,a,b),true)}if(a.hasEventListeners($[255])){a.dispatchEvent(new rwt.event.DragEvent($[255],c,a,null),true)}}},handleMouseEvent:function(a){switch(a.getType()){case $[1]:return this._handleMouseDown(a);case $[5]:return this._handleMouseUp(a);case $[29]: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 rwt.event.DragEvent($[77],b,this.__dragCache.sourceWidget),true);this.__dragCache.hasFiredDragStart=true;if(this.__dragCache.dragHandlerActive){var c=this.getDropTarget(b);this._fireUserEvents(null,c,b);this.__dragCache.currentDropWidget=c;rwt.widgets.base.ClientDocument.getInstance().setCapture(true)}}}}},_handleMouseUp:function(a){if(!this.__dragCache){return}if(this.__dragCache.dragHandlerActive){this._endDrag(this.getDropTarget(a),a)}else{this.__dragCache=null}},handleKeyEvent:function(a){if(!this.__dragCache){return}switch(a.getType()){case $[7]:this._handleKeyDown(a);return;case $[34]:this._handleKeyUp(a);return}},_handleKeyDown:function(a){if(a.getKeyIdentifier()==$[118]){this.cancelDrag(a)}else{if(this.getCurrentAction()!=null){switch(a.getKeyIdentifier()){case"Shift":case $[250]: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()==$[250];var a=d.getKeyIdentifier()=="Alt";if(c||b||a){if(this.getCurrentAction()!=null){this.setAction(this._evalNewAction(!c&&d.isShiftPressed(),!b&&d.isCtrlPressed(),!a&&d.isAltPressed()));this._renderCursor();d.preventDefault()}}},cancelDrag:function(a){if(!this.__dragCache){return}if(this.__dragCache.dragHandlerActive){this._endDrag(null,a)}else{this.__dragCache=null}},globalCancelDrag:function(){if(this.__dragCache&&this.__dragCache.dragHandlerActive){this._endDragCore()}},_endDrag:function(a,b){if(a){this.__lastDestinationEvent=b;this.setDestinationWidget(a)}this.getSourceWidget().dispatchEvent(new rwt.event.DragEvent($[273],b,this.getSourceWidget(),a),true);this._endDragCore()},_endDragCore:function(){if(this.__feedbackWidget){var b=rwt.widgets.base.ClientDocument.getInstance();b.remove(this.__feedbackWidget);if(this.__feedbackAutoDispose){this.__feedbackWidget.destroy()}this.__feedbackWidget=null}var a=this.__cursor;if(a){a._style.display="none";this.__cursor=null}this._cursorDeltaX=null;this._cursorDeltaY=null;if(this.__dragCache){this.__dragCache.currentDropWidget=null;this.__dragCache=null}rwt.widgets.base.ClientDocument.getInstance().setCapture(false);this.clearData();this.clearActions();this.setSourceWidget(null);this.setDestinationWidget(null)},setCursorPosition:function(b,a){this._cursorDeltaX=b;this._cursorDeltaY=a},_renderCursor:function(){var b;var a=this.__cursor;switch(this.getCurrentAction()){case"move":b=this.__cursors.move;break;case"copy":b=this.__cursors.copy;break;case $[99]:b=this.__cursors.alias;break;default:b=this.__cursors.nodrop}if(b!=a&&a!=null){a._style.display="none"}if(!b._initialLayoutDone){rwt.widgets.base.ClientDocument.getInstance().add(b);rwt.widgets.base.Widget.flushGlobalQueues()}b._renderRuntimeLeft(this.__dragCache.pageX+((this._cursorDeltaX!=null)?this._cursorDeltaX:this.getDefaultCursorDeltaX()));b._renderRuntimeTop(this.__dragCache.pageY+((this._cursorDeltaY!=null)?this._cursorDeltaY:this.getDefaultCursorDeltaY()));if(b!=a){b._style.display=""}this.__cursor=b},supportsDrop:function(c){var b=c.getDropDataTypes();if(!b){return false}for(var a=0;a<b.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&&$[99] in this.__actions){return $[99]}else{if(d&&a&&"copy" in this.__actions){return"copy"}else{if(d&&"move" in this.__actions){return"move"}else{if(a&&$[99] in this.__actions){return $[99]}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")}});
rwt.qx.Class.define($[149],{extend:rwt.event.MouseEvent,construct:function(d,a,e,c){this._mouseEvent=a;var b=null;switch(d){case $[77]:case $[139]: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()!=$[77]){throw new Error("rwt.event.DragEvent startDrag can only be called during the dragstart event: "+this.getType())}this.stopPropagation();rwt.event.DragAndDropHandler.getInstance().startDrag()},addData:function(b,a){rwt.event.DragAndDropHandler.getInstance().addData(b,a)},getData:function(a){return rwt.event.DragAndDropHandler.getInstance().getData(a)},clearData:function(){rwt.event.DragAndDropHandler.getInstance().clearData()},getDropDataTypes:function(){return rwt.event.DragAndDropHandler.getInstance().getDropDataTypes()},addAction:function(a){rwt.event.DragAndDropHandler.getInstance().addAction(a)},removeAction:function(a){rwt.event.DragAndDropHandler.getInstance().removeAction(a)},getAction:function(){return rwt.event.DragAndDropHandler.getInstance().getCurrentAction()},clearActions:function(){rwt.event.DragAndDropHandler.getInstance().clearActions()},setFeedbackWidget:function(d,c,b,a){rwt.event.DragAndDropHandler.getInstance().setFeedbackWidget(d,c,b,a)},setCursorPosition:function(b,a){rwt.event.DragAndDropHandler.getInstance().setCursorPosition(b,a)}},destruct:function(){this._disposeFields("_mouseEvent")}});
-rwt.qx.Class.define("rwt.widgets.base.HtmlEmbed",{extend:rwt.widgets.base.Terminator,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setHtml(a)}},properties:{html:{check:$[50],init:"",apply:"_applyHtml",event:$[305]},textAlign:{check:["left",$[24],$[13],"justify"],nullable:true,themeable:true,apply:$[382]},font:{refine:true,init:null},textColor:{refine:true,init:null}},members:{_applyHtml:function(){if(this._isCreated){this._syncHtml()}},_applyTextAlign:function(b,a){if(b===null){this.removeStyleProperty($[211])}else{this.setStyleProperty($[211],b)}},_applyFont:function(b,a){this._styleFont(b)},_styleFont:function(a){if(a){a.render(this)}else{rwt.html.Font.reset(this)}},_applyTextColor:function(b,a){this._styleTextColor(b)},_styleTextColor:function(a){if(a){this.setStyleProperty($[64],a)}else{this.removeStyleProperty($[64])}},_applyElementData:function(){this._syncHtml()},_syncHtml:function(){this._getTargetNode().innerHTML=this.getHtml()}}});
-rwt.qx.Class.define("rwt.widgets.base.Iframe",{extend:rwt.widgets.base.Terminator,construct:function(a){arguments.callee.base.call(this);this.initSelectable();this.initTabIndex();this.initScrolling();if(a!=null){this.setSource(a)}},events:{load:$[11]},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){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_useAlternateLayouting:function(){return rwt.client.Client.isMobileSafari()}},properties:{tabIndex:{refine:true,init:0},selectable:{refine:true,init:false},appearance:{refine:true,init:$[240]},source:{check:$[50],apply:$[430],event:$[403],nullable:true},frameName:{check:$[50],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 rwt.html.Iframes.getWindow(this.getIframeNode())}else{return null}},getContentDocument:function(){if(this.isCreated()){return rwt.html.Iframes.getDocument(this.getIframeNode())}else{return null}},isLoaded:rwt.util.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($[566])}}},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||(rwt.client.Client.isGecko()&&!this._blockerNode.parentNode))){this._getBlockerParent().appendChild(this._blockerNode)}},release:function(){if(this._blockerNode&&(this._blockerNode.parentElement||(rwt.client.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(!rwt.widgets.base.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=$[15];a.style.top=0;a.style.left=0;return a},_createIframeNode:rwt.util.Variant.select($[0],{mshtml:function(b){var c=b?'name="'+b+'"':"";var a=rwt.widgets.base.Iframe._element=document.createElement("<iframe "+c+" ></iframe>");a.attachEvent("onload",function(){rwt.widgets.base.Iframe.load(a)});return a},"default":function(b){var a=rwt.widgets.base.Iframe._element=document.createElement($[240]);a.onload=rwt.widgets.base.Iframe.load;if(b){a.name=b}return a}}),_generateBlockerElement:function(){var b=rwt.widgets.base.Iframe._blocker=document.createElement("div");var a=b.style;if(rwt.client.Client.isMshtml()){a.backgroundColor="white";a.filter="Alpha(Opacity=0)"}a.position=$[15];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);rwt.widgets.util.IframeManager.getInstance().add(this)},_beforeDisappear:function(){arguments.callee.base.call(this);rwt.widgets.util.IframeManager.getInstance().remove(this)},_applySource:function(b,a){if(this.isCreated()){this._syncSource()}},_syncSource:function(){var b=this.getSource();if(b==null||b===""){b=rwt.remote.Server.RESOURCE_PATH+$[369]}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($[566])}},_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(rwt.client.Client.isMshtml()&&this._iframeNode&&this.getSource()!==a){this.setStyleProperty($[103],$[9]);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(rwt.widgets.base.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")}});
+rwt.qx.Class.define("rwt.widgets.base.HtmlEmbed",{extend:rwt.widgets.base.Terminator,construct:function(a){arguments.callee.base.call(this);if(a!=null){this.setHtml(a)}},properties:{html:{check:$[50],init:"",apply:"_applyHtml",event:$[305]},textAlign:{check:["left",$[24],$[13],"justify"],nullable:true,themeable:true,apply:$[383]},font:{refine:true,init:null},textColor:{refine:true,init:null}},members:{_applyHtml:function(){if(this._isCreated){this._syncHtml()}},_applyTextAlign:function(b,a){if(b===null){this.removeStyleProperty($[211])}else{this.setStyleProperty($[211],b)}},_applyFont:function(b,a){this._styleFont(b)},_styleFont:function(a){if(a){a.render(this)}else{rwt.html.Font.reset(this)}},_applyTextColor:function(b,a){this._styleTextColor(b)},_styleTextColor:function(a){if(a){this.setStyleProperty($[64],a)}else{this.removeStyleProperty($[64])}},_applyElementData:function(){this._syncHtml()},_syncHtml:function(){this._getTargetNode().innerHTML=this.getHtml()}}});
+rwt.qx.Class.define("rwt.widgets.base.Iframe",{extend:rwt.widgets.base.Terminator,construct:function(a){arguments.callee.base.call(this);this.initSelectable();this.initTabIndex();this.initScrolling();if(a!=null){this.setSource(a)}},events:{load:$[11]},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){rwt.runtime.ErrorHandler.processJavaScriptError(a)}},_useAlternateLayouting:function(){return rwt.client.Client.isMobileSafari()}},properties:{tabIndex:{refine:true,init:0},selectable:{refine:true,init:false},appearance:{refine:true,init:$[240]},source:{check:$[50],apply:$[431],event:$[404],nullable:true},frameName:{check:$[50],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 rwt.html.Iframes.getWindow(this.getIframeNode())}else{return null}},getContentDocument:function(){if(this.isCreated()){return rwt.html.Iframes.getDocument(this.getIframeNode())}else{return null}},isLoaded:rwt.util.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($[566])}}},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||(rwt.client.Client.isGecko()&&!this._blockerNode.parentNode))){this._getBlockerParent().appendChild(this._blockerNode)}},release:function(){if(this._blockerNode&&(this._blockerNode.parentElement||(rwt.client.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(!rwt.widgets.base.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=$[15];a.style.top=0;a.style.left=0;return a},_createIframeNode:rwt.util.Variant.select($[0],{mshtml:function(b){var c=b?'name="'+b+'"':"";var a=rwt.widgets.base.Iframe._element=document.createElement("<iframe "+c+" ></iframe>");a.attachEvent("onload",function(){rwt.widgets.base.Iframe.load(a)});return a},"default":function(b){var a=rwt.widgets.base.Iframe._element=document.createElement($[240]);a.onload=rwt.widgets.base.Iframe.load;if(b){a.name=b}return a}}),_generateBlockerElement:function(){var b=rwt.widgets.base.Iframe._blocker=document.createElement("div");var a=b.style;if(rwt.client.Client.isMshtml()){a.backgroundColor="white";a.filter="Alpha(Opacity=0)"}a.position=$[15];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);rwt.widgets.util.IframeManager.getInstance().add(this)},_beforeDisappear:function(){arguments.callee.base.call(this);rwt.widgets.util.IframeManager.getInstance().remove(this)},_applySource:function(b,a){if(this.isCreated()){this._syncSource()}},_syncSource:function(){var b=this.getSource();if(b==null||b===""){b=rwt.remote.Server.RESOURCE_PATH+$[370]}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($[566])}},_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(rwt.client.Client.isMshtml()&&this._iframeNode&&this.getSource()!==a){this.setStyleProperty($[103],$[9]);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(rwt.widgets.base.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")}});
rwt.qx.Mixin.define("rwt.widgets.util.MResizable",{construct:function(a){this._frame=new rwt.widgets.base.Terminator();this._frame.setAppearance("resizer-frame");this.addEventListener($[1],this._onmousedown);this.addEventListener($[5],this._onmouseup);this.addEventListener($[29],this._onmousemove)},properties:{resizableWest:{check:$[2],init:true,apply:$[272]},resizableNorth:{check:$[2],init:true,apply:$[272]},resizableEast:{check:$[2],init:true,apply:$[272]},resizableSouth:{check:$[2],init:true,apply:$[272]},resizable:{group:["resizableNorth","resizableEast","resizableSouth","resizableWest"],mode:$[239]},resizeMethod:{init:$[106],check:["opaque","lazyopaque",$[106],$[157]],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=rwt.html.Location.get(b,$[21]);var h=rwt.html.Location.get(a);switch(this.getResizeMethod()){case $[157]:this.setOpacity(0.5);break;case $[106]:var c=this._frame;if(c.getParent()!=i){c.setParent(i);rwt.widgets.base.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);if(this.getResizeMethod()==="lazyopaque"||(this.getResizeMethod()===$[106]&&this._frame&&this._frame.getParent())){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()==$[106]){this._frame.setParent(null)}}else{if(this.getResizeMethod()===$[157]){this.setOpacity(null)}}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=rwt.util.Numbers.limit(c.boxWidth+c.boxLeft-Math.max(d.getPageX(),c.parentContentLeft),c.minWidth,c.maxWidth);c.lastLeft=c.boxRight-c.lastWidth-c.parentContentLeft}else{if(this._resizeEast){c.lastWidth=rwt.util.Numbers.limit(Math.min(d.getPageX(),c.parentContentRight)-c.boxLeft,c.minWidth,c.maxWidth)}}if(this._resizeNorth){c.lastHeight=rwt.util.Numbers.limit(c.boxHeight+c.boxTop-Math.max(d.getPageY(),c.parentContentTop),c.minHeight,c.maxHeight);c.lastTop=c.boxBottom-c.lastHeight-c.parentContentTop}else{if(this._resizeSouth){c.lastHeight=rwt.util.Numbers.limit(Math.min(d.getPageY(),c.parentContentBottom)-c.boxTop,c.minHeight,c.maxHeight)}}switch(this.getResizeMethod()){case"opaque":case $[157]: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()==$[106]?this._frame:this;if(this._resizeWest||this._resizeEast){f._renderRuntimeWidth(c.lastWidth);if(this._resizeWest){f._renderRuntimeLeft(c.lastLeft)}}if(this._resizeNorth||this._resizeSouth){f._renderRuntimeHeight(c.lastHeight);if(this._resizeNorth){f._renderRuntimeTop(c.lastTop)}}}}else{var g="";var b=this.getElement();this._resizeNorth=this._resizeSouth=this._resizeWest=this._resizeEast=false;var a=rwt.html.Location.get(b);if(this._near(a.top,d.getPageY())){if(this.getResizableNorth()){g="n";this._resizeNorth=true}}else{if(this._near(a.bottom,d.getPageY())){if(this.getResizableSouth()){g="s";this._resizeSouth=true}}}if(this._near(a.left,d.getPageX())){if(this.getResizableWest()){g+="w";this._resizeWest=true}}else{if(this._near(a.right,d.getPageX())){if(this.getResizableEast()){g+="e";this._resizeEast=true}}}if(this._resizeNorth||this._resizeSouth||this._resizeWest||this._resizeEast){this.setCursor(g+"-resize")}else{this.resetCursor()}}d.stopPropagation()}},destruct:function(){this._disposeObjects("_frame")}});
rwt.qx.Class.define("rwt.widgets.base.ResizablePopup",{extend:rwt.widgets.base.Popup,include:rwt.widgets.util.MResizable,construct:function(){arguments.callee.base.call(this);this.initMinWidth();this.initMinHeight();this.initWidth();this.initHeight()},properties:{appearance:{refine:true,init:"resizer"},minWidth:{refine:true,init:"auto"},minHeight:{refine:true,init:"auto"},width:{refine:true,init:"auto"},height:{refine:true,init:"auto"}},members:{_changeWidth:function(a){this.setWidth(a)},_changeHeight:function(a){this.setHeight(a)},_getResizeParent:function(){return this.getParent()},_getMinSizeReference:function(){return this}}});
-rwt.qx.Class.define($[456],{extend:rwt.widgets.base.ResizablePopup,construct:function(d,m,g){arguments.callee.base.call(this);this.setWindowManager(g||rwt.widgets.base.Window.getDefaultWindowManager());var e=this._layout=new rwt.widgets.base.VerticalBoxLayout();e.setEdge(0);this.add(e);var f=this._captionBar=new rwt.widgets.base.HorizontalBoxLayout();f.setAppearance("window-captionbar");f.setHeight("auto");f.setOverflow($[9]);e.add(f);var q=this._captionIcon=new rwt.widgets.base.Image();q.setAppearance("window-captionbar-icon");f.add(q);var h=this._captionTitle=new rwt.widgets.base.Label(d);h.setAppearance("window-captionbar-title");h.setSelectable(false);f.add(h);var b=this._captionFlex=new rwt.widgets.base.HorizontalSpacer();f.add(b);var c=this._minimizeButton=new rwt.widgets.base.Button();c.setAppearance("window-captionbar-minimize-button");c.setTabIndex(null);c.addEventListener($[107],this._onminimizebuttonclick,this);c.addEventListener($[1],this._onbuttonmousedown,this);f.add(c);var o=this._restoreButton=new rwt.widgets.base.Button();o.setAppearance("window-captionbar-restore-button");o.setTabIndex(null);o.addEventListener($[107],this._onrestorebuttonclick,this);o.addEventListener($[1],this._onbuttonmousedown,this);var j=this._maximizeButton=new rwt.widgets.base.Button();j.setAppearance("window-captionbar-maximize-button");j.setTabIndex(null);j.addEventListener($[107],this._onmaximizebuttonclick,this);j.addEventListener($[1],this._onbuttonmousedown,this);f.add(j);var i=this._closeButton=new rwt.widgets.base.Button();i.setAppearance("window-captionbar-close-button");i.setTabIndex(null);i.addEventListener($[107],this._onclosebuttonclick,this);i.addEventListener($[1],this._onbuttonmousedown,this);f.add(i);var a=this._pane=new rwt.widgets.base.Parent();a.setHeight("1*");a.setOverflow($[9]);e.add(a);var k=this._statusBar=new rwt.widgets.base.HorizontalBoxLayout();k.setAppearance("window-statusbar");k.setHeight("auto");var n=this._statusText=new rwt.widgets.base.Label("Ready");n.setAppearance("window-statusbar-text");n.setSelectable(false);k.add(n);if(d!=null){this.setCaption(d)}if(m!=null){this.setIcon(m)}this.setAutoHide(false);this.addEventListener($[1],this._onwindowmousedown);this.addEventListener($[14],this._onwindowclick);f.addEventListener($[1],this._oncaptionmousedown,this);f.addEventListener($[5],this._oncaptionmouseup,this);f.addEventListener($[29],this._oncaptionmousemove,this);f.addEventListener($[49],this._oncaptiondblblick,this);this.remapChildrenHandlingTo(this._pane)},statics:{getDefaultWindowManager:function(){if(!rwt.widgets.base.Window._defaultWindowManager){rwt.widgets.base.Window._defaultWindowManager=new rwt.widgets.util.WindowManager()}return rwt.widgets.base.Window._defaultWindowManager}},properties:{appearance:{refine:true,init:"window"},windowManager:{check:$[391],event:"changeWindowManager"},active:{check:$[2],init:false,apply:"_applyActive",event:$[342]},modal:{check:$[2],init:false,apply:"_applyModal",event:"changeModal"},mode:{check:[$[183],$[69]],init:null,nullable:true,apply:"_applyMode",event:"changeMode"},opener:{check:$[134]},caption:{apply:"_applyCaption",event:"changeCaption",dispose:true},icon:{check:$[50],nullable:true,apply:$[343],event:"changeIcon"},status:{check:$[50],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",$[106],$[157]],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($[69])},minimize:function(){this.setMode($[183])},restore:function(){this.setMode(null)},_beforeAppear:function(){rwt.widgets.base.Parent.prototype._beforeAppear.call(this);rwt.widgets.util.PopupManager.getInstance().update();rwt.event.EventHandler.setFocusRoot(this);this.getWindowManager().add(this);this._makeActive()},_beforeDisappear:function(){rwt.widgets.base.Parent.prototype._beforeDisappear.call(this);var a=rwt.event.EventHandler.getFocusRoot();if(a==this||this.contains(a)){rwt.event.EventHandler.setFocusRoot(null)}var b=rwt.event.EventHandler.getCaptureWidget();if(b&&this.contains(b)){b.setCapture(false)}this.getWindowManager().remove(this);this._makeInactive()},_minZIndex:100000,_sendTo:function(){var d=function(g,f){return g.getZIndex()-f.getZIndex()};var e=rwt.util.Objects.getValues(this.getWindowManager().getAll()).sort(d);var c=e.length;var a=this._minZIndex;for(var b=0;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($[60]);this._captionBar.addState($[60]);this._minimizeButton.addState($[60]);this._restoreButton.addState($[60]);this._maximizeButton.addState($[60]);this._closeButton.addState($[60])}else{this.removeState($[60]);this._captionBar.removeState($[60]);this._minimizeButton.removeState($[60]);this._restoreButton.removeState($[60]);this._maximizeButton.removeState($[60]);this._closeButton.removeState($[60])}}},_applyModal:function(c,a){if(this._initialLayoutDone&&this.getVisibility()&&this.getDisplay()){var b=this.getTopLevelWidget();if(c){b.block(this)}else{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 $[183]:this._disableResize=true;this._minimize();break;case $[69]:this._disableResize=true;this._maximize();break;default:delete this._disableResize;switch(a){case $[69]:this._restoreFromMaximized();break;case $[183]: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()==$[69]?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(){if(this.getAllowMinimize()===false){this._minimizeButton.setEnabled(false)}else{this._minimizeButton.resetEnabled()}},_closeButtonManager:function(){if(this.getAllowClose()===false){this._closeButton.setEnabled(false)}else{this._closeButton.resetEnabled()}},_maximizeButtonManager:function(){var a=this.getAllowMaximize()&&this.getResizable()&&this._computedMaxWidthTypeNull&&this._computedMaxHeightTypeNull;if(this._maximizeButton){if(a===false){this._maximizeButton.setEnabled(false)}else{this._maximizeButton.resetEnabled()}}if(this._restoreButton){if(a===false){this._restoreButton.setEnabled(false)}else{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($[69]);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($[69])){this.setMode($[69])}this.show();this.focus()},_maximize:function(){if(this.hasState($[69])){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($[69]);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($[12]);this._minimizeButton.removeState($[33]);this._minimizeButton.removeState("over");a.stopPropagation()},_onrestorebuttonclick:function(a){this.restore();this._restoreButton.removeState($[12]);this._restoreButton.removeState($[33]);this._restoreButton.removeState("over");a.stopPropagation()},_onmaximizebuttonclick:function(a){this.maximize();this._maximizeButton.removeState($[12]);this._maximizeButton.removeState($[33]);this._maximizeButton.removeState("over");a.stopPropagation()},_onclosebuttonclick:function(a){this.close();this._closeButton.removeState($[12]);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=rwt.html.Location.get(c,$[21]);var a=rwt.html.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 $[157]:this.setOpacity(0.5);break;case $[106]:var h=this._frame;if(h.getParent()!=this.getParent()){h.setParent(this.getParent());rwt.widgets.base.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 $[157]:this.setOpacity(null);break;case $[106]:this._frame.setParent(null);break}delete this._dragSession},_oncaptionmousemove:function(b){var a=this._dragSession;if(!a||!this._captionBar.getCapture()){return}if(!rwt.util.Numbers.isBetweenRange(b.getPageX(),a.parentAvailableAreaLeft,a.parentAvailableAreaRight)||!rwt.util.Numbers.isBetweenRange(b.getPageY(),a.parentAvailableAreaTop,a.parentAvailableAreaBottom)){return}var c=this.getMoveMethod()==$[106]?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()==$[69]?this.restore():this.maximize()}},destruct:function(){this._disposeObjects("_layout","_captionBar","_captionIcon","_captionTitle","_captionFlex","_closeButton","_minimizeButton","_maximizeButton","_restoreButton","_pane","_statusBar","_statusText")}});
+rwt.qx.Class.define($[456],{extend:rwt.widgets.base.ResizablePopup,construct:function(d,m,g){arguments.callee.base.call(this);this.setWindowManager(g||rwt.widgets.base.Window.getDefaultWindowManager());var e=this._layout=new rwt.widgets.base.VerticalBoxLayout();e.setEdge(0);this.add(e);var f=this._captionBar=new rwt.widgets.base.HorizontalBoxLayout();f.setAppearance("window-captionbar");f.setHeight("auto");f.setOverflow($[9]);e.add(f);var q=this._captionIcon=new rwt.widgets.base.Image();q.setAppearance("window-captionbar-icon");f.add(q);var h=this._captionTitle=new rwt.widgets.base.Label(d);h.setAppearance("window-captionbar-title");h.setSelectable(false);f.add(h);var b=this._captionFlex=new rwt.widgets.base.HorizontalSpacer();f.add(b);var c=this._minimizeButton=new rwt.widgets.base.Button();c.setAppearance("window-captionbar-minimize-button");c.setTabIndex(null);c.addEventListener($[107],this._onminimizebuttonclick,this);c.addEventListener($[1],this._onbuttonmousedown,this);f.add(c);var o=this._restoreButton=new rwt.widgets.base.Button();o.setAppearance("window-captionbar-restore-button");o.setTabIndex(null);o.addEventListener($[107],this._onrestorebuttonclick,this);o.addEventListener($[1],this._onbuttonmousedown,this);var j=this._maximizeButton=new rwt.widgets.base.Button();j.setAppearance("window-captionbar-maximize-button");j.setTabIndex(null);j.addEventListener($[107],this._onmaximizebuttonclick,this);j.addEventListener($[1],this._onbuttonmousedown,this);f.add(j);var i=this._closeButton=new rwt.widgets.base.Button();i.setAppearance("window-captionbar-close-button");i.setTabIndex(null);i.addEventListener($[107],this._onclosebuttonclick,this);i.addEventListener($[1],this._onbuttonmousedown,this);f.add(i);var a=this._pane=new rwt.widgets.base.Parent();a.setHeight("1*");a.setOverflow($[9]);e.add(a);var k=this._statusBar=new rwt.widgets.base.HorizontalBoxLayout();k.setAppearance("window-statusbar");k.setHeight("auto");var n=this._statusText=new rwt.widgets.base.Label("Ready");n.setAppearance("window-statusbar-text");n.setSelectable(false);k.add(n);if(d!=null){this.setCaption(d)}if(m!=null){this.setIcon(m)}this.setAutoHide(false);this.addEventListener($[1],this._onwindowmousedown);this.addEventListener($[14],this._onwindowclick);f.addEventListener($[1],this._oncaptionmousedown,this);f.addEventListener($[5],this._oncaptionmouseup,this);f.addEventListener($[29],this._oncaptionmousemove,this);f.addEventListener($[49],this._oncaptiondblblick,this);this.remapChildrenHandlingTo(this._pane)},statics:{getDefaultWindowManager:function(){if(!rwt.widgets.base.Window._defaultWindowManager){rwt.widgets.base.Window._defaultWindowManager=new rwt.widgets.util.WindowManager()}return rwt.widgets.base.Window._defaultWindowManager}},properties:{appearance:{refine:true,init:"window"},windowManager:{check:$[392],event:"changeWindowManager"},active:{check:$[2],init:false,apply:"_applyActive",event:$[343]},modal:{check:$[2],init:false,apply:"_applyModal",event:"changeModal"},mode:{check:[$[183],$[69]],init:null,nullable:true,apply:"_applyMode",event:"changeMode"},opener:{check:$[134]},caption:{apply:"_applyCaption",event:"changeCaption",dispose:true},icon:{check:$[50],nullable:true,apply:$[344],event:"changeIcon"},status:{check:$[50],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",$[106],$[157]],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($[69])},minimize:function(){this.setMode($[183])},restore:function(){this.setMode(null)},_beforeAppear:function(){rwt.widgets.base.Parent.prototype._beforeAppear.call(this);rwt.widgets.util.PopupManager.getInstance().update();rwt.event.EventHandler.setFocusRoot(this);this.getWindowManager().add(this);this._makeActive()},_beforeDisappear:function(){rwt.widgets.base.Parent.prototype._beforeDisappear.call(this);var a=rwt.event.EventHandler.getFocusRoot();if(a==this||this.contains(a)){rwt.event.EventHandler.setFocusRoot(null)}var b=rwt.event.EventHandler.getCaptureWidget();if(b&&this.contains(b)){b.setCapture(false)}this.getWindowManager().remove(this);this._makeInactive()},_minZIndex:100000,_sendTo:function(){var d=function(g,f){return g.getZIndex()-f.getZIndex()};var e=rwt.util.Objects.getValues(this.getWindowManager().getAll()).sort(d);var c=e.length;var a=this._minZIndex;for(var b=0;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($[60]);this._captionBar.addState($[60]);this._minimizeButton.addState($[60]);this._restoreButton.addState($[60]);this._maximizeButton.addState($[60]);this._closeButton.addState($[60])}else{this.removeState($[60]);this._captionBar.removeState($[60]);this._minimizeButton.removeState($[60]);this._restoreButton.removeState($[60]);this._maximizeButton.removeState($[60]);this._closeButton.removeState($[60])}}},_applyModal:function(c,a){if(this._initialLayoutDone&&this.getVisibility()&&this.getDisplay()){var b=this.getTopLevelWidget();if(c){b.block(this)}else{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 $[183]:this._disableResize=true;this._minimize();break;case $[69]:this._disableResize=true;this._maximize();break;default:delete this._disableResize;switch(a){case $[69]:this._restoreFromMaximized();break;case $[183]: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()==$[69]?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(){if(this.getAllowMinimize()===false){this._minimizeButton.setEnabled(false)}else{this._minimizeButton.resetEnabled()}},_closeButtonManager:function(){if(this.getAllowClose()===false){this._closeButton.setEnabled(false)}else{this._closeButton.resetEnabled()}},_maximizeButtonManager:function(){var a=this.getAllowMaximize()&&this.getResizable()&&this._computedMaxWidthTypeNull&&this._computedMaxHeightTypeNull;if(this._maximizeButton){if(a===false){this._maximizeButton.setEnabled(false)}else{this._maximizeButton.resetEnabled()}}if(this._restoreButton){if(a===false){this._restoreButton.setEnabled(false)}else{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($[69]);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($[69])){this.setMode($[69])}this.show();this.focus()},_maximize:function(){if(this.hasState($[69])){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($[69]);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($[12]);this._minimizeButton.removeState($[33]);this._minimizeButton.removeState("over");a.stopPropagation()},_onrestorebuttonclick:function(a){this.restore();this._restoreButton.removeState($[12]);this._restoreButton.removeState($[33]);this._restoreButton.removeState("over");a.stopPropagation()},_onmaximizebuttonclick:function(a){this.maximize();this._maximizeButton.removeState($[12]);this._maximizeButton.removeState($[33]);this._maximizeButton.removeState("over");a.stopPropagation()},_onclosebuttonclick:function(a){this.close();this._closeButton.removeState($[12]);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=rwt.html.Location.get(c,$[21]);var a=rwt.html.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 $[157]:this.setOpacity(0.5);break;case $[106]:var h=this._frame;if(h.getParent()!=this.getParent()){h.setParent(this.getParent());rwt.widgets.base.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 $[157]:this.setOpacity(null);break;case $[106]:this._frame.setParent(null);break}delete this._dragSession},_oncaptionmousemove:function(b){var a=this._dragSession;if(!a||!this._captionBar.getCapture()){return}if(!rwt.util.Numbers.isBetweenRange(b.getPageX(),a.parentAvailableAreaLeft,a.parentAvailableAreaRight)||!rwt.util.Numbers.isBetweenRange(b.getPageY(),a.parentAvailableAreaTop,a.parentAvailableAreaBottom)){return}var c=this.getMoveMethod()==$[106]?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()==$[69]?this.restore():this.maximize()}},destruct:function(){this._disposeObjects("_layout","_captionBar","_captionIcon","_captionTitle","_captionFlex","_closeButton","_minimizeButton","_maximizeButton","_restoreButton","_pane","_statusBar","_statusText")}});
rwt.qx.Class.define("rwt.widgets.base.HorizontalSpacer",{extend:rwt.widgets.base.Terminator,construct:function(){arguments.callee.base.call(this);this.initWidth()},properties:{width:{refine:true,init:"1*"}}});
-rwt.qx.Class.define($[391],{extend:rwt.util.ObjectManager,properties:{activeWindow:{check:$[195],nullable:true,apply:"_applyActiveWindow"}},members:{blockActiveState:false,_applyActiveWindow:function(b,a){rwt.widgets.util.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])}}}}}}});
+rwt.qx.Class.define($[392],{extend:rwt.util.ObjectManager,properties:{activeWindow:{check:$[195],nullable:true,apply:"_applyActiveWindow"}},members:{blockActiveState:false,_applyActiveWindow:function(b,a){rwt.widgets.util.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])}}}}}}});
rwt.qx.Class.define("rwt.widgets.MenuItemSeparator",{extend:rwt.widgets.base.Parent,construct:function(){arguments.callee.base.call(this);this.initHeight();this.setStyleProperty($[173],"0");this.setStyleProperty($[325],"0");this._line=new rwt.widgets.base.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:rwt.util.Functions.returnFalse,hasLabel:rwt.util.Functions.returnFalse,hasShortcut:rwt.util.Functions.returnFalse,hasMenu:rwt.util.Functions.returnFalse,_onmousedown:function(a){a.stopPropagation()}},destruct:function(){this._disposeObjects("_line")}});
-rwt.qx.Class.define($[439],{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);if(a!==undefined){this.setButton(a)}this.initTop();this.initRight();this.initBottom();this.initLeft()},properties:{appearance:{refine:true,init:"tab-view-page"},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:$[353],apply:"_applyButton"}},members:{_applyButton:function(b,a){if(a){a.setPage(null)}if(b){b.setPage(this)}}}});
-rwt.qx.Class.define($[353],{extend:rwt.widgets.base.Atom,construct:function(e,d,c,a,b){arguments.callee.base.call(this,e,d,c,a,b);this.initChecked();this.initTabIndex();this._rawText=null;this._mnemonicIndex=null;this.addEventListener($[3],this._onmouseover);this.addEventListener($[6],this._onmouseout);this.addEventListener($[1],this._onmousedown);this.addEventListener($[7],this._onkeydown);this.addEventListener($[4],this._onkeypress)},events:{closetab:$[11]},properties:{appearance:{refine:true,init:"tab-view-button"},showCloseButton:{check:$[2],init:false,apply:"_applyShowCloseButton",event:"changeShowCloseButton"},closeButtonImage:{check:$[50],init:"icon/16/actions/dialog-cancel.png",apply:"_applyCloseButtonImage"},tabIndex:{refine:true,init:1},checked:{check:$[2],init:false,apply:"_applyChecked",event:$[348]},page:{check:$[439],apply:"_applyPage",nullable:true},manager:{check:$[561],nullable:true,apply:$[567]},name:{check:$[50],apply:"_applyName"}},members:{setText:function(a){this._rawText=a;this._mnemonicIndex=null;this._applyText(false)},setMnemonicIndex:function(b){this._mnemonicIndex=b;var a=rwt.widgets.util.MnemonicHandler.getInstance();if((typeof b===$[31])&&(b>=0)){a.add(this,this._onMnemonic)}else{a.remove(this)}},getMnemonicIndex:function(){return this._mnemonicIndex},_applyText:function(b){if(this._rawText){var a=b?this._mnemonicIndex:undefined;var c=rwt.util.Encoding.escapeText(this._rawText,a);this.setLabel(c)}else{this.setLabel(null)}},_onMnemonic:function(b){switch(b.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case $[122]:var a=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(b.charCode===a){this.setChecked(true);b.success=true}break}},_onkeydown:function(b){var a=b.getKeyIdentifier();if(a==$[51]||a==$[83]){this.setChecked(true)}},_onkeypress:function(c){switch(c.getKeyIdentifier()){case"Left":var b=this.getPreviousActiveSibling();if(b&&b!=this){delete rwt.widgets.util.FocusHandler.mouseFocus;b.setFocused(true);b.setChecked(true)}break;case $[36]:var a=this.getNextActiveSibling();if(a&&a!=this){delete rwt.widgets.util.FocusHandler.mouseFocus;a.setFocused(true);a.setChecked(true)}break}},_ontabclose:function(a){this.createDispatchDataEvent("closetab",this);a.stopPropagation()},_applyShowCloseButton:function(b,a){if(!this._closeButtonImage){this._closeButtonImage=new rwt.widgets.base.Image(this.getCloseButtonImage())}if(b){this._closeButtonImage.addEventListener($[14],this._ontabclose,this);this.add(this._closeButtonImage)}else{this.remove(this._closeButtonImage);this._closeButtonImage.removeEventListener($[14],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($[261])}if(this.isLastVisibleChild()){this.addState($[261])}else{this.removeState($[261])}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($[163])}else{this.removeState($[163])}if(!this.getView().getPlaceBarOnTop()){this.addState("barBottom")}else{this.removeState("barBottom")}}arguments.callee.base.call(this)},getView:function(){var a=this.getParent();return a?a.getParent():null},_applyManager:function(b,a){if(a){a.remove(this)}if(b){b.add(this)}},_applyParent:function(b,a){arguments.callee.base.call(this,b,a);if(a){a.getManager().remove(this)}if(b){b.getManager().add(this)}},_applyPage:function(b,a){if(a){a.setButton(null)}if(b){b.setButton(this);if(this.getChecked()){b.show()}else{b.hide()}}},_applyChecked:function(c,b){if(this._hasParent){var a=this.getManager();if(a){a.handleItemChecked(this,c)}}if(c){this.addState($[151])}else{this.removeState($[151])}var d=this.getPage();if(d){if(this.getChecked()){d.show()}else{d.hide()}}this.setZIndex(c?1:0)},_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")}},destruct:function(){this._disposeObjects("_closeButtonImage");this.setMnemonicIndex(null)}});
-rwt.qx.Class.define("rwt.runtime.ErrorHandler",{statics:{_overlay:null,_box:null,processJavaScriptErrorInResponse:function(a,b,c){var d=this._getErrorPageHeader();d+="<pre>"+this._gatherErrorDetails(b,a,c)+"</pre>";this.showErrorPage(d)},processJavaScriptError:function(b){this.errorObject=b;if(typeof console===$[20]){var e="Error: "+(b.message?b.message:b);if(typeof console.error!==$[8]){console.error(e)}else{if(typeof console.log!==$[8]){console.log(e)}}if(typeof console.log===$[45]&&b.stack){console.log("Error stack:\n"+b.stack)}else{if(typeof console.trace!==$[8]){console.trace()}}}var a=true;try{a=rwt.util.Variant.isSet($[26],"on")}catch(c){}if(a){var d=this._getErrorPageHeader();d+="<pre>"+this._gatherErrorDetails(b)+"</pre>";this.showErrorPage(d);throw b}},showErrorPage:function(a){this._enableTextSelection();this._freezeApplication();document.title="Error Page";this._createErrorPageArea().innerHTML=a},showErrorBox:function(a,b){if(b){this._freezeApplication()}this._overlay=this._createOverlay();this._box=this._createErrorBoxArea(450,150);this._box.style.padding="0px";this._box.style.border="1px solid #3B5998";this._box.style.overflow=$[9];var d=this._getErrorBoxData(a);this._title=this._createErrorBoxTitleArea(this._box);this._title.innerHTML=d.title;this._description=this._createErrorBoxDescriptionArea(this._box);this._description.innerHTML=d.description;this._action=this._createErrorBoxActionArea(this._box);if(d.action){this._action.innerHTML=d.action}var c=this._action.getElementsByTagName("a")[0];if(c){this._styleHyperlinkAsButton(c);c.focus()}},showWaitHint:function(){this._overlay=this._createOverlay();var c=rwt.theme.ThemeStore.getInstance();var a=$[339];var b=c.getSizedImage(a,{},"background-image");if(b&&b[0]){this._box=this._createErrorBoxArea(b[1],b[2]);rwt.html.Style.setBackgroundImage(this._box,b[0]);this._box.style.backgroundColor=$[81];this._box.style.border="none";this._box.style.overflow=$[9]}},hideErrorBox:function(){if(this._box){this._box.parentNode.removeChild(this._box);this._box=null}if(this._overlay){this._overlay.parentNode.removeChild(this._overlay);this._overlay=null}rwt.event.EventHandler.setBlockKeyEvents(false)},_getErrorPageHeader:function(){var b=this._getErrorBoxData($[568]);var a="<h2>"+b.title+"</h2>";a+="<h3>"+b.action+"</h3>";a+="<hr/>";return a},_gatherErrorDetails:function(b,a,e){var g=[];try{g.push("Error: "+b+"\n");if(a){g.push("Script: "+a)}if(b instanceof Error){for(var d in b){g.push(d+": "+b[d])}if(b.stack){g.push("Stack: "+b.stack)}}g.push("Debug: "+rwt.util.Variant.get($[26]));if(e){g.push("Request: "+e.getData())}var f=rwt.widgets.base.Widget._inFlushGlobalQueues;if(f){g.push("Phase: "+rwt.widgets.base.Widget._flushGlobalQueuesPhase)}}catch(c){}return g.join("\n ")},_createOverlay:function(){var b=document.createElement("div");var d=rwt.theme.ThemeStore.getInstance();var a=d.getColor($[339],{},$[205]);var e=d.getAlpha($[339],{},$[205]);var c=b.style;c.position=$[15];c.width="100%";c.height="100%";c.backgroundColor=a===$[8]?$[81]:a;rwt.html.Style.setOpacity(b,e);c.zIndex=100000000;document.body.appendChild(b);rwt.event.EventHandler.setBlockKeyEvents(true);return b},_createErrorPageArea:function(){var a=document.createElement("div");var b=a.style;b.position=$[15];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=$[15];c.width=d+"px";c.height=a+"px";var g=rwt.widgets.base.ClientDocument.getInstance();var f=(g.getClientWidth()-d)/2;var e=(g.getClientHeight()-a)/2;c.left=(f<0?0:f)+"px";c.top=(e<0?0:e)+"px";c.zIndex=100000001;c.padding="10px";c.textAlign=$[24];c.fontFamily='verdana,"lucida sans",arial,helvetica,sans-serif';c.fontSize="12px";c.fontStyle=$[53];c.fontWeight=$[53];document.body.appendChild(b);return b},_createErrorBoxTitleArea:function(a){var b=document.createElement("div");var c=b.style;c.position=$[15];c.left="0px";c.top="0px";c.width="100%";c.height="40px";c.padding="10px";c.textAlign="left";c.backgroundColor="#406796";c.color="white";c.fontSize="14px";c.fontWeight="bold";a.appendChild(b);return b},_createErrorBoxDescriptionArea:function(a){var b=document.createElement("div");var c=b.style;c.position=$[15];c.left="0px";c.top="40px";c.width="100%";c.height="70px";c.padding="10px";c.overflow="auto";c.textAlign="left";c.backgroundColor="white";c.color="#4a4a4a";c.fontSize="14px";a.appendChild(b);return b},_createErrorBoxActionArea:function(a){var b=document.createElement("div");var c=b.style;c.position=$[15];c.left="0px";c.top="110px";c.width="100%";c.height="40px";c.padding="10px";c.textAlign=$[24];c.borderTop=$[381];c.backgroundColor="#F2F2F2";c.fontSize="14px";a.appendChild(b);return b},_freezeApplication:function(){try{var c=rwt.widgets.Display.getCurrent();c.setExitConfirmation(null);rwt.event.EventHandler.detachEvents();rwt.qx.Target.prototype.dispatchEvent=function(){};rwt.animation.Animation._stopLoop()}catch(b){try{console.log("_freezeApplication exception: "+b)}catch(a){}}},_enableTextSelection:function(){var b=rwt.widgets.base.ClientDocument.getInstance();b.setSelectable(true);if(rwt.client.Client.isGecko()){var a=rwt.event.EventHandlerUtil;rwt.html.EventRegistration.removeEventListener(document.documentElement,$[1],a._ffMouseFixListener)}},_getErrorBoxData:function(c){var a={title:"",description:""};var b=rwt.client.ClientMessages.getInstance();switch(c){case"invalid request counter":case $[527]:a.title=b.getMessage($[401]);a.description=b.getMessage("ServerErrorDescription");a.action=$[358]+this._getRestartURL()+'">'+b.getMessage("Restart")+"</a>";break;case"session timeout":a.title=b.getMessage("SessionTimeout");a.description=b.getMessage("SessionTimeoutDescription");a.action=$[358]+this._getRestartURL()+'">'+b.getMessage("Restart")+"</a>";break;case $[505]:a.title=b.getMessage("ConnectionError");a.description=b.getMessage("ConnectionErrorDescription");a.action='<a href="javascript:rwt.remote.Server.getInstance()._retry();">'+b.getMessage("Retry")+"</a>";break;case $[568]:a.title=b.getMessage("ClientError");a.action=b.getMessage("Details");break;default:a.title=b.getMessage($[401]);a.action=$[358]+this._getRestartURL()+'">'+b.getMessage("Restart")+"</a>"}a.title=rwt.util.Encoding.replaceNewLines(a.title,"");a.description=rwt.util.Encoding.replaceNewLines(a.description,$[88]);return a},_getRestartURL:function(){var a=String(window.location);var b=a.indexOf("#");if(b!=-1){a=a.substring(0,b)}return a},_styleHyperlinkAsButton:function(a){var b=a.style;b.outline="none";b.textDecoration="none";b.backgroundColor="#E8E8E8";b.color="#4a4a4a";b.padding="5px 15px";b.borderTop=$[381];b.borderRight=$[569];b.borderBottom=$[569];b.borderLeft=$[381]}}});
+rwt.qx.Class.define($[440],{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);if(a!==undefined){this.setButton(a)}this.initTop();this.initRight();this.initBottom();this.initLeft()},properties:{appearance:{refine:true,init:"tab-view-page"},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:$[354],apply:"_applyButton"}},members:{_applyButton:function(b,a){if(a){a.setPage(null)}if(b){b.setPage(this)}}}});
+rwt.qx.Class.define($[354],{extend:rwt.widgets.base.Atom,construct:function(e,d,c,a,b){arguments.callee.base.call(this,e,d,c,a,b);this.initChecked();this.initTabIndex();this._rawText=null;this._mnemonicIndex=null;this.addEventListener($[3],this._onmouseover);this.addEventListener($[6],this._onmouseout);this.addEventListener($[1],this._onmousedown);this.addEventListener($[7],this._onkeydown);this.addEventListener($[4],this._onkeypress)},events:{closetab:$[11]},properties:{appearance:{refine:true,init:"tab-view-button"},showCloseButton:{check:$[2],init:false,apply:"_applyShowCloseButton",event:"changeShowCloseButton"},closeButtonImage:{check:$[50],init:"icon/16/actions/dialog-cancel.png",apply:"_applyCloseButtonImage"},tabIndex:{refine:true,init:1},checked:{check:$[2],init:false,apply:"_applyChecked",event:$[349]},page:{check:$[440],apply:"_applyPage",nullable:true},manager:{check:$[561],nullable:true,apply:$[567]},name:{check:$[50],apply:"_applyName"}},members:{setText:function(a){this._rawText=a;this._mnemonicIndex=null;this._applyText(false)},setMnemonicIndex:function(b){this._mnemonicIndex=b;var a=rwt.widgets.util.MnemonicHandler.getInstance();if((typeof b===$[31])&&(b>=0)){a.add(this,this._onMnemonic)}else{a.remove(this)}},getMnemonicIndex:function(){return this._mnemonicIndex},_applyText:function(b){if(this._rawText){var a=b?this._mnemonicIndex:undefined;var c=rwt.util.Encoding.escapeText(this._rawText,a);this.setLabel(c)}else{this.setLabel(null)}},_onMnemonic:function(b){switch(b.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case $[122]:var a=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(b.charCode===a){this.setChecked(true);b.success=true}break}},_onkeydown:function(b){var a=b.getKeyIdentifier();if(a==$[51]||a==$[83]){this.setChecked(true)}},_onkeypress:function(c){switch(c.getKeyIdentifier()){case"Left":var b=this.getPreviousActiveSibling();if(b&&b!=this){delete rwt.widgets.util.FocusHandler.mouseFocus;b.setFocused(true);b.setChecked(true)}break;case $[36]:var a=this.getNextActiveSibling();if(a&&a!=this){delete rwt.widgets.util.FocusHandler.mouseFocus;a.setFocused(true);a.setChecked(true)}break}},_ontabclose:function(a){this.createDispatchDataEvent("closetab",this);a.stopPropagation()},_applyShowCloseButton:function(b,a){if(!this._closeButtonImage){this._closeButtonImage=new rwt.widgets.base.Image(this.getCloseButtonImage())}if(b){this._closeButtonImage.addEventListener($[14],this._ontabclose,this);this.add(this._closeButtonImage)}else{this.remove(this._closeButtonImage);this._closeButtonImage.removeEventListener($[14],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($[261])}if(this.isLastVisibleChild()){this.addState($[261])}else{this.removeState($[261])}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($[163])}else{this.removeState($[163])}if(!this.getView().getPlaceBarOnTop()){this.addState("barBottom")}else{this.removeState("barBottom")}}arguments.callee.base.call(this)},getView:function(){var a=this.getParent();return a?a.getParent():null},_applyManager:function(b,a){if(a){a.remove(this)}if(b){b.add(this)}},_applyParent:function(b,a){arguments.callee.base.call(this,b,a);if(a){a.getManager().remove(this)}if(b){b.getManager().add(this)}},_applyPage:function(b,a){if(a){a.setButton(null)}if(b){b.setButton(this);if(this.getChecked()){b.show()}else{b.hide()}}},_applyChecked:function(c,b){if(this._hasParent){var a=this.getManager();if(a){a.handleItemChecked(this,c)}}if(c){this.addState($[151])}else{this.removeState($[151])}var d=this.getPage();if(d){if(this.getChecked()){d.show()}else{d.hide()}}this.setZIndex(c?1:0)},_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")}},destruct:function(){this._disposeObjects("_closeButtonImage");this.setMnemonicIndex(null)}});
+rwt.qx.Class.define("rwt.runtime.ErrorHandler",{statics:{_overlay:null,_box:null,processJavaScriptErrorInResponse:function(a,b,c){var d=this._getErrorPageHeader();d+="<pre>"+this._gatherErrorDetails(b,a,c)+"</pre>";this.showErrorPage(d)},processJavaScriptError:function(b){this.errorObject=b;if(typeof console===$[20]){var e="Error: "+(b.message?b.message:b);if(typeof console.error!==$[8]){console.error(e)}else{if(typeof console.log!==$[8]){console.log(e)}}if(typeof console.log===$[45]&&b.stack){console.log("Error stack:\n"+b.stack)}else{if(typeof console.trace!==$[8]){console.trace()}}}var a=true;try{a=rwt.util.Variant.isSet($[26],"on")}catch(c){}if(a){var d=this._getErrorPageHeader();d+="<pre>"+this._gatherErrorDetails(b)+"</pre>";this.showErrorPage(d);throw b}},showErrorPage:function(a){this._enableTextSelection();this._freezeApplication();document.title="Error Page";this._createErrorPageArea().innerHTML=a},showErrorBox:function(a,b){if(b){this._freezeApplication()}this._overlay=this._createOverlay();this._box=this._createErrorBoxArea(450,150);this._box.style.padding="0px";this._box.style.border="1px solid #3B5998";this._box.style.overflow=$[9];var d=this._getErrorBoxData(a);this._title=this._createErrorBoxTitleArea(this._box);this._title.innerHTML=d.title;this._description=this._createErrorBoxDescriptionArea(this._box);this._description.innerHTML=d.description;this._action=this._createErrorBoxActionArea(this._box);if(d.action){this._action.innerHTML=d.action}var c=this._action.getElementsByTagName("a")[0];if(c){this._styleHyperlinkAsButton(c);c.focus()}},showWaitHint:function(){this._overlay=this._createOverlay();var c=rwt.theme.ThemeStore.getInstance();var a=$[340];var b=c.getSizedImage(a,{},"background-image");if(b&&b[0]){this._box=this._createErrorBoxArea(b[1],b[2]);rwt.html.Style.setBackgroundImage(this._box,b[0]);this._box.style.backgroundColor=$[81];this._box.style.border="none";this._box.style.overflow=$[9]}},hideErrorBox:function(){if(this._box){this._box.parentNode.removeChild(this._box);this._box=null}if(this._overlay){this._overlay.parentNode.removeChild(this._overlay);this._overlay=null}rwt.event.EventHandler.setBlockKeyEvents(false)},_getErrorPageHeader:function(){var b=this._getErrorBoxData($[568]);var a="<h2>"+b.title+"</h2>";a+="<h3>"+b.action+"</h3>";a+="<hr/>";return a},_gatherErrorDetails:function(b,a,e){var g=[];try{g.push("Error: "+b+"\n");if(a){g.push("Script: "+a)}if(b instanceof Error){for(var d in b){g.push(d+": "+b[d])}if(b.stack){g.push("Stack: "+b.stack)}}g.push("Debug: "+rwt.util.Variant.get($[26]));if(e){g.push("Request: "+e.getData())}var f=rwt.widgets.base.Widget._inFlushGlobalQueues;if(f){g.push("Phase: "+rwt.widgets.base.Widget._flushGlobalQueuesPhase)}}catch(c){}return g.join("\n ")},_createOverlay:function(){var b=document.createElement("div");var d=rwt.theme.ThemeStore.getInstance();var a=d.getColor($[340],{},$[205]);var e=d.getAlpha($[340],{},$[205]);var c=b.style;c.position=$[15];c.width="100%";c.height="100%";c.backgroundColor=a===$[8]?$[81]:a;rwt.html.Style.setOpacity(b,e);c.zIndex=100000000;document.body.appendChild(b);rwt.event.EventHandler.setBlockKeyEvents(true);return b},_createErrorPageArea:function(){var a=document.createElement("div");var b=a.style;b.position=$[15];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=$[15];c.width=d+"px";c.height=a+"px";var g=rwt.widgets.base.ClientDocument.getInstance();var f=(g.getClientWidth()-d)/2;var e=(g.getClientHeight()-a)/2;c.left=(f<0?0:f)+"px";c.top=(e<0?0:e)+"px";c.zIndex=100000001;c.padding="10px";c.textAlign=$[24];c.fontFamily='verdana,"lucida sans",arial,helvetica,sans-serif';c.fontSize="12px";c.fontStyle=$[53];c.fontWeight=$[53];document.body.appendChild(b);return b},_createErrorBoxTitleArea:function(a){var b=document.createElement("div");var c=b.style;c.position=$[15];c.left="0px";c.top="0px";c.width="100%";c.height="40px";c.padding="10px";c.textAlign="left";c.backgroundColor="#406796";c.color="white";c.fontSize="14px";c.fontWeight="bold";a.appendChild(b);return b},_createErrorBoxDescriptionArea:function(a){var b=document.createElement("div");var c=b.style;c.position=$[15];c.left="0px";c.top="40px";c.width="100%";c.height="70px";c.padding="10px";c.overflow="auto";c.textAlign="left";c.backgroundColor="white";c.color="#4a4a4a";c.fontSize="14px";a.appendChild(b);return b},_createErrorBoxActionArea:function(a){var b=document.createElement("div");var c=b.style;c.position=$[15];c.left="0px";c.top="110px";c.width="100%";c.height="40px";c.padding="10px";c.textAlign=$[24];c.borderTop=$[382];c.backgroundColor="#F2F2F2";c.fontSize="14px";a.appendChild(b);return b},_freezeApplication:function(){try{var c=rwt.widgets.Display.getCurrent();c.setExitConfirmation(null);rwt.event.EventHandler.detachEvents();rwt.qx.Target.prototype.dispatchEvent=function(){};rwt.animation.Animation._stopLoop()}catch(b){try{console.log("_freezeApplication exception: "+b)}catch(a){}}},_enableTextSelection:function(){var b=rwt.widgets.base.ClientDocument.getInstance();b.setSelectable(true);if(rwt.client.Client.isGecko()){var a=rwt.event.EventHandlerUtil;rwt.html.EventRegistration.removeEventListener(document.documentElement,$[1],a._ffMouseFixListener)}},_getErrorBoxData:function(c){var a={title:"",description:""};var b=rwt.client.ClientMessages.getInstance();switch(c){case"invalid request counter":case $[527]:a.title=b.getMessage($[402]);a.description=b.getMessage("ServerErrorDescription");a.action=$[359]+this._getRestartURL()+'">'+b.getMessage("Restart")+"</a>";break;case"session timeout":a.title=b.getMessage("SessionTimeout");a.description=b.getMessage("SessionTimeoutDescription");a.action=$[359]+this._getRestartURL()+'">'+b.getMessage("Restart")+"</a>";break;case $[505]:a.title=b.getMessage("ConnectionError");a.description=b.getMessage("ConnectionErrorDescription");a.action='<a href="javascript:rwt.remote.Server.getInstance()._retry();">'+b.getMessage("Retry")+"</a>";break;case $[568]:a.title=b.getMessage("ClientError");a.action=b.getMessage("Details");break;default:a.title=b.getMessage($[402]);a.action=$[359]+this._getRestartURL()+'">'+b.getMessage("Restart")+"</a>"}a.title=rwt.util.Encoding.replaceNewLines(a.title,"");a.description=rwt.util.Encoding.replaceNewLines(a.description,$[88]);return a},_getRestartURL:function(){var a=String(window.location);var b=a.indexOf("#");if(b!=-1){a=a.substring(0,b)}return a},_styleHyperlinkAsButton:function(a){var b=a.style;b.outline="none";b.textDecoration="none";b.backgroundColor="#E8E8E8";b.color="#4a4a4a";b.padding="5px 15px";b.borderTop=$[382];b.borderRight=$[569];b.borderBottom=$[569];b.borderLeft=$[382]}}});
rwt.qx.Class.define("rwt.widgets.base.GridRowContainer",{extend:rwt.widgets.base.VerticalBoxLayout,construct:function(){arguments.callee.base.call(this);this.setOverflow($[9]);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 rwt.client.Timer(0);this._asyncTimer.addEventListener($[27],this._onAsyncTimer,this);this._hoverItem=null;this._hoverElement=null;this._config=rwt.widgets.base.GridRowContainer.createRenderConfig();this.addEventListener($[3],this._onRowOver,this);this.addEventListener($[6],this._onRowOver,this);this.addEventListener($[203],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:[],itemCellCheck:[],itemCellCheckLeft:[],itemCellCheckWidth:[]};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($[197],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 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]===$[8]){var a=document.createElement("div");a.style.zIndex=1;a.style.position=$[15];a.style.top="0px";a.style.width="0px";this._getVerticalGridBorder().renderElement(a);if(this._isCreated){this._getTargetNode().appendChild(a)}else{this.addEventListener($[38],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 rwt.theme.ThemeValues(d);var b=rwt.util.Strings.toFirstUp(this._baseAppearance)+"-GridLine";var c=a.getCssColor(b,$[64]);a.dispose();var e=[0,0,0,0];c=c==$[8]?$[81]:c;if(d.horizontal){e[2]=1}else{if(d.vertical){e[1]=1}}return new rwt.html.Border(e,$[73],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);this._renderBounds(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=[$[141]]}this._setHoverItem(a)},_renderAll:function(b){if(!b){this._renderGridVertical()}var c=(new Date()).getTime();this._updateRows(0,this._children.length,b);this._renderBounds();if(this._postRender){var a=this._postRender;window.setTimeout(function(){var d=(new Date()).getTime()-c;if(!a[1].isDisposed()){a[0].call(a[1],d)}},0)}},_updateRowCount:function(){var a=this.getHeight();var b=Math.round((this.getHeight()/this._rowHeight)+0.5);while(this._children.length<b){var c=new rwt.widgets.base.GridRow(this.getParent());c.setAppearance(this._getRowAppearance());c.setZIndex(0);c.setWidth(this._rowWidth);c.setHeight(this._rowHeight);c.setBorder(this._rowBorder);c.setState($[197],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(b){var a=this._children.slice(b);var c=this._items.slice(b);this._children=a.concat(this._children.slice(0,b));this._items=c.concat(this._items.slice(0,b));this._invalidateVisibleChildren()},_renderBounds:function(a){if(a){for(var b=0;b<this._children.length;b++){this._children[b].addToLayoutChanges($[110])}}this._flushChildrenQueue()},_onElementOver:function(c){var d=c.getTarget();var a=d===c.getRelatedTarget();if(d instanceof rwt.widgets.base.GridRow&&a&&this._hoverItem){var b=d.getTargetIdentifier(c);if(this._hoverElement[0]!==b[0]){this._hoverElement=b;this._setHoverItem(this._hoverItem)}}},_onRowOver:function(b){var c=b.getOriginalTarget();if(c instanceof rwt.widgets.base.GridRow){if(b.getType()===$[6]){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($[468]);rwt.widgets.util.GridRowContainerWrapper=function(){this._fixedColumns=0;this._container=[];this._container[0]=new rwt.widgets.base.GridRowContainer();this._container[1]=new rwt.widgets.base.GridRowContainer();this._config=rwt.widgets.base.GridRowContainer.createRenderConfig();this._width=0;this._splitOffset=0;this._rowWidth=0;this.addEventListener($[3],this._onRowOver,this);this.addEventListener($[6],this._onRowOver,this)};rwt.widgets.util.GridRowContainerWrapper.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 rwt.widgets.util.GridRowContainerWrapper()};rwt.widgets.util.GridRowContainerWrapper._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)}};rwt.widgets.util.GridRowContainerWrapper._createContainerGetterDelegater=function(a){this.prototype[a]=function(){return this._container[0][a].apply(this._container[0],arguments)}};rwt.widgets.util.GridRowContainerWrapper._CONTAINER_DELEGATES=["setParent",$[241],"addEventListener","removeEventListener","setSelectionProvider","setHeight","setTop","setBackgroundColor","setBackgroundImage","setRowHeight","setTopItem","renderItem","setToolTip","renderItemQueue","setBaseAppearance"];rwt.widgets.util.GridRowContainerWrapper._CONTAINER_GETTER_DELEGATES=["getTop","getHeight","getHoverItem","getElement","getChildrenLength"];rwt.widgets.util.GridRowContainerWrapper.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($[468]);rwt.widgets.util.GridUtil={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=rwt.widgets.util.GridRowContainerWrapper.createInstance()}else{a=new rwt.widgets.base.GridRowContainer()}return a},getColumnByPageX:function(b,d){var c=b.getRowContainer();var e=c instanceof rwt.widgets.util.GridRowContainerWrapper;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=rwt.html.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=rwt.html.Style;var a=rwt.util.Variant;rwt.qx.Class.define($[486],{extend:rwt.widgets.base.Terminator,construct:function(){arguments.callee.base.call(this);this.setSelectable(false);this.setHeight(16);this._styleMap={};this._overlayStyleMap={};this._variant=null;this._graphicsOverlay=null;this._expandElement=null;this._checkBoxElement=null;this._overlayElement=null;this._treeColumnElements=[];this._cellLabels=[];this._cellImages=[];this._cellCheckImages=[];this._cellBackgrounds=[];this._miscNodes=[];this._usedMiscNodes=0;this._cellsRendered=0},destruct:function(){this._expandElement=null;this._graphicsOverlay=null;this._checkBoxElement=null;this._treeColumnElements=null;this._cellLabels=null;this._cellImages=null;this._cellCheckImages=null;this._cellBackgrounds=null;this._miscNodes=null},events:{itemRendered:$[11]},members:{renderItem:function(g,e,f,j,i){this._usedMiscNodes=0;if(g!==null){var d=this._renderAsSelected(e,f);var c=this._renderHeight(g,e);var h=i&&!c;this._renderStates(g,e,d,j);this._renderBackground(g,e,d);if(e.treeColumn!==-1){this._renderIndention(g,e,j)}this._renderCheckBox(g,e,j,h);this._renderCells(g,e,d,j,h);this._renderOverlay(g,e);this._hideRemainingElements()}else{this.setBackgroundColor(null);this.setBackgroundImage(null);this.setBackgroundGradient(null);this._clearContent(e);if(!i&&e){this._renderAllBounds(e)}}this.dispatchSimpleEvent("itemRendered",g)},getTargetIdentifier:function(f){var e=f.getDomTarget();var d=[$[141]];if(this._expandElement!==null&&this._expandElement===e){d=[$[293]]}else{if(this._checkBoxElement!==null&&this._checkBoxElement===e){d=[$[245]]}else{if(this._cellCheckImages.indexOf(e)!==-1){var c=this._cellCheckImages.indexOf(e);d=[$[349],c]}else{while(e!==this.getElement()&&d[0]===$[141]){if(this._treeColumnElements.indexOf(e)!=-1){d=[$[266]]}e=e.parentNode}}}}return d},updateEvenState:function(c){this.setState("even",c%2===0)},_renderHeight:function(e,d){var c=false;var f=e.getOwnHeight();if(f!==this.getHeight()){this.setHeight(e.getOwnHeight());c=true}return c},_renderStates:function(e,c,d,f){this.setState($[151],e.isChecked());this.setState($[175],e.isGrayed());this.setState($[91],this._renderAsUnfocused(c));this.setState($[23],c.fullSelection?d:false);this._renderVariant(e.getVariant());this._renderOverState(f,c);this._styleMap=this._getStyleMap();this.setState($[23],d);if(c.fullSelection){this._overlayStyleMap=this._getOverlayStyleMap()}else{this._overlayStyleMap=this._getTreeColumnStyleMap()}},_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(e,d){var f=e!==null&&d.fullSelection;var c=e!=null&&e[0]===$[266];this.setState("over",f||c)},setState:function(d,c){if(!this.__states){this.__states={}}if(c){this.__states[d]=true}else{delete this.__states[d]}},_getStyleMap:function(){var c=rwt.theme.AppearanceManager.getInstance();return c.styleFrom(this.getAppearance(),this.__states)},_getOverlayStyleMap:function(){var c=rwt.theme.AppearanceManager.getInstance();return c.styleFrom(this.getAppearance()+"-overlay",this.__states)},_getTreeColumnStyleMap:function(){var d=rwt.theme.AppearanceManager.getInstance();var c=d.styleFrom(this.getAppearance(),this.__states);var e=d.styleFrom(this.getAppearance()+"-overlay",this.__states);e.rowForeground=c.foreground;return e},_styleFromMap:function(){},_renderBackground:function(f,d,e){var c=this._styleMap.background;var h=this._styleMap.backgroundImage;var g=this._styleMap.backgroundGradient;if(d.enabled!==false&&f!==null&&f.getBackground()!==null){c=f.getBackground();h=null;g=null}this.setBackgroundColor(c!==$[8]?c:null);this.setBackgroundImage(h!==$[8]?h:null);this.setBackgroundGradient(g!==$[8]?g:null)},_hasOverlayBackground:function(){var c=this._overlayStyleMap.background!==$[8]||this._overlayStyleMap.backgroundImage!==null||this._overlayStyleMap.backgroundGradient!==null;return c},_renderIndention:function(g,d,h){var i=this._getExpandSymbol(g,d,h);if(i!=null){var e=this._addIndentSymbol(g.getLevel(),d,i);this._expandElement=e}else{this._expandElement=null}var c=this._getLineSymbol(g,d);if(c!=null){var f=g.getParent();while(!f.isRootItem()){if(f.hasNextSibling()){this._addIndentSymbol(f.getLevel(),d,c)}f=f.getParent()}}},_getExpandSymbol:function(e,d,f){var c=this._getParentStates(d);if(e.getLevel()===0&&!e.hasPreviousSibling()){c.first=true}if(!e.hasNextSibling()){c.last=true}if(e.hasChildren()){if(e.isExpanded()){c.expanded=true}else{c.collapsed=true}}if(f&&f[0]===$[293]){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=rwt.theme.AppearanceManager.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&&h[0]===$[245]);var g=this._getImageFromAppearance($[377],k);this.setState("over",h!==null);if(this._checkBoxElement===null){this._checkBoxElement=this._createElement(3);this._checkBoxElement.style.backgroundRepeat=$[152];this._checkBoxElement.style.backgroundPosition=$[24]}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)}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);this._renderCellCheckBox(m,g,c,l,d,k);var j=this._renderCellImage(m,g,c,l,d);var h=this._renderCellLabel(m,g,c,l,d);if(!c.fullSelection&&l){this._treeColumnElements=[j,h]}}else{this._removeCell(g)}}this._cellsRendered=e},_renderOverlay:function(d,c){if(d&&this._hasOverlayBackground()){this._styleOverlay(d,c);this._layoutOverlay(d,c)}else{if(this._overlayElement){this._overlayElement.style.display="none"}}},_styleOverlay:function(e,c){var d=this._getOverlayElement();var g=this._overlayStyleMap;var f=g.backgroundGradient;if(f){this._renderOverlayGradient(d,f)}else{d.style.backgroundColor=g.background;b.setOpacity(d,g.backgroundAlpha)}},_renderOverlayGradient:function(c,d){if(rwt.client.Client.supportsCss3()){b.setBackgroundGradient(c,d)}else{rwt.graphics.GraphicsUtil.setFillGradient(this._getOverlayShape(),d)}},_getOverlayShape:function(){if(!this._graphicsOverlay){var e=rwt.graphics.GraphicsUtil;var d=e.createCanvas();var c=e.createShape($[140]);e.addToCanvas(d,c);this._graphicsOverlay={canvas:d,shape:c};this._getTargetNode().replaceChild(d.node,this._overlayElement);this._overlayElement=d.node;this._overlayElement.style.zIndex=2}return this._graphicsOverlay.shape},_layoutOverlay:function(n,d){var g=this._getOverlayElement();var m=this.getHeight();var e;var c;if(d.fullSelection){e=0;c=this.getWidth()}else{var l=d.treeColumn;var k=d.selectionPadding;e=this._getItemTextLeft(n,l,d);e-=k[0];c=this._getItemTextWidth(n,l,d);c+=c>0?k[0]:0;var j=this._getVisualTextWidth(n,l,d);j+=k[0]+k[1];c=Math.min(c,j)}if(this._graphicsOverlay){var i=rwt.graphics.GraphicsUtil;var h=this._graphicsOverlay.shape;g.style.left=e+"px";g.style.top="0px";var f=[0,0,0,0];i.setRoundRectLayout(h,0,0,c,m,f)}else{this._setBounds(g,e,0,c,m)}},_renderCellBackground:function(h,c,d,i){var f=this._getCellBackgroundColor(h,c,d);var g=false;if(f!==$[8]&&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=$[81];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($[197])){c-=1}this._setBounds(f,i,0,g,c)}},_renderCellCheckBox:function(k,i,d,h,e,g){var f=null;var j=false;if(d.itemCellCheck[i]){this.setState($[151],k.isCellChecked(i));this.setState($[175],k.isCellGrayed(i));this.setState("over",g&&g[0]===$[349]&&g[1]===i);var c=this._getImageFromAppearance($[377],this.__states);j=h||!e||!this._cellCheckImages[i];f=this._getCellCheckImage(i);this._setImage(f,c,d.enabled)}if(j){this._renderCellCheckBounds(k,i,d)}return f},_renderCellCheckBounds:function(g,c,d){var e=this._cellCheckImages[c];if(e){var h=this._getCellCheckLeft(g,c,d);var f=this._getCellCheckWidth(g,c,d);this._setBounds(e,h,0,f,this.getHeight())}},_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 i=this._getItemTextLeft(g,c,d);var f=this._getItemTextWidth(g,c,d);var h=this._getCellPadding(d)[0];this._setBounds(e,i,h,f,this.getHeight()-h)}},_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{if(this.isSeeable()){f.innerText=g?g.getText(c,false):""}else{f.innerHTML=g?g.getText(c):""}}},"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(f,d,e){var c;if(e.enabled===false){c=$[8]}else{c=f.getCellBackground(d)}return c},_getCellColor:function(g,e,f){var d=null;var h=this._styleMap.foreground;var c=this._overlayStyleMap.foreground;if(!f.fullSelection){if(this._isTreeColumn(e,f)){h=this._overlayStyleMap.rowForeground}else{c=$[8]}}if(c!==$[8]){d=c}else{if(f.enabled!==false&&g.getCellForeground(e)){d=g.getCellForeground(e)}else{d=h;if(d===$[8]){d=f.textColor}}}return d},_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=rwt.widgets.util.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($[363])},_renderAsSelected:function(d,e){var c=(e||this.hasState($[363]))&&(!d.hideSelection||d.focused)&&!d.alwaysHideSelection;return c},_getFontProps:function(d){var c={};if(d instanceof rwt.html.Font){d.renderStyle(c)}else{var e=rwt.html.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 rwt.html.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(rwt.client.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=$[152];c.style.backgroundPosition=$[24];this._cellImages[d]=c}return c},_getCellCheckImage:function(d){var c=this._cellCheckImages[d];if(!c){c=this._createElement(3);c.style.backgroundRepeat=$[152];c.style.backgroundPosition=$[24];this._cellCheckImages[d]=c}return c},_getMiscImage:function(){var c=this._getMiscElement(3);c.innerHTML="";c.style.backgroundColor="";return c},_getOverlayElement:function(){if(this._overlayElement===null){this._overlayElement=this._createElement(2)}this._overlayElement.style.display="";return this._overlayElement},_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=$[152];c.style.backgroundPosition=$[24];this._miscNodes.push(c)}this._usedMiscNodes++;return c},_createElement:function(d){var c=document.createElement("div");c.style.position=$[15];c.style.overflow=$[9];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=$[81]}}for(var d=0;d<this._cellCheckImages.length;d++){if(this._cellCheckImages[d]){this._cellCheckImages[d].style.backgroundImage=""}}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._renderOverlay(null);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._cellCheckImages,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":rwt.util.Functions.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},_getCellCheckLeft:function(f,e,d){var c=d.itemCellCheckLeft[e];if(this._isTreeColumn(e,d)){c=this._correctOffset(c,f,d)}return c},_getCellCheckWidth:function(f,e,d){var c=d.itemCellCheckWidth[e];if(this._isTreeColumn(e,d)){var g=this._getCellCheckLeft(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},_getCellPadding:function(c){var d=rwt.theme.AppearanceManager.getInstance();return d.styleFrom(c.baseAppearance+"-cell",{}).padding},_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}}})}());
-rwt.qx.Class.define($[503],{extend:rwt.widgets.base.Popup,include:rwt.animation.VisibilityAnimationMixin,construct:function(){arguments.callee.base.call(this);this._layout=null;this._preItem=null;this._hasShowListener=false;this._hasHideListener=false;this._maxCellWidths=null;this._menuLayoutScheduled=false;this._opener=null;this._mnemonics=false;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,null];this._layout=new rwt.widgets.base.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($[6],this._onMouseOut);this.addEventListener($[3],this._onMouseOver);this.addEventListener($[4],this._onKeyPress);this.addEventListener($[7],this._onKeyDown);this._openTimer=new rwt.client.Timer(250);this._openTimer.addEventListener($[27],this._onopentimer,this);this._closeTimer=new rwt.client.Timer(250);this._closeTimer.addEventListener($[27],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"){rwt.widgets.Menu.contextMenuHandler(a)}},menuDetectedByMouse:function(a){if(a.getButton()===rwt.event.MouseEvent.C_BUTTON_RIGHT){rwt.widgets.Menu.contextMenuHandler(a)}},contextMenuHandler:function(d){var e=rwt.widgets.util.WidgetUtil.getControl(d.getTarget());var b=e?e.getContextMenu():null;if(b!=null){d.stopPropagation();d.preventDefault();var c=rwt.event.MouseEvent.getPageX();var a=rwt.event.MouseEvent.getPageY();b.setLocation(c,a);b.setOpener(e);b.show()}},getAllowContextMenu:function(c,b){var a=false;switch(c.classname){case $[379]:case $[375]:case $[486]:case $[488]:case $[494]:case"qx.ui.form.TextArea":if(c.getEnabled()!==false){if(rwt.widgets.Menu._hasNativeMenu(b)){a=c.getContextMenu()==null}}break}return a},_hasNativeMenu:function(c){var a;var b=typeof c.tagName==$[10]?c.tagName.toLowerCase():"";if(b==="a"){a=c.getAttribute("href")&&c.getAttribute("target")!=="_rwt"}else{a=b===$[78]||b===$[104]}return a}},properties:{appearance:{refine:true,init:"menu"}},events:{changeHoverItem:$[11]},members:{setOpener:function(a){this._opener=a},getOpener:function(a){return this._opener},setMnemonics:function(c){if(this._mnemonics!==c){this._mnemonics=c;var a=this._layout.getChildren();for(var b=0;b<a.length;b++){if(a[b].renderText){a[b].renderText()}}}},getMnemonics:function(){return this._mnemonics},getFocusRoot:function(){var a=null;if(this._opener){a=this._opener.getFocusRoot()}else{if(this._hasParent){a=this.getParent().getFocusRoot()}}return a},addMenuItemAt:function(c,b){if(c.setParentMenu){c.setParentMenu(this)}var a=b;if(this._preItem&&this._preItem!==c){a++}this._layout.addAt(c,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<5;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(){return this._hoverItem},hoverFirstItem:function(){if(this._isDisplayable&&!this._itemsHiddenFlag){this.setHoverItem(null,true);this._hoverNextItem();this.removeState($[506])}else{this.addState($[506])}},_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==$[276]){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==$[276]){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(){rwt.widgets.base.Parent.prototype._beforeAppear.call(this);rwt.widgets.util.MenuManager.getInstance().add(this);this.bringToFront();this._makeActive();this._menuShown();rwt.widgets.util.MnemonicHandler.getInstance().deactivate()},_beforeDisappear:function(){rwt.widgets.base.Parent.prototype._beforeDisappear.call(this);rwt.widgets.util.MenuManager.getInstance().remove(this);if(this.getFocusRoot()){this._makeInactive()}this.setOpenItem(null);this.setHoverItem(null);if(this._opener instanceof rwt.widgets.MenuItem){var a=this._opener.getParentMenu();if(a instanceof rwt.widgets.MenuBar){this._opener.removeState($[12]);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)},openByMnemonic:function(a){this.setOpenItem(a,true);this.setHoverItem(null,true)},setOpenItem:function(e,d){if(this._openItem&&this._openItem.getMenu()){this._openItem.setSubMenuOpen(false);var a=this._openItem.getMenu();a.hide();if(this.getFocusRoot()){this._makeActive()}}this._openItem=e;if(e&&e.getMenu()){var b=e.getMenu();e.setSubMenuOpen(true);b.setOpener(e);var f=e.getElement();var c=this.getElement();b.setTop(rwt.html.Location.getTop(f)-2);b.setLeft(rwt.html.Location.getLeft(c)+c.offsetWidth-3);b.setMnemonics(d===true);b.show();if(d){b.hoverFirstItem()}}},_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)}},_onKeyDown:function(d){if(this._mnemonics){var e=d.getKeyCode();var c=!isNaN(e)&&rwt.event.EventHandlerUtil.isAlphaNumericKeyCode(e);if(c){var d={type:$[122],charCode:e,success:false};var a=this._layout.getChildren();for(var b=0;b<a.length;b++){if(a[b].handleMnemonic){a[b].handleMnemonic(d)}}}}},_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 $[36]:this._handleKeyRight(a);break;case $[51]: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){if(this._opener instanceof rwt.widgets.MenuItem){var a=this._opener.getParentMenu();if(a instanceof 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();rwt.widgets.util.MenuManager.getInstance().update()}}a.preventDefault();a.stopPropagation()},setHasShowListener:function(a){if(!this.hasState($[180])){this._hasShowListener=a}},setHasHideListener:function(a){if(!this.hasState($[180])){this._hasHideListener=a}},_menuShown:function(){if(!rwt.remote.EventUtil.getSuspended()){if(this._hasShowListener){if(this._preItem==null){this._preItem=new 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 c=a[b];c.setDisplay(false)}this._preItem.setDisplay(true);this._itemsHiddenFlag=true;if(this.getWidth()<60){this.setWidth(60)}rwt.remote.Server.getInstance().getRemoteObject(this).notify("Show")}else{var d=this._layout.getChildren().length!==0;this.setDisplay(d);if(d){if(this._hoverFirstItemFlag){this.hoverFirstItem()}}}}},_menuHidden:function(){if(!rwt.remote.EventUtil.getSuspended()){if(this._hasHideListener){rwt.remote.Server.getInstance().getRemoteObject(this).notify("Hide")}}},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()}}}});
+(function(){var b=rwt.html.Style;var a=rwt.util.Variant;rwt.qx.Class.define($[486],{extend:rwt.widgets.base.Terminator,construct:function(){arguments.callee.base.call(this);this.setSelectable(false);this.setHeight(16);this._styleMap={};this._overlayStyleMap={};this._variant=null;this._graphicsOverlay=null;this._expandElement=null;this._checkBoxElement=null;this._overlayElement=null;this._treeColumnElements=[];this._cellLabels=[];this._cellImages=[];this._cellCheckImages=[];this._cellBackgrounds=[];this._miscNodes=[];this._usedMiscNodes=0;this._cellsRendered=0},destruct:function(){this._expandElement=null;this._graphicsOverlay=null;this._checkBoxElement=null;this._treeColumnElements=null;this._cellLabels=null;this._cellImages=null;this._cellCheckImages=null;this._cellBackgrounds=null;this._miscNodes=null},events:{itemRendered:$[11]},members:{renderItem:function(g,e,f,j,i){this._usedMiscNodes=0;if(g!==null){var d=this._renderAsSelected(e,f);var c=this._renderHeight(g,e);var h=i&&!c;this._renderStates(g,e,d,j);this._renderBackground(g,e,d);if(e.treeColumn!==-1){this._renderIndention(g,e,j)}this._renderCheckBox(g,e,j,h);this._renderCells(g,e,d,j,h);this._renderOverlay(g,e);this._hideRemainingElements()}else{this.setBackgroundColor(null);this.setBackgroundImage(null);this.setBackgroundGradient(null);this._clearContent(e);if(!i&&e){this._renderAllBounds(e)}}this.dispatchSimpleEvent("itemRendered",g)},getTargetIdentifier:function(f){var e=f.getDomTarget();var d=[$[141]];if(this._expandElement!==null&&this._expandElement===e){d=[$[293]]}else{if(this._checkBoxElement!==null&&this._checkBoxElement===e){d=[$[245]]}else{if(this._cellCheckImages.indexOf(e)!==-1){var c=this._cellCheckImages.indexOf(e);d=[$[350],c]}else{while(e!==this.getElement()&&d[0]===$[141]){if(this._treeColumnElements.indexOf(e)!=-1){d=[$[266]]}e=e.parentNode}}}}return d},updateEvenState:function(c){this.setState("even",c%2===0)},_renderHeight:function(e,d){var c=false;var f=e.getOwnHeight();if(f!==this.getHeight()){this.setHeight(e.getOwnHeight());c=true}return c},_renderStates:function(e,c,d,f){this.setState($[151],e.isChecked());this.setState($[175],e.isGrayed());this.setState($[91],this._renderAsUnfocused(c));this.setState($[23],c.fullSelection?d:false);this._renderVariant(e.getVariant());this._renderOverState(f,c);this._styleMap=this._getStyleMap();this.setState($[23],d);if(c.fullSelection){this._overlayStyleMap=this._getOverlayStyleMap()}else{this._overlayStyleMap=this._getTreeColumnStyleMap()}},_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(e,d){var f=e!==null&&d.fullSelection;var c=e!=null&&e[0]===$[266];this.setState("over",f||c)},setState:function(d,c){if(!this.__states){this.__states={}}if(c){this.__states[d]=true}else{delete this.__states[d]}},_getStyleMap:function(){var c=rwt.theme.AppearanceManager.getInstance();return c.styleFrom(this.getAppearance(),this.__states)},_getOverlayStyleMap:function(){var c=rwt.theme.AppearanceManager.getInstance();return c.styleFrom(this.getAppearance()+"-overlay",this.__states)},_getTreeColumnStyleMap:function(){var d=rwt.theme.AppearanceManager.getInstance();var c=d.styleFrom(this.getAppearance(),this.__states);var e=d.styleFrom(this.getAppearance()+"-overlay",this.__states);e.rowForeground=c.foreground;return e},_styleFromMap:function(){},_renderBackground:function(f,d,e){var c=this._styleMap.background;var h=this._styleMap.backgroundImage;var g=this._styleMap.backgroundGradient;if(d.enabled!==false&&f!==null&&f.getBackground()!==null){c=f.getBackground();h=null;g=null}this.setBackgroundColor(c!==$[8]?c:null);this.setBackgroundImage(h!==$[8]?h:null);this.setBackgroundGradient(g!==$[8]?g:null)},_hasOverlayBackground:function(){var c=this._overlayStyleMap.background!==$[8]||this._overlayStyleMap.backgroundImage!==null||this._overlayStyleMap.backgroundGradient!==null;return c},_renderIndention:function(g,d,h){var i=this._getExpandSymbol(g,d,h);if(i!=null){var e=this._addIndentSymbol(g.getLevel(),d,i);this._expandElement=e}else{this._expandElement=null}var c=this._getLineSymbol(g,d);if(c!=null){var f=g.getParent();while(!f.isRootItem()){if(f.hasNextSibling()){this._addIndentSymbol(f.getLevel(),d,c)}f=f.getParent()}}},_getExpandSymbol:function(e,d,f){var c=this._getParentStates(d);if(e.getLevel()===0&&!e.hasPreviousSibling()){c.first=true}if(!e.hasNextSibling()){c.last=true}if(e.hasChildren()){if(e.isExpanded()){c.expanded=true}else{c.collapsed=true}}if(f&&f[0]===$[293]){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=rwt.theme.AppearanceManager.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&&h[0]===$[245]);var g=this._getImageFromAppearance($[378],k);this.setState("over",h!==null);if(this._checkBoxElement===null){this._checkBoxElement=this._createElement(3);this._checkBoxElement.style.backgroundRepeat=$[152];this._checkBoxElement.style.backgroundPosition=$[24]}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)}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);this._renderCellCheckBox(m,g,c,l,d,k);var j=this._renderCellImage(m,g,c,l,d);var h=this._renderCellLabel(m,g,c,l,d);if(!c.fullSelection&&l){this._treeColumnElements=[j,h]}}else{this._removeCell(g)}}this._cellsRendered=e},_renderOverlay:function(d,c){if(d&&this._hasOverlayBackground()){this._styleOverlay(d,c);this._layoutOverlay(d,c)}else{if(this._overlayElement){this._overlayElement.style.display="none"}}},_styleOverlay:function(e,c){var d=this._getOverlayElement();var g=this._overlayStyleMap;var f=g.backgroundGradient;if(f){this._renderOverlayGradient(d,f)}else{d.style.backgroundColor=g.background;b.setOpacity(d,g.backgroundAlpha)}},_renderOverlayGradient:function(c,d){if(rwt.client.Client.supportsCss3()){b.setBackgroundGradient(c,d)}else{rwt.graphics.GraphicsUtil.setFillGradient(this._getOverlayShape(),d)}},_getOverlayShape:function(){if(!this._graphicsOverlay){var e=rwt.graphics.GraphicsUtil;var d=e.createCanvas();var c=e.createShape($[140]);e.addToCanvas(d,c);this._graphicsOverlay={canvas:d,shape:c};this._getTargetNode().replaceChild(d.node,this._overlayElement);this._overlayElement=d.node;this._overlayElement.style.zIndex=2}return this._graphicsOverlay.shape},_layoutOverlay:function(n,d){var g=this._getOverlayElement();var m=this.getHeight();var e;var c;if(d.fullSelection){e=0;c=this.getWidth()}else{var l=d.treeColumn;var k=d.selectionPadding;e=this._getItemTextLeft(n,l,d);e-=k[0];c=this._getItemTextWidth(n,l,d);c+=c>0?k[0]:0;var j=this._getVisualTextWidth(n,l,d);j+=k[0]+k[1];c=Math.min(c,j)}if(this._graphicsOverlay){var i=rwt.graphics.GraphicsUtil;var h=this._graphicsOverlay.shape;g.style.left=e+"px";g.style.top="0px";var f=[0,0,0,0];i.setRoundRectLayout(h,0,0,c,m,f)}else{this._setBounds(g,e,0,c,m)}},_renderCellBackground:function(h,c,d,i){var f=this._getCellBackgroundColor(h,c,d);var g=false;if(f!==$[8]&&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=$[81];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($[197])){c-=1}this._setBounds(f,i,0,g,c)}},_renderCellCheckBox:function(k,i,d,h,e,g){var f=null;var j=false;if(d.itemCellCheck[i]){this.setState($[151],k.isCellChecked(i));this.setState($[175],k.isCellGrayed(i));this.setState("over",g&&g[0]===$[350]&&g[1]===i);var c=this._getImageFromAppearance($[378],this.__states);j=h||!e||!this._cellCheckImages[i];f=this._getCellCheckImage(i);this._setImage(f,c,d.enabled)}if(j){this._renderCellCheckBounds(k,i,d)}return f},_renderCellCheckBounds:function(g,c,d){var e=this._cellCheckImages[c];if(e){var h=this._getCellCheckLeft(g,c,d);var f=this._getCellCheckWidth(g,c,d);this._setBounds(e,h,0,f,this.getHeight())}},_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 i=this._getItemTextLeft(g,c,d);var f=this._getItemTextWidth(g,c,d);var h=this._getCellPadding(d)[0];this._setBounds(e,i,h,f,this.getHeight()-h)}},_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{if(this.isSeeable()){f.innerText=g?g.getText(c,false):""}else{f.innerHTML=g?g.getText(c):""}}},"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(f,d,e){var c;if(e.enabled===false){c=$[8]}else{c=f.getCellBackground(d)}return c},_getCellColor:function(g,e,f){var d=null;var h=this._styleMap.foreground;var c=this._overlayStyleMap.foreground;if(!f.fullSelection){if(this._isTreeColumn(e,f)){h=this._overlayStyleMap.rowForeground}else{c=$[8]}}if(c!==$[8]){d=c}else{if(f.enabled!==false&&g.getCellForeground(e)){d=g.getCellForeground(e)}else{d=h;if(d===$[8]){d=f.textColor}}}return d},_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=rwt.widgets.util.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($[364])},_renderAsSelected:function(d,e){var c=(e||this.hasState($[364]))&&(!d.hideSelection||d.focused)&&!d.alwaysHideSelection;return c},_getFontProps:function(d){var c={};if(d instanceof rwt.html.Font){d.renderStyle(c)}else{var e=rwt.html.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 rwt.html.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(rwt.client.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=$[152];c.style.backgroundPosition=$[24];this._cellImages[d]=c}return c},_getCellCheckImage:function(d){var c=this._cellCheckImages[d];if(!c){c=this._createElement(3);c.style.backgroundRepeat=$[152];c.style.backgroundPosition=$[24];this._cellCheckImages[d]=c}return c},_getMiscImage:function(){var c=this._getMiscElement(3);c.innerHTML="";c.style.backgroundColor="";return c},_getOverlayElement:function(){if(this._overlayElement===null){this._overlayElement=this._createElement(2)}this._overlayElement.style.display="";return this._overlayElement},_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=$[152];c.style.backgroundPosition=$[24];this._miscNodes.push(c)}this._usedMiscNodes++;return c},_createElement:function(d){var c=document.createElement("div");c.style.position=$[15];c.style.overflow=$[9];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=$[81]}}for(var d=0;d<this._cellCheckImages.length;d++){if(this._cellCheckImages[d]){this._cellCheckImages[d].style.backgroundImage=""}}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._renderOverlay(null);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._cellCheckImages,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":rwt.util.Functions.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},_getCellCheckLeft:function(f,e,d){var c=d.itemCellCheckLeft[e];if(this._isTreeColumn(e,d)){c=this._correctOffset(c,f,d)}return c},_getCellCheckWidth:function(f,e,d){var c=d.itemCellCheckWidth[e];if(this._isTreeColumn(e,d)){var g=this._getCellCheckLeft(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},_getCellPadding:function(c){var d=rwt.theme.AppearanceManager.getInstance();return d.styleFrom(c.baseAppearance+"-cell",{}).padding},_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}}})}());
+rwt.qx.Class.define($[503],{extend:rwt.widgets.base.Popup,include:rwt.animation.VisibilityAnimationMixin,construct:function(){arguments.callee.base.call(this);this._layout=null;this._preItem=null;this._hasShowListener=false;this._hasHideListener=false;this._maxCellWidths=null;this._menuLayoutScheduled=false;this._opener=null;this._mnemonics=false;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,null];this._layout=new rwt.widgets.base.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($[6],this._onMouseOut);this.addEventListener($[3],this._onMouseOver);this.addEventListener($[4],this._onKeyPress);this.addEventListener($[7],this._onKeyDown);this._openTimer=new rwt.client.Timer(250);this._openTimer.addEventListener($[27],this._onopentimer,this);this._closeTimer=new rwt.client.Timer(250);this._closeTimer.addEventListener($[27],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"){rwt.widgets.Menu.contextMenuHandler(a)}},menuDetectedByMouse:function(a){if(a.getButton()===rwt.event.MouseEvent.C_BUTTON_RIGHT){rwt.widgets.Menu.contextMenuHandler(a)}},contextMenuHandler:function(d){var e=rwt.widgets.util.WidgetUtil.getControl(d.getTarget());var b=e?e.getContextMenu():null;if(b!=null){d.stopPropagation();d.preventDefault();var c=rwt.event.MouseEvent.getPageX();var a=rwt.event.MouseEvent.getPageY();b.setLocation(c,a);b.setOpener(e);b.show()}},getAllowContextMenu:function(c,b){var a=false;switch(c.classname){case $[380]:case $[376]:case $[486]:case $[488]:case $[494]:case"qx.ui.form.TextArea":if(c.getEnabled()!==false){if(rwt.widgets.Menu._hasNativeMenu(b)){a=c.getContextMenu()==null}}break}return a},_hasNativeMenu:function(c){var a;var b=typeof c.tagName==$[10]?c.tagName.toLowerCase():"";if(b==="a"){a=c.getAttribute("href")&&c.getAttribute("target")!=="_rwt"}else{a=b===$[78]||b===$[104]}return a}},properties:{appearance:{refine:true,init:"menu"}},events:{changeHoverItem:$[11]},members:{setOpener:function(a){this._opener=a},getOpener:function(a){return this._opener},setMnemonics:function(c){if(this._mnemonics!==c){this._mnemonics=c;var a=this._layout.getChildren();for(var b=0;b<a.length;b++){if(a[b].renderText){a[b].renderText()}}}},getMnemonics:function(){return this._mnemonics},getFocusRoot:function(){var a=null;if(this._opener){a=this._opener.getFocusRoot()}else{if(this._hasParent){a=this.getParent().getFocusRoot()}}return a},addMenuItemAt:function(c,b){if(c.setParentMenu){c.setParentMenu(this)}var a=b;if(this._preItem&&this._preItem!==c){a++}this._layout.addAt(c,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<5;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(){return this._hoverItem},hoverFirstItem:function(){if(this._isDisplayable&&!this._itemsHiddenFlag){this.setHoverItem(null,true);this._hoverNextItem();this.removeState($[506])}else{this.addState($[506])}},_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==$[276]){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==$[276]){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(){rwt.widgets.base.Parent.prototype._beforeAppear.call(this);rwt.widgets.util.MenuManager.getInstance().add(this);this.bringToFront();this._makeActive();this._menuShown();rwt.widgets.util.MnemonicHandler.getInstance().deactivate()},_beforeDisappear:function(){rwt.widgets.base.Parent.prototype._beforeDisappear.call(this);rwt.widgets.util.MenuManager.getInstance().remove(this);if(this.getFocusRoot()){this._makeInactive()}this.setOpenItem(null);this.setHoverItem(null);if(this._opener instanceof rwt.widgets.MenuItem){var a=this._opener.getParentMenu();if(a instanceof rwt.widgets.MenuBar){this._opener.removeState($[12]);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)},openByMnemonic:function(a){this.setOpenItem(a,true);this.setHoverItem(null,true)},setOpenItem:function(e,d){if(this._openItem&&this._openItem.getMenu()){this._openItem.setSubMenuOpen(false);var a=this._openItem.getMenu();a.hide();if(this.getFocusRoot()){this._makeActive()}}this._openItem=e;if(e&&e.getMenu()){var b=e.getMenu();e.setSubMenuOpen(true);b.setOpener(e);var f=e.getElement();var c=this.getElement();b.setTop(rwt.html.Location.getTop(f)-2);b.setLeft(rwt.html.Location.getLeft(c)+c.offsetWidth-3);b.setMnemonics(d===true);b.show();if(d){b.hoverFirstItem()}}},_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)}},_onKeyDown:function(d){if(this._mnemonics){var e=d.getKeyCode();var c=!isNaN(e)&&rwt.event.EventHandlerUtil.isAlphaNumericKeyCode(e);if(c){var d={type:$[122],charCode:e,success:false};var a=this._layout.getChildren();for(var b=0;b<a.length;b++){if(a[b].handleMnemonic){a[b].handleMnemonic(d)}}}}},_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 $[36]:this._handleKeyRight(a);break;case $[51]: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){if(this._opener instanceof rwt.widgets.MenuItem){var a=this._opener.getParentMenu();if(a instanceof 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();rwt.widgets.util.MenuManager.getInstance().update()}}a.preventDefault();a.stopPropagation()},setHasShowListener:function(a){if(!this.hasState($[180])){this._hasShowListener=a}},setHasHideListener:function(a){if(!this.hasState($[180])){this._hasHideListener=a}},_menuShown:function(){if(!rwt.remote.EventUtil.getSuspended()){if(this._hasShowListener){if(this._preItem==null){this._preItem=new 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 c=a[b];c.setDisplay(false)}this._preItem.setDisplay(true);this._itemsHiddenFlag=true;if(this.getWidth()<60){this.setWidth(60)}rwt.remote.Server.getInstance().getRemoteObject(this).notify("Show")}else{var d=this._layout.getChildren().length!==0;this.setDisplay(d);if(d){if(this._hoverFirstItemFlag){this.hoverFirstItem()}}}}},_menuHidden:function(){if(!rwt.remote.EventUtil.getSuspended()){if(this._hasHideListener){rwt.remote.Server.getInstance().getRemoteObject(this).notify("Hide")}}},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()}}}});
rwt.remote.HandlerRegistry.add($[503],{factory:function(b){var a;if(b.style.indexOf("BAR")!=-1){a=new rwt.widgets.MenuBar()}else{a=new rwt.widgets.Menu()}rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);return a},destructor:rwt.remote.HandlerUtil.getWidgetDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:["parent",$[96],$[253],$[86]],propertyHandler:{parent:function(b,a){if(b.hasState($[180])){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setParent(c)})}},bounds:function(b,a){if(b.hasState($[180])){b.setLeft(a[0]);b.setTop(a[1]);b.setWidth(a[2]);b.setHeight(a[3])}}},listeners:["Show","Hide","Help"],listenerHandler:{Help:rwt.remote.HandlerUtil.getControlListenerHandler("Help")},methods:["unhideItems","showMenu"],methodHandler:{unhideItems:function(b,a){if(!b.hasState($[180])){b.unhideItems(a.reveal)}},showMenu:function(b,a){if(b.hasState("rwt_POP_UP")){b.showMenu(b,a.x,a.y)}}}});
rwt.qx.Class.define("rwt.remote.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=rwt.runtime.System.getInstance();return new Date().getTime()-a.getStartupTime()},widgetDefaultSelected:function(a,e){if(!rwt.remote.EventUtil.getSuspended()){var d=rwt.remote.Server.getInstance();var b={};rwt.remote.EventUtil.addModifierToProperties(b);var c=d.getRemoteObject(e?e:a.getTarget());c.notify($[121],b)}},widgetSelected:function(b){var e=b.getTarget().getLeft();var d=b.getTarget().getTop();var c=b.getTarget().getWidth();var a=b.getTarget().getHeight();rwt.remote.EventUtil.notifySelected(b.getTarget(),e,d,c,a)},notifySelected:function(h,g,f,d,a,c){if(!rwt.remote.EventUtil.getSuspended()){var e=rwt.remote.Server.getInstance();var b;if(arguments.length===2){b=g}else{b={x:g,y:f,width:d,height:a,detail:c}}rwt.remote.EventUtil.addModifierToProperties(b);e.getRemoteObject(h).notify($[32],b)}},notifyDefaultSelected:function(h,g,f,d,a,c){if(!rwt.remote.EventUtil.getSuspended()){var e=rwt.remote.Server.getInstance();var b;if(arguments.length===2){b=g}else{b={x:g,y:f,width:d,height:a,detail:c}}rwt.remote.EventUtil.addModifierToProperties(b);e.getRemoteObject(h).notify($[121],b)}},addModifierToProperties:function(a,c){var b=rwt.client.Client.getPlatform()==="mac";var d=b&&(c?c.metaKey:rwt.remote.EventUtil._metaKey)===true;a.shiftKey=c?c.shiftKey:rwt.remote.EventUtil._shiftKey;a.ctrlKey=(c?c.ctrlKey:rwt.remote.EventUtil._ctrlKey)||d;a.altKey=c?c.altKey:rwt.remote.EventUtil._altKey},_getKeyModifier:function(){var a="";var b=rwt.client.Client.getPlatform()==="mac"&&rwt.remote.EventUtil._metaKey;if(rwt.remote.EventUtil._shiftKey){a+="shift,"}if(rwt.remote.EventUtil._ctrlKey||b){a+="ctrl,"}if(rwt.remote.EventUtil._altKey){a+="alt,"}return a},focusGained:function(a){if(!rwt.remote.EventUtil.getSuspended()){var b=rwt.remote.Server.getInstance().getRemoteObject(a.getTarget());b.notify("FocusIn")}},focusLost:function(a){if(!rwt.remote.EventUtil.getSuspended()){var b=rwt.remote.Server.getInstance().getRemoteObject(a.getTarget());b.notify("FocusOut")}},mouseDown:function(a){if(!rwt.remote.EventUtil.getSuspended()&&rwt.remote.EventUtil._isRelevantMouseEvent(this,a)){rwt.remote.EventUtil._capturingWidget=this;rwt.remote.EventUtil._notifyMouseListeners(this,a,"MouseDown")}},mouseUp:function(a){if(!rwt.remote.EventUtil.getSuspended()&&rwt.remote.EventUtil._isRelevantMouseEvent(this,a)){rwt.remote.EventUtil._capturingWidget=null;rwt.remote.EventUtil._notifyMouseListeners(this,a,"MouseUp")}},mouseDoubleClick:function(a){if(!rwt.remote.EventUtil.getSuspended()&&rwt.remote.EventUtil._isRelevantMouseEvent(this,a)){rwt.remote.EventUtil._capturingWidget=this;if(rwt.remote.EventUtil._isDoubleClick(this,a)){rwt.remote.EventUtil._clearLastMouseDown();rwt.remote.EventUtil._notifyMouseListeners(this,a,$[464])}else{var b=rwt.remote.EventUtil._lastMouseDown;b.widget=this;b.button=a.getButton();b.x=a.getPageX();b.y=a.getPageY();b.mouseUpCount=0;rwt.client.Timer.once(rwt.remote.EventUtil._clearLastMouseDown,this,rwt.remote.EventUtil.DOUBLE_CLICK_TIME)}}},mouseUpCounter:function(a){if(!rwt.remote.EventUtil.getSuspended()&&rwt.remote.EventUtil._isRelevantMouseEvent(this,a)){rwt.remote.EventUtil._capturingWidget=null;rwt.remote.EventUtil._lastMouseDown.mouseUpCount+=1}},_isRelevantMouseEvent:function(c,b){var a=true;if(c!==rwt.remote.EventUtil._capturingWidget&&c!==b.getOriginalTarget()){var f=rwt.remote.WidgetManager.getInstance();var e=b.getOriginalTarget();var d=f.findEnabledControl(e);a=c===d}return a},_clearLastMouseDown:function(){var a=rwt.remote.EventUtil._lastMouseDown;a.widget=null;a.button="";a.mouseUpCount=0;a.x=-1;a.y=-1},_isDoubleClick:function(b,a){var c=rwt.remote.EventUtil._lastMouseDown;return c.mouseUpCount===1&&c.widget===b&&c.button===rwt.event.MouseEvent.C_BUTTON_LEFT&&c.button===a.getButton()},_notifyMouseListeners:function(g,b,e){var d=rwt.remote.EventUtil._determineMouseButton(b);var a=rwt.remote.EventUtil._getKeyModifier();var f=rwt.remote.Server.getInstance().getRemoteObject(g);var c={button:d,x:b.getPageX(),y:b.getPageY(),time:this.eventTimestamp()};rwt.remote.EventUtil.addModifierToProperties(c);f.notify(e,c)},_determineMouseButton:function(b){var a=0;switch(b.getButton()){case rwt.event.MouseEvent.C_BUTTON_LEFT:a=1;break;case rwt.event.MouseEvent.C_BUTTON_MIDDLE:a=2;break;case rwt.event.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=rwt.remote.WidgetManager.getInstance();var d=e.findIdByWidget(c);if(d===null){c=e.findControl(c);d=e.findIdByWidget(c)}if(d!=null){var b=rwt.remote.Server.getInstance().getRemoteObject(c);b.notify("Help")}}},menuDetectedByKey:function(b){if(b.getKeyIdentifier()==="Apps"){b.stopPropagation();b.preventDefault();var a=rwt.event.MouseEvent.getPageX();var c=rwt.event.MouseEvent.getPageY();rwt.remote.EventUtil.sendMenuDetected(b.getTarget(),a,c)}},menuDetectedByMouse:function(b){if(b.getButton()===rwt.event.MouseEvent.C_BUTTON_RIGHT){b.stopPropagation();b.preventDefault();var a=b.getPageX();var c=b.getPageY();rwt.remote.EventUtil.sendMenuDetected(b.getTarget(),a,c)}},sendMenuDetected:function(c,a,f){if(!rwt.remote.EventUtil.getSuspended()){var e=rwt.remote.WidgetManager.getInstance();while(c!=null&&!e.isControl(c)){c=c.getParent?c.getParent():null}var d=e.findIdByWidget(c);if(d!=null){var b=rwt.remote.Server.getInstance().getRemoteObject(c);b.notify("MenuDetect",{x:a,y:f})}}}}});
rwt.qx.Class.define("rwt.widgets.base.WidgetToolTip",{type:$[37],extend:rwt.widgets.base.ToolTip,include:rwt.animation.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=rwt.widgets.util.ToolTipManager.getInstance();b.setCurrentToolTip(null)},updateText:function(a){this._atom.setLabel(a.getUserData($[126]))}}});
-rwt.qx.Mixin.define("rwt.widgets.util.GraphicsMixin",{destruct:function(){this._gfxProperties=null;this._gfxData=null;this._gfxCanvas=null},statics:{getSupportsShadows:function(){if(this._shadowSupport===undefined){var b=rwt.client.Client.getEngine();var a=rwt.client.Client.getVersion();this._shadowSupport=false;switch(b){case $[123]:this._shadowSupport=a>=4;break;case $[117]:this._shadowSupport=a>=7;break;case"opera":this._shadowSupport=a>=11.6;break;case $[114]: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($[115],b);this._handleGfxBackground()},_applyShadow:rwt.util.Variant.select($[0],{"default":function(d,b){if(rwt.widgets.util.GraphicsMixin.getSupportsShadows()){var c=d!=null&&d[0];var e=this.getOpacity()!==1&&this.getOpacity()!==null;var a=d!=null&&e&&rwt.client.Client.isMshtml();if(c||a){this.setGfxProperty($[19],null)}else{this.setGfxProperty($[19],d)}this.setGfxProperty($[242],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);this._applyShadow(this.getShadow())},_checkAntiAlias:rwt.util.Variant.select($[0],{"default":rwt.util.Functions.returnTrue,mshtml:function(a){if(this._gfxData&&this._gfxData.backgroundInsert){var b=a===1||a===null;rwt.graphics.VML._setAntiAlias(this._gfxData.backgroundShape,b)}}}),_styleBackgroundColor:function(a){if(this._gfxBackgroundEnabled){this.setGfxProperty($[57],a);if(this.getGfxProperty($[174])==$[73]&&this._isCanvasReady()){this._renderGfxBackground()}}else{arguments.callee.base.call(this,a)}},_styleBackgroundImage:function(a){if(this._gfxBackgroundEnabled){this.setGfxProperty($[79],a);if(this.getGfxProperty($[174])==$[16]&&this._isCanvasReady()&&a!=null){this._renderGfxBackground()}else{this._handleGfxBackground()}}else{if(a==null&&this.getGfxProperty($[115])!=null){this._handleGfxBackground()}else{arguments.callee.base.call(this,a)}}},renderBorder:function(a){var b=this.__borderObject;if(b&&b.getStyle()===$[84]){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($[254],d);this.setGfxProperty($[386],a);this.setGfxProperty($[346],b);this.setGfxProperty($[282],g);this.setGfxProperty($[213],null);this.setGfxProperty($[242],null);this._handleGfxBorder();this._handleCssRadii(f)},_handleCssRadii:rwt.util.Variant.select($[0],{"default":rwt.util.Functions.returnTrue,newmshtml:function(c){var b=rwt.html.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!=$[8]?b:null},_handleGfxBorder:function(){var b=this.getGfxProperty($[282])!=null&&this.getGfxProperty($[254])!=null&&this.getGfxProperty($[346])!=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($[174],$[16])}else{d=this.getGfxProperty($[115])!=null;if(d){this.setGfxProperty($[174],$[115])}else{this.setGfxProperty($[174],$[73])}}var b=(d||this._gfxBorderEnabled);var a=(this._gfxBackgroundEnabled!=b);if(a){if(b){var c=this.getStyleProperty($[57]);this.removeStyleProperty($[57]);this.setGfxProperty($[57],c);var e=this.getBackgroundImage();this.setGfxProperty($[79],e);this.removeStyleProperty($[79]);this._gfxBackgroundEnabled=true}else{this._gfxBackgroundEnabled=false;this._applyBackgroundColor(this.getBackgroundColor());this.setGfxProperty($[57],null);this._applyBackgroundImage(this.getBackgroundImage());this.setGfxProperty($[79],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($[19])!=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($[371],this._gfxOnElementChanged,this);this.addEventListener("flush",this._gfxOnFlush,this)}else{this._gfxEnabled=false;this.removeEventListener($[371],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($[213],null);this.setGfxProperty($[242],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($[213]);var b=this.getGfxProperty($[254]);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:rwt.util.Variant.select($[0],{mshtml:function(){if(this._innerStyle){this._innerStyle.left="0px";this._innerStyle.top="0px";this._innerStyle.width="";this._innerStyle.height="";this.addToQueue($[25]);this.addToQueue($[17])}},"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=rwt.graphics.GraphicsUtil.createCanvas();this._prepareBackgroundShape()},_prepareForCanvas:rwt.util.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($[230]);this.removeStyleProperty($[230]);this.__outerElementStyleProperties.outline=true;this.setStyleProperty($[230],a);this._applyOpacity(this.getOpacity())},"default":function(){this.prepareEnhancedBorder();this._applyOpacity(this.getOpacity())}}),_appendCanvas:function(){var b=this.getElement();var a=rwt.graphics.GraphicsUtil.getCanvasNode(this._gfxCanvas);if(a!=null){b.insertBefore(a,b.firstChild)}this._gfxCanvasAppended=true;this.addEventListener($[145],this._onCanvasAppear);if(this._isInDom){this._onCanvasAppear()}},_removeCanvas:function(){var a=rwt.graphics.GraphicsUtil.getCanvasNode(this._gfxCanvas);if(a!=null){a.parentNode.removeChild(a);this._gfxCanvasAppended=false;this.removeEventListener($[145],this._onCanvasAppear)}},_onCanvasAppear:function(){if(this._gfxCanvasAppended){rwt.graphics.GraphicsUtil.handleAppear(this._gfxCanvas)}},_prepareBackgroundShape:function(){var c=rwt.graphics.GraphicsUtil;if(this._gfxData){var b=this._gfxData.backgroundShape;if(this._gfxBackgroundEnabled){if(b===undefined){this._gfxData.backgroundShape=c.createShape($[140])}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($[174]);var c=rwt.graphics.GraphicsUtil;if(f==$[115]){var e=this.getGfxProperty($[115]);c.setFillGradient(this._gfxData.backgroundShape,e)}else{if(f==$[16]){var d=this.getGfxProperty($[79]);d=typeof d==$[8]?null:d;var b=this._getImageSize(d);c.setFillPattern(this._gfxData.backgroundShape,d,b[0],b[1])}else{var a=this.getGfxProperty($[57]);if(a&&(a===$[81]||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($[386]);var a=this.getGfxProperty($[346]);rwt.graphics.GraphicsUtil.setStroke(b,a,d)},_layoutBackgroundShape:function(){var b=[this.getBoxWidth(),this.getBoxHeight()];var j=this.getGfxProperty($[213]);var d=!j||(b[0]!==j[0]);var c=!j||(b[1]!==j[1]);if(d||c){this.setGfxProperty($[213],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($[282]);var a=this.getGfxProperty($[254]);var q=this.getGfxProperty($[386]);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=rwt.graphics.GraphicsUtil;m.setRoundRectLayout(i,e,o,g,l,h)}},_prepareShadowShape:function(){var c=rwt.graphics.GraphicsUtil;if(this._gfxData){if(this._gfxShadowEnabled){if(this._gfxData.shadowShape===undefined){this._createShadowShape();var b=c.getCanvasNode(this._gfxCanvas);rwt.html.Style.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=rwt.graphics.GraphicsUtil;var a=b.createShape($[140]);this._gfxData.shadowShape=a;return a},_renderGfxShadow:function(){this._prepareShadowShape();if(this._gfxShadowEnabled){var b=rwt.graphics.GraphicsUtil;var c=this.getGfxProperty($[19]);var a=this._gfxData.shadowShape;b.setBlur(a,c[3]);b.setFillColor(a,c[5]);b.setOpacity(a,c[6])}},_layoutShadowShape:function(){var f=rwt.graphics.GraphicsUtil;var b=[this.getBoxWidth(),this.getBoxHeight()];var l=[this.getBoxWidth(),this.getBoxHeight()];var n=this.getGfxProperty($[242]);var s=!n||(l[0]!==n[0]);var q=!n||(l[1]!==n[1]);if(s||q){var c=this._gfxData.shadowShape;this.setGfxProperty($[242],l);var h=this.getGfxProperty($[19]);var k=this.getGfxProperty($[282]);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($[186]);if(a==null){var b=rwt.theme.ThemeStore.getInstance();a=b.getImageSize(c)}return a},_willBeLayouted:function(){return this._jobQueue!==undefined||!rwt.util.Objects.isEmpty(this._layoutChanges)}}});
+rwt.qx.Mixin.define("rwt.widgets.util.GraphicsMixin",{destruct:function(){this._gfxProperties=null;this._gfxData=null;this._gfxCanvas=null},statics:{getSupportsShadows:function(){if(this._shadowSupport===undefined){var b=rwt.client.Client.getEngine();var a=rwt.client.Client.getVersion();this._shadowSupport=false;switch(b){case $[123]:this._shadowSupport=a>=4;break;case $[117]:this._shadowSupport=a>=7;break;case"opera":this._shadowSupport=a>=11.6;break;case $[114]: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($[115],b);this._handleGfxBackground()},_applyShadow:rwt.util.Variant.select($[0],{"default":function(d,b){if(rwt.widgets.util.GraphicsMixin.getSupportsShadows()){var c=d!=null&&d[0];var e=this.getOpacity()!==1&&this.getOpacity()!==null;var a=d!=null&&e&&rwt.client.Client.isMshtml();if(c||a){this.setGfxProperty($[19],null)}else{this.setGfxProperty($[19],d)}this.setGfxProperty($[242],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);this._applyShadow(this.getShadow())},_checkAntiAlias:rwt.util.Variant.select($[0],{"default":rwt.util.Functions.returnTrue,mshtml:function(a){if(this._gfxData&&this._gfxData.backgroundInsert){var b=a===1||a===null;rwt.graphics.VML._setAntiAlias(this._gfxData.backgroundShape,b)}}}),_styleBackgroundColor:function(a){if(this._gfxBackgroundEnabled){this.setGfxProperty($[57],a);if(this.getGfxProperty($[174])==$[73]&&this._isCanvasReady()){this._renderGfxBackground()}}else{arguments.callee.base.call(this,a)}},_styleBackgroundImage:function(a){if(this._gfxBackgroundEnabled){this.setGfxProperty($[79],a);if(this.getGfxProperty($[174])==$[16]&&this._isCanvasReady()&&a!=null){this._renderGfxBackground()}else{this._handleGfxBackground()}}else{if(a==null&&this.getGfxProperty($[115])!=null){this._handleGfxBackground()}else{arguments.callee.base.call(this,a)}}},renderBorder:function(a){var b=this.__borderObject;if(b&&b.getStyle()===$[84]){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($[254],d);this.setGfxProperty($[387],a);this.setGfxProperty($[347],b);this.setGfxProperty($[282],g);this.setGfxProperty($[213],null);this.setGfxProperty($[242],null);this._handleGfxBorder();this._handleCssRadii(f)},_handleCssRadii:rwt.util.Variant.select($[0],{"default":rwt.util.Functions.returnTrue,newmshtml:function(c){var b=rwt.html.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!=$[8]?b:null},_handleGfxBorder:function(){var b=this.getGfxProperty($[282])!=null&&this.getGfxProperty($[254])!=null&&this.getGfxProperty($[347])!=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($[174],$[16])}else{d=this.getGfxProperty($[115])!=null;if(d){this.setGfxProperty($[174],$[115])}else{this.setGfxProperty($[174],$[73])}}var b=(d||this._gfxBorderEnabled);var a=(this._gfxBackgroundEnabled!=b);if(a){if(b){var c=this.getStyleProperty($[57]);this.removeStyleProperty($[57]);this.setGfxProperty($[57],c);var e=this.getBackgroundImage();this.setGfxProperty($[79],e);this.removeStyleProperty($[79]);this._gfxBackgroundEnabled=true}else{this._gfxBackgroundEnabled=false;this._applyBackgroundColor(this.getBackgroundColor());this.setGfxProperty($[57],null);this._applyBackgroundImage(this.getBackgroundImage());this.setGfxProperty($[79],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($[19])!=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($[372],this._gfxOnElementChanged,this);this.addEventListener("flush",this._gfxOnFlush,this)}else{this._gfxEnabled=false;this.removeEventListener($[372],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($[213],null);this.setGfxProperty($[242],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($[213]);var b=this.getGfxProperty($[254]);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:rwt.util.Variant.select($[0],{mshtml:function(){if(this._innerStyle){this._innerStyle.left="0px";this._innerStyle.top="0px";this._innerStyle.width="";this._innerStyle.height="";this.addToQueue($[25]);this.addToQueue($[17])}},"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=rwt.graphics.GraphicsUtil.createCanvas();this._prepareBackgroundShape()},_prepareForCanvas:rwt.util.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($[230]);this.removeStyleProperty($[230]);this.__outerElementStyleProperties.outline=true;this.setStyleProperty($[230],a);this._applyOpacity(this.getOpacity())},"default":function(){this.prepareEnhancedBorder();this._applyOpacity(this.getOpacity())}}),_appendCanvas:function(){var b=this.getElement();var a=rwt.graphics.GraphicsUtil.getCanvasNode(this._gfxCanvas);if(a!=null){b.insertBefore(a,b.firstChild)}this._gfxCanvasAppended=true;this.addEventListener($[145],this._onCanvasAppear);if(this._isInDom){this._onCanvasAppear()}},_removeCanvas:function(){var a=rwt.graphics.GraphicsUtil.getCanvasNode(this._gfxCanvas);if(a!=null){a.parentNode.removeChild(a);this._gfxCanvasAppended=false;this.removeEventListener($[145],this._onCanvasAppear)}},_onCanvasAppear:function(){if(this._gfxCanvasAppended){rwt.graphics.GraphicsUtil.handleAppear(this._gfxCanvas)}},_prepareBackgroundShape:function(){var c=rwt.graphics.GraphicsUtil;if(this._gfxData){var b=this._gfxData.backgroundShape;if(this._gfxBackgroundEnabled){if(b===undefined){this._gfxData.backgroundShape=c.createShape($[140])}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($[174]);var c=rwt.graphics.GraphicsUtil;if(f==$[115]){var e=this.getGfxProperty($[115]);c.setFillGradient(this._gfxData.backgroundShape,e)}else{if(f==$[16]){var d=this.getGfxProperty($[79]);d=typeof d==$[8]?null:d;var b=this._getImageSize(d);c.setFillPattern(this._gfxData.backgroundShape,d,b[0],b[1])}else{var a=this.getGfxProperty($[57]);if(a&&(a===$[81]||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($[387]);var a=this.getGfxProperty($[347]);rwt.graphics.GraphicsUtil.setStroke(b,a,d)},_layoutBackgroundShape:function(){var b=[this.getBoxWidth(),this.getBoxHeight()];var j=this.getGfxProperty($[213]);var d=!j||(b[0]!==j[0]);var c=!j||(b[1]!==j[1]);if(d||c){this.setGfxProperty($[213],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($[282]);var a=this.getGfxProperty($[254]);var q=this.getGfxProperty($[387]);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=rwt.graphics.GraphicsUtil;m.setRoundRectLayout(i,e,o,g,l,h)}},_prepareShadowShape:function(){var c=rwt.graphics.GraphicsUtil;if(this._gfxData){if(this._gfxShadowEnabled){if(this._gfxData.shadowShape===undefined){this._createShadowShape();var b=c.getCanvasNode(this._gfxCanvas);rwt.html.Style.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=rwt.graphics.GraphicsUtil;var a=b.createShape($[140]);this._gfxData.shadowShape=a;return a},_renderGfxShadow:function(){this._prepareShadowShape();if(this._gfxShadowEnabled){var b=rwt.graphics.GraphicsUtil;var c=this.getGfxProperty($[19]);var a=this._gfxData.shadowShape;b.setBlur(a,c[3]);b.setFillColor(a,c[5]);b.setOpacity(a,c[6])}},_layoutShadowShape:function(){var f=rwt.graphics.GraphicsUtil;var b=[this.getBoxWidth(),this.getBoxHeight()];var l=[this.getBoxWidth(),this.getBoxHeight()];var n=this.getGfxProperty($[242]);var s=!n||(l[0]!==n[0]);var q=!n||(l[1]!==n[1]);if(s||q){var c=this._gfxData.shadowShape;this.setGfxProperty($[242],l);var h=this.getGfxProperty($[19]);var k=this.getGfxProperty($[282]);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($[186]);if(a==null){var b=rwt.theme.ThemeStore.getInstance();a=b.getImageSize(c)}return a},_willBeLayouted:function(){return this._jobQueue!==undefined||!rwt.util.Objects.isEmpty(this._layoutChanges)}}});
rwt.qx.Class.define("rwt.graphics.GraphicsUtil",{statics:{_renderClass:null,init:function(){if(this._renderClass==null){if(rwt.client.Client.supportsVml()){this._renderClass=rwt.graphics.VML}else{if(rwt.client.Client.supportsSvg()){this._renderClass=rwt.graphics.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)}}});
-rwt.qx.Class.define("rwt.graphics.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=$[15];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 $[140]:case"custom":a=this._createCustomShape();a.blurRadius=0;break;case $[16]: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=rwt.qx.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=rwt.qx.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!=$[8]){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=$[73];if(a!=null&&a!==$[81]&&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)==$[64]){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=$[115];var f=i[0][1];l.color2=i[i.length-1][1];l.angle=i.horizontal?270:180;var h="0% "+f;var c=rwt.util.Colors.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=rwt.util.Colors.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==$[73]){a=$[64]}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==$[31]||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===$[31]&&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===$[31]&&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($[365]);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{rwt.html.Style.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=$[15];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($[16]);b.style.position=$[15];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=$[15];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($[220]);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===$[20]){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,10)+((a-b)*d);return Math.round(c)},_convertNumeric:function(c,b){var a;if(typeof c==$[31]){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 $[129]:b.push("X");e=null;break;case $[471]: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 $[415]: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]]}});
-rwt.qx.Class.define("rwt.graphics.SVG",{statics:{init:function(){},createCanvas:function(){var b={};var c=this._createNode("svg");c.style.position=$[15];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 $[140]:a=this._createRoundRect();break;default:throw"invalid shape "+b}a.node.setAttribute($[220],"none");a.node.setAttribute($[351],"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($[167],b?"inline":"none")},getDisplay:function(b){var c=b.node.getAttribute($[167]);var a=c=="none"?false:true;return a},setRectBounds:function(c,b,f,d,a){var e=c.node;e.setAttribute($[25],this._convertNumeric(d));e.setAttribute($[17],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)==$[64]){a=b.node.getAttribute("fill")}return a},setFillGradient:function(d,f){if(f!=null){var g="gradient_"+rwt.qx.Object.toHashCode(d);var a;var c=f.horizontal===true;if(typeof d.defNodes[g]==$[8]){a=this._createNode($[481]);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=a.childNodes[0];while(b){a.removeChild(b);b=a.childNodes[0]}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=rwt.qx.Object.toHashCode(d);var c="pattern_"+g;var a;var h;if(typeof d.defNodes[c]==$[8]){a=this._createNode("pattern");a.setAttribute("id",c);a.setAttribute("x",0);a.setAttribute("y",0);a.setAttribute("patternUnits","userSpaceOnUse");h=this._createNode($[16]);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($[25],e);a.setAttribute($[17],b);h.setAttribute($[25],e);h.setAttribute($[17],b);d.node.setAttribute("fill","url(#"+c+")");if(rwt.client.Client.getEngine()==$[114]){this._onImageLoad(f,function(){if(d.parent!==null&&d.parent.node.parentNode){rwt.graphics.SVG._setXLink(h,f);rwt.graphics.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=$[115]}else{if(a=="none"){a=null}else{a=$[64]}}}return a},setStroke:function(b,a,c){b.node.setAttribute($[351],c+"px");if(c===0){b.node.setAttribute($[220],"none")}else{b.node.setAttribute($[220],a!=null?a:"none")}},getStrokeWidth:function(a){return parseFloat(a.node.getAttribute($[351]))},getStrokeColor:function(a){return a.node.getAttribute($[220])},setOpacity:function(a,b){a.node.setAttribute($[55],b)},getOpacity:function(b){var a=b.node.getAttribute($[55]);return a?a:0},setBlur:function(a,c){if(c>0){var d="filter_"+rwt.qx.Object.toHashCode(a);var b;if(typeof a.defNodes[d]===$[8]){b=this._createNode($[98]);b.setAttribute("id",d);b.appendChild(this._createNode("feGaussianBlur"));this._addNewDefinition(a,b,d)}else{b=a.defNodes[d]}b.firstChild.setAttribute($[535],c/2);a.node.setAttribute($[98],"url(#"+d+")")}else{a.node.setAttribute($[98],"none")}},getBlur:function(b){var a=0;var c=b.node.getAttribute($[98]);if(c&&c!=="none"){var e="filter_"+rwt.qx.Object.toHashCode(b);var d=b.defNodes[e];a=d.firstChild.getAttribute($[535])*2}return a},_onImageLoad:function(c,b){var a=new Image();a.src=c;a.onload=function(d){if(arguments.callee.caller!=null){rwt.graphics.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($[25],"0");b.setAttribute($[17],"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==$[10]?a:a+"px"},_redrawWebkit:function(a){var b=function(){rwt.graphics.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}}});
-rwt.qx.Class.define("rwt.widgets.util.WidgetUtil",{statics:{fixIEBoxHeight:rwt.util.Variant.select($[0],{mshtml:function(a){a.setStyleProperty($[173],"0");a.setStyleProperty($[325],"0")},"default":rwt.util.Functions.returnTrue}),getControl:function(b){var c=rwt.remote.WidgetManager.getInstance();var a=b;while(a!=null&&!c.isControl(a)){a=a.getParent?a.getParent():null}return a},getChildIds:function(a){return a.getUserData($[399])},_fakeMouseEvent:function(b,d){if(b.getEnabled()){var f=b._getTargetNode();var a=rwt.event.EventHandlerUtil;var g=a.getTargetObject(null,b,true);var c={type:d,target:f,button:0,wheelData:0,detail:0,pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0,shiftKey:false,ctrlKey:false,altKey:false,metaKey:false,preventDefault:function(){}};var e=new rwt.event.MouseEvent(d,c,f,g,b,null);g.dispatchEvent(e)}}}});
+rwt.qx.Class.define("rwt.graphics.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=$[15];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 $[140]:case"custom":a=this._createCustomShape();a.blurRadius=0;break;case $[16]: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=rwt.qx.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=rwt.qx.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!=$[8]){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=$[73];if(a!=null&&a!==$[81]&&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)==$[64]){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=$[115];var f=i[0][1];l.color2=i[i.length-1][1];l.angle=i.horizontal?270:180;var h="0% "+f;var c=rwt.util.Colors.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=rwt.util.Colors.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==$[73]){a=$[64]}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==$[31]||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===$[31]&&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===$[31]&&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($[366]);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{rwt.html.Style.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=$[15];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($[16]);b.style.position=$[15];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=$[15];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($[220]);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===$[20]){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,10)+((a-b)*d);return Math.round(c)},_convertNumeric:function(c,b){var a;if(typeof c==$[31]){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 $[129]:b.push("X");e=null;break;case $[471]: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 $[416]: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]]}});
+rwt.qx.Class.define("rwt.graphics.SVG",{statics:{init:function(){},createCanvas:function(){var b={};var c=this._createNode("svg");c.style.position=$[15];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 $[140]:a=this._createRoundRect();break;default:throw"invalid shape "+b}a.node.setAttribute($[220],"none");a.node.setAttribute($[352],"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($[167],b?"inline":"none")},getDisplay:function(b){var c=b.node.getAttribute($[167]);var a=c=="none"?false:true;return a},setRectBounds:function(c,b,f,d,a){var e=c.node;e.setAttribute($[25],this._convertNumeric(d));e.setAttribute($[17],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)==$[64]){a=b.node.getAttribute("fill")}return a},setFillGradient:function(d,f){if(f!=null){var g="gradient_"+rwt.qx.Object.toHashCode(d);var a;var c=f.horizontal===true;if(typeof d.defNodes[g]==$[8]){a=this._createNode($[481]);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=a.childNodes[0];while(b){a.removeChild(b);b=a.childNodes[0]}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=rwt.qx.Object.toHashCode(d);var c="pattern_"+g;var a;var h;if(typeof d.defNodes[c]==$[8]){a=this._createNode("pattern");a.setAttribute("id",c);a.setAttribute("x",0);a.setAttribute("y",0);a.setAttribute("patternUnits","userSpaceOnUse");h=this._createNode($[16]);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($[25],e);a.setAttribute($[17],b);h.setAttribute($[25],e);h.setAttribute($[17],b);d.node.setAttribute("fill","url(#"+c+")");if(rwt.client.Client.getEngine()==$[114]){this._onImageLoad(f,function(){if(d.parent!==null&&d.parent.node.parentNode){rwt.graphics.SVG._setXLink(h,f);rwt.graphics.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=$[115]}else{if(a=="none"){a=null}else{a=$[64]}}}return a},setStroke:function(b,a,c){b.node.setAttribute($[352],c+"px");if(c===0){b.node.setAttribute($[220],"none")}else{b.node.setAttribute($[220],a!=null?a:"none")}},getStrokeWidth:function(a){return parseFloat(a.node.getAttribute($[352]))},getStrokeColor:function(a){return a.node.getAttribute($[220])},setOpacity:function(a,b){a.node.setAttribute($[55],b)},getOpacity:function(b){var a=b.node.getAttribute($[55]);return a?a:0},setBlur:function(a,c){if(c>0){var d="filter_"+rwt.qx.Object.toHashCode(a);var b;if(typeof a.defNodes[d]===$[8]){b=this._createNode($[98]);b.setAttribute("id",d);b.appendChild(this._createNode("feGaussianBlur"));this._addNewDefinition(a,b,d)}else{b=a.defNodes[d]}b.firstChild.setAttribute($[535],c/2);a.node.setAttribute($[98],"url(#"+d+")")}else{a.node.setAttribute($[98],"none")}},getBlur:function(b){var a=0;var c=b.node.getAttribute($[98]);if(c&&c!=="none"){var e="filter_"+rwt.qx.Object.toHashCode(b);var d=b.defNodes[e];a=d.firstChild.getAttribute($[535])*2}return a},_onImageLoad:function(c,b){var a=new Image();a.src=c;a.onload=function(d){if(arguments.callee.caller!=null){rwt.graphics.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($[25],"0");b.setAttribute($[17],"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==$[10]?a:a+"px"},_redrawWebkit:function(a){var b=function(){rwt.graphics.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}}});
+rwt.qx.Class.define("rwt.widgets.util.WidgetUtil",{statics:{fixIEBoxHeight:rwt.util.Variant.select($[0],{mshtml:function(a){a.setStyleProperty($[173],"0");a.setStyleProperty($[325],"0")},"default":rwt.util.Functions.returnTrue}),getControl:function(b){var c=rwt.remote.WidgetManager.getInstance();var a=b;while(a!=null&&!c.isControl(a)){a=a.getParent?a.getParent():null}return a},getChildIds:function(a){return a.getUserData($[400])},_fakeMouseEvent:function(b,d){if(b.getEnabled()){var f=b._getTargetNode();var a=rwt.event.EventHandlerUtil;var g=a.getTargetObject(null,b,true);var c={type:d,target:f,button:0,wheelData:0,detail:0,pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0,shiftKey:false,ctrlKey:false,altKey:false,metaKey:false,preventDefault:function(){}};var e=new rwt.event.MouseEvent(d,c,f,g,b,null);g.dispatchEvent(e)}}}});
rwt.qx.Class.define($[502],{type:$[37],extend:rwt.qx.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:$[91]},"List-Item":{unfocused:$[91]},Text:{"read-only":$[317]},TreeItem:{unfocused:$[91]},"Tree-RowOverlay":{unfocused:$[91]},TreeColumn:{hover:$[3]},Shell:{inactive:$[206]},"Shell-Titlebar":{inactive:$[206]},"Shell-MinButton":{inactive:$[206]},"Shell-MaxButton":{inactive:$[206]},"Shell-CloseButton":{inactive:$[206]},TableColumn:{hover:$[3]},TableItem:{unfocused:$[91]},"Table-RowOverlay":{unfocused:$[91]},TabItem:{selected:$[151],first:"firstChild",last:$[261]}};this._namedColors={}},members:{setCurrentTheme:function(a){this._currentTheme=a},getCurrentTheme:function(){return this._currentTheme},setFallbackTheme:function(a){this.fallbackTheme=a},getFallbackTheme:function(){return this.fallbackTheme},defineValues:function(a){for(var c in this._values){if(c in a){for(var b in a[c]){if(!(b in this._values[c])){this._values[c][b]=a[c][b]}}}}},setThemeCssValues:function(c,a,b){this._cssValues[c]=a;if(b){this.fallbackTheme=c}this._fillNamedColors(c)},getColor:function(d,b,e,f){var c=this._getCssValue(d,b,e,f);var a=this._values.colors[c];if(a instanceof Array){a="#"+rwt.util.Colors.rgbToHexString(a)}return a},getAlpha:function(e,c,f,g){var d=this._getCssValue(e,c,f,g);var b=this._values.colors[d];var a=1;if(b instanceof Array){a=b[3]}else{if(b===$[81]){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=$[301]+c}else{a=rwt.theme.ThemeValues.NONE_IMAGE}return a},getSizedImage:function(d,b,f,g){var c=this._getCssValue(d,b,f,g);var e=this._values.images[c];var a;if(e!=null){a=[$[301]+c].concat(e)}else{a=rwt.theme.ThemeValues.NONE_IMAGE_SIZED}return a},getCursor:function(d,b,e,f){var c=this._getCssValue(d,b,e,f);var a=this._values.cursors[c];if(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 rwt.html.Font)){var a=new rwt.html.Font();a.setSize(e.size);a.setFamily(e.family);a.setBold(e.bold);a.setItalic(e.italic);this._values.fonts[c]=a}return this._values.fonts[c]},getBorder:function(j,o,l,i){var g;var m=this._getCssValue(j,o,l,i);var k=this._values.borders[m];var n=k instanceof rwt.html.Border;var b=n?k.getStyle():k.style;if(b===$[73]||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 rwt.html.Border(c,$[84],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=rwt.theme.BorderDefinitions.getDefinition(c);if(f){var b=this._resolveNamedColors(f.color);var e=this._resolveNamedColors(f.innerColor);a=new rwt.html.Border(f.width,$[188],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($[301].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=$[40]+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[$[227]]=this.getColor($[196],{},"rwt-darkshadow-color",a);this._namedColors[$[35]]=this.getColor($[196],{},"rwt-highlight-color",a);this._namedColors[$[143]]=this.getColor($[196],{},"rwt-lightshadow-color",a);this._namedColors[$[19]]=this.getColor($[196],{},"rwt-shadow-color",a);this._namedColors.thinborder=this.getColor($[196],{},"rwt-thinborder-color",a);this._namedColors["selection-marker"]=this.getColor($[196],{},"rwt-selectionmarker-color",a);this._namedColors[$[61]]=this.getColor("*",{},$[205],a);this._namedColors[$[313]]=this.getColor("*",{},$[64],a);this._namedColors["info.foreground"]=this.getColor("Widget-ToolTip",{},$[64],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 rwt.html.Border(b.width,b.style,b.color)}return a}}});
rwt.remote.HandlerRegistry.add($[502],{factory:function(a){return rwt.theme.ThemeStore.getInstance()},service:true,methods:["loadActiveTheme","loadFallbackTheme"],methodHandler:{loadActiveTheme:function(a,c){var b=new rwt.remote.Request(c.url,"GET",$[270]);b.setAsynchronous(false);b.setSuccessHandler(function(e){var d=JSON.parse(e.responseText);a.defineValues(d.values);a.setThemeCssValues(c.url,d.theme,false);a.setCurrentTheme(c.url)});b.send()},loadFallbackTheme:function(a,c){var b=new rwt.remote.Request(c.url,"GET",$[270]);b.setAsynchronous(false);b.setSuccessHandler(function(e){var d=JSON.parse(e.responseText);a.defineValues(d.values);a.setThemeCssValues(c.url,d.theme,true)});b.send()}}});
-rwt.qx.Class.define("rwt.widgets.base.MultiCellWidget",{extend:rwt.widgets.base.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($[462]);this.setOverflow($[9]);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:$[18],init:4,themeable:true,apply:$[548],event:$[531]},horizontalChildrenAlign:{check:["left",$[24],$[13]],init:$[24],themeable:true,apply:$[498]},verticalChildrenAlign:{check:["top",$[46],$[28]],init:$[46],themeable:true,apply:$[547]},selectable:{refine:true,init:false},textColor:{refine:true,init:"#000000"},cursor:{refine:true,init:$[67]},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($[462])}else{this.addToQueue("updateContent")}this.__cellData[a][1]=b},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()){this._applyEnabled(false)}},_applySpacing:function(b,a){this._invalidateTotalSpacing();this._scheduleLayoutX()},_applyHorizontalChildrenAlign:function(b,a){this._scheduleLayoutX();this.setStyleProperty($[211],b)},_applyVerticalChildrenAlign:function(b,a){this._scheduleLayoutY()},_applyPaddingTop:function(b,a){this.addToLayoutChanges($[162]);this.__paddingCache[0]=b;this._invalidateFrameHeight()},_applyPaddingRight:function(b,a){this.addToLayoutChanges($[169]);this.__paddingCache[1]=b;this._invalidateFrameWidth()},_applyPaddingBottom:function(b,a){this.addToLayoutChanges($[181]);this.__paddingCache[2]=b;this._invalidateFrameHeight()},_applyPaddingLeft:function(b,a){this.addToLayoutChanges($[185]);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:rwt.util.Functions.returnTrue,_afterScheduleLayoutY:rwt.util.Functions.returnTrue,_beforeComputeInnerWidth:rwt.util.Functions.returnTrue,_beforeComputeInnerHeight:rwt.util.Functions.returnTrue,_beforeRenderLayout:rwt.util.Functions.returnTrue,_afterRenderLayout:rwt.util.Functions.returnTrue,_cellHasContent:function(a){var b=this.__cellData[a][1];return b!=null},_isImageCell:function(a){var b=this.__cellData[a][0];return b==$[16]},_isTextCell:function(a){var b=this.__cellData[a][0];return b==$[59]},_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]==$[59]&&c[1]!=null){var a=rwt.widgets.util.FontSizeCalculation;d=a.computeTextDimensions(c[1],this.__fontCache,b)}else{d=[0,0]}c[4]=d[0];c[5]=d[1];return d},_isWidthEssential:rwt.util.Functions.returnTrue,_isHeightEssential:rwt.util.Functions.returnTrue,_computePreferredInnerWidth:function(){return this._getContentWidth($[419])},_limitCellWidth:function(b,e){var d=this.getInnerWidth();var c=this._getContentWidth($[331]);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===$[419]){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===$[331]){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||(a.layoutX&&this._flexibleCell!=-1);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){case"left":j=d[3];break;case $[24]:j=Math.round(d[3]+k*0.5-h*0.5);break;case $[13]:j=d[3]+k-h;break;default:j=d[3];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=Math.max(0,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){case"top":e=f[0];break;case $[46]:e=Math.round(f[0]+c*0.5-a*0.5);break;case $[28]:e=f[0]+c-a;break;default:e=f[0];break}var d=this.getCellNode(b).style;d.top=e+"px";d.height=Math.max(0,a)+"px"},_getImageHtml:rwt.util.Variant.select($[0],{mshtml:function(a){if(rwt.client.Client.getVersion()<7){var c=this.getCellContent(a);var b="";if(c){b="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+c+$[299]}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=$[493]+c+")"}return"<div style='position:absolute;border:0 none;line-height:0px;font-size:0px;"+b+$[466]}},"default":function(a){var c=this.getCellContent(a);var b="";if(c){b=$[493]+c+")"}return"<div style='position:absolute;border:0 none;"+b+$[466]}}),_updateImage:function(a){var c=this.getCellNode(a);var d=this.getCellContent(a);var b=this.getEnabled()?1:0.3;rwt.html.Style.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{rwt.html.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{rwt.html.Font.resetStyle(this.getCellNode(b).style)}}this.__updateComputedCellDimension(b)}}},_applyTextColor:function(b,a){if(b){this.setStyleProperty($[64],b)}else{this.removeStyleProperty($[64])}},_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)}}}}});
+rwt.qx.Class.define("rwt.widgets.base.MultiCellWidget",{extend:rwt.widgets.base.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($[462]);this.setOverflow($[9]);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:$[18],init:4,themeable:true,apply:$[548],event:$[531]},horizontalChildrenAlign:{check:["left",$[24],$[13]],init:$[24],themeable:true,apply:$[498]},verticalChildrenAlign:{check:["top",$[46],$[28]],init:$[46],themeable:true,apply:$[547]},selectable:{refine:true,init:false},textColor:{refine:true,init:"#000000"},cursor:{refine:true,init:$[67]},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($[462])}else{this.addToQueue("updateContent")}this.__cellData[a][1]=b},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()){this._applyEnabled(false)}},_applySpacing:function(b,a){this._invalidateTotalSpacing();this._scheduleLayoutX()},_applyHorizontalChildrenAlign:function(b,a){this._scheduleLayoutX();this.setStyleProperty($[211],b)},_applyVerticalChildrenAlign:function(b,a){this._scheduleLayoutY()},_applyPaddingTop:function(b,a){this.addToLayoutChanges($[162]);this.__paddingCache[0]=b;this._invalidateFrameHeight()},_applyPaddingRight:function(b,a){this.addToLayoutChanges($[169]);this.__paddingCache[1]=b;this._invalidateFrameWidth()},_applyPaddingBottom:function(b,a){this.addToLayoutChanges($[181]);this.__paddingCache[2]=b;this._invalidateFrameHeight()},_applyPaddingLeft:function(b,a){this.addToLayoutChanges($[185]);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:rwt.util.Functions.returnTrue,_afterScheduleLayoutY:rwt.util.Functions.returnTrue,_beforeComputeInnerWidth:rwt.util.Functions.returnTrue,_beforeComputeInnerHeight:rwt.util.Functions.returnTrue,_beforeRenderLayout:rwt.util.Functions.returnTrue,_afterRenderLayout:rwt.util.Functions.returnTrue,_cellHasContent:function(a){var b=this.__cellData[a][1];return b!=null},_isImageCell:function(a){var b=this.__cellData[a][0];return b==$[16]},_isTextCell:function(a){var b=this.__cellData[a][0];return b==$[59]},_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]==$[59]&&c[1]!=null){var a=rwt.widgets.util.FontSizeCalculation;d=a.computeTextDimensions(c[1],this.__fontCache,b)}else{d=[0,0]}c[4]=d[0];c[5]=d[1];return d},_isWidthEssential:rwt.util.Functions.returnTrue,_isHeightEssential:rwt.util.Functions.returnTrue,_computePreferredInnerWidth:function(){return this._getContentWidth($[420])},_limitCellWidth:function(b,e){var d=this.getInnerWidth();var c=this._getContentWidth($[332]);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===$[420]){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===$[332]){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||(a.layoutX&&this._flexibleCell!=-1);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){case"left":j=d[3];break;case $[24]:j=Math.round(d[3]+k*0.5-h*0.5);break;case $[13]:j=d[3]+k-h;break;default:j=d[3];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=Math.max(0,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){case"top":e=f[0];break;case $[46]:e=Math.round(f[0]+c*0.5-a*0.5);break;case $[28]:e=f[0]+c-a;break;default:e=f[0];break}var d=this.getCellNode(b).style;d.top=e+"px";d.height=Math.max(0,a)+"px"},_getImageHtml:rwt.util.Variant.select($[0],{mshtml:function(a){if(rwt.client.Client.getVersion()<7){var c=this.getCellContent(a);var b="";if(c){b="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+c+$[299]}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=$[493]+c+")"}return"<div style='position:absolute;border:0 none;line-height:0px;font-size:0px;"+b+$[466]}},"default":function(a){var c=this.getCellContent(a);var b="";if(c){b=$[493]+c+")"}return"<div style='position:absolute;border:0 none;"+b+$[466]}}),_updateImage:function(a){var c=this.getCellNode(a);var d=this.getCellContent(a);var b=this.getEnabled()?1:0.3;rwt.html.Style.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{rwt.html.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{rwt.html.Font.resetStyle(this.getCellNode(b).style)}}this.__updateComputedCellDimension(b)}}},_applyTextColor:function(b,a){if(b){this.setStyleProperty($[64],b)}else{this.removeStyleProperty($[64])}},_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)}}}}});
rwt.qx.Class.define($[488],{extend:rwt.widgets.base.MultiCellWidget,construct:function(){arguments.callee.base.call(this,[$[59]]);this.setHorizontalChildrenAlign("left");this.setContainerOverflow(false)},properties:{appearance:{refine:true,init:"list-item"},width:{refine:true,init:null},allowStretchX:{refine:true,init:true}},members:{setLabel:function(a){this.setCellContent(0,a)},getLabel:function(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===$[10])?d.toLowerCase():"";c=(typeof c===$[10])?c.toLowerCase():"";return a!==""&&c.indexOf(a)===0},getCellHeight:function(a){return this.getHeight()-this.getPaddingTop()}}});
rwt.qx.Mixin.define("rwt.event.DomEventPatch",{members:{setDomEvent:function(a){arguments.callee.base.call(this,a);rwt.remote.EventUtil._shiftKey=a.shiftKey;rwt.remote.EventUtil._ctrlKey=a.ctrlKey;rwt.remote.EventUtil._altKey=a.altKey;rwt.remote.EventUtil._metaKey=a.metaKey}}});
rwt.qx.Class.define("rwt.widgets.util.MenuManager",{type:$[37],extend:rwt.util.ObjectManager,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 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 rwt.widgets.MenuItem){d=c.getParentMenu()}else{if(c instanceof rwt.widgets.Menu||c instanceof rwt.widgets.MenuBar){d=c}}while(b==null&&d!=null){if(d instanceof rwt.widgets.MenuBar){b=d}else{var a=d.getOpener() instanceof rwt.widgets.MenuItem;var d=a?d.getOpener().getParentMenu():null}}return b}}});
-rwt.qx.Class.define($[276],{extend:rwt.widgets.base.MultiCellWidget,construct:function(a){arguments.callee.base.call(this,[$[16],$[16],$[59],$[59],$[16]]);this._hasSelectionListener=false;this._selected=false;this._parentMenu=null;this._rawText=null;this._mnemonicIndex=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"push":this._isSelectable=false;this._isDeselectable=false;break;case $[109]:this._isSelectable=true;this._isDeselectable=true;break;case $[264]:this._isSelectable=false;this._isDeselectable=false;break;case $[119]:this._isSelectable=true;this.setNoRadioGroup(false);rwt.widgets.util.RadioButtonUtil.registerExecute(this);break}this._preferredCellWidths=[0,0,0,0,13];if(this._isSelectable){this.setCellContent(0,"")}},destruct:function(){this.setMnemonicIndex(null);this._disposeFields("_parentMenu","_subMenu")},properties:{selectionIndicator:{apply:$[508],nullable:true,themeable:true},arrow:{apply:"_applyArrow",nullable:true,themeable:true},appearance:{refine:true,init:"menu-item"},tabIndex:{refine:true,init:1}},events:{subMenuChanged:$[11]},members:{setText:function(a){this._rawText=a;this._mnemonicIndex=null;this.renderText()},setAccelerator:function(b){var a=null;if(b){a=rwt.util.Encoding.escapeText(b);a=rwt.util.Encoding.replaceWhiteSpaces(" "+a)}this.setCellContent(3,a);this.setCellDimension(3,null,null);this._setPreferredCellWidth(3,this.getCellWidth(3))},setMnemonicIndex:function(b){this._mnemonicIndex=b;if(this._parentMenu instanceof rwt.widgets.MenuBar){var a=rwt.widgets.util.MnemonicHandler.getInstance();if((typeof b===$[31])&&(b>=0)){a.add(this,this._onMnemonic)}else{a.remove(this)}}else{if(b!=null&&this._isMnemonicMenu()){this.renderText()}}},renderText:function(){this._applyText(this._isMnemonicMenu())},_isMnemonicMenu:function(){return this._parentMenu instanceof rwt.widgets.Menu&&this._parentMenu.getMnemonics()},getMnemonicIndex:function(){return this._mnemonicIndex},handleMnemonic:function(a){this._onMnemonic(a)},_applyText:function(b){if(this._rawText){var a=b?this._mnemonicIndex:undefined;var c=rwt.util.Encoding.escapeText(this._rawText,a);this._setText(c)}else{this._setText(null)}},_afterRenderLayout:function(a){if(a.createContent&&this.getCellNode(3)){this.getCellNode(3).style.textAlign=$[13]}},_onMnemonic:function(b){switch(b.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case $[122]:var a=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(b.charCode===a){if(this.hasState($[264])){this._parentMenu.openByMnemonic(this)}else{this.execute();rwt.widgets.util.MenuManager.getInstance().update()}b.success=true}break}},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($[409])},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 rwt.widgets.Menu){this._parentMenu.invalidateMaxCellWidth(a)}this._scheduleLayoutX()},_afterScheduleLayoutX:function(){if(this._parentMenu instanceof rwt.widgets.Menu){this._parentMenu.scheduleMenuLayout()}},getPreferredCellWidth:function(a){return this._preferredCellWidths[a]},setImage:function(c,b,a){this.setCellContent(1,c);this.setCellHeight(1,a);this._setPreferredCellWidth(1,b)},_setText:function(a){this.setCellContent(2,a);this.setCellDimension(2,null,null);this._setPreferredCellWidth(2,this.getCellWidth(2))},_onFontChange:function(){this.setCellDimension(2,null,null);this._setPreferredCellWidth(2,this.getCellWidth(2))},_applyArrow:function(e,b){var c=e?e[0]:null;var d=e?e[1]:13;var a=e?e[2]:0;this.setCellContent(4,c);this.setCellHeight(4,a);this._setPreferredCellWidth(4,d)},_beforeComputeInnerWidth:function(){if(this._parentMenu instanceof rwt.widgets.Menu){for(var a=0;a<5;a++){this._setCellWidth(a,this._parentMenu.getMaxCellWidth(a))}}},_beforeAppear:function(){arguments.callee.base.call(this);if(this._parentMenu instanceof rwt.widgets.Menu){this._parentMenu.invalidateAllMaxCellWidths();this._parentMenu.scheduleMenuLayout()}},setHasSelectionListener:function(a){this._hasSelectionListener=a},setSubMenu:function(a){this._subMenu=a;this.createDispatchEvent($[409])},setNoRadioGroup:function(a){if(this.hasState($[119])){this._noRadioGroup=a;this._isDeselectable=a}},getNoRadioGroup:function(){return this._noRadioGroup},execute:function(){arguments.callee.base.call(this);if(this._isSelectable){this.setSelection(!(this._selected&&this._isDeselectable))}else{this._notifySelected()}},setSelection:function(c){var b=this._selected;var a=this._selected!=c;if(a){this._selected=c;if(this._selected){this.addState($[23])}else{this.removeState($[23])}if(!rwt.remote.EventUtil.getSuspended()){var d=rwt.remote.Server.getInstance();d.getRemoteObject(this).set($[42],this._selected)}}if(a||b){this._notifySelected()}},_notifySelected:function(){if(!rwt.remote.EventUtil.getSuspended()&&this._hasSelectionListener&&this._shouldSendEvent()){rwt.remote.EventUtil.notifySelected(this)}},_shouldSendEvent:function(){return !this.hasState($[264])},_onmouseup:function(a){this.execute()}}});
+rwt.qx.Class.define($[276],{extend:rwt.widgets.base.MultiCellWidget,construct:function(a){arguments.callee.base.call(this,[$[16],$[16],$[59],$[59],$[16]]);this._hasSelectionListener=false;this._selected=false;this._parentMenu=null;this._rawText=null;this._mnemonicIndex=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"push":this._isSelectable=false;this._isDeselectable=false;break;case $[109]:this._isSelectable=true;this._isDeselectable=true;break;case $[264]:this._isSelectable=false;this._isDeselectable=false;break;case $[119]:this._isSelectable=true;this.setNoRadioGroup(false);rwt.widgets.util.RadioButtonUtil.registerExecute(this);break}this._preferredCellWidths=[0,0,0,0,13];if(this._isSelectable){this.setCellContent(0,"")}},destruct:function(){this.setMnemonicIndex(null);this._disposeFields("_parentMenu","_subMenu")},properties:{selectionIndicator:{apply:$[508],nullable:true,themeable:true},arrow:{apply:"_applyArrow",nullable:true,themeable:true},appearance:{refine:true,init:"menu-item"},tabIndex:{refine:true,init:1}},events:{subMenuChanged:$[11]},members:{setText:function(a){this._rawText=a;this._mnemonicIndex=null;this.renderText()},setAccelerator:function(b){var a=null;if(b){a=rwt.util.Encoding.escapeText(b);a=rwt.util.Encoding.replaceWhiteSpaces(" "+a)}this.setCellContent(3,a);this.setCellDimension(3,null,null);this._setPreferredCellWidth(3,this.getCellWidth(3))},setMnemonicIndex:function(b){this._mnemonicIndex=b;if(this._parentMenu instanceof rwt.widgets.MenuBar){var a=rwt.widgets.util.MnemonicHandler.getInstance();if((typeof b===$[31])&&(b>=0)){a.add(this,this._onMnemonic)}else{a.remove(this)}}else{if(b!=null&&this._isMnemonicMenu()){this.renderText()}}},renderText:function(){this._applyText(this._isMnemonicMenu())},_isMnemonicMenu:function(){return this._parentMenu instanceof rwt.widgets.Menu&&this._parentMenu.getMnemonics()},getMnemonicIndex:function(){return this._mnemonicIndex},handleMnemonic:function(a){this._onMnemonic(a)},_applyText:function(b){if(this._rawText){var a=b?this._mnemonicIndex:undefined;var c=rwt.util.Encoding.escapeText(this._rawText,a);this._setText(c)}else{this._setText(null)}},_afterRenderLayout:function(a){if(a.createContent&&this.getCellNode(3)){this.getCellNode(3).style.textAlign=$[13]}},_onMnemonic:function(b){switch(b.type){case"show":this._applyText(true);break;case"hide":this._applyText(false);break;case $[122]:var a=this._rawText.toUpperCase().charCodeAt(this._mnemonicIndex);if(b.charCode===a){if(this.hasState($[264])){this._parentMenu.openByMnemonic(this)}else{this.execute();rwt.widgets.util.MenuManager.getInstance().update()}b.success=true}break}},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($[410])},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 rwt.widgets.Menu){this._parentMenu.invalidateMaxCellWidth(a)}this._scheduleLayoutX()},_afterScheduleLayoutX:function(){if(this._parentMenu instanceof rwt.widgets.Menu){this._parentMenu.scheduleMenuLayout()}},getPreferredCellWidth:function(a){return this._preferredCellWidths[a]},setImage:function(c,b,a){this.setCellContent(1,c);this.setCellHeight(1,a);this._setPreferredCellWidth(1,b)},_setText:function(a){this.setCellContent(2,a);this.setCellDimension(2,null,null);this._setPreferredCellWidth(2,this.getCellWidth(2))},_onFontChange:function(){this.setCellDimension(2,null,null);this._setPreferredCellWidth(2,this.getCellWidth(2))},_applyArrow:function(e,b){var c=e?e[0]:null;var d=e?e[1]:13;var a=e?e[2]:0;this.setCellContent(4,c);this.setCellHeight(4,a);this._setPreferredCellWidth(4,d)},_beforeComputeInnerWidth:function(){if(this._parentMenu instanceof rwt.widgets.Menu){for(var a=0;a<5;a++){this._setCellWidth(a,this._parentMenu.getMaxCellWidth(a))}}},_beforeAppear:function(){arguments.callee.base.call(this);if(this._parentMenu instanceof rwt.widgets.Menu){this._parentMenu.invalidateAllMaxCellWidths();this._parentMenu.scheduleMenuLayout()}},setHasSelectionListener:function(a){this._hasSelectionListener=a},setSubMenu:function(a){this._subMenu=a;this.createDispatchEvent($[410])},setNoRadioGroup:function(a){if(this.hasState($[119])){this._noRadioGroup=a;this._isDeselectable=a}},getNoRadioGroup:function(){return this._noRadioGroup},execute:function(){arguments.callee.base.call(this);if(this._isSelectable){this.setSelection(!(this._selected&&this._isDeselectable))}else{this._notifySelected()}},setSelection:function(c){var b=this._selected;var a=this._selected!=c;if(a){this._selected=c;if(this._selected){this.addState($[23])}else{this.removeState($[23])}if(!rwt.remote.EventUtil.getSuspended()){var d=rwt.remote.Server.getInstance();d.getRemoteObject(this).set($[42],this._selected)}}if(a||b){this._notifySelected()}},_notifySelected:function(){if(!rwt.remote.EventUtil.getSuspended()&&this._hasSelectionListener&&this._shouldSendEvent()){rwt.remote.EventUtil.notifySelected(this)}},_shouldSendEvent:function(){return !this.hasState($[264])},_onmouseup:function(a){this.execute()}}});
rwt.remote.HandlerRegistry.add($[276],{factory:function(b){var a;rwt.remote.HandlerUtil.callWithTarget(b.parent,function(f){var e=rwt.remote.HandlerUtil.createStyleMap(b.style);var d=f.hasState($[180]);var c="push";if(e.CASCADE){c=$[264]}else{if(e.CHECK&&!d){c=$[109]}else{if(e.RADIO&&!d){c=$[119]}}}if(e.SEPARATOR){a=new rwt.widgets.MenuItemSeparator()}else{a=new rwt.widgets.MenuItem(c);a.setNoRadioGroup(f.hasState($[308]));if(d){a.addState("onMenuBar")}}f.addMenuItemAt(a,b.index);rwt.remote.HandlerUtil.addDestroyableChild(f,a);a.setUserData($[95],f)});rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);return a},destructor:rwt.remote.HandlerUtil.getWidgetDestructor(),properties:["menu",$[253],"text",$[164],$[16],$[42],$[86]],propertyHandler:{menu:function(b,a){if(!b.hasState($[199])){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setMenu(c)})}},text:function(d,c){if(!d.hasState($[199])){var e=c;var b=e.indexOf("\t");var a=null;if(b!=-1){a=e.substring(b+1);e=e.substring(0,b)}d.setText(e);d.setAccelerator(a)}},image:function(b,a){if(!b.hasState($[199])){if(a===null){b.setImage(a)}else{b.setImage.apply(b,a)}}},selection:function(b,a){if(!b.hasState($[199])){b.setSelection(a)}}},listeners:[$[32],"Help"],listenerHandler:{Selection:function(b,a){if(!b.hasState($[199])){b.setHasSelectionListener(a)}},Help:rwt.remote.HandlerUtil.getControlListenerHandler("Help")}});
rwt.qx.Class.define("rwt.widgets.util.RadioButtonUtil",{statics:{registerExecute:function(a){a.addEventListener($[107],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");a.preventDefault();a.stopPropagation();break;case $[36]:case"Down":this._setNextOrPrevious(b,"next");a.preventDefault();a.stopPropagation();break;case"Home":case"End":case $[43]:case $[41]:a.preventDefault();a.stopPropagation();break}},_onSelection:function(a){this._unselectSiblings(a.getTarget())},_isRadioElement:function(a){return a.hasState($[119])},_getRadioGroup:function(d){var e=[];if(!d.getNoRadioGroup()){var f=d.getParent().getChildren();var c=f.length;if(d.classname==$[303]){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"){do{f++;if(f>=a.length){f=0}}while(!a[f].getEnabled())}if(g=="previous"){do{f--;if(f<0){f=a.length-1}}while(!a[f].getEnabled())}if(f!==d){var b=a[f];this._unselectSiblings(b);b.setSelection(true);b.setFocused(true)}}},_unselectSiblings:function(b){var c=this._getRadioGroup(b);for(var a=0;a<c.length;a++){if(c[a]!==b){c[a].setSelection(false)}}}}});
rwt.qx.Class.define("rwt.widgets.MenuBar",{extend:rwt.widgets.base.HorizontalBoxLayout,construct:function(){arguments.callee.base.call(this);this._hoverItem=null;this._openItem=null;this.addEventListener($[1],this._onMouseDown);this.addEventListener($[3],this._onMouseOver);this.addEventListener($[6],this._onMouseOut)},properties:{appearance:{refine:true,init:"toolbar"}},events:{changeOpenItem:$[11]},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},openByMnemonic:function(a){this.setOpenItem(a,true)},setOpenItem:function(c,b){var d=this._openItem;if(d!=null&&d.getMenu()!=null){d.setSubMenuOpen(false);d.getMenu().hide()}if(c!=null&&c!=d&&c.getMenu()!=null){this._openItem=c;c.addState($[12]);var a=c.getMenu();c.setSubMenuOpen(true);a.setOpener(c);var e=c.getElement();a.setTop(rwt.html.Location.getTop(e)+e.offsetHeight);a.setLeft(rwt.html.Location.getLeft(e));a.setMnemonics(b===true);a.show()}else{this._openItem=null}this.dispatchSimpleEvent("changeOpenItem")},getOpenItem:function(){return this._openItem}}});
-rwt.qx.Class.define("rwt.remote.DNDSupport",{type:$[37],extend:rwt.qx.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($[77],this._dragStartHandler,this);b.addEventListener($[273],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($[77],this._dragStartHandler,this);a.removeEventListener($[273],this._dragEndHandler,this);var b=a.toHashCode();delete this._dragSources[b]},isDragSource:function(a){var b=a.toHashCode();return typeof this._dragSources[b]!=$[8]},isDropTarget:function(a){var b=a.toHashCode();return typeof this._dropTargets[b]!=$[8]},setHasListener:function(d,b,c){var a=rwt.remote.RemoteObjectFactory.getRemoteObject(d);a._.listen[b]=c},_dragStartHandler:function(a){var m=rwt.remote.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=rwt.event.DragAndDropHandler.getInstance();b.clearActions();var k=rwt.widgets.base.ClientDocument.getInstance();k.addEventListener($[3],this._onMouseOver,this);k.addEventListener($[7],this._onKeyEvent,this);k.addEventListener($[34],this._onKeyEvent,this);this.setCurrentTargetWidget(a.getOriginalTarget());var l=rwt.widgets.util.WidgetUtil;l._fakeMouseEvent(this._currentTargetWidget,$[6]);var h=b.__dragCache.sourceWidget;var f=this._getFeedbackWidget(c,h);b.setFeedbackWidget(f,10,20);a.startDrag();a.stopPropagation()}this._sendDragSourceEvent(g,$[302],a.getMouseEvent())}},_dragEndHandler:function(b){var c=b.getCurrentTarget();var d=b.getMouseEvent();this._blockDrag=true;if(!this._requestScheduled){var a=rwt.remote.Server.getInstance();a.addEventListener("send",this._onSend,this)}this._sendDragSourceEvent(c,$[288],d);this._cleanUp();b.stopPropagation()},_sendDragSourceEvent:function(e,b,d){var a=0;var f=0;if(d instanceof rwt.event.MouseEvent){a=d.getPageX();f=d.getPageY()}var c={x:a,y:f,time:rwt.remote.EventUtil.eventTimestamp()};rwt.remote.Server.getInstance().getRemoteObject(e).notify(b,c)},registerDropTarget:function(b,a){b.addEventListener($[139],this._dragOverHandler,this);b.addEventListener($[255],this._dragMoveHandler,this);b.addEventListener($[284],this._dragOutHandler,this);b.addEventListener($[212],this._dragDropHandler,this);var c=b.toHashCode();this._dropTargets[c]={actions:this._operationsToActions(a)};b.setSupportsDropMethod(rwt.util.Functions.returnTrue)},setDropTargetTransferTypes:function(b,a){b.setDropDataTypes(a)},deregisterDropTarget:function(a){a.setDropDataTypes([]);a.removeEventListener($[139],this._dragOverHandler,this);a.removeEventListener($[255],this._dragMoveHandler,this);a.removeEventListener($[284],this._dragOutHandler,this);a.removeEventListener($[212],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,$[208],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,$[271],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=rwt.event.DragAndDropHandler.getInstance();a.clearActions();this.setFeedback(c,null,0);this._currentDropTarget=null;this._actionOverwrite=null;this._dataTypeOverwrite=null;if(this._isDropTargetEventScheduled($[208])){this._cancelDropTargetEvent($[208]);this._cancelDropTargetEvent($[271])}else{this._sendDropTargetEvent(c,$[295],d,"none")}b.stopPropagation()},_dragDropHandler:function(a){var c=a.getCurrentTarget();var d=a.getMouseEvent();var b=this._computeCurrentAction(d,c);this._sendDropTargetEvent(c,$[355],d,b);a.stopPropagation()},_sendDropTargetEvent:function(g,h,l,f){var n=rwt.remote.WidgetManager.getInstance();var o=this._getCurrentItemTarget();var k=o!=null?n.findIdByWidget(o):null;var m=0;var j=0;if(l instanceof rwt.event.MouseEvent){m=l.getPageX();j=l.getPageY()}else{m=this._currentMousePosition.x;j=this._currentMousePosition.y}var a=n.findIdByWidget(this._currentDragSource);var d=rwt.remote.EventUtil.eventTimestamp();var e=f==$[99]?"link":f;var b={};b.widget=g;b.eventName=h;var c={};c.x=m;c.y=j;c.item=k;c.operation=e;c.feedback=this._dropFeedbackFlags;c.dataType=this._dataTypeOverwrite;c.source=a;c.time=d;b.param=c;this._dropTargetEventQueue[h]=b;if(!this._requestScheduled){var i=rwt.remote.Server.getInstance();i.addEventListener("send",this._onSend,this);this._requestScheduled=true;rwt.client.Timer.once(i.send,i,200)}},_isDropTargetEventScheduled:function(a){return typeof this._dropTargetEventQueue[a]!=$[8]},_cancelDropTargetEvent:function(a){delete this._dropTargetEventQueue[a]},_setPropertyRetroactively:function(e,d,c){for(var a in this._dropTargetEventQueue){var b=this._dropTargetEventQueue[a];if(b.widget===e){b.param[d]=c}}},_attachDropTargetEvents:function(){var d=rwt.remote.Server.getInstance();var a=this._dropTargetEventQueue;for(var b in a){var c=a[b];d.getRemoteObject(c.widget).notify(c.eventName,c.param)}this._dropTargetEventQueue={}},_getCurrentItemTarget:function(){var b=null;var c=this._getCurrentFeedbackTarget();if(c instanceof rwt.widgets.base.GridRow){var a=this._currentDropTarget;b=a._rowContainer.findItemByRow(c)}else{b=c}return b},_setAction:function(d,a){var b=rwt.event.DragAndDropHandler.getInstance();var c=b.getCurrentAction();if(c!=d){b.clearActions();b.setAction(d);if(a!=null){this._sendDropTargetEvent(this._currentDropTarget,$[300],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=$[99];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=$[99]}else{if(!d&&b&&a){j=$[99]}}}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 rwt.widgets.Grid){this._dropFeedbackRenderer=new rwt.widgets.util.GridDNDFeedback(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 rwt.widgets.base.GridRow){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 rwt.widgets.base.MultiCellWidget([$[16],$[59]]);this._dragFeedbackWidget.setOpacity(0.7);this._dragFeedbackWidget.setEnabled(false);this._dragFeedbackWidget.setPadding(2)}while(!d&&a!=c){if(a instanceof rwt.widgets.base.GridRow){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=rwt.remote.Server.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()==$[34]&&b.getKeyIdentifier()=="Alt"){this._sendDragSourceEvent(this._currentDragSource,$[288],b);this.cancel()}else{if(this._currentDropTarget!=null){var a=rwt.event.DragAndDropHandler.getInstance();var c=this._computeCurrentAction(b,this._currentDropTarget);this._setAction(c,b);a._renderCursor()}}},_cleanUp:function(){var b=rwt.widgets.util.WidgetUtil;b._fakeMouseEvent(this._currentTargetWidget,$[203]);b._fakeMouseEvent(this._currentTargetWidget,$[3]);this.setCurrentTargetWidget(null);if(this._currentDropTarget!=null){this.setFeedback(this._currentDropTarget,null,0);this._currentDropTarget=null}var a=rwt.event.DragAndDropHandler.getInstance();a.setFeedbackWidget(null);this._resetFeedbackWidget();this._currentDragSource=null;this._dataTypeOverwrite=null;this._currentMousePosition.x=0;this._currentMousePosition.y=0;var c=rwt.widgets.base.ClientDocument.getInstance();c.removeEventListener($[3],this._onMouseOver,this);c.removeEventListener($[7],this._onKeyEvent,this);c.removeEventListener($[34],this._onKeyEvent,this)},cancel:function(){if(this._currentDragSource!=null){var a=rwt.event.DragAndDropHandler.getInstance();a.globalCancelDrag();this._cleanUp()}},setOperationOverwrite:function(d,a){if(d==this._currentDropTarget){var c=this._toAction(a);var b=rwt.event.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)}}});
-rwt.remote.HandlerRegistry.add("rwt.widgets.DropTarget",{factory:function(b){var c=rwt.remote.ObjectRegistry.getObject(b.control);var a={control:c};rwt.remote.DNDSupport.getInstance().registerDropTarget(c,b.style);rwt.remote.HandlerUtil.addDestroyableChild(c,a);return a},destructor:function(a){rwt.remote.HandlerUtil.removeDestroyableChild(a.control,a);rwt.remote.DNDSupport.getInstance().deregisterDropTarget(a.control)},properties:["transfer"],propertyHandler:{transfer:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setDropTargetTransferTypes(c,a)}},listeners:[$[208],$[271],$[295],$[300],$[355]],listenerHandler:{DragEnter:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[208],a)},DragOver:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[271],a)},DragLeave:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[295],a)},DragOperationChanged:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[300],a)},DropAccept:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[355],a)}}});
+rwt.qx.Class.define("rwt.remote.DNDSupport",{type:$[37],extend:rwt.qx.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($[77],this._dragStartHandler,this);b.addEventListener($[273],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($[77],this._dragStartHandler,this);a.removeEventListener($[273],this._dragEndHandler,this);var b=a.toHashCode();delete this._dragSources[b]},isDragSource:function(a){var b=a.toHashCode();return typeof this._dragSources[b]!=$[8]},isDropTarget:function(a){var b=a.toHashCode();return typeof this._dropTargets[b]!=$[8]},setHasListener:function(d,b,c){var a=rwt.remote.RemoteObjectFactory.getRemoteObject(d);a._.listen[b]=c},_dragStartHandler:function(a){var m=rwt.remote.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=rwt.event.DragAndDropHandler.getInstance();b.clearActions();var k=rwt.widgets.base.ClientDocument.getInstance();k.addEventListener($[3],this._onMouseOver,this);k.addEventListener($[7],this._onKeyEvent,this);k.addEventListener($[34],this._onKeyEvent,this);this.setCurrentTargetWidget(a.getOriginalTarget());var l=rwt.widgets.util.WidgetUtil;l._fakeMouseEvent(this._currentTargetWidget,$[6]);var h=b.__dragCache.sourceWidget;var f=this._getFeedbackWidget(c,h);b.setFeedbackWidget(f,10,20);a.startDrag();a.stopPropagation()}this._sendDragSourceEvent(g,$[302],a.getMouseEvent())}},_dragEndHandler:function(b){var c=b.getCurrentTarget();var d=b.getMouseEvent();this._blockDrag=true;if(!this._requestScheduled){var a=rwt.remote.Server.getInstance();a.addEventListener("send",this._onSend,this)}this._sendDragSourceEvent(c,$[288],d);this._cleanUp();b.stopPropagation()},_sendDragSourceEvent:function(e,b,d){var a=0;var f=0;if(d instanceof rwt.event.MouseEvent){a=d.getPageX();f=d.getPageY()}var c={x:a,y:f,time:rwt.remote.EventUtil.eventTimestamp()};rwt.remote.Server.getInstance().getRemoteObject(e).notify(b,c)},registerDropTarget:function(b,a){b.addEventListener($[139],this._dragOverHandler,this);b.addEventListener($[255],this._dragMoveHandler,this);b.addEventListener($[284],this._dragOutHandler,this);b.addEventListener($[212],this._dragDropHandler,this);var c=b.toHashCode();this._dropTargets[c]={actions:this._operationsToActions(a)};b.setSupportsDropMethod(rwt.util.Functions.returnTrue)},setDropTargetTransferTypes:function(b,a){b.setDropDataTypes(a)},deregisterDropTarget:function(a){a.setDropDataTypes([]);a.removeEventListener($[139],this._dragOverHandler,this);a.removeEventListener($[255],this._dragMoveHandler,this);a.removeEventListener($[284],this._dragOutHandler,this);a.removeEventListener($[212],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,$[208],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,$[271],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=rwt.event.DragAndDropHandler.getInstance();a.clearActions();this.setFeedback(c,null,0);this._currentDropTarget=null;this._actionOverwrite=null;this._dataTypeOverwrite=null;if(this._isDropTargetEventScheduled($[208])){this._cancelDropTargetEvent($[208]);this._cancelDropTargetEvent($[271])}else{this._sendDropTargetEvent(c,$[295],d,"none")}b.stopPropagation()},_dragDropHandler:function(a){var c=a.getCurrentTarget();var d=a.getMouseEvent();var b=this._computeCurrentAction(d,c);this._sendDropTargetEvent(c,$[356],d,b);a.stopPropagation()},_sendDropTargetEvent:function(g,h,l,f){var n=rwt.remote.WidgetManager.getInstance();var o=this._getCurrentItemTarget();var k=o!=null?n.findIdByWidget(o):null;var m=0;var j=0;if(l instanceof rwt.event.MouseEvent){m=l.getPageX();j=l.getPageY()}else{m=this._currentMousePosition.x;j=this._currentMousePosition.y}var a=n.findIdByWidget(this._currentDragSource);var d=rwt.remote.EventUtil.eventTimestamp();var e=f==$[99]?"link":f;var b={};b.widget=g;b.eventName=h;var c={};c.x=m;c.y=j;c.item=k;c.operation=e;c.feedback=this._dropFeedbackFlags;c.dataType=this._dataTypeOverwrite;c.source=a;c.time=d;b.param=c;this._dropTargetEventQueue[h]=b;if(!this._requestScheduled){var i=rwt.remote.Server.getInstance();i.addEventListener("send",this._onSend,this);this._requestScheduled=true;rwt.client.Timer.once(i.send,i,200)}},_isDropTargetEventScheduled:function(a){return typeof this._dropTargetEventQueue[a]!=$[8]},_cancelDropTargetEvent:function(a){delete this._dropTargetEventQueue[a]},_setPropertyRetroactively:function(e,d,c){for(var a in this._dropTargetEventQueue){var b=this._dropTargetEventQueue[a];if(b.widget===e){b.param[d]=c}}},_attachDropTargetEvents:function(){var d=rwt.remote.Server.getInstance();var a=this._dropTargetEventQueue;for(var b in a){var c=a[b];d.getRemoteObject(c.widget).notify(c.eventName,c.param)}this._dropTargetEventQueue={}},_getCurrentItemTarget:function(){var b=null;var c=this._getCurrentFeedbackTarget();if(c instanceof rwt.widgets.base.GridRow){var a=this._currentDropTarget;b=a._rowContainer.findItemByRow(c)}else{b=c}return b},_setAction:function(d,a){var b=rwt.event.DragAndDropHandler.getInstance();var c=b.getCurrentAction();if(c!=d){b.clearActions();b.setAction(d);if(a!=null){this._sendDropTargetEvent(this._currentDropTarget,$[300],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=$[99];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=$[99]}else{if(!d&&b&&a){j=$[99]}}}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 rwt.widgets.Grid){this._dropFeedbackRenderer=new rwt.widgets.util.GridDNDFeedback(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 rwt.widgets.base.GridRow){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 rwt.widgets.base.MultiCellWidget([$[16],$[59]]);this._dragFeedbackWidget.setOpacity(0.7);this._dragFeedbackWidget.setEnabled(false);this._dragFeedbackWidget.setPadding(2)}while(!d&&a!=c){if(a instanceof rwt.widgets.base.GridRow){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=rwt.remote.Server.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()==$[34]&&b.getKeyIdentifier()=="Alt"){this._sendDragSourceEvent(this._currentDragSource,$[288],b);this.cancel()}else{if(this._currentDropTarget!=null){var a=rwt.event.DragAndDropHandler.getInstance();var c=this._computeCurrentAction(b,this._currentDropTarget);this._setAction(c,b);a._renderCursor()}}},_cleanUp:function(){var b=rwt.widgets.util.WidgetUtil;b._fakeMouseEvent(this._currentTargetWidget,$[203]);b._fakeMouseEvent(this._currentTargetWidget,$[3]);this.setCurrentTargetWidget(null);if(this._currentDropTarget!=null){this.setFeedback(this._currentDropTarget,null,0);this._currentDropTarget=null}var a=rwt.event.DragAndDropHandler.getInstance();a.setFeedbackWidget(null);this._resetFeedbackWidget();this._currentDragSource=null;this._dataTypeOverwrite=null;this._currentMousePosition.x=0;this._currentMousePosition.y=0;var c=rwt.widgets.base.ClientDocument.getInstance();c.removeEventListener($[3],this._onMouseOver,this);c.removeEventListener($[7],this._onKeyEvent,this);c.removeEventListener($[34],this._onKeyEvent,this)},cancel:function(){if(this._currentDragSource!=null){var a=rwt.event.DragAndDropHandler.getInstance();a.globalCancelDrag();this._cleanUp()}},setOperationOverwrite:function(d,a){if(d==this._currentDropTarget){var c=this._toAction(a);var b=rwt.event.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)}}});
+rwt.remote.HandlerRegistry.add("rwt.widgets.DropTarget",{factory:function(b){var c=rwt.remote.ObjectRegistry.getObject(b.control);var a={control:c};rwt.remote.DNDSupport.getInstance().registerDropTarget(c,b.style);rwt.remote.HandlerUtil.addDestroyableChild(c,a);return a},destructor:function(a){rwt.remote.HandlerUtil.removeDestroyableChild(a.control,a);rwt.remote.DNDSupport.getInstance().deregisterDropTarget(a.control)},properties:["transfer"],propertyHandler:{transfer:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setDropTargetTransferTypes(c,a)}},listeners:[$[208],$[271],$[295],$[300],$[356]],listenerHandler:{DragEnter:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[208],a)},DragOver:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[271],a)},DragLeave:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[295],a)},DragOperationChanged:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[300],a)},DropAccept:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[356],a)}}});
rwt.remote.HandlerRegistry.add("rwt.widgets.DragSource",{factory:function(b){var c=rwt.remote.ObjectRegistry.getObject(b.control);var a={control:c};rwt.remote.DNDSupport.getInstance().registerDragSource(c,b.style);rwt.remote.HandlerUtil.addDestroyableChild(c,a);return a},destructor:function(a){rwt.remote.HandlerUtil.removeDestroyableChild(a.control,a);rwt.remote.DNDSupport.getInstance().deregisterDragSource(a.control)},properties:["transfer"],propertyHandler:{transfer:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setDragSourceTransferTypes(c,a)}},listeners:[$[302],$[288]],listenerHandler:{DragStart:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[302],a)},DragEnd:function(b,a){var c=b.control;rwt.remote.DNDSupport.getInstance().setHasListener(c,$[288],a)}},methods:["changeFeedback","changeDetail","changeDataType",$[87]],methodHandler:{changeFeedback:function(e,c){var d=rwt.remote.DNDSupport.getInstance();var f=rwt.remote.ObjectRegistry.getObject(c.control);var b=c.feedback;var a=c.flags;d.setFeedback(f,b,a)},changeDetail:function(d,a){var c=rwt.remote.DNDSupport.getInstance();var e=rwt.remote.ObjectRegistry.getObject(a.control);var b=a.detail;c.setOperationOverwrite(e,b)},changeDataType:function(d,b){var c=rwt.remote.DNDSupport.getInstance();var e=rwt.remote.ObjectRegistry.getObject(b.control);var a=b.dataType;c.setDataType(e,a)},cancel:function(c,a){var b=rwt.remote.DNDSupport.getInstance();b.cancel()}}});
rwt.qx.Class.define("rwt.theme.ThemeValues",{extend:rwt.qx.Object,construct:function(a){if(a===undefined){throw new Error("no states given")}this._states=a;this._store=rwt.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 rwt.html.Border(i,d,g)}return j}}});
-rwt.qx.Class.define($[541],{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);this._rootItem=new rwt.widgets.GridItem();this._hasMultiSelection=false;this._hasSelectionListener=false;this._hasDefaultSelectionListener=false;this._leadItem=null;this._topItemIndex=0;this._topItem=null;this._hasSetDataListener=false;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._hasFixedColumns=false;this._hasExpandListener=false;this._hasCollapseListener=false;this._headerHeight=0;this._footerHeight=0;this._itemHeight=16;this._mergeEventsTimer=new rwt.client.Timer(50);this._rowContainer=rwt.widgets.util.GridUtil.createTreeRowContainer(a);this._columns={};this._horzScrollBar=new rwt.widgets.base.ScrollBar(true);this._vertScrollBar=new rwt.widgets.base.ScrollBar(false);this._header=null;this._footer=null;this.add(this._rowContainer);this.add(this._horzScrollBar);this.add(this._vertScrollBar);this._cellToolTip=null;this._config=this._rowContainer.getRenderConfig();this.setCursor($[67]);this.setOverflow($[9]);rwt.widgets.base.Widget.disableScrolling(this);this._configureScrollBars();this._registerListeners();this._parseArgsMap(a)},destruct:function(){this._rootItem.removeEventListener($[146],this._onItemUpdate,this);this._rootItem.dispose();this._rootItem=null;this._mergeEventsTimer.dispose();this._mergeEventsTimer=null;this._rowContainer=null;this._header=null;this._footer=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:{_createHeader:function(){this._header=new rwt.widgets.base.GridHeader({appearance:this.getAppearance(),splitContainer:this._hasFixedColumns});this.add(this._header);this._header.addEventListener($[364],this._onShowResizeLine,this);this._header.addEventListener($[534],this._onHideResizeLine,this);this._header.setTop(0);this._header.setLeft(0);this._header.setScrollLeft(this._horzScrollBar.getValue());this._scheduleColumnUpdate()},_createFooter:function(){this._footer=new rwt.widgets.base.GridHeader({appearance:this.getAppearance(),splitContainer:this._hasFixedColumns,footer:true});this.add(this._footer);this._footer.setLeft(0);this._footer.setScrollLeft(this._horzScrollBar.getValue());this._scheduleColumnUpdate()},_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($[77],a);this._vertScrollBar.setZIndex(100000000);this._vertScrollBar.setVisibility(false);this._vertScrollBar.setIncrement(16);this._vertScrollBar.setMergeEvents(false);this._vertScrollBar.addEventListener($[77],a)},_registerListeners:function(){this._rootItem.addEventListener($[146],this._onItemUpdate,this);this.addEventListener($[1],this._handleHyperlinkActivation,this);this.addEventListener($[5],this._handleHyperlinkActivation,this);this.addEventListener($[14],this._handleHyperlinkActivation,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[5],this._onMouseUp,this);this.addEventListener($[6],this._onMouseOut,this);this.addEventListener($[4],this._onKeyPress,this);this._rowContainer.addEventListener($[47],this._onClientAreaMouseWheel,this);this._mergeEventsTimer.addEventListener($[27],this._updateTopItemIndex,this);this._horzScrollBar.addEventListener($[108],this._onHorzScrollBarChangeValue,this);this._vertScrollBar.addEventListener($[108],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(typeof a.indentionWidth===$[31]){this._config.indentionWidth=a.indentionWidth}if(a.markupEnabled){this._config.markupEnabled=true}this._hasFixedColumns=a.splitContainer;this._config.baseAppearance=a.appearance;this._rowContainer.setBaseAppearance(a.appearance);this.setAppearance(a.appearance)},setItemCount:function(a){this._rootItem.setItemCount(a)},setHeaderVisible:function(a){if(a&&this._header==null){this._createHeader()}else{if(!a){this._header.destroy();this._header=null}}this._layoutX();this._layoutY()},setFooterVisible:function(a){if(a&&this._footer==null){this._createFooter()}else{if(!a){this._footer.destroy();this._footer=null}}this._scheduleUpdate($[159]);this._layoutX();this._layoutY()},setHeaderHeight:function(a){this._headerHeight=a;this._layoutX();this._layoutY()},setFooterHeight:function(a){this._footerHeight=a;this._scheduleUpdate($[159]);this._layoutX();this._layoutY()},setItemHeight:function(a){this._itemHeight=a;this._vertScrollBar.setIncrement(a);this._rowContainer.setRowHeight(a);this._rootItem.setDefaultHeight(a);this._scheduleUpdate($[159])},setColumnCount:function(a){this._config.columnCount=a;this._scheduleUpdate();this._updateScrollWidth()},setItemMetrics:function(d,b,a,h,g,c,e,f,i){this._config.itemLeft[d]=b;this._config.itemWidth[d]=a;this._config.itemImageLeft[d]=h;this._config.itemImageWidth[d]=g;this._config.itemTextLeft[d]=c;this._config.itemTextWidth[d]=e;if(!isNaN(f)){this._config.itemCellCheckLeft[d]=f;this._config.itemCellCheckWidth[d]=i}this._scheduleUpdate();this._updateScrollWidth()},setTreeColumn:function(a){this._config.treeColumn=a},setTopItemIndex:function(a){this._updateScrollHeight();var c=0;var b=this._rootItem.findItemByFlatIndex(a);if(b!=null){c=b.getOffset()}this._vertScrollBar.setValue(c);if(!this._inServerResponse()){rwt.widgets.base.Widget.flushGlobalQueues()}},getTopItemIndex:function(){return this._topItemIndex},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()},getVerticalBar:function(){return this._vertScrollBar},getHorizontalBar:function(){return this._horzScrollBar},isVerticalBarVisible:function(){return this._vertScrollBar.getVisibility()},isHorizontalBarVisible:function(){return this._horzScrollBar.getVisibility()},setHasSelectionListener:function(a){this._hasSelectionListener=a},setHasDefaultSelectionListener:function(a){this._hasDefaultSelectionListener=a},setHasExpandListener:function(a){this._hasExpandListener=a},setHasCollapseListener:function(a){this._hasCollapseListener=a},setHasSetDataListener:function(a){this._hasSetDataListener=a},setAlignment:function(a,b){this._config.alignment[a]=b;this._scheduleUpdate()},setCellCheck:function(a,b){this._config.itemCellCheck[a]=b;this._scheduleUpdate()},setLinesVisible:function(a){this._config.linesVisible=a;if(a){this.addState($[197])}else{this.removeState($[197])}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)===$[40]){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._header},getFooter:function(){return this._footer},update:function(){this._scheduleUpdate()},addColumn:function(a){this._columns[a.toHashCode()]=a;a.addEventListener($[146],this._scheduleColumnUpdate,this);this._scheduleColumnUpdate()},removeColumn:function(a){delete this._columns[a.toHashCode()];a.removeEventListener($[146],this._scheduleColumnUpdate,this);this._scheduleColumnUpdate()},_onItemUpdate:function(b){var a=b.target;if(b.msg===$[235]){if(this._focusItem&&(this._focusItem.isDisposed()||this._focusItem.isChildOf(a))){this.setFocusItem(a)}}if(b.msg===$[229]){this._scheduleUpdate($[564])}this._sendItemUpdate(a,b);this._renderItemUpdate(a,b);return false},_beforeAppear:function(){arguments.callee.base.call(this);this._scheduleColumnUpdate()},_scheduleColumnUpdate:function(){rwt.widgets.base.Widget.addToGlobalWidgetQueue(this);this._scheduleUpdate()},flushWidgetQueue:function(){this._updateColumns()},_onVertScrollBarChangeValue:function(){if(this._vertScrollBar._internalValueChange){this._mergeEventsTimer.start()}else{this._updateTopItemIndex()}},_updateTopItemIndex:function(){this._mergeEventsTimer.stop();var b=this._vertScrollBar.getValue();var a=this._rootItem.findItemByOffset(b-1);if(a){this._topItemIndex=a.getFlatIndex()+1;this._topItem=a.getNextItem()}else{this._topItemIndex=0;this._topItem=null}if(this._inServerResponse()){this._scheduleUpdate("topItem")}else{this._sendTopItemIndexChange();this._updateTopItem(true)}},_onHorzScrollBarChangeValue:function(){this._rowContainer.setScrollLeft(this._horzScrollBar.getValue());if(this._header){this._header.setScrollLeft(this._horzScrollBar.getValue())}if(this._footer){this._footer.setScrollLeft(this._horzScrollBar.getValue())}this._sendScrollLeftChange()},_onMouseDown:function(a){this._delayedSelection=false;var b=a.getOriginalTarget();if(b instanceof rwt.widgets.base.GridRow&&!this._isHyperlinkTarget(a)){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[0]===$[293]&&c.hasChildren()){var a=!c.isExpanded();if(!a){this._deselectVisibleChildren(c)}c.setExpanded(a)}else{if(b[0]===$[245]||b[0]===$[349]){this._toggleCheckSelection(c,b[1])}else{if(this._isSelectionClick(b)){this._onSelectionClick(d,c)}}}}},_handleHyperlinkActivation:function(b){if(this._isRWTHyperlinkTarget(b)){b.setDefaultPrevented(true);if(b.getType()===$[14]){var c=b.getDomTarget();var e=b.getOriginalTarget();var a=this._rowContainer.findItemByRow(e);var d=c.getAttribute("href");if(!d){d=c.innerHTML}this._sendSelectionEvent(a,false,"hyperlink",undefined,d)}}},_isHyperlinkTarget:function(a){return a.getDomTarget().tagName.toLowerCase()==="a"},_isRWTHyperlinkTarget:function(a){var b=a.getDomTarget();return this._isHyperlinkTarget(a)&&b.getAttribute("target")==="_rwt"},_isSelectionClick:function(b){var a;if(this._config.fullSelection){a=b[0]!==$[245]}else{a=b[0]===$[266]}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 $[51]:this._handleKeyEnter(a);break;case $[83]:this._handleKeySpace(a);break;case"Up":this._handleKeyUp(a);break;case"Down":this._handleKeyDown(a);break;case $[41]: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 $[36]:this._handleKeyRight(a);break}}this._stopKeyEvent(a)},_stopKeyEvent:function(a){switch(a.getKeyIdentifier()){case"Up":case"Down":case"Left":case $[36]:case"Home":case"End":case $[41]:case $[43]:a.preventDefault();a.stopPropagation();break}},_onShowResizeLine:function(c){var b=c.position;if(this._resizeLine===null){this._resizeLine=new rwt.widgets.base.Terminator();this._resizeLine.setAppearance("table-column-resizer");this.add(this._resizeLine);rwt.widgets.base.Widget.flushGlobalQueues()}var e=this._rowContainer.getTop();this._resizeLine._renderRuntimeTop(e);var d=b-2-this._horzScrollBar.getValue();this._resizeLine._renderRuntimeLeft(d);var a=this._rowContainer.getHeight();this._resizeLine._renderRuntimeHeight(a);this._resizeLine.removeStyleProperty($[103])},_onHideResizeLine:function(){this._resizeLine.setStyleProperty($[103],$[9])},_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(c){var e=this._focusItem.getOffset();var d=this._rowContainer.getHeight();var f=Math.max(0,e-d);var b=this._rootItem.findItemByOffset(f);if(f!==0){b=b.getNextItem()}var a=b.getFlatIndex();this._handleKeyboardSelect(c,b,a)},_handleKeyPageDown:function(d){var f=this._focusItem.getOffset();var e=this._rowContainer.getHeight();var a=this.getRootItem().getOffsetHeight()-1;var g=Math.min(a,f+e);var c=this._rootItem.findItemByOffset(g);if(g!==a){c=c.getPreviousItem()}var b=c.getFlatIndex();this._handleKeyboardSelect(d,c,b)},_handleKeyHome:function(b){var a=this.getRootItem().getChild(0);this._handleKeyboardSelect(b,a,0)},_handleKeyEnd:function(c){var b=this.getRootItem().getLastChild();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,c)},_updateColumns:function(){this._updateScrollWidth();if(this._header!=null){this._header.renderColumns(this._columns)}if(this._footer!=null){this._footer.renderColumns(this._columns)}},_renderItemUpdate:function(b,a){if(b.isDisplayable()){switch(a.msg){case $[80]:case $[235]:case $[17]:this._topItem=null;this._scheduleUpdate($[159]);break;case"add":case $[229]:if(b.isExpanded()){this._scheduleUpdate($[159])}else{this._scheduleItemUpdate(b)}this._topItem=null;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($[336])},_scheduleItemUpdate:function(a){this._renderQueue[a.toHashCode()]=a;this.addToQueue($[336])},_layoutPost:function(a){arguments.callee.base.call(this,a);if(a[$[564]]){this._checkDisposedItems()}if(a[$[159]]){this._updateScrollHeight()}if(a[$[159]]||a.topItem){this._updateTopItem(false)}if(a[$[336]]){if(this._renderQueue.allItems){this._rowContainer.renderAll()}else{this._rowContainer.renderItemQueue(this._renderQueue)}this._renderQueue={}}},_updateScrollHeight:function(){var b=this.getRootItem().getOffsetHeight();var a=b+(this._footer?this._footerHeight:0);if(this._vertScrollBar.getMaximum()!=a){if(!this._vertScrollBar.getDisposed()){this._vertScrollBar.setMaximum(a)}}},_updateTopItem:function(a){this._rowContainer.setTopItem(this._getTopItem(),this._topItemIndex,a)},_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;if(this._header){this._header.setScrollWidth(a+b)}if(this._footer){this._footer.setScrollWidth(a)}},_scrollIntoView:function(c,i){if(c<this._topItemIndex){this.setTopItemIndex(c)}else{if(c>this._topItemIndex){var d=this._getTopItem();var h=d.getOffset();var g=i.getOffset();var f=this._rowContainer.getHeight()-i.getOwnHeight();if(g>h+f){var b=g-f-1;var e=this.getRootItem().findItemByOffset(b);var a=e.getFlatIndex()+1;this.setTopItemIndex(a)}}}},setHasScrollBarsSelectionListener:function(a){this._vertScrollBar.setHasSelectionListener(true);this._horzScrollBar.setHasSelectionListener(true)},_sendSelectionChange:function(b){if(!this._inServerResponse()){var a=this._getSelectionList();rwt.remote.Server.getInstance().getRemoteObject(this).set($[42],a);this._sendSelectionEvent(b,false,null)}},_sendItemCheckedChange:function(a){if(!this._inServerResponse()){rwt.remote.Server.getInstance().getRemoteObject(a).set($[151],a.isChecked());this._sendSelectionEvent(a,false,$[109])}},_sendCellCheckedChange:function(d,b){if(!this._inServerResponse()){var e=rwt.remote.Server.getInstance();var a=d.getCellChecked();var f=[];for(var c=0;c<this._config.columnCount;c++){f[c]=a[c]===true}e.getRemoteObject(d).set($[478],f);this._sendSelectionEvent(d,false,$[109],b)}},_sendItemFocusChange:function(){if(!this._inServerResponse()){var a=this._getItemId(this._focusItem);rwt.remote.Server.getInstance().getRemoteObject(this).set("focusItem",a)}},_sendTopItemIndexChange:function(){var b=rwt.remote.Server.getInstance();var a=b.getRemoteObject(this);a.set($[461],this._topItemIndex);if(this._hasSetDataListener||this._vertScrollBar.getHasSelectionListener()){this._startScrollBarChangesTimer(false)}},_sendScrollLeftChange:function(){var b=rwt.remote.Server.getInstance();var a=b.getRemoteObject(this);a.set("scrollLeft",this._horzScrollBar.getValue());if(this._hasSetDataListener||this._horzScrollBar.getHasSelectionListener()){this._startScrollBarChangesTimer(true)}},_startScrollBarChangesTimer:function(a){var b=rwt.remote.Server.getInstance();if(a&&this._horzScrollBar.getHasSelectionListener()){b.onNextSend(this._sendHorizontalScrolled,this)}else{if(this._vertScrollBar.getHasSelectionListener()){b.onNextSend(this._sendVerticalScrolled,this)}if(this._hasSetDataListener){b.onNextSend(this._sendSetData,this)}}b.sendDelayed(400)},_sendVerticalScrolled:function(){var a=rwt.remote.Server.getInstance();a.getRemoteObject(this._vertScrollBar).notify($[32])},_sendHorizontalScrolled:function(){var a=rwt.remote.Server.getInstance();a.getRemoteObject(this._horzScrollBar).notify($[32])},_sendSetData:function(){var a=rwt.remote.Server.getInstance();a.getRemoteObject(this).notify("SetData")},_sendItemUpdate:function(c,b){if(!this._inServerResponse()){if(b.msg===$[80]||b.msg===$[235]){var a=b.msg===$[80];rwt.remote.Server.getInstance().getRemoteObject(c).set($[80],a);if(a&&this._hasExpandListener){rwt.remote.Server.getInstance().getRemoteObject(this).notify($[168],{item:rwt.remote.ObjectRegistry.getId(c)})}else{if(!a&&this._hasCollapseListener){rwt.remote.Server.getInstance().getRemoteObject(this).notify($[194],{item:rwt.remote.ObjectRegistry.getId(c)})}}}}},_sendSelectionEvent:function(e,d,c,a,f){if((this._hasSelectionListener&&!d)||(this._hasDefaultSelectionListener&&d)){var b={item:this._getItemId(e),detail:c,index:!isNaN(a)?a:undefined,text:f};if(d){rwt.remote.EventUtil.notifyDefaultSelected(this,b)}else{rwt.remote.EventUtil.notifySelected(this,b)}}},_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=rwt.remote.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},_getItemId:function(c){var d=rwt.remote.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 rwt.event.MouseEvent&&b.isRightButtonPressed()){if(!this.isItemSelected(a)){this._exclusiveSelectItem(a)}}else{if(b.isCtrlPressed()){if(b instanceof rwt.event.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(){this._checkDisposedItems();var a=this._selection;this._selection=[];for(var b=0;b<a.length;b++){this._rowContainer.renderItem(a[b])}},_toggleCheckSelection:function(b,a){if(b.isCached()){if(isNaN(a)){b.setChecked(!b.isChecked());this._sendItemCheckedChange(b)}else{if(b.isCellCheckable(a)){b.toggleCellChecked(a);this._sendCellCheckedChange(b,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._header&&this._header.getDisplay()){this._header.setWidth(a)}if(this._vertScrollBar.getVisibility()){a-=this._vertScrollBar.getWidth();this._vertScrollBar.setLeft(a)}if(this._footer){this._footer.setWidth(a)}this._horzScrollBar.setWidth(a);this._rowContainer.setWidth(a);this._updateScrollWidth()},_layoutY:function(){var b=0;b+=this._header?this._headerHeight:0;var a=this.getHeight()-this.getFrameHeight();a-=this._header?this._headerHeight:0;a-=this._footer?this._footerHeight:0;a-=this._horzScrollBar.getVisibility()?this._horzScrollBar.getHeight():0;a=Math.max(0,a);if(this._header){this._header.setHeight(this._headerHeight)}if(this._footer){this._footer.setHeight(this._footerHeight);this._footer.setTop(b+a)}if(this._horzScrollBar.getVisibility()){this._horzScrollBar.setTop(b+a+(this._footer?this._footerHeight:0))}this._vertScrollBar.setHeight(a+(this._footer?this._footerHeight:0));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 rwt.remote.EventUtil.getSuspended()},_isDragSource:function(){return this.hasEventListeners($[77])},_getTopItem:function(){if(this._topItem===null){this._topItem=this._rootItem.findItemByFlatIndex(this._topItemIndex)}return this._topItem},setEnableCellToolTip:function(a){if(a){this._cellToolTip=new rwt.widgets.base.GridCellToolTip(this);this._rowContainer.addEventListener($[29],this._onClientAreaMouseMove,this);this._rowContainer.setToolTip(this._cellToolTip)}else{this._rowContainer.removeEventListener($[29],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=rwt.remote.WidgetManager.getInstance();c=d.findIdByWidget(this._rowContainer.getHoverItem());b=rwt.widgets.util.GridUtil.getColumnByPageX(this,a.getPageX())}this._cellToolTip.setCell(c,b)}},setCellToolTipText:function(a){if(this._cellToolTip!=null){this._cellToolTip.setText(a)}}}});
+rwt.qx.Class.define($[541],{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);this._rootItem=new rwt.widgets.GridItem();this._hasMultiSelection=false;this._hasSelectionListener=false;this._hasDefaultSelectionListener=false;this._leadItem=null;this._topItemIndex=0;this._topItem=null;this._hasSetDataListener=false;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._hasFixedColumns=false;this._hasExpandListener=false;this._hasCollapseListener=false;this._headerHeight=0;this._footerHeight=0;this._itemHeight=16;this._mergeEventsTimer=new rwt.client.Timer(50);this._rowContainer=rwt.widgets.util.GridUtil.createTreeRowContainer(a);this._columns={};this._horzScrollBar=new rwt.widgets.base.ScrollBar(true);this._vertScrollBar=new rwt.widgets.base.ScrollBar(false);this._header=null;this._footer=null;this.add(this._rowContainer);this.add(this._horzScrollBar);this.add(this._vertScrollBar);this._cellToolTip=null;this._config=this._rowContainer.getRenderConfig();this.setCursor($[67]);this.setOverflow($[9]);rwt.widgets.base.Widget.disableScrolling(this);this._configureScrollBars();this._registerListeners();this._parseArgsMap(a)},destruct:function(){this._rootItem.removeEventListener($[146],this._onItemUpdate,this);this._rootItem.dispose();this._rootItem=null;this._mergeEventsTimer.dispose();this._mergeEventsTimer=null;this._rowContainer=null;this._header=null;this._footer=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:{_createHeader:function(){this._header=new rwt.widgets.base.GridHeader({appearance:this.getAppearance(),splitContainer:this._hasFixedColumns});this.add(this._header);this._header.addEventListener($[365],this._onShowResizeLine,this);this._header.addEventListener($[534],this._onHideResizeLine,this);this._header.setTop(0);this._header.setLeft(0);this._header.setScrollLeft(this._horzScrollBar.getValue());this._scheduleColumnUpdate()},_createFooter:function(){this._footer=new rwt.widgets.base.GridHeader({appearance:this.getAppearance(),splitContainer:this._hasFixedColumns,footer:true});this.add(this._footer);this._footer.setLeft(0);this._footer.setScrollLeft(this._horzScrollBar.getValue());this._scheduleColumnUpdate()},_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($[77],a);this._vertScrollBar.setZIndex(100000000);this._vertScrollBar.setVisibility(false);this._vertScrollBar.setIncrement(16);this._vertScrollBar.setMergeEvents(false);this._vertScrollBar.addEventListener($[77],a)},_registerListeners:function(){this._rootItem.addEventListener($[146],this._onItemUpdate,this);this.addEventListener($[1],this._handleHyperlinkActivation,this);this.addEventListener($[5],this._handleHyperlinkActivation,this);this.addEventListener($[14],this._handleHyperlinkActivation,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[5],this._onMouseUp,this);this.addEventListener($[6],this._onMouseOut,this);this.addEventListener($[4],this._onKeyPress,this);this._rowContainer.addEventListener($[47],this._onClientAreaMouseWheel,this);this._mergeEventsTimer.addEventListener($[27],this._updateTopItemIndex,this);this._horzScrollBar.addEventListener($[108],this._onHorzScrollBarChangeValue,this);this._vertScrollBar.addEventListener($[108],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(typeof a.indentionWidth===$[31]){this._config.indentionWidth=a.indentionWidth}if(a.markupEnabled){this._config.markupEnabled=true}this._hasFixedColumns=a.splitContainer;this._config.baseAppearance=a.appearance;this._rowContainer.setBaseAppearance(a.appearance);this.setAppearance(a.appearance)},setItemCount:function(a){this._rootItem.setItemCount(a)},setHeaderVisible:function(a){if(a&&this._header==null){this._createHeader()}else{if(!a){this._header.destroy();this._header=null}}this._layoutX();this._layoutY()},setFooterVisible:function(a){if(a&&this._footer==null){this._createFooter()}else{if(!a){this._footer.destroy();this._footer=null}}this._scheduleUpdate($[159]);this._layoutX();this._layoutY()},setHeaderHeight:function(a){this._headerHeight=a;this._layoutX();this._layoutY()},setFooterHeight:function(a){this._footerHeight=a;this._scheduleUpdate($[159]);this._layoutX();this._layoutY()},setItemHeight:function(a){this._itemHeight=a;this._vertScrollBar.setIncrement(a);this._rowContainer.setRowHeight(a);this._rootItem.setDefaultHeight(a);this._scheduleUpdate($[159])},setColumnCount:function(a){this._config.columnCount=a;this._scheduleUpdate();this._updateScrollWidth()},setItemMetrics:function(d,b,a,h,g,c,e,f,i){this._config.itemLeft[d]=b;this._config.itemWidth[d]=a;this._config.itemImageLeft[d]=h;this._config.itemImageWidth[d]=g;this._config.itemTextLeft[d]=c;this._config.itemTextWidth[d]=e;if(!isNaN(f)){this._config.itemCellCheckLeft[d]=f;this._config.itemCellCheckWidth[d]=i}this._scheduleUpdate();this._updateScrollWidth()},setTreeColumn:function(a){this._config.treeColumn=a},setTopItemIndex:function(a){this._updateScrollHeight();var c=0;var b=this._rootItem.findItemByFlatIndex(a);if(b!=null){c=b.getOffset()}this._vertScrollBar.setValue(c);if(!this._inServerResponse()){rwt.widgets.base.Widget.flushGlobalQueues()}},getTopItemIndex:function(){return this._topItemIndex},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()},getVerticalBar:function(){return this._vertScrollBar},getHorizontalBar:function(){return this._horzScrollBar},isVerticalBarVisible:function(){return this._vertScrollBar.getVisibility()},isHorizontalBarVisible:function(){return this._horzScrollBar.getVisibility()},setHasSelectionListener:function(a){this._hasSelectionListener=a},setHasDefaultSelectionListener:function(a){this._hasDefaultSelectionListener=a},setHasExpandListener:function(a){this._hasExpandListener=a},setHasCollapseListener:function(a){this._hasCollapseListener=a},setHasSetDataListener:function(a){this._hasSetDataListener=a},setAlignment:function(a,b){this._config.alignment[a]=b;this._scheduleUpdate()},setCellCheck:function(a,b){this._config.itemCellCheck[a]=b;this._scheduleUpdate()},setLinesVisible:function(a){this._config.linesVisible=a;if(a){this.addState($[197])}else{this.removeState($[197])}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)===$[40]){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._header},getFooter:function(){return this._footer},update:function(){this._scheduleUpdate()},addColumn:function(a){this._columns[a.toHashCode()]=a;a.addEventListener($[146],this._scheduleColumnUpdate,this);this._scheduleColumnUpdate()},removeColumn:function(a){delete this._columns[a.toHashCode()];a.removeEventListener($[146],this._scheduleColumnUpdate,this);this._scheduleColumnUpdate()},_onItemUpdate:function(b){var a=b.target;if(b.msg===$[235]){if(this._focusItem&&(this._focusItem.isDisposed()||this._focusItem.isChildOf(a))){this.setFocusItem(a)}}if(b.msg===$[229]){this._scheduleUpdate($[564])}this._sendItemUpdate(a,b);this._renderItemUpdate(a,b);return false},_beforeAppear:function(){arguments.callee.base.call(this);this._scheduleColumnUpdate()},_scheduleColumnUpdate:function(){rwt.widgets.base.Widget.addToGlobalWidgetQueue(this);this._scheduleUpdate()},flushWidgetQueue:function(){this._updateColumns()},_onVertScrollBarChangeValue:function(){if(this._vertScrollBar._internalValueChange){this._mergeEventsTimer.start()}else{this._updateTopItemIndex()}},_updateTopItemIndex:function(){this._mergeEventsTimer.stop();var b=this._vertScrollBar.getValue();var a=this._rootItem.findItemByOffset(b-1);if(a){this._topItemIndex=a.getFlatIndex()+1;this._topItem=a.getNextItem()}else{this._topItemIndex=0;this._topItem=null}if(this._inServerResponse()){this._scheduleUpdate("topItem")}else{this._sendTopItemIndexChange();this._updateTopItem(true)}},_onHorzScrollBarChangeValue:function(){this._rowContainer.setScrollLeft(this._horzScrollBar.getValue());if(this._header){this._header.setScrollLeft(this._horzScrollBar.getValue())}if(this._footer){this._footer.setScrollLeft(this._horzScrollBar.getValue())}this._sendScrollLeftChange()},_onMouseDown:function(a){this._delayedSelection=false;var b=a.getOriginalTarget();if(b instanceof rwt.widgets.base.GridRow&&!this._isHyperlinkTarget(a)){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[0]===$[293]&&c.hasChildren()){var a=!c.isExpanded();if(!a){this._deselectVisibleChildren(c)}c.setExpanded(a)}else{if(b[0]===$[245]||b[0]===$[350]){this._toggleCheckSelection(c,b[1])}else{if(this._isSelectionClick(b)){this._onSelectionClick(d,c)}}}}},_handleHyperlinkActivation:function(b){if(this._isRWTHyperlinkTarget(b)){b.setDefaultPrevented(true);if(b.getType()===$[14]){var c=b.getDomTarget();var e=b.getOriginalTarget();var a=this._rowContainer.findItemByRow(e);var d=c.getAttribute("href");if(!d){d=c.innerHTML}this._sendSelectionEvent(a,false,"hyperlink",undefined,d)}}},_isHyperlinkTarget:function(a){return a.getDomTarget().tagName.toLowerCase()==="a"},_isRWTHyperlinkTarget:function(a){var b=a.getDomTarget();return this._isHyperlinkTarget(a)&&b.getAttribute("target")==="_rwt"},_isSelectionClick:function(b){var a;if(this._config.fullSelection){a=b[0]!==$[245]}else{a=b[0]===$[266]}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 $[51]:this._handleKeyEnter(a);break;case $[83]:this._handleKeySpace(a);break;case"Up":this._handleKeyUp(a);break;case"Down":this._handleKeyDown(a);break;case $[41]: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 $[36]:this._handleKeyRight(a);break}}this._stopKeyEvent(a)},_stopKeyEvent:function(a){switch(a.getKeyIdentifier()){case"Up":case"Down":case"Left":case $[36]:case"Home":case"End":case $[41]:case $[43]:a.preventDefault();a.stopPropagation();break}},_onShowResizeLine:function(c){var b=c.position;if(this._resizeLine===null){this._resizeLine=new rwt.widgets.base.Terminator();this._resizeLine.setAppearance("table-column-resizer");this.add(this._resizeLine);rwt.widgets.base.Widget.flushGlobalQueues()}var e=this._rowContainer.getTop();this._resizeLine._renderRuntimeTop(e);var d=b-2-this._horzScrollBar.getValue();this._resizeLine._renderRuntimeLeft(d);var a=this._rowContainer.getHeight();this._resizeLine._renderRuntimeHeight(a);this._resizeLine.removeStyleProperty($[103])},_onHideResizeLine:function(){this._resizeLine.setStyleProperty($[103],$[9])},_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(c){var e=this._focusItem.getOffset();var d=this._rowContainer.getHeight();var f=Math.max(0,e-d);var b=this._rootItem.findItemByOffset(f);if(f!==0){b=b.getNextItem()}var a=b.getFlatIndex();this._handleKeyboardSelect(c,b,a)},_handleKeyPageDown:function(d){var f=this._focusItem.getOffset();var e=this._rowContainer.getHeight();var a=this.getRootItem().getOffsetHeight()-1;var g=Math.min(a,f+e);var c=this._rootItem.findItemByOffset(g);if(g!==a){c=c.getPreviousItem()}var b=c.getFlatIndex();this._handleKeyboardSelect(d,c,b)},_handleKeyHome:function(b){var a=this.getRootItem().getChild(0);this._handleKeyboardSelect(b,a,0)},_handleKeyEnd:function(c){var b=this.getRootItem().getLastChild();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,c)},_updateColumns:function(){this._updateScrollWidth();if(this._header!=null){this._header.renderColumns(this._columns)}if(this._footer!=null){this._footer.renderColumns(this._columns)}},_renderItemUpdate:function(b,a){if(b.isDisplayable()){switch(a.msg){case $[80]:case $[235]:case $[17]:this._topItem=null;this._scheduleUpdate($[159]);break;case"add":case $[229]:if(b.isExpanded()){this._scheduleUpdate($[159])}else{this._scheduleItemUpdate(b)}this._topItem=null;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($[337])},_scheduleItemUpdate:function(a){this._renderQueue[a.toHashCode()]=a;this.addToQueue($[337])},_layoutPost:function(a){arguments.callee.base.call(this,a);if(a[$[564]]){this._checkDisposedItems()}if(a[$[159]]){this._updateScrollHeight()}if(a[$[159]]||a.topItem){this._updateTopItem(false)}if(a[$[337]]){if(this._renderQueue.allItems){this._rowContainer.renderAll()}else{this._rowContainer.renderItemQueue(this._renderQueue)}this._renderQueue={}}},_updateScrollHeight:function(){var b=this.getRootItem().getOffsetHeight();var a=b+(this._footer?this._footerHeight:0);if(this._vertScrollBar.getMaximum()!=a){if(!this._vertScrollBar.getDisposed()){this._vertScrollBar.setMaximum(a)}}},_updateTopItem:function(a){this._rowContainer.setTopItem(this._getTopItem(),this._topItemIndex,a)},_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;if(this._header){this._header.setScrollWidth(a+b)}if(this._footer){this._footer.setScrollWidth(a)}},_scrollIntoView:function(c,i){if(c<this._topItemIndex){this.setTopItemIndex(c)}else{if(c>this._topItemIndex){var d=this._getTopItem();var h=d.getOffset();var g=i.getOffset();var f=this._rowContainer.getHeight()-i.getOwnHeight();if(g>h+f){var b=g-f-1;var e=this.getRootItem().findItemByOffset(b);var a=e.getFlatIndex()+1;this.setTopItemIndex(a)}}}},setHasScrollBarsSelectionListener:function(a){this._vertScrollBar.setHasSelectionListener(true);this._horzScrollBar.setHasSelectionListener(true)},_sendSelectionChange:function(b){if(!this._inServerResponse()){var a=this._getSelectionList();rwt.remote.Server.getInstance().getRemoteObject(this).set($[42],a);this._sendSelectionEvent(b,false,null)}},_sendItemCheckedChange:function(a){if(!this._inServerResponse()){rwt.remote.Server.getInstance().getRemoteObject(a).set($[151],a.isChecked());this._sendSelectionEvent(a,false,$[109])}},_sendCellCheckedChange:function(d,b){if(!this._inServerResponse()){var e=rwt.remote.Server.getInstance();var a=d.getCellChecked();var f=[];for(var c=0;c<this._config.columnCount;c++){f[c]=a[c]===true}e.getRemoteObject(d).set($[478],f);this._sendSelectionEvent(d,false,$[109],b)}},_sendItemFocusChange:function(){if(!this._inServerResponse()){var a=this._getItemId(this._focusItem);rwt.remote.Server.getInstance().getRemoteObject(this).set("focusItem",a)}},_sendTopItemIndexChange:function(){var b=rwt.remote.Server.getInstance();var a=b.getRemoteObject(this);a.set($[461],this._topItemIndex);if(this._hasSetDataListener||this._vertScrollBar.getHasSelectionListener()){this._startScrollBarChangesTimer(false)}},_sendScrollLeftChange:function(){var b=rwt.remote.Server.getInstance();var a=b.getRemoteObject(this);a.set("scrollLeft",this._horzScrollBar.getValue());if(this._hasSetDataListener||this._horzScrollBar.getHasSelectionListener()){this._startScrollBarChangesTimer(true)}},_startScrollBarChangesTimer:function(a){var b=rwt.remote.Server.getInstance();if(a&&this._horzScrollBar.getHasSelectionListener()){b.onNextSend(this._sendHorizontalScrolled,this)}else{if(this._vertScrollBar.getHasSelectionListener()){b.onNextSend(this._sendVerticalScrolled,this)}if(this._hasSetDataListener){b.onNextSend(this._sendSetData,this)}}b.sendDelayed(400)},_sendVerticalScrolled:function(){var a=rwt.remote.Server.getInstance();a.getRemoteObject(this._vertScrollBar).notify($[32])},_sendHorizontalScrolled:function(){var a=rwt.remote.Server.getInstance();a.getRemoteObject(this._horzScrollBar).notify($[32])},_sendSetData:function(){var a=rwt.remote.Server.getInstance();a.getRemoteObject(this).notify("SetData")},_sendItemUpdate:function(c,b){if(!this._inServerResponse()){if(b.msg===$[80]||b.msg===$[235]){var a=b.msg===$[80];rwt.remote.Server.getInstance().getRemoteObject(c).set($[80],a);if(a&&this._hasExpandListener){rwt.remote.Server.getInstance().getRemoteObject(this).notify($[168],{item:rwt.remote.ObjectRegistry.getId(c)})}else{if(!a&&this._hasCollapseListener){rwt.remote.Server.getInstance().getRemoteObject(this).notify($[194],{item:rwt.remote.ObjectRegistry.getId(c)})}}}}},_sendSelectionEvent:function(e,d,c,a,f){if((this._hasSelectionListener&&!d)||(this._hasDefaultSelectionListener&&d)){var b={item:this._getItemId(e),detail:c,index:!isNaN(a)?a:undefined,text:f};if(d){rwt.remote.EventUtil.notifyDefaultSelected(this,b)}else{rwt.remote.EventUtil.notifySelected(this,b)}}},_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=rwt.remote.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},_getItemId:function(c){var d=rwt.remote.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 rwt.event.MouseEvent&&b.isRightButtonPressed()){if(!this.isItemSelected(a)){this._exclusiveSelectItem(a)}}else{if(b.isCtrlPressed()){if(b instanceof rwt.event.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(){this._checkDisposedItems();var a=this._selection;this._selection=[];for(var b=0;b<a.length;b++){this._rowContainer.renderItem(a[b])}},_toggleCheckSelection:function(b,a){if(b.isCached()){if(isNaN(a)){b.setChecked(!b.isChecked());this._sendItemCheckedChange(b)}else{if(b.isCellCheckable(a)){b.toggleCellChecked(a);this._sendCellCheckedChange(b,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._header&&this._header.getDisplay()){this._header.setWidth(a)}if(this._vertScrollBar.getVisibility()){a-=this._vertScrollBar.getWidth();this._vertScrollBar.setLeft(a)}if(this._footer){this._footer.setWidth(a)}this._horzScrollBar.setWidth(a);this._rowContainer.setWidth(a);this._updateScrollWidth()},_layoutY:function(){var b=0;b+=this._header?this._headerHeight:0;var a=this.getHeight()-this.getFrameHeight();a-=this._header?this._headerHeight:0;a-=this._footer?this._footerHeight:0;a-=this._horzScrollBar.getVisibility()?this._horzScrollBar.getHeight():0;a=Math.max(0,a);if(this._header){this._header.setHeight(this._headerHeight)}if(this._footer){this._footer.setHeight(this._footerHeight);this._footer.setTop(b+a)}if(this._horzScrollBar.getVisibility()){this._horzScrollBar.setTop(b+a+(this._footer?this._footerHeight:0))}this._vertScrollBar.setHeight(a+(this._footer?this._footerHeight:0));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 rwt.remote.EventUtil.getSuspended()},_isDragSource:function(){return this.hasEventListeners($[77])},_getTopItem:function(){if(this._topItem===null){this._topItem=this._rootItem.findItemByFlatIndex(this._topItemIndex)}return this._topItem},setEnableCellToolTip:function(a){if(a){this._cellToolTip=new rwt.widgets.base.GridCellToolTip(this);this._rowContainer.addEventListener($[29],this._onClientAreaMouseMove,this);this._rowContainer.setToolTip(this._cellToolTip)}else{this._rowContainer.removeEventListener($[29],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=rwt.remote.WidgetManager.getInstance();c=d.findIdByWidget(this._rowContainer.getHoverItem());b=rwt.widgets.util.GridUtil.getColumnByPageX(this,a.getPageX())}this._cellToolTip.setCell(c,b)}},setCellToolTipText:function(a){if(this._cellToolTip!=null){this._cellToolTip.setText(a)}}}});
rwt.remote.HandlerRegistry.add("rwt.widgets.ScrollBar",{factory:function(b){var d=rwt.remote.HandlerUtil.createStyleMap(b.style);var c=rwt.remote.ObjectRegistry.getObject(b.parent);var a;if(d.HORIZONTAL){a=c.getHorizontalBar()}else{a=c.getVerticalBar()}rwt.remote.HandlerUtil.addDestroyableChild(c,a);a.setUserData($[95],c);return a},destructor:function(b){var a=b.getUserData($[95]);if(a){rwt.remote.HandlerUtil.removeDestroyableChild(a,b)}},properties:[$[103]],propertyHandler:{visibility:function(c,b){var a=c.getParent();if(c.isHorizontal()){a.setScrollBarsVisible(b,a.isVerticalBarVisible())}else{a.setScrollBarsVisible(a.isHorizontalBarVisible(),b)}}},listeners:rwt.remote.HandlerUtil.extendControlListeners([$[32]]),listenerHandler:{},methods:[]});
-rwt.remote.HandlerRegistry.add($[541],{factory:function(b){var d=rwt.remote.HandlerUtil.createStyleMap(b.style);var c={appearance:b.appearance,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 rwt.widgets.Grid(c);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:function(b){var c=b.getRootItem().getUncachedChildren();for(var a=0;a<c.length;a++){c[a].dispose()}rwt.remote.HandlerUtil.getControlDestructor()(b)},getDestroyableChildren:function(b){var a=b.getRootItem().getCachedChildren();return a.concat(rwt.remote.HandlerUtil.getDestroyableChildrenFinder()(b))},properties:rwt.remote.HandlerUtil.extendControlProperties(["itemCount","itemHeight","itemMetrics","columnCount",$[266],"fixedColumns",$[413],"headerVisible","footerHeight","footerVisible","linesVisible",$[461],"scrollLeft",$[42],"focusItem","sortDirection","sortColumn","alwaysHideSelection","enableCellToolTip","cellToolTipText"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({itemMetrics:function(c,b){for(var a=0;a<b.length;a++){c.setItemMetrics.apply(c,b[a])}},fixedColumns:function(b,a){rwt.widgets.util.GridUtil.setFixedColumns(b,a)},focusItem:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setFocusItem(c)})},selection:function(d,c){d.deselectAll();var b=function(e){d.selectItem(e)};for(var a=0;a<c.length;a++){rwt.remote.HandlerUtil.callWithTarget(c[a],b)}},sortColumn:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setSortColumn(c)})},scrollBarsVisible:function(b,a){b.setScrollBarsVisible(a[0],a[1])},cellToolTipText:function(c,b){var a=rwt.util.Encoding;var d=a.escapeText(b,false);d=a.replaceNewLines(d,$[88]);c.setCellToolTipText(d)}}),listeners:rwt.remote.HandlerUtil.extendControlListeners([$[32],$[121],$[168],$[194],"SetData"]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({scrollBarsSelection:function(b,a){b.setHasScrollBarsSelectionListener(a)}})});
+rwt.remote.HandlerRegistry.add($[541],{factory:function(b){var d=rwt.remote.HandlerUtil.createStyleMap(b.style);var c={appearance:b.appearance,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 rwt.widgets.Grid(c);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:function(b){var c=b.getRootItem().getUncachedChildren();for(var a=0;a<c.length;a++){c[a].dispose()}rwt.remote.HandlerUtil.getControlDestructor()(b)},getDestroyableChildren:function(b){var a=b.getRootItem().getCachedChildren();return a.concat(rwt.remote.HandlerUtil.getDestroyableChildrenFinder()(b))},properties:rwt.remote.HandlerUtil.extendControlProperties(["itemCount","itemHeight","itemMetrics","columnCount",$[266],"fixedColumns",$[414],"headerVisible","footerHeight","footerVisible","linesVisible",$[461],"scrollLeft",$[42],"focusItem","sortDirection","sortColumn","alwaysHideSelection","enableCellToolTip","cellToolTipText"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({itemMetrics:function(c,b){for(var a=0;a<b.length;a++){c.setItemMetrics.apply(c,b[a])}},fixedColumns:function(b,a){rwt.widgets.util.GridUtil.setFixedColumns(b,a)},focusItem:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setFocusItem(c)})},selection:function(d,c){d.deselectAll();var b=function(e){d.selectItem(e)};for(var a=0;a<c.length;a++){rwt.remote.HandlerUtil.callWithTarget(c[a],b)}},sortColumn:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setSortColumn(c)})},scrollBarsVisible:function(b,a){b.setScrollBarsVisible(a[0],a[1])},cellToolTipText:function(c,b){var a=rwt.util.Encoding;var d=a.escapeText(b,false);d=a.replaceNewLines(d,$[88]);c.setCellToolTipText(d)}}),listeners:rwt.remote.HandlerUtil.extendControlListeners([$[32],$[121],$[168],$[194],"SetData"]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({scrollBarsSelection:function(b,a){b.setHasScrollBarsSelectionListener(a)}})});
rwt.qx.Class.define($[573],{extend:rwt.qx.Target,construct:function(b,a,c){this._autoDispose=false;arguments.callee.base.call(this);this._parent=b;this._level=-1;this._height=null;this._children=[];this._indexCache={};this._visibleChildrenCount=0;this._expandedItems={};this._customHeightItems={};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._cellChecked=[];this._cellGrayed=[];this._cellCheckable=[];this._variant=null;if(this._parent!=null){this._level=this._parent.getLevel()+1;this._parent._add(this,a)}this._expanded=this.isRootItem();this.addEventListener($[146],this._onUpdate,this);this._escaped=false;if(this.isRootItem()){this._rootItem=this;this._height=16}else{this._rootItem=b.getRootItem()}},destruct:function(){if(this._parent!=null&&!this._parent.isDisposed()){this._parent._remove(this)}this._parent=null;this._height=null;this._children=null;this._indexCache=null;this._expandedItems=null;this._customHeightItems=null;this._texts=null;this._images=null;this._font=null;this._cellFonts=null;this._foreground=null;this._cellForegrounds=null;this._background=null;this._cellBackgrounds=null;this._cellChecked=null;this._cellGrayed=null;this._cellCheckable=null;this._rootItem=null},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 rwt.widgets.GridItem(b,c,false)}return a},_getItem:function(b){var a;if(b instanceof rwt.widgets.Grid){a=b.getRootItem()}else{a=b}return a}},events:{update:$[11]},members:{setItemCount:function(a){var b=this._children.length>a?$[229]:"add";this._children.length=a;this._update(b)},setIndex:function(a){var c=this._parent._children;if(c.indexOf(this)!==a){var b=c[a];c[a]=this;if(b&&!b.isCached()){b.dispose()}}},clear:function(){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($[66])},getText:function(b,c){var a=this._texts[b];if((typeof a)===$[10]){if(c!==false&&!this._escaped){if(c===true){this._escapeTexts();this._escaped=true;a=this._texts[b]}else{a=this._escape(this._texts[b])}}if(c===false&&this._escaped){throw new Error("Unescaped text requested from GridItem, but is already escaped")}}else{a=""}return a},hasText:function(a){return !!this._texts[a]},setFont:function(a){this._font=a;this._update($[66])},getCellFont:function(b){var a=this._cellFonts[b];return typeof a===$[10]&&a!==""?a:this._font},setCellFonts:function(a){this._cellFonts=a;this._update($[66])},setForeground:function(a){this._foreground=a;this._update($[66])},getCellForeground:function(b){var a=this._cellForegrounds[b];return typeof a===$[10]?a:this._foreground},setCellForegrounds:function(a){this._cellForegrounds=a;this._update($[66])},setBackground:function(a){this._background=a;this._update($[66])},getCellBackground:function(b){var a=this._cellBackgrounds[b];return typeof a===$[10]?a:null},getBackground:function(){return this._background},setCellBackgrounds:function(a){this._cellBackgrounds=a;this._update($[66])},setImages:function(a){this._images=a;this._update($[66])},getImage:function(b){var a=this._images[b];return typeof a===$[10]?a:null},setChecked:function(a){this._checked=a;this._update($[66])},isChecked:function(){return this._checked},setGrayed:function(a){this._grayed=a;this._update($[66])},isGrayed:function(){return this._grayed},setCellChecked:function(a){this._cellChecked=a;this._update($[66])},toggleCellChecked:function(a){this._cellChecked[a]=!this._cellChecked[a];this._update($[66])},getCellChecked:function(){return this._cellChecked},isCellChecked:function(a){return this._cellChecked[a]},setCellGrayed:function(a){this._cellGrayed=a;this._update($[66])},isCellGrayed:function(a){return this._cellGrayed[a]},setCellCheckable:function(a){this._cellCheckable=a},isCellCheckable:function(a){return this._cellCheckable[a]===undefined?true:this._cellCheckable[a]},setVariant:function(a){this._variant=a},getVariant:function(){return this._variant},setDefaultHeight:function(a){if(!this.isRootItem()){throw new Error("Can only set default item height on root item")}this._height=a},setHeight:function(a){if(this.isRootItem()){throw new Error("Can not set item height on root item")}this._height=a;if(a!==null){this._parent._addToCustomHeightItems(this)}else{this._removeFromCustomHeightItems(this)}this._update($[17])},getDefaultHeight:function(){var a;if(this.isRootItem()){a=this._height}else{a=this.getRootItem().getDefaultHeight()}return a},isRootItem:function(){return this._level<0},getRootItem:function(){return this._rootItem},getLevel:function(){return this._level},getParent:function(){return this._parent},setExpanded:function(a){if(this._expanded!=a){this._expanded=a;this._update(a?$[80]:$[235]);if(a){this._parent._addToExpandedItems(this)}else{this._parent._removeFromExpandedItems(this)}}},isExpanded:function(){return this._expanded},isDisplayable:function(){var a=false;if(this.isRootItem()||this._parent.isRootItem()){a=true}else{a=this._parent.isExpanded()&&this._parent.isDisplayable()}return a},hasChildren:function(){return this._children.length>0},getChildrenLength:function(){return this._children.length},isChildCreated:function(a){return this._children[a]!==undefined},isChildCached:function(a){return this._children[a].isCached()},getCachedChildren:function(){var a=[];for(var b=0;b<this._children.length;b++){if(this.isChildCreated(b)&&this.isChildCached(b)){a.push(this._children[b])}}return a},getUncachedChildren:function(){var a=[];for(var b=0;b<this._children.length;b++){if(this.isChildCreated(b)&&!this.isChildCached(b)){a.push(this._children[b])}}return a},getOffsetHeight:function(){var a=this.getOwnHeight();if(this.isExpanded()&&this.hasChildren()){var b=this.getLastChild();a+=this._getChildOffset(b);a+=b.getOffsetHeight()}return a},hasCustomHeight:function(){return this._height!==null},getOwnHeight:function(){var a=0;if(!this.isRootItem()){a=this._height!==null?this._height:this.getDefaultHeight()}return a},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 rwt.widgets.GridItem(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},findItemByOffset:function(m){var b=this.getDefaultHeight();var f=this._getDifferingHeightIndicies();if(f[0]===0){f.shift()}var g=0;var e=0;var n=null;var c=false;if(m<0||this.getChildrenLength()===0){c=true}while(!c){var i=this.getChild(e);var l=i.getOffsetHeight();var d=f.shift();var k=g+l+(d-e-1)*b;if(m<g+l){if(m<g+i.getOwnHeight()){n=i}else{var j=m-g-i.getOwnHeight();n=i.findItemByOffset(j)}c=true}else{if(d===undefined||k>m){var h=m-g-l;var a=e+1+Math.floor(h/b);n=this.getChild(a);c=true}else{e=d;g=k}}}return n},findItemByFlatIndex:function(c){var b=this._getExpandedIndicies();var h=c;var a=null;var g=false;while(!g&&h>=0){var e=b.shift();if(e===undefined||e>=h){a=this.getChild(h);if(a){this._indexCache[a.toHashCode()]=h}g=true}else{var d=this.getChild(e).getVisibleChildrenCount();var f=h-e;if(f<=d){a=this.getChild(e).findItemByFlatIndex(f-1);g=true;if(a==null){throw new Error("getItemByFlatIndex failed")}}else{h-=d}}}return a},getOffset:function(){var a=0;if(!this._parent.isRootItem()){a+=this._parent.getOffset()+this._parent.getOwnHeight()}a+=this._parent._getChildOffset(this);return a},_getChildOffset:function(c){var e=this.indexOf(c);var a=e*this.getDefaultHeight();var d=this._getDifferingHeightIndicies();while(d.length>0&&e>d[0]){var b=d.shift();a-=this.getDefaultHeight();a+=this._children[b].getOffsetHeight()}return a},getFlatIndex:function(){var d=this._parent.indexOf(this);var a=d;var b=this._parent._getExpandedIndicies();while(b.length>0&&d>b[0]){var c=b.shift();a+=this._parent._children[c].getVisibleChildrenCount()}if(!this._parent.isRootItem()){a+=this._parent.getFlatIndex()+1}return a},hasPreviousSibling:function(){var a=this._parent.indexOf(this)-1;return a>=0},hasNextSibling:function(){var a=this._parent.indexOf(this)+1;return 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()]}if(b.hasCustomHeight()){delete this._customHeightItems[b.toHashCode()]}var a=this._children.indexOf(b);if(a!==-1){this._children.splice(a,1);this._children.push(undefined)}this._update($[229],b)},_addToExpandedItems:function(a){this._expandedItems[a.toHashCode()]=a},_removeFromExpandedItems:function(a){delete this._expandedItems[a.toHashCode()]},_addToCustomHeightItems:function(a){this._customHeightItems[a.toHashCode()]=a},_removeFromCustomHeightItems:function(a){delete this._customHeightItems[a.toHashCode()]},getEnabled:function(){return true},_update:function(c,b){var a={msg:c,related:b,target:this};this.dispatchSimpleEvent($[146],a,true);delete a.target;delete a.related;delete a.msg},_onUpdate:function(a){if(a.msg!==$[66]){this._visibleChildrenCount=null;this._indexCache={}}},_escapeTexts:function(){for(var a=0;a<this._texts.length;a++){var b=this._texts[a];if(b){b=this._escape(b)}this._texts[a]=b}},_escape:function(c){var b=rwt.util.Encoding;var a=b.escapeText(c,false);a=b.replaceWhiteSpaces(a);return a},_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},_getDifferingHeightIndicies:function(){var a=[];for(var b in this._expandedItems){a.push(this.indexOf(this._expandedItems[b]))}for(var b in this._customHeightItems){if(!this._expandedItems[b]){a.push(this.indexOf(this._customHeightItems[b]))}}return a.sort(function(d,c){return d-c})},_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()}}});
rwt.remote.HandlerRegistry.add($[573],{factory:function(b){var a;rwt.remote.HandlerUtil.callWithTarget(b.parent,function(c){a=rwt.widgets.GridItem.createItem(c,b.index)});return a},destructor:function(b){var c=b.getUncachedChildren();for(var a=0;a<c.length;a++){c[a].dispose()}b.dispose()},getDestroyableChildren:function(a){return a.getCachedChildren()},properties:["itemCount","texts","images",$[61],$[313],"font","cellBackgrounds","cellForegrounds","cellFonts",$[80],$[151],$[175],$[478],"cellGrayed","cellCheckable",$[86],$[17],"index"],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(rwt.util.Colors.rgbToRgbString(a))}},foreground:function(b,a){if(a===null){b.setForeground(null)}else{b.setForeground(rwt.util.Colors.rgbToRgbString(a))}},font:function(c,b){if(b===null){c.setFont(null)}else{var a=rwt.html.Font.fromArray(b);c.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]=rwt.util.Colors.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]=rwt.util.Colors.rgbToRgbString(c[b])}}d.setCellForegrounds(a)},cellFonts:function(d,c){var e=[];for(var b=0;b<c.length;b++){if(c[b]===null){e[b]=""}else{var a=rwt.html.Font.fromArray(c[b]);e[b]=a.toCss()}}d.setCellFonts(e)},customVariant:function(b,a){b.setVariant(a)}}});
-rwt.qx.Class.define("rwt.widgets.util.GridDNDFeedback",{extend:rwt.qx.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($[363],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,10);a.y+=parseInt(b.style.top||0,10);b=b.parentNode}return a},_showInsertIndicator:function(a,e){if(this._insertIndicator==null){var d=document.createElement("div");d.style.position=$[15];d.style.borderTopStyle=$[73];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 rwt.client.Timer(750);this._expandTimer.addEventListener($[27],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 rwt.client.Timer(250);this._scrollTimer.addEventListener($[27],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 h=this._tree._rowContainer.findItemByRow(this._currentRow);if(h!=null){var f=h.getFlatIndex();var e=d>0?h.getNextItem():h.getPreviousItem();if(e!=null){var c=this._tree._topItemIndex+d;this._tree.setTopItemIndex(c);var i=this._tree._rowContainer._findRowByItem(e);var g=this._currentRow;var a=function(){this._targetUpdateCheck(g,i)};rwt.client.Timer.once(a,this,1)}}}},_targetUpdateCheck:function(a,b){if(!this.isDisposed()){if(b!=this._currentRow&&a==this._currentRow){var c=rwt.remote.DNDSupport.getInstance();c.setCurrentTargetWidget(b)}}}}});
+rwt.qx.Class.define("rwt.widgets.util.GridDNDFeedback",{extend:rwt.qx.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($[364],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,10);a.y+=parseInt(b.style.top||0,10);b=b.parentNode}return a},_showInsertIndicator:function(a,e){if(this._insertIndicator==null){var d=document.createElement("div");d.style.position=$[15];d.style.borderTopStyle=$[73];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 rwt.client.Timer(750);this._expandTimer.addEventListener($[27],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 rwt.client.Timer(250);this._scrollTimer.addEventListener($[27],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 h=this._tree._rowContainer.findItemByRow(this._currentRow);if(h!=null){var f=h.getFlatIndex();var e=d>0?h.getNextItem():h.getPreviousItem();if(e!=null){var c=this._tree._topItemIndex+d;this._tree.setTopItemIndex(c);var i=this._tree._rowContainer._findRowByItem(e);var g=this._currentRow;var a=function(){this._targetUpdateCheck(g,i)};rwt.client.Timer.once(a,this,1)}}}},_targetUpdateCheck:function(a,b){if(!this.isDisposed()){if(b!=this._currentRow&&a==this._currentRow){var c=rwt.remote.DNDSupport.getInstance();c.setCurrentTargetWidget(b)}}}}});
rwt.qx.Class.define("rwt.widgets.base.GridCellToolTip",{extend:rwt.widgets.base.ToolTip,include:rwt.animation.VisibilityAnimationMixin,construct:function(a){arguments.callee.base.call(this);this._grid=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(rwt.event.MouseEvent.getPageX()+this.getMousePointerOffsetX());this.setTop(rwt.event.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=rwt.remote.Server.getInstance();this._requestedCell=this._itemId+","+this._columnIndex;a.getRemoteObject(this._grid).call("renderToolTipText",{item:this._itemId,column:this._columnIndex})}},_isValidCell:function(){return this._itemId!=null&&this._columnIndex!=-1},_isValidToolTip:function(b){var a=this._itemId+","+this._columnIndex;return b&&b!==""&&a===this._requestedCell}}});
-rwt.qx.Class.define("rwt.widgets.base.GridHeader",{extend:rwt.widgets.base.Parent,construct:function(b){arguments.callee.base.call(this);this.setOverflow($[9]);this.setZIndex(2000);this._fixedColumns=b.splitContainer;this._scrollWidth=0;this._scrollLeft=0;this._footer=b.footer?true:false;this._baseAppearance=b.appearance;this._dummyColumn=this._createDummyColumn();this._currentDragColumn=null;this._feedbackLabel=null;this._labelToColumnMap={};this._columnToLabelMap={};var a=function(c){c.stopPropagation()};this.addEventListener($[77],a)},destruct:function(){this._dummyColumn=null},events:{columnLayoutChanged:$[11]},members:{setScrollLeft:function(c){this._scrollLeft=c;if(this._fixedColumns&&!rwt.widgets.base.Widget._inFlushGlobalQueues){for(var a=0;a<this._children.length;a++){var b=this._getColumnByLabel(this._children[a]);if(b&&b.isFixed()){this._renderLabelLeft(this._children[a],b)}}if(!rwt.remote.EventUtil.getSuspended()){rwt.widgets.base.Widget.flushGlobalQueues()}}if(this.isSeeable()){arguments.callee.base.call(this,c)}},setScrollWidth:function(a){this._scrollWidth=a;if(this.getVisibility()){this._renderDummyColumn()}},_onColumnDispose:function(c){var b=c.target;var a=this._getLabelByColumn(b);delete this._labelToColumnMap[a.toHashCode()];delete this._columnToLabelMap[b.toHashCode()];a.destroy()},renderColumns:function(c){for(var b in c){var d=c[b];var a=this._getLabelByColumn(d);if(a){this._renderLabel(a,d)}}this._renderDummyColumn()},_renderLabel:function(a,b){this._renderLabelLeft(a,b);a.setWidth(b.getWidth());a.setHoverEffect(b.getMoveable());a.setVisibility(b.getVisibility()&&b.getWidth()>0);b.applyHtmlAttributes(a);if(this._footer){a.setText(b.getFooterText());a.setImage(b.getFooterImage());if(b.getFooterFont()!==null){a.setFont(b.getFooterFont())}else{a.resetFont()}}else{if(b.getFont()!==null){a.setFont(b.getFont())}else{a.resetFont()}a.setText(b.getText());a.setImage(b.getImage());a.setToolTip(b.getToolTip());a.setUserData($[126],b.getUserData($[126]));a.setSortIndicator(b.getSortDirection());a.applyObjectId(b.getObjectId());if(b.isGroup()){a.setChevron(b.isExpanded()?$[80]:$[235])}this._renderLabelY(a,b)}a.setCustomVariant(b.getCustomVariant());a.setZIndex(b.isFixed()?10000000:1);a.setHorizontalChildrenAlign(b.getAlignment())},_renderLabelY:function(a,c){if(c.isGroup()){a.setTop(0);a.setHeight(c.getHeight())}else{if(c.getGroup()!=null){var b=c.getGroup().getHeight();a.setTop(b);a.setHeight(this.getHeight()-b)}else{a.setTop(0);a.setHeight("100%")}}},_renderLabelLeft:function(a,b){var c=b.isFixed()?this._scrollLeft:0;a.setLeft(b.getLeft()+c)},_onDummyRendered:function(){this.setScrollLeft(this._scrollLeft)},_fireUpdateEvent:function(a){this.createDispatchEvent("columnLayoutChanged")},_renderDummyColumn:function(){var b=this._getDummyColumnLeft();var a=Math.max(this._scrollWidth,this.getWidth());var c=Math.max(0,a-b);this._dummyColumn.setLeft(b);this._dummyColumn.setWidth(c)},_getDummyColumnLeft:function(){var c=this._labelToColumnMap;var a=0;for(var b in c){if(c[b].getVisibility()){var d=c[b].getLeft()+c[b].getWidth();a=Math.max(a,d)}}return a},_onLabelSelected:function(b){var a=this._getColumnByLabel(b.target);a.handleSelectionEvent(b)},_onLabelMoveStart:function(b){var a=this._getColumnByLabel(b.target);return !this._footer&&a.getMoveable()},_onLabelMoveEnd:function(b){var a=this._getColumnByLabel(b.target);a.setLeft(b.position)},_onShowDragFeedback:function(b){var a=this._getColumnByLabel(b.target);var c=this._getDragFeedback(a);c.setLeft(b.position)},_onHideDragFeedback:function(c){var a=c.target;var b=this._getColumnByLabel(a);var d=this._getDragFeedback(b);var e=a.getLeft();if(c.snap){rwt.animation.AnimationUtil.snapTo(d,250,e,a.getTop(),true)}else{d.setDisplay(false)}this._currentDragColumn=null},_onLabelResizeStart:function(b){var a=this._getColumnByLabel(b.target);return !this._footer&&a.getResizeable()},_onLabelResizeEnd:function(b){var a=this._getColumnByLabel(b.target);a.setWidth(b.width)},_getColumnByLabel:function(a){return this._labelToColumnMap[a.toHashCode()]},_getLabelByColumn:function(b){var a=this._columnToLabelMap[b.toHashCode()];if(!a){if(b.getVisibility()){a=this._createLabel(b)}else{a=null}}return a},_getDragFeedback:function(a){if(this._feedbackLabel===null){this._feedbackLabel=this._createFeedbackColumn()}if(this._currentDragColumn!==a){this._renderLabelY(this._feedbackLabel,a);this._feedbackLabel.setWidth(a.getWidth());this._feedbackLabel.setCustomVariant(a.getCustomVariant());this._feedbackLabel.setText(a.getText());this._feedbackLabel.setImage(a.getImage());this._feedbackLabel.setSortIndicator(a.getSortDirection());this._feedbackLabel.setHorizontalChildrenAlign(a.getAlignment());this._feedbackLabel.setDisplay(true);this._feedbackLabel.dispatchSimpleEvent($[296]);this._currentDragColumn=a}return this._feedbackLabel},_createLabel:function(b){var a=new rwt.widgets.base.GridColumnLabel(this._baseAppearance);if(this._footer){a.addState("footer")}else{if(b.getResizeable()){a.setResizeCursor($[286])}}if(b.isGroup()){a.addState("group")}a.setTop(0);a.setHeight("100%");this.add(a);this._labelToColumnMap[a.toHashCode()]=b;this._columnToLabelMap[b.toHashCode()]=a;a.addEventListener($[23],this._onLabelSelected,this);a.addEventListener("moveStart",this._onLabelMoveStart,this);a.addEventListener($[552],this._onShowDragFeedback,this);a.addEventListener($[400],this._onHideDragFeedback,this);a.addEventListener("moveEnd",this._onLabelMoveEnd,this);a.addEventListener($[414],this._onLabelResizeStart,this);a.addEventListener("resizeEnd",this._onLabelResizeEnd,this);b.addEventListener($[193],this._onColumnDispose,this);return a},_createDummyColumn:function(){var a=new rwt.widgets.base.GridColumnLabel(this._baseAppearance);if(this._footer){a.addState("footer")}a.setTop(0);a.setHeight("100%");a.addState("dummy");a.addEventListener("flush",this._onDummyRendered,this);a.addEventListener($[38],this._onDummyRendered,this);a.setEnabled(false);this.add(a);return a},_createFeedbackColumn:function(){var a=new rwt.widgets.base.GridColumnLabel(this._baseAppearance);a.addState("moving");a.setTop(0);a.setHeight("100%");a.setEnabled(false);a.setZIndex(100000000);a.addState($[3]);this.add(a);return a}}});
+rwt.qx.Class.define("rwt.widgets.base.GridHeader",{extend:rwt.widgets.base.Parent,construct:function(b){arguments.callee.base.call(this);this.setOverflow($[9]);this.setZIndex(2000);this._fixedColumns=b.splitContainer;this._scrollWidth=0;this._scrollLeft=0;this._footer=b.footer?true:false;this._baseAppearance=b.appearance;this._dummyColumn=this._createDummyColumn();this._currentDragColumn=null;this._feedbackLabel=null;this._labelToColumnMap={};this._columnToLabelMap={};var a=function(c){c.stopPropagation()};this.addEventListener($[77],a)},destruct:function(){this._dummyColumn=null},events:{columnLayoutChanged:$[11]},members:{setScrollLeft:function(c){this._scrollLeft=c;if(this._fixedColumns&&!rwt.widgets.base.Widget._inFlushGlobalQueues){for(var a=0;a<this._children.length;a++){var b=this._getColumnByLabel(this._children[a]);if(b&&b.isFixed()){this._renderLabelLeft(this._children[a],b)}}if(!rwt.remote.EventUtil.getSuspended()){rwt.widgets.base.Widget.flushGlobalQueues()}}if(this.isSeeable()){arguments.callee.base.call(this,c)}},setScrollWidth:function(a){this._scrollWidth=a;if(this.getVisibility()){this._renderDummyColumn()}},_onColumnDispose:function(c){var b=c.target;var a=this._getLabelByColumn(b);delete this._labelToColumnMap[a.toHashCode()];delete this._columnToLabelMap[b.toHashCode()];a.destroy()},renderColumns:function(c){for(var b in c){var d=c[b];var a=this._getLabelByColumn(d);if(a){this._renderLabel(a,d)}}this._renderDummyColumn()},_renderLabel:function(a,b){this._renderLabelLeft(a,b);a.setWidth(b.getWidth());a.setHoverEffect(b.getMoveable());a.setVisibility(b.getVisibility()&&b.getWidth()>0);b.applyHtmlAttributes(a);if(this._footer){a.setText(b.getFooterText());a.setImage(b.getFooterImage());if(b.getFooterFont()!==null){a.setFont(b.getFooterFont())}else{a.resetFont()}}else{if(b.getFont()!==null){a.setFont(b.getFont())}else{a.resetFont()}a.setText(b.getText());a.setImage(b.getImage());a.setToolTip(b.getToolTip());a.setUserData($[126],b.getUserData($[126]));a.setSortIndicator(b.getSortDirection());a.applyObjectId(b.getObjectId());if(b.isGroup()){a.setChevron(b.isExpanded()?$[80]:$[235])}this._renderLabelY(a,b)}a.setCustomVariant(b.getCustomVariant());a.setZIndex(b.isFixed()?10000000:1);a.setHorizontalChildrenAlign(b.getAlignment())},_renderLabelY:function(a,c){if(c.isGroup()){a.setTop(0);a.setHeight(c.getHeight())}else{if(c.getGroup()!=null){var b=c.getGroup().getHeight();a.setTop(b);a.setHeight(this.getHeight()-b)}else{a.setTop(0);a.setHeight("100%")}}},_renderLabelLeft:function(a,b){var c=b.isFixed()?this._scrollLeft:0;a.setLeft(b.getLeft()+c)},_onDummyRendered:function(){this.setScrollLeft(this._scrollLeft)},_fireUpdateEvent:function(a){this.createDispatchEvent("columnLayoutChanged")},_renderDummyColumn:function(){var b=this._getDummyColumnLeft();var a=Math.max(this._scrollWidth,this.getWidth());var c=Math.max(0,a-b);this._dummyColumn.setLeft(b);this._dummyColumn.setWidth(c)},_getDummyColumnLeft:function(){var c=this._labelToColumnMap;var a=0;for(var b in c){if(c[b].getVisibility()){var d=c[b].getLeft()+c[b].getWidth();a=Math.max(a,d)}}return a},_onLabelSelected:function(b){var a=this._getColumnByLabel(b.target);a.handleSelectionEvent(b)},_onLabelMoveStart:function(b){var a=this._getColumnByLabel(b.target);return !this._footer&&a.getMoveable()},_onLabelMoveEnd:function(b){var a=this._getColumnByLabel(b.target);a.setLeft(b.position)},_onShowDragFeedback:function(b){var a=this._getColumnByLabel(b.target);var c=this._getDragFeedback(a);c.setLeft(b.position)},_onHideDragFeedback:function(c){var a=c.target;var b=this._getColumnByLabel(a);var d=this._getDragFeedback(b);var e=a.getLeft();if(c.snap){rwt.animation.AnimationUtil.snapTo(d,250,e,a.getTop(),true)}else{d.setDisplay(false)}this._currentDragColumn=null},_onLabelResizeStart:function(b){var a=this._getColumnByLabel(b.target);return !this._footer&&a.getResizeable()},_onLabelResizeEnd:function(b){var a=this._getColumnByLabel(b.target);a.setWidth(b.width)},_getColumnByLabel:function(a){return this._labelToColumnMap[a.toHashCode()]},_getLabelByColumn:function(b){var a=this._columnToLabelMap[b.toHashCode()];if(!a){if(b.getVisibility()){a=this._createLabel(b)}else{a=null}}return a},_getDragFeedback:function(a){if(this._feedbackLabel===null){this._feedbackLabel=this._createFeedbackColumn()}if(this._currentDragColumn!==a){this._renderLabelY(this._feedbackLabel,a);this._feedbackLabel.setWidth(a.getWidth());this._feedbackLabel.setCustomVariant(a.getCustomVariant());this._feedbackLabel.setText(a.getText());this._feedbackLabel.setImage(a.getImage());this._feedbackLabel.setSortIndicator(a.getSortDirection());this._feedbackLabel.setHorizontalChildrenAlign(a.getAlignment());this._feedbackLabel.setDisplay(true);this._feedbackLabel.dispatchSimpleEvent($[296]);this._currentDragColumn=a}return this._feedbackLabel},_createLabel:function(b){var a=new rwt.widgets.base.GridColumnLabel(this._baseAppearance);if(this._footer){a.addState("footer")}else{if(b.getResizeable()){a.setResizeCursor($[286])}}if(b.isGroup()){a.addState("group")}a.setTop(0);a.setHeight("100%");this.add(a);this._labelToColumnMap[a.toHashCode()]=b;this._columnToLabelMap[b.toHashCode()]=a;a.addEventListener($[23],this._onLabelSelected,this);a.addEventListener("moveStart",this._onLabelMoveStart,this);a.addEventListener($[552],this._onShowDragFeedback,this);a.addEventListener($[401],this._onHideDragFeedback,this);a.addEventListener("moveEnd",this._onLabelMoveEnd,this);a.addEventListener($[415],this._onLabelResizeStart,this);a.addEventListener("resizeEnd",this._onLabelResizeEnd,this);b.addEventListener($[193],this._onColumnDispose,this);return a},_createDummyColumn:function(){var a=new rwt.widgets.base.GridColumnLabel(this._baseAppearance);if(this._footer){a.addState("footer")}a.setTop(0);a.setHeight("100%");a.addState("dummy");a.addEventListener("flush",this._onDummyRendered,this);a.addEventListener($[38],this._onDummyRendered,this);a.setEnabled(false);this.add(a);return a},_createFeedbackColumn:function(){var a=new rwt.widgets.base.GridColumnLabel(this._baseAppearance);a.addState("moving");a.setTop(0);a.setHeight("100%");a.setEnabled(false);a.setZIndex(100000000);a.addState($[3]);this.add(a);return a}}});
rwt.qx.Class.define($[516],{extend:rwt.qx.Target,construct:function(a,b){arguments.callee.base.call(this);this._grid=a;this._isGroup=b?true:false;this._index=0;this._resizable=b?false:true;this._moveable=false;this._alignment="left";this._group=null;this._left=0;this._height=0;this._visibility=true;this._expanded=true;this._hasSelectionListener=false;this._hasExpandListener=false;this._hasCollapseListener=false;this._width=0;this._toolTip=null;this._customVariant=null;this._objectId=null;this._text="";this._font=null;this._image=null;this._footerText="";this._footerFont=null;this._footerImage=null;this._sortDirection=null;this._check=false;this._grid.addColumn(this)},destruct:function(){this._grid.removeColumn(this);this.dispatchSimpleEvent($[193],{target:this})},members:{setLeft:function(a){if(rwt.remote.EventUtil.getSuspended()){this._left=a;this._update()}else{this._sendMove(a)}},getLeft:function(){return this._left},setWidth:function(a){if(rwt.remote.EventUtil.getSuspended()){this._width=a;this._update()}else{this._sendResize(a)}},getWidth:function(){return this._width},setHeight:function(a){this._height=a;this._update()},getHeight:function(){return this._height},setVisibility:function(a){this._visibility=a;this._update()},getVisibility:function(){return this._visibility},setExpanded:function(a){this._expanded=a;this._update()},isExpanded:function(){return this._expanded},setGroup:function(a){this._group=a},getGroup:function(){return this._group},setToolTip:function(a){this._toolTip=a;this._update()},getToolTip:function(){return this._toolTip},setCustomVariant:function(a){this._customVariant=a;this._update()},getCustomVariant:function(a){return this._customVariant},setText:function(a){this._text=a;this._update()},getText:function(a){return this._text},setImage:function(a){this._image=a;this._update()},getImage:function(){return this._image},setFont:function(a){this._font=a?rwt.html.Font.fromArray(a):null;this._update()},getFont:function(){return this._font},setFooterText:function(a){this._footerText=a;this._update()},getFooterText:function(a){return this._footerText},setFooterImage:function(a){this._footerImage=a;this._update()},getFooterImage:function(){return this._footerImage},setFooterFont:function(b){var a=rwt.remote.WidgetManager.getInstance();this._footerFont=b?rwt.html.Font.fromArray(b):null;this._update()},getFooterFont:function(){return this._footerFont},setIndex:function(a){this._index=a;this._update()},getIndex:function(){return this._index},setSortDirection:function(a){this._sortDirection=a;this._update()},getSortDirection:function(a){return this._sortDirection},setResizable:function(a){this._resizable=a},getResizeable:function(){return this._resizable},setMoveable:function(a){this._moveable=a},getMoveable:function(){return this._moveable},setCheck:function(a){this._grid.setCellCheck(this._index,a);this._check=a},getCheck:function(){return this._check},setHasSelectionListener:function(a){this._hasSelectionListener=a},getHasSelectionListener:function(){return this._hasSelectionListener},setHasExpandListener:function(a){this._hasExpandListener=a},getHasExpandListener:function(){return this._hasExpandListener},setHasCollapseListener:function(a){this._hasCollapseListener=a},getHasCollapseListener:function(){return this._hasCollapseListener},handleSelectionEvent:function(c){if(!rwt.remote.EventUtil.getSuspended()){var a=this._isGroup&&c.chevron;if(this._hasSelectionListener||a){if(a){var b=rwt.remote.Server.getInstance().getRemoteObject(this);b.set($[80],!this._expanded);if((this._hasCollapseListener&&this._expanded)||(this._hasExpandListener&&!this._expanded)){b.notify(this._expanded?$[194]:$[168])}}else{rwt.remote.EventUtil.notifySelected(this)}}}},applyObjectId:function(a){this._objectId=a;this._update()},getObjectId:function(){return this._objectId},setAlignment:function(a){this._grid.setAlignment(this._index,a);this._alignment=a;this._update()},getAlignment:function(){return this._alignment},setFixed:function(a){this._fixed=a;this._update()},isFixed:function(){return this._fixed},isGroup:function(){return this._isGroup},setHtmlAttribute:function(b,a){if(!this._htmlAttributes){this._htmlAttributes={}}this._htmlAttributes[b]=a;this._update();return true},applyHtmlAttributes:function(c){var a=this._htmlAttributes;if(a){var b;for(b in a){c.setHtmlAttribute(b,a[b])}}},_update:function(){this.dispatchSimpleEvent($[146])},_sendResize:function(a){if(!rwt.remote.EventUtil.getSuspended()){var b=rwt.remote.Server.getInstance().getRemoteObject(this);b.call("resize",{width:a})}},_sendMove:function(a){if(!rwt.remote.EventUtil.getSuspended()){var b=rwt.remote.Server.getInstance().getRemoteObject(this);b.call("move",{left:a})}}}});
-rwt.qx.Class.define("rwt.widgets.base.GridColumnLabel",{extend:rwt.widgets.base.MultiCellWidget,construct:function(a){arguments.callee.base.call(this,[$[16],$[59],$[16]]);this._resizeStartX=0;this._inResize=false;this._wasResizeOrMoveEvent=false;this._feedbackVisible=false;this._inMove=false;this._hoverEffect=false;this._offsetX=0;this._initialLeft=0;this._chevron=null;this.setAppearance(a+"-column");this._resizeCursor=null;this.setHorizontalChildrenAlign("left");this.setOverflow($[9]);this.addEventListener($[203],this._onElementOver,this);this.addEventListener("elementOut",this._onElementOut,this);this.addEventListener($[3],this._onMouseOver,this);this.addEventListener($[29],this._onMouseMove,this);this.addEventListener($[6],this._onMouseOut,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[5],this._onMouseUp,this);this.addEventListener($[14],this._onClick,this)},members:{setLeft:function(a){arguments.callee.base.call(this,a);this._hideDragFeedback(true)},setText:function(b){var a=rwt.util.Encoding;var c=a.escapeText(b,false);c=a.replaceNewLines(c,$[88]);this.setCellContent(1,c)},setImage:function(a){if(a===null){this.setCellContent(0,null);this.setCellDimension(0,0,0)}else{this.setCellContent(0,a[0]);this.setCellDimension(0,a[1],a[2])}},setHoverEffect:function(a){this._hoverEffect=a},setResizeCursor:function(a){this._resizeCursor=a},setSortIndicator:function(c){if(c){var b=rwt.theme.AppearanceManager.getInstance();var a={};a[c]=true;var e=b.styleFrom(this.getAppearance()+"-sort-indicator",a);var d=e.backgroundImage;this.setCellContent(2,d[0]);this.setCellDimension(2,d[1],d[2])}else{this.setCellContent(2,null);this.setCellDimension(2,0,0)}},setChevron:function(a){this._chevron=a;this._updateChevronImage(false)},_onElementOver:function(a){if(this._chevron&&a.getDomTarget()===this.getCellNode(2)){this._updateChevronImage(true)}},_onElementOut:function(a){if(this._chevron&&a.getDomTarget()===this.getCellNode(2)){this._updateChevronImage(false)}},_updateChevronImage:function(c){if(this._chevron){this.setFlexibleCell(1);var b=rwt.theme.AppearanceManager.getInstance();var a={};a[this._chevron]=true;if(c){a[$[3]]=true}var e=b.styleFrom(this.getAppearance()+"-chevron",a);var d=e.backgroundImage;this.setCellContent(2,d[0]);this.setCellDimension(2,d[1],d[2])}else{this.setCellContent(2,null);this.setCellDimension(2,0,0)}},_limitCellWidth:function(a,d){var c=this.getInnerWidth();var b=this._getContentWidth($[331]);var e=Math.max(0,c-b);return e},cellIsDisplayable:function(b){var a=arguments.callee.base.call(this,b);return a||b==2},_onMouseOver:function(a){if(this._hoverEffect&&!this._inMove&&!this._inResize){this.addState($[3])}},_onMouseDown:function(b){if(!this._inMove&&!this._inResize&&b.getButton()==="left"){if(this._isResizeLocation(b.getPageX())&&this._allowResize()){this._inResize=true;var a=this.getLeft()+this.getWidth();this.dispatchSimpleEvent($[364],{position:a},true);this._resizeStartX=b.getPageX();this.setCapture(true);b.stopPropagation();b.preventDefault();rwt.widgets.util.WidgetUtil._fakeMouseEvent(this,$[6])}else{if(this._allowMove()){this._inMove=true;this.setCapture(true);this._offsetX=b.getPageX()-this.getLeft();this._initialLeft=b.getPageX();b.stopPropagation();b.preventDefault();rwt.widgets.util.WidgetUtil._fakeMouseEvent(this,$[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.dispatchSimpleEvent($[364],{position:a},true)}else{if(this._inMove){this.addState($[3]);var c=b.getPageX()-this._offsetX;this.dispatchSimpleEvent($[552],{target:this,position:c});this._feedbackVisible=true}else{if(this._isResizeLocation(b.getPageX())){this.getTopLevelWidget().setGlobalCursor(this._resizeCursor)}else{this.getTopLevelWidget().setGlobalCursor(null)}}}b.stopPropagation();b.preventDefault()},_onMouseUp:function(a){var b=rwt.widgets.util.WidgetUtil;if(this._inResize){this.dispatchSimpleEvent($[534],null,true);this.getTopLevelWidget().setGlobalCursor(null);this.setCapture(false);var c=this._getResizeWidth(a.getPageX());this.dispatchSimpleEvent("resizeEnd",{target:this,width:c});this._inResize=false;this._wasResizeOrMoveEvent=true;a.stopPropagation();a.preventDefault();b._fakeMouseEvent(a.getTarget(),$[3])}else{if(this._inMove){this._inMove=false;this.setCapture(false);this.removeState($[3]);if(Math.abs(a.getPageX()-this._initialLeft)>1){this._wasResizeOrMoveEvent=true;this.dispatchSimpleEvent("moveEnd",{target:this,position:a.getPageX()-this._offsetX})}else{this._hideDragFeedback(false)}a.stopPropagation();a.preventDefault();b._fakeMouseEvent(a.getTarget(),$[3])}}},_onClick:function(a){if(!this._wasResizeOrMoveEvent){var b={target:this};if(this._chevron){b.chevron=a.getDomTarget()===this.getCellNode(2);if(b.chevron){this.setChevron("loading")}}this.dispatchSimpleEvent($[23],b)}this._wasResizeOrMoveEvent=false},_onMouseOut:function(a){if(!this._inMove){this.removeState($[3])}if(!this._inResize){this.getTopLevelWidget().setGlobalCursor(null);a.stopPropagation();a.preventDefault()}},_allowResize:function(){return this.dispatchSimpleEvent($[414],{target:this})},_allowMove:function(){return this.dispatchSimpleEvent("moveStart",{target:this})},_hideDragFeedback:function(a){if(this._feedbackVisible){this.dispatchSimpleEvent($[400],{target:this,snap:a});this._feedbackVisible=false}},_isResizeLocation:function(b){var a=false;var c=rwt.html.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}}});
+rwt.qx.Class.define("rwt.widgets.base.GridColumnLabel",{extend:rwt.widgets.base.MultiCellWidget,construct:function(a){arguments.callee.base.call(this,[$[16],$[59],$[16]]);this._resizeStartX=0;this._inResize=false;this._wasResizeOrMoveEvent=false;this._feedbackVisible=false;this._inMove=false;this._hoverEffect=false;this._offsetX=0;this._initialLeft=0;this._chevron=null;this.setAppearance(a+"-column");this._resizeCursor=null;this.setHorizontalChildrenAlign("left");this.setOverflow($[9]);this.addEventListener($[203],this._onElementOver,this);this.addEventListener("elementOut",this._onElementOut,this);this.addEventListener($[3],this._onMouseOver,this);this.addEventListener($[29],this._onMouseMove,this);this.addEventListener($[6],this._onMouseOut,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[5],this._onMouseUp,this);this.addEventListener($[14],this._onClick,this)},members:{setLeft:function(a){arguments.callee.base.call(this,a);this._hideDragFeedback(true)},setText:function(b){var a=rwt.util.Encoding;var c=a.escapeText(b,false);c=a.replaceNewLines(c,$[88]);this.setCellContent(1,c)},setImage:function(a){if(a===null){this.setCellContent(0,null);this.setCellDimension(0,0,0)}else{this.setCellContent(0,a[0]);this.setCellDimension(0,a[1],a[2])}},setHoverEffect:function(a){this._hoverEffect=a},setResizeCursor:function(a){this._resizeCursor=a},setSortIndicator:function(c){if(c){var b=rwt.theme.AppearanceManager.getInstance();var a={};a[c]=true;var e=b.styleFrom(this.getAppearance()+"-sort-indicator",a);var d=e.backgroundImage;this.setCellContent(2,d[0]);this.setCellDimension(2,d[1],d[2])}else{this.setCellContent(2,null);this.setCellDimension(2,0,0)}},setChevron:function(a){this._chevron=a;this._updateChevronImage(false)},_onElementOver:function(a){if(this._chevron&&a.getDomTarget()===this.getCellNode(2)){this._updateChevronImage(true)}},_onElementOut:function(a){if(this._chevron&&a.getDomTarget()===this.getCellNode(2)){this._updateChevronImage(false)}},_updateChevronImage:function(c){if(this._chevron){this.setFlexibleCell(1);var b=rwt.theme.AppearanceManager.getInstance();var a={};a[this._chevron]=true;if(c){a[$[3]]=true}var e=b.styleFrom(this.getAppearance()+"-chevron",a);var d=e.backgroundImage;this.setCellContent(2,d[0]);this.setCellDimension(2,d[1],d[2])}else{this.setCellContent(2,null);this.setCellDimension(2,0,0)}},_limitCellWidth:function(a,d){var c=this.getInnerWidth();var b=this._getContentWidth($[332]);var e=Math.max(0,c-b);return e},cellIsDisplayable:function(b){var a=arguments.callee.base.call(this,b);return a||b==2},_onMouseOver:function(a){if(this._hoverEffect&&!this._inMove&&!this._inResize){this.addState($[3])}},_onMouseDown:function(b){if(!this._inMove&&!this._inResize&&b.getButton()==="left"){if(this._isResizeLocation(b.getPageX())&&this._allowResize()){this._inResize=true;var a=this.getLeft()+this.getWidth();this.dispatchSimpleEvent($[365],{position:a},true);this._resizeStartX=b.getPageX();this.setCapture(true);b.stopPropagation();b.preventDefault();rwt.widgets.util.WidgetUtil._fakeMouseEvent(this,$[6])}else{if(this._allowMove()){this._inMove=true;this.setCapture(true);this._offsetX=b.getPageX()-this.getLeft();this._initialLeft=b.getPageX();b.stopPropagation();b.preventDefault();rwt.widgets.util.WidgetUtil._fakeMouseEvent(this,$[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.dispatchSimpleEvent($[365],{position:a},true)}else{if(this._inMove){this.addState($[3]);var c=b.getPageX()-this._offsetX;this.dispatchSimpleEvent($[552],{target:this,position:c});this._feedbackVisible=true}else{if(this._isResizeLocation(b.getPageX())){this.getTopLevelWidget().setGlobalCursor(this._resizeCursor)}else{this.getTopLevelWidget().setGlobalCursor(null)}}}b.stopPropagation();b.preventDefault()},_onMouseUp:function(a){var b=rwt.widgets.util.WidgetUtil;if(this._inResize){this.dispatchSimpleEvent($[534],null,true);this.getTopLevelWidget().setGlobalCursor(null);this.setCapture(false);var c=this._getResizeWidth(a.getPageX());this.dispatchSimpleEvent("resizeEnd",{target:this,width:c});this._inResize=false;this._wasResizeOrMoveEvent=true;a.stopPropagation();a.preventDefault();b._fakeMouseEvent(a.getTarget(),$[3])}else{if(this._inMove){this._inMove=false;this.setCapture(false);this.removeState($[3]);if(Math.abs(a.getPageX()-this._initialLeft)>1){this._wasResizeOrMoveEvent=true;this.dispatchSimpleEvent("moveEnd",{target:this,position:a.getPageX()-this._offsetX})}else{this._hideDragFeedback(false)}a.stopPropagation();a.preventDefault();b._fakeMouseEvent(a.getTarget(),$[3])}}},_onClick:function(a){if(!this._wasResizeOrMoveEvent){var b={target:this};if(this._chevron){b.chevron=a.getDomTarget()===this.getCellNode(2);if(b.chevron){this.setChevron("loading")}}this.dispatchSimpleEvent($[23],b)}this._wasResizeOrMoveEvent=false},_onMouseOut:function(a){if(!this._inMove){this.removeState($[3])}if(!this._inResize){this.getTopLevelWidget().setGlobalCursor(null);a.stopPropagation();a.preventDefault()}},_allowResize:function(){return this.dispatchSimpleEvent($[415],{target:this})},_allowMove:function(){return this.dispatchSimpleEvent("moveStart",{target:this})},_hideDragFeedback:function(a){if(this._feedbackVisible){this.dispatchSimpleEvent($[401],{target:this,snap:a});this._feedbackVisible=false}},_isResizeLocation:function(b){var a=false;var c=rwt.html.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}}});
rwt.remote.HandlerRegistry.add($[516],{factory:function(b){var a;rwt.remote.HandlerUtil.callWithTarget(b.parent,function(c){a=new rwt.widgets.GridColumn(c);rwt.remote.HandlerUtil.addDestroyableChild(c,a)});return a},destructor:function(a){rwt.remote.HandlerUtil.removeDestroyableChild(a._grid,a);a.dispose()},properties:["index","left",$[25],"text",$[16],"font","footerText","footerImage","footerFont",$[111],"resizable","moveable",$[310],$[138],"group",$[86],$[103],$[109]],propertyHandler:{toolTip:rwt.remote.HandlerUtil.getControlPropertyHandler($[111]),group:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setGroup(c)})}},listeners:[$[32]]});
rwt.remote.HandlerRegistry.add("rwt.widgets.GridColumnGroup",{factory:function(b){var a;rwt.remote.HandlerUtil.callWithTarget(b.parent,function(c){a=new rwt.widgets.GridColumn(c,true);rwt.remote.HandlerUtil.addDestroyableChild(c,a)});return a},destructor:function(a){rwt.remote.HandlerUtil.removeDestroyableChild(a._grid,a);a.dispose()},properties:["left",$[25],$[