All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ap.org.eclipse.rap.rwt.2.0.1.source-code.client.js Maven / Gradle / Ivy

Go to download

The Rich Ajax Platform lets you build rich, Ajax-enabled Web applications.

There is a newer version: 3.29.0
Show newest version
(function($){if(typeof qxsettings===$[7]){qxsettings={};qxvariants={};qxvariants[$[26]]="off"};
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=0;b--){if(this[b]===a){return b}}return -1}}if(!Array.prototype.forEach){Array.prototype.forEach=function(d,c){var a=this.length;for(var b=0;b4){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+$[439])}if(a===undefined){throw new Error('Default value of variant "'+b+$[439])}}if(!this.__variants[b]){this.__variants[b]={}}else{if(rwt.util.Variant.compilerIsSet($[26],"on")){if(this.__variants[b].defaultValue!==undefined){throw new Error($[314]+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($[314]+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($[314]+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[$[62]]!==undefined){return a[$[62]]}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=5.5)},supportsTouch:function(){return this.isMobileSafari()||this.isAndroidBrowser()||this.isMobileChrome()},supportsSvg:function(){var c=rwt.client.Client.getEngine();var b=rwt.client.Client.getVersion();var a=c===$[121]&&b>=1.8||c===$[109]&&b>=523||c==="opera"&&b>=9||c===$[211];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===$[109]&&b>=522||c===$[121]&&b>=2;return a},isZoomed:function(){var a=false;if(this._engineName===$[110]||this._engineName===$[211]){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===$[8]&&b==="KDE"&&/KHTML\/([0-9\-\.]*)/.test(navigator.userAgent);if(a){this._engineName=$[109];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=$[109];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=$[220]}else{if(d.indexOf("Safari")!=-1){if(d.indexOf("Android")!=-1){this._browserName=$[200]}else{this._browserName=$[227]}}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=$[227]}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===$[8]&&c==="Gecko"&&/rv\:([^\);]+)(\)|;)/.test(b);if(a){this._engineName=$[121];this._parseVersion(RegExp.$1);if(b.indexOf("Firefox")!=-1){this._browserName="firefox"}else{if(b.indexOf("Camino")!=-1){this._browserName="camino"}else{if(b.indexOf("Galeon")!=-1){this._browserName="galeon"}else{this._browserName="other gecko"}}}}}},_initMshtml:function(){if(this._engineName===null){var a=/MSIE\s+([^\);]+)(\)|;)/.test(navigator.userAgent);if(a){this._parseVersion(RegExp.$1);if(this._engineVersion>=9){this._engineName=$[211]}else{this._engineName=$[110]}this._browserName="explorer"}}},_parseVersion:function(a){if(typeof a===$[8]){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 $[121]:a.push("-moz-box-sizing");break;case $[109]: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($[110])!==-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=$[200]}else{this._browserPlatform="unix"}}else{if(a.indexOf("iPhone")!=-1||a.indexOf("iPod")!=-1||a.indexOf("iPad")!=-1){this._browserPlatform="ios"}else{this._browserPlatform=$[122]}}}}}},defer:function(c,a,b){c.__init();rwt.util.Variant.define($[0],[$[121],$[110],"opera",$[109]],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;e0){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;k1){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($[193]+j+$[198]+c.name+$[534]+c.type+$[431]+typeof j+'"!')}if(rwt.qx.Class.getByName(c.instance)){if(c.hasInstance&&!(j instanceof rwt.qx.Class.getByName(c.instance))){throw new Error($[193]+j+$[198]+c.name+$[375]+c.instance+'"!')}}else{if(rwt.util.Variant.isSet($[443],"on")){if(c.hasInstance&&!(j instanceof qx.OO.classes[c.instance])){throw new Error($[193]+j+$[198]+c.name+$[375]+c.instance+'"!')}}}if(c.hasClassName&&j.classname!=c.classname){throw new Error($[193]+j+$[198]+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($[538]+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+$[402]+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+$[498]+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($[193]+k+$[198]+c.name+$[534]+c.type+$[431]+typeof k+'"!')}}if(this[b]){try{k=this[b](k,c);if(k===h){return k}}catch(i){throw new Error($[538]+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+$[402]+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+$[498]+i)}}return k}}f["set"+c.method].self=f.constructor;if(typeof c.getAlias===$[8]){f[c.getAlias]=f["get"+c.method]}if(typeof c.setAlias===$[8]){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:$[352],Integer:'typeof value === "number" && isFinite(value) && value%1 === 0',Float:$[352],Double:$[352],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:$[428],Font:$[428],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:$[165],$$idcounter:0,$$store:{user:{},theme:{},inherit:{},init:{},useinit:{}},$$method:{get:{},set:{},reset:{},init:{},refresh:{},style:{},unstyle:{}},$$allowedKeys:{name:$[8],dispose:$[135],inheritable:$[135],nullable:$[135],themeable:$[135],refine:$[135],init:null,apply:$[8],event:$[8],check:null,transform:$[8],deferredInit:$[135]},$$allowedGroupKeys:{name:$[8],group:$[20],mode:$[8],themeable:$[135]},$$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==$[218]){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=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===$[8]){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;d0){this.__disposeObjectsDeepRecurser(e,b-1)}f[d]=null}else{if(typeof e==$[41]){f[d]=null}}}}else{if(f instanceof Object){for(var c in f){if(f[c]==null||!f.hasOwnProperty(c)){continue}var e=f[c];if(typeof e==$[20]){if(b>0){this.__disposeObjectsDeepRecurser(e,b-1)}f[c]=null}else{if(typeof e==$[41]){f[c]=null}}}}}}}},destruct:function(){var d=this.constructor;var f;var h=rwt.qx.Property.$$store;var i=h.user;var e=h.theme;var b=h.inherit;var g=h.useinit;var c=h.init;while(d){f=d.$$properties;if(f){for(var a in f){if(f[a].dispose){this[i[a]]=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}}});
rwt.qx.Class.define("rwt.html.Viewport",{statics:{getWidth:rwt.util.Variant.select($[0],{opera:function(a){return(a||window).document.body.clientWidth},webkit:function(a){return(a||window).innerWidth},"default":function(b){var a=(b||window).document;return a.compatMode===$[213]?a.documentElement.clientWidth:a.body.clientWidth}}),getHeight:rwt.util.Variant.select($[0],{opera:function(a){return(a||window).document.body.clientHeight},webkit:function(a){return(a||window).innerHeight},"default":function(b){var a=(b||window).document;return a.compatMode===$[213]?a.documentElement.clientHeight:a.body.clientHeight}}),getScrollLeft:rwt.util.Variant.select($[0],{mshtml:function(b){var a=(b||window).document;return a.documentElement.scrollLeft||a.body.scrollLeft},"default":function(a){return(a||window).pageXOffset}}),getScrollTop:rwt.util.Variant.select($[0],{mshtml:function(b){var a=(b||window).document;return a.documentElement.scrollTop||a.body.scrollTop},"default":function(a){return(a||window).pageYOffset}})}});
rwt.qx.Class.define("rwt.qx.Target",{extend:rwt.qx.Object,construct:function(){arguments.callee.base.call(this)},members:{addEventListener:function(b,c,d){if(this.getDisposed()){return}if(this.__listeners===undefined){this.__listeners={}}if(this.__listeners[b]===undefined){this.__listeners[b]={}}var a="event"+rwt.qx.Object.toHashCode(c)+(d?"$"+rwt.qx.Object.toHashCode(d):"");this.__listeners[b][a]={handler:c,object:d}},removeEventListener:function(c,d,e){if(this.getDisposed()){return}var b=this.__listeners;if(!b||b[c]===undefined){return}if(typeof d!==$[41]){throw new Error("rwt.qx.Target: removeEventListener("+c+"): '"+d+"' is not a function!")}var a="event"+rwt.qx.Object.toHashCode(d)+(e?"$"+rwt.qx.Object.toHashCode(e):"");delete this.__listeners[c][a]},hasEventListeners:function(a){return this.__listeners&&this.__listeners[a]!==undefined&&!rwt.util.Objects.isEmpty(this.__listeners[a])},createDispatchEvent:function(a){if(this.hasEventListeners(a)){this.dispatchEvent(new rwt.event.Event(a),true)}},createDispatchDataEvent:function(a,b){if(this.hasEventListeners(a)){this.dispatchEvent(new rwt.event.DataEvent(a,b),true)}},createDispatchChangeEvent:function(b,c,a){if(this.hasEventListeners(b)){this.dispatchEvent(new rwt.event.ChangeEvent(b,c,a),true)}},dispatchEvent:function(a,c){if(this.getDisposed()){return}if(a.getTarget()==null){a.setTarget(this)}if(a.getCurrentTarget()==null){a.setCurrentTarget(this)}this._dispatchEvent(a,c);var b=a.getDefaultPrevented();if(c){a.dispose()}return !b},dispatchSimpleEvent:function(g,d,e){var h=this.__listeners;var f=e===true;var k=true;if(h){var b=h[g];if(b){var a;var c;for(var i in b){a=b[i].handler;c=b[i].object||this;k=a.call(c,d)&&k!==false;if(k===false){f=false}}}}if(f&&typeof(this.getParent)===$[41]){var j=this.getParent();if(j&&!j.getDisposed()&&j.getEnabled()){j.dispatchSimpleEvent(g,d,e)}}return k!==false},_dispatchEvent:function(b){var d=this.__listeners;if(d&&this._allowDispatch(b)){b.setCurrentTarget(this);var a=d[b.getType()];if(a){var e,f;for(var g in a){e=a[g].handler;f=a[g].object||this;e.call(f,b)}}}if(b.getBubbles()&&!b.getPropagationStopped()&&typeof(this.getParent)==$[41]){var c=this.getParent();if(c&&!c.getDisposed()){c._dispatchEvent(b)}}},_allowDispatch:function(b){var a=true;if(this.getEnabled&&b instanceof rwt.event.DomEvent){a=this.getEnabled()}return a}},destruct:function(){this._disposeObjectDeep("__listeners",2)}});
rwt.qx.Class.define($[11],{extend:rwt.qx.Object,construct:function(a){arguments.callee.base.call(this);this.setType(a)},properties:{type:{_fast:true,setOnlyOnce:true},originalTarget:{_fast:true,setOnlyOnce:true},target:{_fast:true,setOnlyOnce:true},relatedTarget:{_fast:true,setOnlyOnce:true},currentTarget:{_fast:true},bubbles:{_fast:true,defaultValue:false,noCompute:true},propagationStopped:{_fast:true,defaultValue:true,noCompute:true},defaultPrevented:{_fast:true,defaultValue:false,noCompute:true}},members:{_autoDispose:false,preventDefault:function(){this.setDefaultPrevented(true)},stopPropagation:function(){this.setPropagationStopped(true)}},destruct:function(){this._disposeFields("_valueOriginalTarget","_valueTarget","_valueRelatedTarget","_valueCurrentTarget")}});
rwt.qx.Class.define($[50],{extend:rwt.event.Event,construct:function(a,b){arguments.callee.base.call(this,a);this.setData(b)},properties:{propagationStopped:{_fast:true,defaultValue:false},data:{_fast:true}},destruct:function(){this._disposeFields("_valueData")}});
rwt.qx.Class.define($[403],{extend:rwt.event.Event,construct:function(b,c,a){arguments.callee.base.call(this,b);this.setValue(c);this.setOldValue(a)},properties:{value:{_fast:true},oldValue:{_fast:true}},members:{getData:function(){return this.getValue()}},destruct:function(){this._disposeFields("_valueValue","_valueOldValue")}});
rwt.qx.Class.define("rwt.client.Timer",{extend:rwt.qx.Target,construct:function(a){arguments.callee.base.call(this);this.setEnabled(false);if(a!=null){this.setInterval(a)}this.__oninterval=rwt.util.Functions.bind(this._oninterval,this);this.__event=new rwt.event.Event($[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:$[532]},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:$[151],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=16&&a<=20&&a!==19},_isAlphaNumericKeyCode:function(b){var a=false;if((b>=this._charCodeA&&b<=this._charCodeZ)||(b>=this._charCode0&&b<=this._charCode9)){a=true}return a},_specialCharCodeMap:{13:$[49],27:$[104],32:$[78]},_keyCodeToIdentifierMap:{8:$[318],9:"Tab",16:"Shift",17:$[281],18:"Alt",20:"CapsLock",224:"Meta",37:"Left",38:"Up",39:$[35],40:"Down",33:$[40],34:$[45],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($[185]);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($[185]);rwt.remote.ObjectRegistry={_map:{},_callbacks:{},add:function(d,a,c){this._map[d]={object:a,handler:c};a._rwtId=d;if(typeof a.applyObjectId===$[41]){a.applyObjectId(d)}if(this._callbacks[d]){for(var b=0;b|\")/g,_escapeRegExpMnemonics:/(&&|&|<|>|")/g,_newlineRegExp:/(\r\n|\n|\r)/g,_outerWhitespaceRegExp:/(^ {1,1}| +$)/g,_outerWhitespaceRegExp2:/(^ {1,}| +$)/g,_whitespaceRegExp:/ {2,}/g,_escapeResolver:null,_escapeResolverMnemonics:null,_mnemonicFound:false,_escapeMap:{"<":"<",">":">",'"':""","&&":"&","&":"&"},escapeText:function(c,b){if(c===null){throw new Error("escapeText with parameter null not allowed")}var a;this._mnemonicFound=false;if(b){a=c.replace(this._escapeRegExpMnemonics,this._getEscapeResolverMnemonics())}else{a=c.replace(this._escapeRegExp,this._getEscapeResolver())}return this.truncateAtZero(a)},truncateAtZero:function(c){var a=c;var b=a.indexOf(String.fromCharCode(0));if(b!==-1){a=a.substring(0,b)}return a},replaceNewLines:function(c,a){var b=arguments.length>1?a:"\\n";return c.replace(this._newlineRegExp,b)},replaceWhiteSpaces:function(b){var a=b.replace(this._outerWhitespaceRegExp,this._outerWhitespaceResolver);a=a.replace(this._whitespaceRegExp,this._whitespaceResolver);return a},escapeLeadingTrailingSpaces:function(a){return a.replace(this._outerWhitespaceRegExp2,this._outerWhitespaceResolver)},escapeRegexpChars:function(a){return a.replace(/([\\\.\(\)\[\]\{\}\^\$\?\+\*])/g,"\\$1")},unescape:function(a){return this._unescapeEntities(a,rwt.html.Entity.TO_CHARCODE)},_getEscapeResolverMnemonics:function(){if(this._escapeResolverMnemonics===null){this._getEscapeResolver();var a=this;this._escapeResolverMnemonics=function(c){var b;if(c==="&"&&!a._mnemonicFound){b="";a._mnemonicFound=true}else{b=a._escapeResolver(c)}return b}}return this._escapeResolverMnemonics},_getEscapeResolver:function(){if(this._escapeResolver===null){var a=this;this._escapeResolver=function(b){return a._escapeMap[b]}}return this._escapeResolver},_outerWhitespaceResolver:function(a){return a.replace(/ /g," ")},_whitespaceResolver:function(a){return a.slice(1).replace(/ /g," ")+" "},_unescapeEntities:function(b,a){return b.replace(/&[#\w]+;/gi,function(c){var d=c;var c=c.substring(1,c.length-1);var e=a[c];if(e){d=String.fromCharCode(e)}else{if(c.charAt(0)==="#"){if(c.charAt(1).toUpperCase()==="X"){e=c.substring(2);if(e.match(/^[0-9A-Fa-f]+$/gi)){d=String.fromCharCode(parseInt(e,16))}}else{e=c.substring(1);if(e.match(/^\d+$/gi)){d=String.fromCharCode(parseInt(e,10))}}}}return d})}};
namespace("rwt.widgets");rwt.widgets.Display=function(a){this._document=rwt.widgets.base.ClientDocument.getInstance();this._server=rwt.remote.Server.getInstance();this._exitConfirmation=null;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($[36],rwt.widgets.Display._onAppearFocus,b)};rwt.widgets.Display.prototype={applyObjectId:function(){if(!this._initialized){this.init()}},init:function(){this._server.getMessageWriter().appendHead("rwt_initialize",true);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($[36],rwt.widgets.Display._onAppearFocus,b)}},setEnableUiTests:function(a){rwt.widgets.base.Widget._renderHtmlIds=a},getDPI:function(){var a=[0,0];if(typeof screen.systemXDPI==$[56]){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},_attachListener:function(){this._document.addEventListener($[275],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($[273],this._onBeforeUnload,this);rwt.runtime.System.getInstance().addEventListener("unload",this._onUnload,this)},_onResize:function(a){this._appendWindowSize();if(this._server.getRequestCounter()!=null){this._server.send()}},_onKeyPress:function(a){if(a.getKeyIdentifier()==$[104]){a.preventDefault()}},_onSend:function(b){var d=rwt.event.MouseEvent.getPageX();var c=rwt.event.MouseEvent.getPageY();var a=[d,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($[385],this._exitConfirmation)}},_onUnload:function(){this._document.removeEventListener($[275],this._onResize,this);this._document.removeEventListener($[4],this._onKeyPress,this);this._server.removeEventListener("send",this._onSend,this)},_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($[86],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==$[56]){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 b=window.location.hash;if(b!==""){var d=rwt.remote.Server.getInstance();var c=rwt.client.BrowserNavigation.getInstance();var a=$[306];rwt.remote.ObjectRegistry.add(a,c,rwt.remote.HandlerRegistry.getHandler(a));d.getRemoteObject(c).notify($[334],{state:b.substr(1)})}},_appendTimezoneOffset:function(){var b=rwt.remote.ObjectRegistry.getObject($[401]);var a=rwt.remote.Server.getInstance().getRemoteObject(b);a.set("timezoneOffset",b.getTimezoneOffset())}};
rwt.remote.HandlerRegistry.add("rwt.widgets.Display",{factory:function(a){return new rwt.widgets.Display(a)},destructor:null,properties:["exitConfirmation",$[450],"enableUiTests",$[267],$[240]],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"]});
rwt.qx.Class.define($[129],{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:$[50],mouseover:$[82],mousemove:$[82],mouseout:$[82],mousedown:$[82],mouseup:$[82],mousewheel:$[82],click:$[82],dblclick:$[82],contextmenu:$[82],elementOver:$[82],elementOut:$[82],keydown:$[272],keypress:$[272],keyup:$[272],focusout:$[189],focusin:$[189],blur:$[189],focus:$[189],dragdrop:$[147],dragout:$[147],dragover:$[147],dragmove:$[147],dragstart:$[147],dragend:$[147]},statics:{_globalWidgetQueue:[],_globalElementQueue:[],_globalStateQueue:[],_globalJobQueue:[],_globalLayoutQueue:[],_fastGlobalDisplayQueue:[],_lazyGlobalDisplayQueues:{},_globalDisposeQueue:[],_autoFlushTimeout:null,_flushGlobalQueuesPhase:0,_renderHtmlIds:false,_FLUSH_PHASE_IDLE:0,_FLUSH_PHASE_WIDGET:1,_FLUSH_PHASE_STATE:2,_FLUSH_PHASE_ELEMENT:3,_FLUSH_PHASE_JOB:4,_FLUSH_PHASE_LAYOUT:5,_FLUSH_PHASE_DISPLAY:6,_FLUSH_PHASE_DISPOSE:7,_initAutoFlush:function(a){if(rwt.widgets.base.Widget._autoFlushTimeout==null){if(!rwt.widgets.base.Widget._inFlushGlobalQueues||a0){for(var b=0;b0){for(var b=0;b0){var a=rwt.util.Arrays.copy(d._globalStateQueue);d._globalStateQueue=[];for(var c=0,b=a.length;c0){for(var b=0;b0){for(var b=0;b=3){g=document.createDocumentFragment();for(var b=0,a=h.length;b0){for(var b=0;b1||c<0)?1:c;break;default:a=c!=null?c:0;break}return a},animate:function(c,a,b){if(this._context!=c||this._renderType!=a||this._animationType!=b){this.clearAnimation();this._context=c;this._renderAdapter=c.getAdapter(rwt.widgets.util.WidgetRenderAdapter);this._renderType=a;this._animationType=b;this._renderFunction=this._renderAdapter.getOriginalRenderer(this._renderType);var d=rwt.animation.AnimationRenderer.converterByRenderType;this.setConverter(d[this._renderType]);this._handleAnimationType()}},clearAnimation:function(){if(this._renderType!==null){this._animationType=0;this._handleAnimationType();this._renderType=null;this.setRenderFunction(null,null);this._renderAdapter=null}},isAnimated:function(b){var a=false;if(this._animationType>0&&this._active){var c=b&this._animationType;if(typeof b===$[7]||c!==0){a=true}}return a},setInvisibilityGetter:function(a){this._invisibilityGetter=a},setAutoStart:function(a){this._autoStartEnabled=a},setAutoCheck:function(a){this._autoCheck=a},getValueFromWidget:function(){var a=null;switch(this._renderType){case $[53]: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 $[51]:var c=$[51];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 $[126]: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 $[126]:case $[51]: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($[99],this._onVisibilityChange,this);this._context.addEventListener($[65],this._onCreate,this)}else{this._renderAdapter.removeRenderListener($[99],this._onVisibilityChange,this);this._context.removeEventListener($[65],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==$[57]||d==$[36]){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!==$[7]?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=$[36];break;case rwt.animation.AnimationRenderer.ANIMATION_DISAPPEAR:a=$[358];break;case rwt.animation.AnimationRenderer.ANIMATION_CHANGE:a=$[57];break}return a},_updateWidgetVisibility:function(){var a=this._context.getVisibility();this._renderAdapter.forceRender($[99],a)}},statics:{ANIMATION_APPEAR:1,ANIMATION_DISAPPEAR:2,ANIMATION_CHANGE:4,applyFunctionNames:{height:$[472],opacity:$[340],backgroundColor:$[525],backgroundGradient:$[347],top:"_applyTop",left:"_applyLeft"},converterByRenderType:{height:"numericPositiveRound",top:$[486],left:$[486],opacity:"factor",backgroundColor:$[61],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=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=1||b<0){this.removeCssFilter(c)}else{var a=$[364]+Math.round(b*100)+")";this.setStyleProperty(c,$[94],a)}},gecko:function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[222]);this.removeStyleProperty(c,$[53])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[222],a);this.setStyleProperty(c,$[53],a)}},"default":function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[53])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[53],a)}}}),setBackgroundGradient:rwt.util.Variant.select($[0],{webkit:function(g,f){if(f){var d=["linear","left top"];if(f.horizontal===true){d.push("right top")}else{d.push($[416])}for(var e=0;e=1.9;var c=rwt.client.Client.getBrowser()===$[227]&&a>=530;if(b||c){this.setStyleProperty(e,$[280],d);e.setAttribute($[280],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($[94])}}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,$[80],a);this.setStyleProperty(c,$[252],$[180]);this.setStyleProperty(c,$[255],$[23])},_setCssFilterImage:function(c,b){if(b){var a=$[365]+b+$[350];this.setStyleProperty(c,$[94],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,$[133],$[62]);for(var a=0;a=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+":$[122],{"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+":$[122],{"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+":$[122],{"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($[392],{extend:rwt.widgets.base.Widget,construct:function(){arguments.callee.base.call(this);this._children=[];this._layoutImpl=this._createLayoutImpl()},properties:{focusHandler:{check:$[515],apply:"_applyFocusHandler",nullable:true},activeChild:{check:$[129],event:$[451],nullable:true},focusedChild:{check:$[129],apply:"_applyFocusedChild",event:$[238],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($[9],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($[286])&&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($[142])){var e=new rwt.event.FocusEvent($[142],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($[68],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;b0},isVisibleEmpty:function(){return this.getVisibleChildrenLength()===0},add:function(b){var d;for(var c=0,a=arguments.length;cc){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+$[503])}var b=a.indexOf(e);if(b!=-1&&b=a&&b<=c},isBetweenRange:function(b,a,c){return b>a&&bc){return c}else{if(typeof a===$[56]&&b0){c._renderRuntimeLeft(b.getPaddingLeft())}else{c._resetRuntimeLeft()}}else{c._renderRuntimeLeft(c.getLeftValue()+b.getPaddingLeft())}}if(a.initial||a.right||a.parentPaddingRight){if(c._computedRightTypeNull){if(c._computedLeftTypeNull&&b.getPaddingRight()>0){c._renderRuntimeRight(b.getPaddingRight())}else{c._resetRuntimeRight()}}else{c._renderRuntimeRight(c.getRightValue()+b.getPaddingRight())}}},layoutChild_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:$[39],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($[275],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=$[16];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:$[46],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($[504])&&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($[432])&&a instanceof qx.client.NativeWindow){this._modalNativeWindow=a;this._getBlocker().setZIndex(10000000)}}},release:function(b){if(b){if(rwt.qx.Class.isDefined($[432])&&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==$[149]){g="hand"}if(b==$[149]){b="hand"}var e,h;var f=this._cursorElements;if(f){for(var c=0,a=f.length;c0){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($[184]);a.removeStyleProperty("fontWeight");a.removeStyleProperty("fontStyle");a.removeStyleProperty($[246])},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:[$[344],"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;c0){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":$[52]},_applyItalic:function(b,a){this.__italic=b===null?null:b?"italic":$[52]},_applyDecoration:function(b,a){this.__decoration=b===null?null:b},render:function(a){a.setStyleProperty("fontFamily",this.__family);a.setStyleProperty($[184],this.__size);a.setStyleProperty("fontWeight",this.__bold);a.setStyleProperty("fontStyle",this.__italic);a.setStyleProperty($[246],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?$[535]+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($[515],{extend:rwt.qx.Target,construct:function(a){arguments.callee.base.call(this);if(a!=null){this._attachedWidget=a}},statics:{mouseFocus:false,blockFocus:false},members:{getAttachedWidget:function(){return this._attachedWidget},_onkeyevent:function(a,d){if(d.getKeyIdentifier()!="Tab"){return}d.stopPropagation();d.preventDefault();rwt.widgets.util.FocusHandler.mouseFocus=false;var c=this.getAttachedWidget().getFocusedChild();if(!d.isShiftPressed()){var b=c?this.getWidgetAfter(a,c):this.getFirstWidget(a)}else{var b=c?this.getWidgetBefore(a,c):this.getLastWidget(a)}if(b){b.setFocused(true);b._ontabfocus()}},compareTabOrder:function(f,d){if(f==d){return 0}var h=f.getTabIndex();var g=d.getTabIndex();if(h!=g){return h-g}var j=rwt.html.Location.getTop(f.getElement());var i=rwt.html.Location.getTop(d.getElement());if(j!=i){return j-i}var b=rwt.html.Location.getLeft(f.getElement());var a=rwt.html.Location.getLeft(d.getElement());if(b!=a){return b-a}var e=f.getZIndex();var c=d.getZIndex();if(e!=c){return e-c}return 0},getFirstWidget:function(a){return this._getFirst(a,null)},getLastWidget:function(a){return this._getLast(a,null)},getWidgetAfter:function(b,a){if(b==a){return this.getFirstWidget(b)}if(a.getAnonymous()){a=a.getParent()}if(a==null){return[]}var c=[];this._getAllAfter(b,a,c);c.sort(this.compareTabOrder);return c.length>0?c[0]:this.getFirstWidget(b)},getWidgetBefore:function(c,b){if(c==b){return this.getLastWidget(c)}if(b.getAnonymous()){b=b.getParent()}if(b==null){return[]}var d=[];this._getAllBefore(c,b,d);d.sort(this.compareTabOrder);var a=d.length;return a>0?d[a-1]:this.getLastWidget(c)},_getAllAfter:function(e,f,b){var d=e.getChildren();var g;var a=d.length||0;for(var c=0;c0&&this.compareTabOrder(f,g)<0){b.push(d[c])}if(!g.isFocusRoot()&&g instanceof rwt.widgets.base.Parent){this._getAllAfter(g,f,b)}}},_getAllBefore:function(e,f,b){var d=e.getChildren();var g;var a=d.length;for(var c=0;c0&&this.compareTabOrder(f,g)>0){b.push(g)}if(!g.isFocusRoot()&&g instanceof rwt.widgets.base.Parent){this._getAllBefore(g,f,b)}}},_getFirst:function(d,f){var c=d.getChildren();var e;var a=c.length;for(var b=0;b0){if(f==null||this.compareTabOrder(e,f)<0){f=e}}if(!e.isFocusRoot()&&e instanceof rwt.widgets.base.Parent){f=this._getFirst(e,f)}}return f},_getLast:function(e,b){var d=e.getChildren();var f;var a=d.length;for(var c=0;c0){if(b==null||this.compareTabOrder(f,b)>0){b=f}}if(!f.isFocusRoot()&&f instanceof rwt.widgets.base.Parent){b=this._getLast(f,b)}}return b}},destruct:function(){this._disposeFields("_attachedWidget")}});
rwt.qx.Class.define("rwt.html.Location",{statics:{__style:function(b,a){return rwt.html.Style.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,$[73]);c-=this.__num(a,$[74]);if(e.compatMode===$[213]){d+=this.__num(a,$[141]);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,$[73]);c+=this.__num(a,$[74]);if(e.compatMode===$[213]){d+=this.__num(a,$[141]);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!==$[268]){d+=this.__num(a,$[73]);c+=this.__num(a,$[74]);if(!b.getBoundingClientRect){var e;while(b){if(this.__style(b,$[123])===$[16]||this.__style(b,$[123])===$[137]){e=true;break}b=b.offsetParent}if(!e){d+=this.__num(a,$[73]);c+=this.__num(a,$[74])}}}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":function(c){var f=rwt.html.Nodes.getDocument(c);if(c.getBoundingClientRect){var b=c.getBoundingClientRect();var e=b.left;var d=b.top}else{var e=c.offsetLeft;var d=c.offsetTop;c=c.offsetParent;var a=f.body;while(c&&c!=a){e+=c.offsetLeft;d+=c.offsetTop;e+=this.__num(c,$[73]);d+=this.__num(c,$[74]);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!==$[268]){f-=this.__num(d,$[73]);e-=this.__num(d,$[74])}while(d&&d!==a){f+=d.offsetLeft;e+=d.offsetTop;if(b!==$[268]){f+=this.__num(d,$[73]);e+=this.__num(d,$[74])}if(d.parentNode&&this.__style(d.parentNode,$[58])!=$[279]){f+=this.__num(d.parentNode,$[73]);e+=this.__num(d.parentNode,$[74])}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==$[127]||f==$[21]){var a=rwt.html.Overflow.getX(d);if(a==$[21]||a=="auto"){j+=d.scrollWidth-d.offsetWidth+this.__num(d,$[73])+this.__num(d,$[228])}var k=rwt.html.Overflow.getY(d);if(k==$[21]||k=="auto"){b+=d.scrollHeight-d.offsetHeight+this.__num(d,$[74])+this.__num(d,$[234])}}if(f===$[127]){c+=this.__num(d,$[160]);h+=this.__num(d,$[148]);j-=this.__num(d,$[188]);b-=this.__num(d,$[174])}if(f===$[127]||f===$[21]){c-=d.scrollLeft;h-=d.scrollTop;j-=d.scrollLeft;b-=d.scrollTop}if(f===$[127]||f===$[21]||f===$[132]){c+=this.__num(d,$[73]);h+=this.__num(d,$[74]);j-=this.__num(d,$[228]);b-=this.__num(d,$[234])}if(f==="margin"){c-=this.__num(d,$[141]);h-=this.__num(d,$[158]);j+=this.__num(d,$[214]);b+=this.__num(d,$[195])}}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($[386],{statics:{__hints:{names:{"float":rwt.client.Client.isMshtml()?"styleFloat":"cssFloat",boxSizing:rwt.client.Client.isGecko()?$[540]:"boxSizing"},mshtmlPixel:{width:"pixelWidth",height:$[480],left:"pixelLeft",right:"pixelRight",top:"pixelTop",bottom:$[454]}},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($[444]+a+$[468])}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($[514]);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)?$[537]:"noComputed",{hasComputed:function(b,c){try{return b.ownerDocument.defaultView.getComputedStyle(b,"")[c]}catch(a){throw new Error($[161]+b+"["+c+"]: "+a)}},noComputed:rwt.util.Variant.select($[0],{mshtml:function(b,c){try{return b.currentStyle[c]}catch(a){throw new Error($[161]+b+"["+c+"]: "+a)}},"default":function(b,c){try{return b.style[c]}catch(a){throw new Error($[161]+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,$[141])},getMarginTop:function(a){return rwt.html.Style.getStyleSize(a,$[158])},getMarginRight:function(a){return rwt.html.Style.getStyleSize(a,$[214])},getMarginBottom:function(a){return rwt.html.Style.getStyleSize(a,$[195])},getPaddingLeft:function(a){return rwt.html.Style.getStyleSize(a,$[160])},getPaddingTop:function(a){return rwt.html.Style.getStyleSize(a,$[148])},getPaddingRight:function(a){return rwt.html.Style.getStyleSize(a,$[188])},getPaddingBottom:function(a){return rwt.html.Style.getStyleSize(a,$[174])},getBorderLeft:function(a){return rwt.html.Style.getStyleProperty(a,$[291])=="none"?0:rwt.html.Style.getStyleSize(a,$[73])},getBorderTop:function(a){return rwt.html.Style.getStyleProperty(a,$[316])=="none"?0:rwt.html.Style.getStyleSize(a,$[74])},getBorderRight:function(a){return rwt.html.Style.getStyleProperty(a,$[362])=="none"?0:rwt.html.Style.getStyleSize(a,$[228])},getBorderBottom:function(a){return rwt.html.Style.getStyleProperty(a,$[305])=="none"?0:rwt.html.Style.getStyleSize(a,$[234])},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=$[364]+Math.round(b*100)+")";this.setStyleProperty(c,$[94],a)}},gecko:function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[222]);this.removeStyleProperty(c,$[53])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[222],a);this.setStyleProperty(c,$[53],a)}},"default":function(c,b){if(b==null||b>=1){this.removeStyleProperty(c,$[53])}else{var a=rwt.util.Numbers.limit(b,0,1);this.setStyleProperty(c,$[53],a)}}}),setBackgroundGradient:rwt.util.Variant.select($[0],{webkit:function(g,f){if(f){var d=["linear","left top"];if(f.horizontal===true){d.push("right top")}else{d.push($[416])}for(var e=0;e=1.9;var c=rwt.client.Client.getBrowser()===$[227]&&a>=530;if(b||c){this.setStyleProperty(e,$[280],d);e.setAttribute($[280],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($[94])}}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,$[80],a);this.setStyleProperty(c,$[252],$[180]);this.setStyleProperty(c,$[255],$[23])},_setCssFilterImage:function(c,b){if(b){var a=$[365]+b+$[350];this.setStyleProperty(c,$[94],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,$[133],$[62]);for(var a=0;a0){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,$[123]);var d=rwt.html.Style.getStyleProperty(b,$[123]);if(e!=$[16]&&e!=$[137]){f-=rwt.html.Style.getBorderLeft(b)}if(d!=$[16]&&d!=$[137]){while(b){b=b.parentNode;if(!b||typeof b.tagName!==$[8]){break}var a=rwt.html.Style.getStyleProperty(b,$[123]);if(a==$[16]||a==$[137]){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,$[123]);var d=rwt.html.Style.getStyleProperty(b,$[123]);if(e!=$[16]&&e!=$[137]){f-=rwt.html.Style.getBorderTop(b)}if(d!=$[16]&&d!=$[137]){while(b){b=b.parentNode;if(!b||typeof b.tagName!==$[8]){break}var a=rwt.html.Style.getStyleProperty(b,$[123]);if(a==$[16]||a==$[137]){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,$[58])){case $[21]:case"auto":case $[442]:d=true;break;default:switch(rwt.html.Style.getStyleProperty(g,$[101])){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+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,$[58])){case $[21]:case"auto":case $[518]:e=true;break;default:switch(rwt.html.Style.getStyleProperty(f,$[97])){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+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:[$[37],$[31]],init:$[37],apply:$[418],event:"changeOrientation"},spacing:{check:$[18],init:0,themeable:true,apply:$[511],event:$[409]},horizontalChildrenAlign:{check:["left",$[23],$[13]],init:"left",themeable:true,apply:$[513]},verticalChildrenAlign:{check:["top",$[44],$[32]],init:"top",themeable:true,apply:$[501]},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()==$[31]?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==$[37];this._layoutVertical=b==$[31];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;q0;for(q=c-1;q>=0;q--){m=e[q];if(o){a=(m.getMaxHeightValue()||Infinity)-m._computedHeightFlexValue;if(a>0){m._allocationLoops=Math.floor(a/m._computedHeightParsed)}else{rwt.util.Arrays.removeAt(e,q);m._computedHeightFlexValue=Math.round(m._computedHeightFlexValue);n+=Math.round(m._computedHeightFlexValue+a)}}else{a=rwt.util.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=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())==$[23]){c.addToLayoutChanges($[131])}return a||b},updateChildOnInnerHeightChange:function(c){if(this.getWidget().getVerticalChildrenAlign()==$[44]){c.addToLayoutChanges($[114])}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($[114])}if(a.horizontalChildrenAlign){c._addChildrenToLayoutQueue($[131])}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=0&&!d[f[e].toHashCode()];e--){}for(var c=0;c<=e;c++){b._layoutChild(h=f[c])}break;case $[44]:case $[219]: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 $[32]:case $[190]:var b=d.getPaddingBottom()+d.getAccumulatedChildrenOuterHeight()-e.getOuterHeight();break;case $[44]:case $[219]: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 $[32]:case $[190]: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 $[32]:case $[500]:case $[219]: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==$[23]?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===$[56]&&!isNaN(a)},isValidString:function(a){return typeof a===$[8]&&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;s0;for(s=c-1;s>=0;s--){n=e[s];if(q){a=(n.getMaxWidthValue()||Infinity)-n._computedWidthFlexValue;if(a>0){n._allocationLoops=Math.floor(a/n._computedWidthParsed)}else{rwt.util.Arrays.removeAt(e,s);n._computedWidthFlexValue=Math.round(n._computedWidthFlexValue);o+=Math.round(n._computedWidthFlexValue+a)}}else{a=rwt.util.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=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()==$[23]){c.addToLayoutChanges($[131])}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())==$[44]){c.addToLayoutChanges($[114])}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($[131])}if(a.verticalChildrenAlign){c._addChildrenToLayoutQueue($[114])}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=0&&!d[f[e].toHashCode()];e--){}for(var c=0;c<=e;c++){b._layoutChild(h=f[c])}break;case $[23]:case $[191]: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 $[192]:var b=d.getPaddingRight()+d.getAccumulatedChildrenOuterWidth()-e.getOuterWidth();break;case $[23]:case $[191]: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 $[192]: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 $[527]:case $[191]: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==$[44]?Math.round((c.getInnerHeight()-e.getOuterHeight())/2):0;if(d==$[32]){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($[549])&&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:$[37]},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:$[23]},verticalChildrenAlign:{refine:true,init:$[44]},spacing:{refine:true,init:4},label:{apply:"_applyLabel",nullable:true,dispose:true,check:"Label"},icon:{check:$[46],apply:$[363],nullable:true,themeable:true},disabledIcon:{check:$[46],apply:"_applyDisabledIcon",nullable:true,themeable:true},show:{init:"both",check:["both",$[67],"icon","none"],themeable:true,nullable:true,inheritable:true,apply:"_applyShow",event:"changeShow"},iconPosition:{init:"left",check:["top",$[13],$[32],"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($[549])){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 $[32]:this.setOrientation($[31]);this.setReverseChildrenOrder(b==$[32]);break;default:this.setOrientation($[37]);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 $[67]:case"both":case $[165]: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 $[165]: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($[369],{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",$[14],$[361],"appearance","leftMargin","topMargin","rightMargin","bottomMargin",$[126]]),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:$[67]},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:$[323]},textAlign:{check:["left",$[23],$[13],"justify"],nullable:true,themeable:true,apply:$[343]},textOverflow:{check:$[2],init:true},mode:{check:["html","text","auto"],init:"auto"}},members:{_content:"",_applyTextAlign:function(b,a){if(b===null){this.removeStyleProperty($[201])}else{this.setStyleProperty($[201],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($[61],a)}else{this.removeStyleProperty($[61])}},_applyWrap:function(b,a){if(b==null){this.removeStyleProperty("whiteSpace")}else{this.setStyleProperty("whiteSpace",b?$[52]:"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()="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 $[40]:case $[45]:this._intervalIncrease=a==$[40];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 $[40]:case $[45]: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($[57],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($[377],{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($[9],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=$[10]},destruct:function(){if(this._inputElement!=null){if(rwt.client.Client.isMshtml()){this._inputElement.onpropertychange=null}else{this._inputElement.removeEventListener($[77],this.__oninput,false)}}this._inputElement=null;this.__font=null;if(this._checkTimer){this._checkTimer.dispose();this._checkTimer=null}},events:{input:$[50]},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:$[118],apply:"_applyValue",dispose:true},textAlign:{check:["left",$[23],$[13],"justify"],nullable:true,themeable:true,apply:$[343]},maxLength:{check:$[18],apply:"_applyMaxLength",nullable:true},readOnly:{check:$[2],apply:"_applyReadOnly",init:false,event:"changeReadOnly"}},members:{_LINE_HEIGT_FACTOR:1.2,_inputTag:$[77],_inputType:"text",_inputElement:null,setSelection:function(a){this._selectionStart=a[0];this._selectionLength=a[1]-a[0];this._renderSelection()},getSelection:function(){return[this._selectionStart,this._selectionStart+this._selectionLength]},getComputedSelection:function(){var b=this._getSelectionStart();var a=this._getSelectionLength();return[b,b+a]},getComputedValue:function(){var a;if(this._inputElement!=null){a=this._inputElement.value}else{a=this.getValue()}return a},getInputElement:function(){return this._inputElement||null},_renderSelection:function(){if(this.isCreated()&&this.getFocused()){this._setSelectionStart(this._selectionStart);this._setSelectionLength(this._selectionLength);this._selectionNeedsUpdate=false}},_detectSelectionChange:function(){if(this._isCreated){var b=this._getSelectionStart();var a=this._getSelectionLength();if(typeof b===$[7]){b=0}if(typeof a===$[7]){a=0}if(this._selectionStart!==b||this._selectionLength!==a){this._handleSelectionChange(b,a)}}},_handleSelectionChange:function(b,a){this._selectionStart=b;this._selectionLength=a},_setSelectionStart:rwt.util.Variant.select($[0],{mshtml:function(d){this._visualPropertyCheck();var c=this._inputElement.value;var b=0;while(b=this.getMin()&&value<=this.getMax()",nullable:true,event:$[57],init:0},precision:{check:$[18],nullable:true,event:$[57],init:0},min:{check:$[54],apply:"_applyMin",event:$[57],init:0},max:{check:$[54],apply:"_applyMax",event:$[57],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(cthis.getMax()){return(this.getMin()+(c-this.getMax()))-1}}if(cthis.getMax()){return this.getMax()}if(a!=null){return Math.round(c*b)/b}else{return c}}}});
rwt.qx.Class.define($[303],{extend:rwt.widgets.base.BoxLayout,construct:function(){arguments.callee.base.call(this);this.addEventListener($[278],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:$[31]},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($[446],{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:$[483]},name:{check:$[46],nullable:true,apply:"_applyName"}},members:{getItems:function(){return this._items},getEnabledItems:function(){var c=[];for(var f=0,e=this._items,d=e.length;fh-i){d=h-i-a}if(k+m>p-c){k=p-c-m}if(d(this.getItemTop(h)-1)?this.getPrevious(h):this.getNext(h))||h)}if(!this.getItemSelected(h)){this.renderItemSelectionState(h,true)}this._selectedItems.add(h);this._addToCurrentSelection=true}else{if(this._activeDragSession&&d){if(j){this._deselectItemRange(l,j)}if(this.isBefore(l,h)){if(this._addToCurrentSelection){this._selectItemRange(l,h,false)}else{this._deselectItemRange(l,h)}}else{if(this._addToCurrentSelection){this._selectItemRange(h,l,false)}else{this._deselectItemRange(h,l)}}this.scrollItemIntoView((this.getBoundedWidget().getScrollTop()>(this.getItemTop(h)-1)?this.getPrevious(h):this.getNext(h))||h)}else{if(this.getMultiSelection()&&i&&!f){if(!this._activeDragSession){this._addToCurrentSelection=!(this.getCanDeselect()&&this.getItemSelected(h))}this.setItemSelected(h,this._addToCurrentSelection);this.setAnchorItem(h)}else{if(this.getMultiSelection()&&i&&f){if(!this._activeDragSession){this._addToCurrentSelection=!(this.getCanDeselect()&&this.getItemSelected(h))}if(this._addToCurrentSelection){this._selectItemRange(l,h,false)}else{this._deselectItemRange(l,h)}}else{if(this.getMultiSelection()&&!i&&f){if(this.getCanDeselect()){this._selectItemRange(l,h,true)}else{if(j){this._deselectItemRange(l,j)}this._selectItemRange(l,h,false)}}}}}}this.setFireChange(a);if(a&&this._hasChanged(k)){this._dispatchChange()}},handleKeyPress:function(d){var c=this._getChangeValue();var a=this.getFireChange();this.setFireChange(false);if(d.getKeyIdentifier()=="A"&&d.isCtrlPressed()){if(this.getMultiSelection()){this._selectAll();this.setLeadItem(this.getFirst())}}else{var b=this.getAnchorItem();var e=this.getItemToSelect(d);if(e&&this.getItemEnabled(e)){this.setLeadItem(e);this.scrollItemIntoView(e);d.preventDefault();if(d.isShiftPressed()&&this.getMultiSelection()){if(b==null){this.setAnchorItem(e)}this._selectItemRange(this.getAnchorItem(),e,true)}else{if(!d.isCtrlPressed()){this._deselectAll();this.renderItemSelectionState(e,true);this._selectedItems.add(e);this.setAnchorItem(e)}else{if(d.getKeyIdentifier()==$[78]){if(this._selectedItems.contains(e)){this.renderItemSelectionState(e,false);this._selectedItems.remove(e);this.setAnchorItem(this._selectedItems.getFirst())}else{if(!d.isCtrlPressed()||!this.getMultiSelection()){this._deselectAll()}this.renderItemSelectionState(e,true);this._selectedItems.add(e);this.setAnchorItem(e)}}}}}}this.setFireChange(a);if(a&&this._hasChanged(c)){this._dispatchChange()}},getItemToSelect:function(a){if(a.isAltPressed()){return null}switch(a.getKeyIdentifier()){case"Home":return this.getHome(this.getLeadItem());case"End":return this.getEnd(this.getLeadItem());case"Down":return this.getDown(this.getLeadItem());case"Up":return this.getUp(this.getLeadItem());case"Left":return this.getLeft(this.getLeadItem());case $[35]:return this.getRight(this.getLeadItem());case $[40]:return this.getPageUp(this.getLeadItem())||this.getHome(this.getLeadItem());case $[45]:return this.getPageDown(this.getLeadItem())||this.getEnd(this.getLeadItem());case $[78]:if(a.isCtrlPressed()){return this.getLeadItem()}}return null},_dispatchChange:function(){if(!this.getFireChange()){return}if(this.hasEventListeners($[247])){this.dispatchEvent(new rwt.event.DataEvent($[247],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($[10]);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($[71],this._onChangeSize,this);this.addEventListener($[76],this._onChangeSize,this);this.addEventListener($[179],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($[28],this._onMouseMove,this);this.addEventListener($[43],this._onMouseWheel,this);this._thumb.addEventListener($[1],this._onThumbMouseDown,this);this._thumb.addEventListener($[28],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($[162],this._onMinButtonMouseEvent,this);this._maxButton.addEventListener($[162],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._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?$[382]:$[224];var b=this._horizontal?$[37]:$[31];this.addState(a);this._minButton.addState(a);this._minButton.addState(b);this._maxButton.addState(a);this._maxButton.addState(b);this._thumb.addState(a);this._renderAppearance();this._minButton._renderAppearance();this._maxButton._renderAppearance();this._thumb._renderAppearance()},_visualizeFocus:function(){arguments.callee.base.call(this);this._thumb.addState($[75])},_visualizeBlur:function(){arguments.callee.base.call(this);this._thumb.removeState($[75])},_repeatTimerStart:function(){this._delayTimer.stop();if(this._autoRepeat!==""){this._repeatTimer.start()}},_onRepeatTimerInterval:function(a){switch(this._autoRepeat){case"minButton":this._setSelection(this._selection-this._increment);break;case"maxButton":this._setSelection(this._selection+this._increment);break;case"linePlus":case"lineMinus":this._handleLineMouseDown();break}},_handleLineMouseDown:function(){var e;var b=this._getThumbSize()/2;var c=this._getThumbPosition()+b;var a;if(this._mouseOffset>c){a=this._selection+this._pageIncrement;e="linePlus"}else{e="lineMinus";a=this._selection-this._pageIncrement}if(this._autoRepeat===""||this._autoRepeat===e){this._autoRepeat=e;var d=this._pageIncrement*this._pxStep+b;this._setSelection(a)}},_updateThumbPosition:function(){var a=this._getMinButtonWidth();a+=this._pxStep*(this._selection-this._minimum);if(this._horizontal){this._thumb.setLeft(a)}else{this._thumb.setTop(a)}},_updateThumbSize:function(){var a=this._thumbLength*this._getLineSize()/(this._maximum-this._minimum);a=Math.round(a);if(this._horizontal){this._thumb.setWidth(a)}else{this._thumb.setHeight(a)}this._updateStepsize()},_updateStepsize:function(){var a=this._maximum-this._minimum-this._thumbLength;if(a!==0){var b=this._getLineSize()-this._getThumbSize();this._pxStep=b/a}else{this._pxStep=0}this._selection=this._limitSelection(this._selection);this._updateThumbPosition()},_getSelectionFromPosition:function(a){var b=this._getMinButtonWidth();var c=(a-b)/this._pxStep+this._minimum;return this._limitSelection(Math.round(c))},_limitSelection:function(b){var a=b;if(b>=(this._maximum-this._thumbLength)){a=this._maximum-this._thumbLength}if(a<=this._minimum){a=this._minimum}return a},_getMouseOffset:function(c){var b=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($[15],this._stopEvent,this);this.addEventListener($[48],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($[204]);this._minButton.setAppearance("scrollbar-min-button");this._maxButton.setAppearance("scrollbar-max-button")},setValue:function(a){this._idealValue=a;this._setSelection(a*this._selectionFactor)},getValue:function(a){return Math.round(this._selection/this._selectionFactor)},setMaximum:function(a){this._setMaximum(a);if(this._idealValue!==null){this._setSelection(this._idealValue)}this._updateThumbLength()},getMaximum:function(){return this._maximum},setIncrement:function(a){this._setIncrement(a);this._updatePageIncrement()},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();if(this._idealValue!==null){this._setSelection(this._idealValue)}},_updateThumbSize:function(){arguments.callee.base.call(this);var a=this._getThumbSize();if(a=(b+6);this._thumb.setCellVisible(1,d)}else{var c=this._thumb.getCellHeight(1);var d=a>=(c+6);this._thumb.setCellVisible(1,d)}},_layoutPost:function(b){arguments.callee.base.call(this,b);if(b[$[488]]){if(this._maximum>0&&this._getLineSize()>0){var a=this._getThumbSize();if(a=this._increment*b){a=true}}return a},_dispatchValueChanged:function(){if(this._mergeEvents){this._eventTimer.stop()}this._lastDispatchedValue=this._selection;this.createDispatchEvent($[118])},_updateStepsize:function(){var a=this._selection;arguments.callee.base.call(this);if(a!==this._selection){this._dispatchValueChanged()}}}});
rwt.qx.Class.define("rwt.html.ImagePreloaderSystem",{extend:rwt.qx.Target,construct:function(c,b,a){arguments.callee.base.call(this);if(c instanceof Array){this._list=rwt.util.Objects.fromArray(c)}else{this._list=c}this._timer=new rwt.client.Timer(3000);this._timer.addEventListener($[27],this.__oninterval,this);if(b){this.addEventListener($[239],b,a||null)}},events:{completed:$[11]},members:{_stopped:false,start:function(){if(rwt.util.Objects.isEmpty(this._list)){this.createDispatchEvent($[239]);return}for(var a in this._list){var b=rwt.html.ImagePreloaderManager.getInstance().create(a);if(b.isErroneous()||b.isLoaded()){delete this._list[a]}else{b._origSource=a;b.addEventListener("load",this.__onload,this);b.addEventListener($[134],this.__onerror,this)}}this._check()},__onload:function(a){if(this.getDisposed()){return}delete this._list[a.getTarget()._origSource];this._check()},__onerror:function(a){if(this.getDisposed()){return}delete this._list[a.getTarget()._origSource];this._check()},__oninterval:function(a){this._stopped=true;this._timer.stop();this.createDispatchEvent($[239])},_check:function(){if(this._stopped){return}if(rwt.util.Objects.isEmpty(this._list)){this._timer.stop();this.createDispatchEvent($[239])}else{this._timer.restart()}}},destruct:function(){if(this._timer){this._timer.removeEventListener($[27],this.__oninterval,this);this._disposeObjects("_timer")}this._disposeFields("_list")}});
rwt.qx.Class.define("rwt.html.Iframes",{statics:{getWindow:rwt.util.Variant.select($[0],{mshtml:function(b){try{return b.contentWindow}catch(a){return null}},"default":function(c){try{var a=rwt.html.Iframes.getDocument(c);return a?a.defaultView:null}catch(b){return null}}}),getDocument:rwt.util.Variant.select($[0],{mshtml:function(c){try{var a=rwt.html.Iframes.getWindow(c);return a?a.document:null}catch(b){return null}},"default":function(b){try{return b.contentDocument}catch(a){return null}}}),getBody:function(b){var a=rwt.html.Iframes.getDocument(b);return a?a.getElementsByTagName("body")[0]:null}}});
namespace($[185]);(function(){var a=rwt.client.Client;rwt.remote.Request=function(c,d,b){this._url=c;this._method=d;this._async=true;this._success=null;this._error=null;this._data=null;this._responseType=b;this._request=rwt.remote.Request.createXHR()};rwt.remote.Request.createXHR=function(){return new XMLHttpRequest()};rwt.remote.Request.prototype={dispose:function(){if(this._request!=null){this._request.onreadystatechange=null;this._request.abort();this._success=null;this._error=null;this._request=null}},send:function(){var d=null;var c=this._method==="POST";if(!c&&this._data){d=this._data}var b=this._url;if(d){b+=(b.indexOf("?")>=0?"&":"?")+d}this._request.open(this._method,b,this._async);this._configRequest();this._request.send(c?this._data:undefined);if(!this._shouldUseStateListener()){this._onReadyStateChange()}if(!this._async){this.dispose()}},setAsynchronous:function(b){this._async=b},getAsynchronous:function(){return this._async},setSuccessHandler:function(c,b){this._success=function(){c.apply(b,arguments)}},setErrorHandler:function(c,b){this._error=function(){c.apply(b,arguments)}},setData:function(b){this._data=b},getData:function(){return this._data},_configRequest:function(){if(!a.isWebkit()){this._request.setRequestHeader("Referer",window.location.href)}var b="application/json; charset=UTF-8";this._request.setRequestHeader($[440],b);if(this._shouldUseStateListener()){this._request.onreadystatechange=rwt.util.Functions.bind(this._onReadyStateChange,this)}},_shouldUseStateListener:function(){var b=true;if(!this._async&&a.isGecko()&&a.getMajor()<4){b=false}return b},_onReadyStateChange:function(){if(this._request.readyState===4){var c;if(typeof this._request.responseText!=="unknown"){c=this._request.responseText}var b={responseText:c,status:this._request.status,responseHeaders:this._getHeaders(),target:this};if(this._request.status===200){if(this._success){this._success(b)}}else{if(this._error){this._error(b)}}if(this._async){this.dispose()}}},_getHeaders:function(){var f=this._request.getAllResponseHeaders();var c=f.split(/[\r\n]+/g);var b={};for(var d=0;dj-t){i=j-t-s}if(p+r>f-d){p=f-d-r}if(i=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='
'+encodeURIComponent(c)+"
";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($[334],{state:b})}},destruct:function(){this._timer.stop();this._disposeObjects("_timer");this._disposeFields("_iframe","_titles")}}); rwt.remote.HandlerRegistry.add($[306],{factory:function(a){return rwt.client.BrowserNavigation.getInstance()},service:true,listeners:[$[334]],methods:["addToHistory"],methodHandler:{addToHistory:function(b,d){var a=d.entries;for(var c=0;c5||Math.abs(b.getScreenY()-this.__dragCache.startScreenY)>5){this.__dragCache.sourceWidget.dispatchEvent(new rwt.event.DragEvent($[72],b,this.__dragCache.sourceWidget),true);this.__dragCache.hasFiredDragStart=true;if(this.__dragCache.dragHandlerActive){var c=this.getDropTarget(b);this._fireUserEvents(null,c,b);this.__dragCache.currentDropWidget=c;rwt.widgets.base.ClientDocument.getInstance().setCapture(true)}}}}},_handleMouseUp:function(a){if(!this.__dragCache){return}if(this.__dragCache.dragHandlerActive){this._endDrag(this.getDropTarget(a),a)}else{this.__dragCache=null}},handleKeyEvent:function(a){if(!this.__dragCache){return}switch(a.getType()){case $[9]:this._handleKeyDown(a);return;case $[34]:this._handleKeyUp(a);return}},_handleKeyDown:function(a){if(a.getKeyIdentifier()==$[104]){this.cancelDrag(a)}else{if(this.getCurrentAction()!=null){switch(a.getKeyIdentifier()){case"Shift":case $[281]: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()==$[281];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($[260],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 $[103]: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");a.attachEvent("onload",function(){rwt.widgets.base.Iframe.load(a)});return a},"default":function(b){var a=rwt.widgets.base.Iframe._element=document.createElement($[232]);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=$[16];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+$[346]}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($[481])}},_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($[99],$[10]);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($[28],this._onmousemove)},properties:{resizableWest:{check:$[2],init:true,apply:$[251]},resizableNorth:{check:$[2],init:true,apply:$[251]},resizableEast:{check:$[2],init:true,apply:$[251]},resizableSouth:{check:$[2],init:true,apply:$[251]},resizable:{group:["resizableNorth","resizableEast","resizableSouth","resizableWest"],mode:$[218]},resizeMethod:{init:$[98],check:["opaque","lazyopaque",$[98],$[156]],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 $[156]:this.setOpacity(0.5);break;case $[98]: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()===$[98]&&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()==$[98]){this._frame.setParent(null)}}else{if(this.getResizeMethod()===$[156]){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 $[156]: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()==$[98]?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($[504],{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($[10]);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($[10]);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($[15],this._onwindowclick);f.addEventListener($[1],this._oncaptionmousedown,this);f.addEventListener($[5],this._oncaptionmouseup,this);f.addEventListener($[28],this._oncaptionmousemove,this);f.addEventListener($[48],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:$[495],event:"changeWindowManager"},active:{check:$[2],init:false,apply:"_applyActive",event:$[491]},modal:{check:$[2],init:false,apply:"_applyModal",event:"changeModal"},mode:{check:[$[226],$[69]],init:null,nullable:true,apply:"_applyMode",event:"changeMode"},opener:{check:$[129]},caption:{apply:"_applyCaption",event:"changeCaption",dispose:true},icon:{check:$[46],nullable:true,apply:$[363],event:"changeIcon"},status:{check:$[46],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",$[98],$[156]],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($[226])},restore:function(){this.setMode(null)},_beforeAppear:function(){rwt.widgets.base.Parent.prototype._beforeAppear.call(this);rwt.widgets.util.PopupManager.getInstance().update();rwt.event.EventHandler.setFocusRoot(this);this.getWindowManager().add(this);this._makeActive()},_beforeDisappear:function(){rwt.widgets.base.Parent.prototype._beforeDisappear.call(this);var a=rwt.event.EventHandler.getFocusRoot();if(a==this||this.contains(a)){rwt.event.EventHandler.setFocusRoot(null)}var b=rwt.event.EventHandler.getCaptureWidget();if(b&&this.contains(b)){b.setCapture(false)}this.getWindowManager().remove(this);this._makeInactive()},_minZIndex:100000,_sendTo:function(){var d=function(g,f){return g.getZIndex()-f.getZIndex()};var e=rwt.util.Objects.getValues(this.getWindowManager().getAll()).sort(d);var c=e.length;var a=this._minZIndex;for(var b=0;b1){c.sort(this.compareWindows);this.setActiveWindow(c[b-1])}}}}}}}); rwt.qx.Class.define("rwt.widgets.MenuItemSeparator",{extend:rwt.widgets.base.Parent,construct:function(){arguments.callee.base.call(this);this.initHeight();this.setStyleProperty($[184],"0");this.setStyleProperty($[299],"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($[528],{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:$[300],apply:"_applyButton"}},members:{_applyButton:function(b,a){if(a){a.setPage(null)}if(b){b.setPage(this)}}}}); rwt.qx.Class.define($[300],{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.addEventListener($[3],this._onmouseover);this.addEventListener($[6],this._onmouseout);this.addEventListener($[1],this._onmousedown);this.addEventListener($[9],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:$[46],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:$[528],apply:"_applyPage",nullable:true},manager:{check:$[446],nullable:true,apply:$[366]},name:{check:$[46],apply:"_applyName"}},members:{_onkeydown:function(b){var a=b.getKeyIdentifier();if(a==$[49]||a==$[78]){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 $[35]: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($[15],this._ontabclose,this);this.add(this._closeButtonImage)}else{this.remove(this._closeButtonImage);this._closeButtonImage.removeEventListener($[15],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($[249])}if(this.isLastVisibleChild()){this.addState($[249])}else{this.removeState($[249])}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($[152])}else{this.removeState($[152])}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($[178])}else{this.removeState($[178])}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")}}); rwt.qx.Class.define("rwt.runtime.ErrorHandler",{statics:{_overlay:null,_box:null,processJavaScriptErrorInResponse:function(a,b,c){var d="

Could not process server response:

";d+=this._gatherErrorInfo(b,a,c);d+="
";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!==$[7]){console.error(e)}else{if(typeof console.log!==$[7]){console.log(e)}}if(typeof console.log===$[41]&&b.stack){console.log("Error stack:\n"+b.stack)}else{if(typeof console.trace!==$[7]){console.trace()}}}var a=true;try{a=rwt.util.Variant.isSet($[26],"on")}catch(c){}if(a){var d="

Javascript error occurred:

";d+=this._gatherErrorInfo(b);d+="
";this.showErrorPage(d);throw b}},showErrorPage:function(a){this._enableTextSelection();this._freezeApplication();document.title="Error Page";this._createErrorPageArea().innerHTML=a},showErrorBox:function(e,f){var b=String(window.location);var c=b.indexOf("#");if(c!=-1){b=b.substring(0,c)}var a='href="'+b+'"';var d=e.replace(/\{HREF_URL\}/,a);d=rwt.util.Encoding.replaceNewLines(d,$[96]);if(f){this._freezeApplication()}this._overlay=this._createOverlay();this._box=this._createErrorBoxArea(400,100);this._box.innerHTML=d;var g=this._box.getElementsByTagName("a")[0];g.style.outline="none";g.focus()},hideErrorBox:function(){if(this._box){this._box.parentElement.removeChild(this._box);this._overlay.parentElement.removeChild(this._overlay)}},_gatherErrorInfo:function(b,a,e){var g=[];try{g.push("Error: "+b+"\n");if(a){g.push("Script: "+a)}if(b instanceof Error){for(var d in b){g.push(d+": "+b[d])}if(b.stack){g.push("Stack: "+b.stack)}}g.push("Debug: "+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 a=document.createElement("div");var b=a.style;b.position=$[16];b.width="100%";b.height="100%";b.backgroundColor="#808080";rwt.html.Style.setOpacity(a,0.2);b.zIndex=100000000;document.body.appendChild(a);return a},_createErrorPageArea:function(){var a=document.createElement("div");var b=a.style;b.position=$[16];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=$[16];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.backgroundColor="#dae9f7";c.border="1px solid black";c.zIndex=100000001;c.overflow="auto";c.padding="10px";c.textAlign=$[23];c.fontFamily='verdana,"lucida sans",arial,helvetica,sans-serif';c.fontSize="12px";c.fontStyle=$[52];c.fontWeight=$[52];document.body.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)}}}}); rwt.qx.Class.define("rwt.widgets.base.GridRowContainer",{extend:rwt.widgets.base.VerticalBoxLayout,construct:function(){arguments.callee.base.call(this);this.setOverflow($[10]);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($[223],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;a0){var a=this._getVerticalGridline(c);a.style.left=d+"px";a.style.height=this.getHeight()+"px"}else{this._removeGridLine(c)}},_getVerticalGridline:function(b){if(typeof this._vertGridLines[b]===$[7]){var a=document.createElement("div");a.style.zIndex=1;a.style.position=$[16];a.style.top="0px";a.style.width="0px";this._getVerticalGridBorder().renderElement(a);if(this._isCreated){this._getTargetNode().appendChild(a)}else{this.addEventListener($[36],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,$[61]);a.dispose();var e=[0,0,0,0];c=c==$[7]?$[106]:c;if(d.horizontal){e[2]=1}else{if(d.vertical){e[1]=1}}return new rwt.html.Border(e,$[70],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=[$[122]]}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.lengthb){this._children[this._children.length-1].destroy()}this._items.length=this._children.length;this._updateRowsEvenState()},_updateRowsEvenState:function(){for(var a=0;a=g&&d<=e){this._renderRow(this._children[d],b,c);this._items[d]=b}b=b.getNextItem();d++}for(var a=d;athis._fixedColumns){d=this._config.itemLeft[a[this._fixedColumns]]}else{d=this._width}for(var c=0;c=j&&de){this._removeCells(e,this._cellsRendered)}if(!c.fullSelection&&f){this._renderStates(m,c,false,k)}for(var g=0;g0){this._renderCellBackground(m,g,c,d);if(!c.fullSelection&&l){if(f){this._renderStates(m,c,true,k)}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);this._treeColumnElements=[j,h];if(f){this._renderSelectionBackground(m,g,c);this._renderStates(m,c,false,k)}}else{this._renderCellCheckBox(m,g,c,l,d,k);this._renderCellImage(m,g,c,l,d);this._renderCellLabel(m,g,c,l,d)}}else{this._removeCell(g)}}this._cellsRendered=e},_renderSelectionBackground:function(o,l,f){var j=this._styleMap.overlayBackground;var c=this._styleMap.itemBackground;var n=j!==$[7]&&j!==null;var d=c!==$[7]&&c!==null;if(d||n){var h=this._getMiscBackground();h.style.backgroundColor=n?j:c;var k=f.selectionPadding;var g=this._getItemTextLeft(o,l,f);g-=k[0];var e=this._getItemTextWidth(o,l,f);e+=e>0?k[0]:0;var i=this._getVisualTextWidth(o,l,f);i+=k[0]+k[1];e=Math.min(e,i);var m=this.getHeight();this._setBounds(h,g,0,e,m)}},_renderCellBackground:function(h,c,d,i){var f=this._getCellBackgroundColor(h,c,d);var g=false;if(f!==$[7]&&f!=this._styleMap.backgroundColor){g=!i||!this._cellBackgrounds[c];var e=this._getBackgroundElement(c);e.style.backgroundColor=f}else{if(this._cellBackgrounds[c]){this._cellBackgrounds[c].style.backgroundColor=$[106];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($[233])){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($[178],k.isCellChecked(i));this.setState($[172],k.isCellGrayed(i));this.setState("over",g&&g[0]===$[329]&&g[1]===i);var c=this._getImageFromAppearance($[356],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 h=this._getItemTextLeft(g,c,d);var f=this._getItemTextWidth(g,c,d);this._setBounds(e,h,0,f,this.getHeight());e.style.lineHeight=d.markupEnabled?"":e.style.height}},_renderElementContent:a.select($[0],{"mshtml|newmshtml":function(f,g,c,e){if(e){var d=g?g.getText(c,false):"";if(f.rap_Markup!==d){f.innerHTML=d;f.rap_Markup=d}}else{f.innerText=g?g.getText(c,false):""}},"default":function(f,g,c,e){var d=g?g.getText(c,!e):"";if(e){if(d!==f.rap_Markup){f.innerHTML=d;f.rap_Markup=d}}else{f.innerHTML=d}}}),_styleLabel:function(e,f,c,d){this._setForeground(e,this._getCellColor(f,c,d));this._setFont(e,this._getCellFont(f,c,d));this._setTextDecoration(e,this._styleMap.textDecoration);b.setTextShadow(e,this._styleMap.textShadow)},_getCellBackgroundColor:function(f,d,e){var c;if(e.enabled===false||this._styleMap.overlayBackground!==$[7]){c=$[7]}else{c=f.getCellBackground(d)}return c},_getCellColor:function(f,d,e){var c=null;if(this._styleMap.overlayForeground!==$[7]){c=this._styleMap.overlayForeground}else{if(e.enabled!==false&&f.getCellForeground(d)){c=f.getCellForeground(d)}else{c=this._styleMap.itemForeground;if(c===$[7]){c=e.textColor}}}return c},_getCellFont:function(f,d,e){var c=f.getCellFont(d);if(c===null||c===""){c=e.font}return c},_getVisualTextWidth:function(i,g,d){var f=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($[355])},_renderAsSelected:function(d,e){var c=(e||this.hasState($[355]))&&(!d.hideSelection||d.focused)&&!d.alwaysHideSelection;return c},_getFontProps:function(d){var c={};var e;if(d instanceof rwt.html.Font){e=d}else{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=$[44];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=$[180];c.style.backgroundPosition=$[23];this._cellImages[d]=c}return c},_getCellCheckImage:function(d){var c=this._cellCheckImages[d];if(!c){c=this._createElement(3);c.style.backgroundRepeat=$[180];c.style.backgroundPosition=$[23];this._cellCheckImages[d]=c}return c},_getMiscImage:function(){var c=this._getMiscElement(3);c.innerHTML="";c.style.backgroundColor="";return c},_getMiscBackground:function(){var c=this._getMiscElement(2);c.style.backgroundImage="";c.innerHTML="";return c},_getBackgroundElement:function(d){var c=this._cellBackgrounds[d];if(!c){c=this._createElement(1);this._cellBackgrounds[d]=c}return c},_getMiscElement:function(e){var c;var d=this._getTargetNode();if(this._usedMiscNodesh){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($[434],{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._hoverItem=null;this._openTimer=null;this._closeTimer=null;this._openItem=null;this._itemsHiddenFlag=false;this._hoverFirstItemFlag=false;this.setHeight("auto");this.setWidth("auto");this._maxCellWidths=[null,null,null,null];this._layout=new 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._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 $[341]:case $[377]:case"qx.ui.form.TextArea":if(c.getEnabled()!==false){if(rwt.widgets.Menu._hasNativeMenu(b)){a=c.getContextMenu()==null}}break}return a},_hasNativeMenu:function(b){var a=typeof b.tagName==$[8]?b.tagName.toUpperCase():"";return a==="INPUT"||a==="TEXTAREA"}},properties:{appearance:{refine:true,init:"menu"}},events:{changeHoverItem:$[11]},members:{setOpener:function(a){this._opener=a},getOpener:function(a){return this._opener},getFocusRoot:function(){var a=null;if(this._opener){a=this._opener.getFocusRoot()}else{if(this._hasParent){a=this.getParent().getFocusRoot()}}return a},addMenuItemAt:function(b,a){if(b.setParentMenu){b.setParentMenu(this)}this._layout.addAt(b,a)},scheduleMenuLayout:function(){if(this._menuLayoutScheduled!==true){this._menuLayoutScheduled=true;var b=this._layout.getChildren();var c=b.length;for(var a=0;ab.length){a=-1}d=a>=0?b[a]:null;if(d&&d.isEnabled()&&d.classname==$[271]){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==$[271]){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()},_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)},setOpenItem:function(d){if(this._openItem&&this._openItem.getMenu()){this._openItem.setSubMenuOpen(false);var a=this._openItem.getMenu();a.hide();this._makeActive()}this._openItem=d;if(d&&d.getMenu()){var b=d.getMenu();d.setSubMenuOpen(true);b.setOpener(d);var e=d.getElement();var c=this.getElement();b.setTop(rwt.html.Location.getTop(e)-2);b.setLeft(rwt.html.Location.getLeft(c)+c.offsetWidth-3);b.show()}},_onMouseOut:function(a){var c=a.getTarget();var b=a.getRelatedTarget();if(c==this||(b!=this&&!this.contains(b))){this.setHoverItem(null)}},_onMouseOver:function(a){var b=a.getTarget();if(b!=this){this.setHoverItem(b)}this._unhoverSubMenu()},_unhoverSubMenu:function(){if(this._openItem){var a=this._openItem.getMenu();a.setOpenItem(null);a.setHoverItem(null)}},_onKeyPress:function(a){switch(a.getKeyIdentifier()){case"Up":this._handleKeyUp(a);break;case"Down":this._handleKeyDown(a);break;case"Left":this._handleKeyLeft(a);break;case $[35]:this._handleKeyRight(a);break;case $[49]:this._handleKeyEnter(a);break}},_handleKeyUp:function(a){if(this._openItem){this._openItem.getMenu()._hoverPreviousItem()}else{this._hoverPreviousItem()}a.preventDefault();a.stopPropagation()},_handleKeyDown:function(a){if(this._openItem){this._openItem.getMenu()._hoverNextItem()}else{this._hoverNextItem()}a.preventDefault();a.stopPropagation()},_handleKeyLeft:function(c){var a=this._opener?this._opener.getParentMenu():null;if(a instanceof 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($[175])){this._hasShowListener=a}},setHasHideListener:function(a){if(!this.hasState($[175])){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=4;break;case $[110]:this._shadowSupport=a>=7;break;case"opera":this._shadowSupport=a>=11.6;break;case $[109]: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($[194],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($[51],a);if(this.getGfxProperty($[177])==$[70]&&this._isCanvasReady()){this._renderGfxBackground()}}else{arguments.callee.base.call(this,a)}},_styleBackgroundImage:function(a){if(this._gfxBackgroundEnabled){this.setGfxProperty($[80],a);if(this.getGfxProperty($[177])==$[14]&&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;c0){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($[269],d);this.setGfxProperty($[351],a);this.setGfxProperty($[326],b);this.setGfxProperty($[235],g);this.setGfxProperty($[225],null);this.setGfxProperty($[194],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!=$[7]?b:null},_handleGfxBorder:function(){var b=this.getGfxProperty($[235])!=null&&this.getGfxProperty($[269])!=null&&this.getGfxProperty($[326])!=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($[177],$[14])}else{d=this.getGfxProperty($[115])!=null;if(d){this.setGfxProperty($[177],$[115])}else{this.setGfxProperty($[177],$[70])}}var b=(d||this._gfxBorderEnabled);var a=(this._gfxBackgroundEnabled!=b);if(a){if(b){var c=this.getStyleProperty($[51]);this.removeStyleProperty($[51]);this.setGfxProperty($[51],c);var e=this.getBackgroundImage();this.setGfxProperty($[80],e);this.removeStyleProperty($[80]);this._gfxBackgroundEnabled=true}else{this._gfxBackgroundEnabled=false;this._applyBackgroundColor(this.getBackgroundColor());this.setGfxProperty($[51],null);this._applyBackgroundImage(this.getBackgroundImage());this.setGfxProperty($[80],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($[320],this._gfxOnElementChanged,this);this.addEventListener("flush",this._gfxOnFlush,this)}else{this._gfxEnabled=false;this.removeEventListener($[320],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($[225],null);this.setGfxProperty($[194],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($[225]);var b=this.getGfxProperty($[269]);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($[203]);this.removeStyleProperty($[203]);this.__outerElementStyleProperties.outline=true;this.setStyleProperty($[203],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($[140],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($[140],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($[154])}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($[177]);var c=rwt.graphics.GraphicsUtil;if(f==$[115]){var e=this.getGfxProperty($[115]);c.setFillGradient(this._gfxData.backgroundShape,e)}else{if(f==$[14]){var d=this.getGfxProperty($[80]);d=typeof d==$[7]?null:d;var b=this._getImageSize(d);c.setFillPattern(this._gfxData.backgroundShape,d,b[0],b[1])}else{var a=this.getGfxProperty($[51]);if(a&&(a===$[106]||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($[351]);var a=this.getGfxProperty($[326]);rwt.graphics.GraphicsUtil.setStroke(b,a,d)},_layoutBackgroundShape:function(){var b=[this.getBoxWidth(),this.getBoxHeight()];var j=this.getGfxProperty($[225]);var d=!j||(b[0]!==j[0]);var c=!j||(b[1]!==j[1]);if(d||c){this.setGfxProperty($[225],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($[235]);var a=this.getGfxProperty($[269]);var q=this.getGfxProperty($[351]);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($[154]);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($[194]);var s=!n||(l[0]!==n[0]);var q=!n||(l[1]!==n[1]);if(s||q){var c=this._gfxData.shadowShape;this.setGfxProperty($[194],l);var h=this.getGfxProperty($[19]);var k=this.getGfxProperty($[235]);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($[171]);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=$[16];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 $[154]:case"custom":a=this._createCustomShape();a.blurRadius=0;break;case $[14]: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!=$[7]){f.cropTop=d[0];f.cropRight=d[1];f.cropBottom=d[2];f.cropLeft=d[3]}f.style.width=e;f.style.height=a;f.style.left=b;f.style.top=h},setRoundRectLayout:function(b,g,f,o,k,m){var h=this._VMLDEGREE*90;var d=Math.floor(Math.min(o,k)/2);var e=Math.min(m[0],d);var n=Math.min(m[1],d);var r=Math.min(m[2],d);var j=Math.min(m[3],d);e=this._convertNumeric(e,false);n=this._convertNumeric(n,false);r=this._convertNumeric(r,false);j=this._convertNumeric(j,false);var c=this._getBlurOffsets(b.blurRadius);var i=this._convertNumeric(g-c[1],true);var p=this._convertNumeric(f-c[1],true);var a=this._convertNumeric(o-c[2],false);var q=this._convertNumeric(k-c[2],false);var l=[];if(e>0){l.push("AL",i+e,p+e);l.push(e,e,2*h,h)}else{l.push("M",i,p+e)}if(n>0){l.push("AE",i+a-n);l.push(p+n);l.push(n,n,3*h,h)}else{l.push("L",i+a,p)}if(r>0){l.push("AE",i+a-r);l.push(p+q-r);l.push(r,r,0,h)}else{l.push("L",i+a,p+q)}if(j>0){l.push("AE",i+j);l.push(p+q-j);l.push(j,j,h,h)}else{l.push("L",i,p+q)}l.push("X E");b.node.path=l.join(" ")},applyDrawingContext:function(b,d,g){var c=d.globalAlpha;if(c!=1){this.setOpacity(b,c)}if(g){var g=d.fillStyle;if(g instanceof Array){this.setFillGradient(b,d.fillStyle)}else{this.setFillColor(b,d.fillStyle)}this.setStroke(b,null,0)}else{this.setFillColor(b,null);this.setStroke(b,d.strokeStyle,d.lineWidth);var f=d.lineCap=="butt"?"flat":d.lineCap;var e=d.lineJoin;var a=d.miterLimit;this._setStrokeStyle(b,e,a,f)}b.node.path=this._convertPath(d._currentPath)},createShapeFromContext:function(b,c){var a=this.createShape("custom");this.applyDrawingContext(a,b,c);return a},setFillColor:function(b,a){var c=b.fill;c.type=$[70];if(a!=null&&a!==$[106]&&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)==$[61]){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;k0){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==$[56]||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===$[56]&&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===$[56]&&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($[364]);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=$[16];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($[14]);b.style.position=$[16];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=$[16];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($[221]);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==$[56]){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;d0){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)==$[61]){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]==$[7]){a=this._createNode($[506]);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;e0){var d="filter_"+rwt.qx.Object.toHashCode(a);var b;if(typeof a.defNodes[d]===$[7]){b=this._createNode($[94]);b.setAttribute("id",d);b.appendChild(this._createNode("feGaussianBlur"));this._addNewDefinition(a,b,d)}else{b=a.defNodes[d]}b.firstChild.setAttribute($[547],c/2);a.node.setAttribute($[94],"url(#"+d+")")}else{a.node.setAttribute($[94],"none")}},getBlur:function(b){var a=0;var c=b.node.getAttribute($[94]);if(c&&c!=="none"){var e="filter_"+rwt.qx.Object.toHashCode(b);var d=b.defNodes[e];a=d.firstChild.getAttribute($[547])*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==$[8]?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:{setPropertyParam:function(d,b,a){var f=rwt.remote.WidgetManager.getInstance();var e=f.findIdByWidget(d);var c=rwt.remote.Server.getInstance();c.addParameter(e+"."+b,a)},fixIEBoxHeight:rwt.util.Variant.select($[0],{mshtml:function(a){a.setStyleProperty($[184],"0");a.setStyleProperty($[299],"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},_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($[512],{type:$[39],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":$[297]},TreeItem:{unfocused:$[91]},"Tree-RowOverlay":{unfocused:$[91]},TreeColumn:{hover:$[3]},Shell:{inactive:$[199]},"Shell-Titlebar":{inactive:$[199]},"Shell-MinButton":{inactive:$[199]},"Shell-MaxButton":{inactive:$[199]},"Shell-CloseButton":{inactive:$[199]},TableColumn:{hover:$[3]},TableItem:{unfocused:$[91]},"Table-RowOverlay":{unfocused:$[91]},TabItem:{selected:$[178],first:"firstChild",last:$[249]}};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(c,a,d,e){var b=this._getCssValue(c,a,d,e);return this._values.colors[b]},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=$[315]+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=[$[315]+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===$[70]||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,$[164],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;a0){var h=f.charAt(0);if(h=="."){a=$[38]+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;bf){a=f}else{a=e}return a},_getContentWidth:function(f){this._beforeComputeInnerWidth();var a=0;if(f===$[463]){var e=this.getTotalSpacing();var d=0;for(var b=0;b0){a+=g}}}}else{if(f==="flexible"){var e=this.getTotalSpacing();var d=0;for(var b=0;bd){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;b0)},_invalidateTotalSpacing:function(){this.__computedTotalSpacing=null;this._invalidatePreferredInnerWidth()},renderPadding:function(a){},_layoutPost:function(a){if(a.createContent){this._createSubelements();this._catchSubelements()}if(a.updateContent&&!a.createContent){this._updateAllImages();this._updateAllLabels()}a.layoutX=a.width||a.layoutX||a.frameWidth||a.initial;a.layoutY=a.height||a.layoutY||a.frameHeight||a.initial;this._beforeRenderLayout(a);if(a.layoutX){this._renderLayoutX()}if(a.layoutY){this._renderLayoutY()}this._afterRenderLayout(a);arguments.callee.base.call(this,a)},_renderLayoutX:function(){var a=this.getSpacing();var d=this.__paddingCache;var g=this.getHorizontalChildrenAlign();var h=this._getContentWidth("flexible");var k=this.getInnerWidth();var j=null;switch(g){case"left":j=d[3];break;case $[23]: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
'}else{var c=this.getCellContent(a);var b="";if(c){b=$[526]+c+")"}return"
"+this.getCellContent(a)+"
"},_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;b0){var d;for(var c=0;c=a.length){f=0}}if(g=="previous"){f=d-1;if(f<0){f=a.length-1}}var b=a[f];this._unselectSiblings(b);b.setSelection(true);b.setFocused(true)}},_unselectSiblings:function(b){var c=this._getRadioGroup(b);for(var a=0;a0){for(var e=0;ethis._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($[60],a);this._sendSelectionEvent(b,false,null)}},_sendItemCheckedChange:function(b){if(!this._inServerResponse()){var a=rwt.remote.Server.getInstance();var c=rwt.remote.WidgetManager.getInstance();var d=c.findIdByWidget(b);a.addParameter(d+".checked",b.isChecked());this._sendSelectionEvent(b,false,$[108])}},_sendCellCheckedChange:function(d,b){if(!this._inServerResponse()){var e=rwt.remote.Server.getInstance();var a=d.getCellChecked();var f=[];for(var c=0;cd){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;b0){var c=Math.max(1,this._config.columnCount);for(var b=0;ba?$[217]:"add";this._children.length=a;this._update(b)},clear:function(){this._cached=false;this._checked=false;this._grayed=false;this._texts=["..."];this._images=[];this._background=null;this._foreground=null;this._font=null;this._cellBackgrounds=[];this._cellForegrounds=[];this._cellFonts=[];this._variant=null},isCached:function(){return this._cached},markCached:function(){this._cached=true;this._texts=[]},setTexts:function(a){this._texts=a;this._escaped=false;this._update($[59])},getText:function(b,c){var a=this._texts[b];if((typeof a)===$[8]){if(c!==false&&!this._escaped){this._escapeTexts();this._escaped=true;a=this._texts[b]}}else{a=""}return a},hasText:function(a){return !!this._texts[a]},setFont:function(a){this._font=a;this._update($[59])},getCellFont:function(b){var a=this._cellFonts[b];return typeof a===$[8]&&a!==""?a:this._font},setCellFonts:function(a){this._cellFonts=a;this._update($[59])},setForeground:function(a){this._foreground=a;this._update($[59])},getCellForeground:function(b){var a=this._cellForegrounds[b];return typeof a===$[8]?a:this._foreground},setCellForegrounds:function(a){this._cellForegrounds=a;this._update($[59])},setBackground:function(a){this._background=a;this._update($[59])},getCellBackground:function(b){var a=this._cellBackgrounds[b];return typeof a===$[8]?a:null},getBackground:function(){return this._background},setCellBackgrounds:function(a){this._cellBackgrounds=a;this._update($[59])},setImages:function(a){this._images=a;this._update($[59])},getImage:function(b){var a=this._images[b];return typeof a===$[8]?a:null},setChecked:function(a){this._checked=a;this._update($[59])},isChecked:function(){return this._checked},setGrayed:function(a){this._grayed=a;this._update($[59])},isGrayed:function(){return this._grayed},setCellChecked:function(a){this._cellChecked=a;this._update($[59])},toggleCellChecked:function(a){this._cellChecked[a]=!this._cellChecked[a];this._update($[59])},getCellChecked:function(){return this._cellChecked},isCellChecked:function(a){return this._cellChecked[a]},setCellGrayed:function(a){this._cellGrayed=a;this._update($[59])},isCellGrayed:function(a){return this._cellGrayed[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?$[81]:$[229]);if(a){this._parent._addToExpandedItems(this)}else{this._parent._removeFromExpandedItems(this)}}},isExpanded:function(){return this._expanded},isDisplayable:function(){var a=false;if(this.isRootItem()||this._parent.isRootItem()){a=true}else{a=this._parent.isExpanded()&&this._parent.isDisplayable()}return a},hasChildren:function(){return this._children.length>0},getChildrenLength:function(){return this._children.length},isChildCreated:function(a){return this._children[a]!==undefined},isChildCached:function(a){return this._children[a].isCached()},getCachedChildren:function(){var a=[];for(var b=0;b=0&&bm){var h=m-g-l;var a=e+1+Math.floor(h/b);n=this.getChild(a);c=true}else{e=d;g=k}}}return n},findItemByFlatIndex:function(c){var b=this._getExpandedIndicies();var h=c;var a=null;var g=false;while(!g&&h>=0){var e=b.shift();if(e===undefined||e>=h){a=this.getChild(h);if(a){this._indexCache[a.toHashCode()]=h}g=true}else{var d=this.getChild(e).getVisibleChildrenCount();var f=h-e;if(f<=d){a=this.getChild(e).findItemByFlatIndex(f-1);g=true;if(a==null){throw new Error("getItemByFlatIndex failed")}}else{h-=d}}}return a},getOffset:function(){var a=0;if(!this._parent.isRootItem()){a+=this._parent.getOffset()+this._parent.getOwnHeight()}a+=this._parent._getChildOffset(this);return a},_getChildOffset:function(c){var e=this.indexOf(c);var a=e*this.getDefaultHeight();var d=this._getDifferingHeightIndicies();while(d.length>0&&e>d[0]){var b=d.shift();a-=this.getDefaultHeight();a+=this._children[b].getOffsetHeight()}return a},getFlatIndex:function(){var d=this._parent.indexOf(this);var a=d;var b=this._parent._getExpandedIndicies();while(b.length>0&&d>b[0]){var c=b.shift();a+=this._parent._children[c].getVisibleChildrenCount()}if(!this._parent.isRootItem()){a+=this._parent.getFlatIndex()+1}return a},hasPreviousSibling:function(){var a=this._parent.indexOf(this)-1;return a>=0},hasNextSibling:function(){var a=this._parent.indexOf(this)+1;return a0){a=this._parent.getNextItem(true)}}}return a},getPreviousItem:function(){var a=null;if(this.hasPreviousSibling()){a=this.getPreviousSibling();while(a.hasChildren()&&a.isExpanded()){a=a.getLastChild()}}else{if(this.getLevel()>0){a=this._parent}}return a},_add:function(b,a){if(this._children[a]){this._children.splice(a,0,b);this._children.pop();this._update("add",b)}else{this._children[a]=b}},_remove:function(b){if(b.isExpanded()){delete this._expandedItems[b.toHashCode()]}if(b.hasCustomHeight()){delete this._customHeightItems[b.toHashCode()]}var a=this._children.indexOf(b);this._children.splice(a,1);this._children.push(undefined);this._update($[217],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($[145],a,true);delete a.target;delete a.related;delete a.msg},_onUpdate:function(a){if(a.msg!==$[59]){this._visibleChildrenCount=null;this._indexCache={}}},_escapeTexts:function(){var a=rwt.util.Encoding;for(var b=0;b=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);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($[10]);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($[72],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;a1){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($[24],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($[471],{target:this})},_allowMove:function(){return this.dispatchSimpleEvent("moveStart",{target:this})},_hideDragFeedback:function(a){if(this._feedbackVisible){this.dispatchSimpleEvent($[521],{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($[530],{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",$[14],"font","footerText","footerImage","footerFont",$[113],"resizable","moveable",$[361],$[137],"group",$[85],$[99],$[108]],propertyHandler:{toolTip:rwt.remote.HandlerUtil.getControlPropertyHandler($[113]),group:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setGroup(c)})}},listeners:[$[30]]}); 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],$[17],"text",$[14],"font",$[81],$[99],$[85]],listeners:[$[159],$[167]]}); rwt.qx.Class.define($[384],{extend:rwt.widgets.base.Iframe,construct:function(){arguments.callee.base.call(this);this._hasProgressListener=false;this._browserFunctions={};this.setTabIndex(1);this.setAppearance("browser");this.addEventListener($[65],this._onCreate,this)},properties:{asynchronousResult:{check:$[2],init:false},executedFunctionPending:{check:$[2],init:false},executedFunctionResult:{nullable:true,init:null},executedFunctionError:{check:$[46],nullable:true,init:null}},statics:{getDomain:function(a){var d=null;if(a!==null){var b=a.toLowerCase();if(b.indexOf("http://")===0||b.indexOf("https://")===0||b.indexOf("ftp://")===0||b.indexOf("ftps://")===0){d=b.slice(b.indexOf("://")+3);var c=d.indexOf("/");if(c!==-1){d=d.slice(0,c)}}}return d}},members:{syncSource:function(){if(this.isCreated()){this._syncSource()}},_applySource:function(b,a){},_applyEnabled:function(b,a){arguments.callee.base.call(this,b,a);if(b){this.release()}else{this.block()}},release:function(){if(this.getEnabled()){arguments.callee.base.call(this)}},_onload:function(a){if(!this._isInGlobalDisposeQueue){arguments.callee.base.call(this,a);if(this._isContentAccessible()){this._attachBrowserFunctions()}this._sendProgressEvent()}},_onCreate:function(a){if(!this.getEnabled()){this.block()}},_sendProgressEvent:function(){if(this._hasProgressListener){rwt.remote.Server.getInstance().getRemoteObject(this).notify("Progress")}},setHasProgressListener:function(a){this._hasProgressListener=a},execute:function(b){this._checkIframeAccess();var f=true;var a=null;try{a=this._parseEvalResult(this._eval(b))}catch(c){f=false}var e=rwt.remote.Server.getInstance();var d=rwt.remote.Server.getInstance().getRemoteObject(this);d.set("executeResult",f);d.set("evaluateResult",a);if(this.getExecutedFunctionPending()){e.sendImmediate(false)}else{e.send()}},_srcInLocalDomain:function(){var f=this.getSource();var e=rwt.widgets.Browser;var c=e.getDomain(document.URL);var d=e.getDomain(f);var a=c===d;var b=d===null;return b||a},_isContentAccessible:function(){var b;try{var a=this.getContentDocument().body.URL;b=true}catch(c){b=false}return b&&this._isLoaded},_checkIframeAccess:function(b){if(!this._isContentAccessible()){var a=this._srcInLocalDomain();if(!a){this._throwSecurityException(false)}if(this._isLoaded&&a){this._throwSecurityException(true)}}},_throwSecurityException:function(a){var e=rwt.widgets.Browser;var b=e.getDomain(document.URL);var d=a?null:e.getDomain(this.getSource());var c="SecurityRestriction:\nBrowser-Widget can not access ";c+=d!==null?'"'+d+'"':"unkown domain";c+=' from "'+b+'".';throw new Error(c)},_eval:function(a){var b=this.getContentWindow();if(!b["eval"]&&b.execScript){b.execScript("null;","JScript")}return b["eval"](a)},_parseEvalResult:function(b){var a=null;var c=this.getContentWindow();if(b instanceof c.Function||b instanceof Function){a=this.toJSON([[]])}else{if(b instanceof c.Array||b instanceof Array){a=this.toJSON([b])}else{if(typeof b!==$[20]&&typeof b!==$[41]){a=this.toJSON([b])}}}return a},createFunction:function(a){this._browserFunctions[a]=true;this._checkIframeAccess();if(this.isLoaded()){try{this._createFunctionImpl(a);this._createFunctionWrapper(a)}catch(b){var c='Unable to create function: "'+a+'".\n'+b;if(rwt.remote.EventUtil.getSuspended()){throw c}else{rwt.runtime.ErrorHandler.processJavaScriptError(c)}}}},_attachBrowserFunctions:function(){for(var a in this._browserFunctions){this.createFunction(a)}},_createFunctionImpl:function(a){var e=this.getContentWindow();var d=rwt.remote.Server.getInstance();var b=d.getRemoteObject(this);var c=this;e[a+"_impl"]=function(){var f={};try{if(c.getExecutedFunctionPending()){f.error='Unable to execute browser function "'+a+'". Another browser function is still pending.'}else{var h=c.toJSON(arguments);b.set("executeFunction",a);b.set("executeArguments",h);c.setExecutedFunctionResult(null);c.setExecutedFunctionError(null);c.setExecutedFunctionPending(true);c.setAsynchronousResult(false);d.sendImmediate(false);if(c.getExecutedFunctionPending()){c.setAsynchronousResult(true)}else{var g=c.getExecutedFunctionError();if(g!=null){f.error=g}else{f.result=c.getExecutedFunctionResult()}}}}catch(i){rwt.runtime.ErrorHandler.processJavaScriptError(i)}return f}},_createFunctionWrapper:function(b){var a=[];a.push("function "+b+"(){");a.push(" var result = "+b+"_impl.apply( window, arguments );");a.push(" if( result.error ) {");a.push(" throw new Error( result.error );");a.push(" }");a.push(" return result.result;");a.push("}");this._eval(a.join(""))},destroyFunction:rwt.util.Variant.select($[0],{"default":function(b){delete this._browserFunctions[b];var d=this.getContentWindow();if(d!=null){try{var a=[];a.push($[390]+b+";");a.push($[390]+b+"_impl;");this._eval(a.join(""))}catch(c){throw new Error($[400]+b+" error: "+c)}}},mshtml:function(b){delete this._browserFunctions[b];var d=this.getContentWindow();if(d!=null){try{var a=[];a.push("window."+b+" = undefined;");a.push("window."+b+"_impl = undefined;");this._eval(a.join(""))}catch(c){throw new Error($[400]+b+" error: "+c)}}}}),setFunctionResult:function(c,a,b){this.setExecutedFunctionResult(a);this.setExecutedFunctionError(b);this.setExecutedFunctionPending(false)},toJSON:function(b){var a;var d=typeof b;if(b===null){a=b}else{if(d===$[20]){a=[];for(var c=0;c0?c[6]:null;return this.computeTextDimensions(e,d,a)},computeTextDimensions:function(f,e,d){var b=this._getMeasureNode();var c=b.style;if(!rwt.client.Client.isMshtml()){c.font=""}c.fontFamily=e.fontFamily||"";c.fontSize=e.fontSize||"";c.fontWeight=e.fontWeight||"";c.fontStyle=e.fontStyle||"";b.innerHTML=f;if(d){c.width=d+"px"}var a=this._measureElement(b);c.width="auto";return a},_measureElement:rwt.util.Variant.select($[0],{"default":function(b){var a;if(b.getBoundingClientRect){var c=b.getBoundingClientRect();if(c.width!=null&&c.height!=null){a=[Math.ceil(c.width),Math.ceil(c.height)]}else{a=[b.scrollWidth,b.scrollHeight]}}else{a=[b.scrollWidth,b.scrollHeight]}return this._addOffset(a)},newmshtml:function(b){var c=window.getComputedStyle(b,null);var a=[Math.ceil(parseFloat(c.width)),Math.ceil(parseFloat(c.height))];return this._addOffset(a)}}),_addOffset:function(b){var a=b[0]>0?b[0]+this._offset:0;var c=b[1]>0?b[1]+this._offset:0;return[a,c]},_getMeasureNode:function(){var b=this._measureNode;if(!b){b=document.createElement("div");var a=b.style;a.width=a.height="auto";a.visibility=$[10];a.position=$[16];a.zIndex="-1";a.left=-1000;document.body.appendChild(b);this._measureNode=b}if(!rwt.client.Client.isMshtml()){b.style.font=""}return b},_addRequestParam:function(a,c){var b=rwt.remote.Server.getInstance();b.addParameter(a,c)},_storeMeasurements:function(c,a){var b=rwt.remote.Server.getInstance().getRemoteObject(this);b.call("storeMeasurements",{results:a})},_escapeText:function(c){var b=rwt.util.Encoding;var a=b.escapeText(c,true);a=b.replaceNewLines(a,$[96]);a=b.replaceWhiteSpaces(a);return a}}}); rwt.remote.HandlerRegistry.add("rwt.client.TextSizeMeasurement",{factory:function(a){return rwt.widgets.util.FontSizeCalculation},service:true,methods:["measureItems"]}); rwt.qx.Class.define($[369],{extend:rwt.widgets.base.MultiCellWidget,construct:function(a){arguments.callee.base.call(this,this._CELLORDER);this.addEventListener($[3],this._onMouseOver);this.addEventListener($[6],this._onMouseOut);this.setVerticalChildrenAlign("top");this.setAlignment("left");this.setAppearance("label-wrapper");if(a.WRAP){this.setFlexibleCell(1)}this._markupEnabled=a.MARKUP_ENABLED===true},members:{_CELLORDER:[$[14],$[67]],setAlignment:function(a){this.setHorizontalChildrenAlign(a)},setImage:function(a){if(a){this.setCellContent(0,a[0]);this.setCellDimension(0,a[1],a[2])}else{this.setCellContent(0,null);this.setCellDimension(0,0,0)}},setText:function(b){var c=b;if(!this._markupEnabled){var a=rwt.util.Encoding;c=a.escapeText(b,true);c=a.replaceNewLines(c,$[96]);c=a.replaceWhiteSpaces(c)}this.setCellContent(1,c)},setTopMargin:function(a){this.setPaddingTop(a)},setLeftMargin:function(a){this.setPaddingLeft(a)},setRightMargin:function(a){this.setPaddingRight(a)},setBottomMargin:function(a){this.setPaddingBottom(a)},_onMouseOver:function(a){if(a.getTarget()===this&&!this.hasState("over")){this.addState("over")}},_onMouseOut:function(a){if(a.getTarget()===this){this.removeState("over")}}}}); rwt.qx.Class.define("rwt.widgets.base.BasicButton",{extend:rwt.widgets.base.MultiCellWidget,construct:function(a,b){arguments.callee.base.call(this,this._CELLORDER);this._hasSelectionListener=false;this._selected=false;this._image=[null,null,null];this._hotImage=[null,null,null];this.addEventListener($[3],this._onMouseOver);this.addEventListener($[6],this._onMouseOut);this.addEventListener($[1],this._onMouseDown);this.addEventListener($[5],this._onMouseUp);if(!b){this.addEventListener($[9],this._onKeyDown);this.addEventListener($[34],this._onKeyUp);this.addEventListener($[4],this._onKeyPress)}this.addState(a);switch(a){case"arrow":case"push":this._isSelectable=false;this._isDeselectable=false;this._sendEvent=true;break;case $[202]:case $[108]:this._isSelectable=true;this._isDeselectable=true;this._sendEvent=true;break;case $[116]:this._isSelectable=true;this._sendEvent=true;this.setNoRadioGroup(false);rwt.widgets.util.RadioButtonUtil.registerExecute(this);rwt.widgets.util.RadioButtonUtil.registerKeypress(this);break}},destruct:function(){if(this._animation!=null){this._animation.dispose()}this._animation=null},events:{stateOverChanged:$[11]},properties:{selectionIndicator:{apply:$[413],nullable:true,themeable:true},icon:{apply:$[363],nullable:true,themeable:true},animation:{check:$[187],nullable:false,init:null,apply:$[496],themeable:true}},members:{_CELLORDER:[$[14],$[14],$[67]],_applyIcon:function(b,a){this.setImage.apply(this,b)},setImage:function(c,b,a){this._image=[c,b,a];this._updateButtonImage()},setHotImage:function(c,b,a){this._hotImage=[c,b,a];this._updateButtonImage()},_updateButtonImage:function(){var b=(this._hotImage[0]!=null&&this.hasState("over"))?this._hotImage:this._image;var a=this.getCellContent(1);if(a!=b[0]){this.setCellContent(1,b[0]);this.setCellDimension(1,b[1],b[2])}},setText:function(a){this.setCellContent(2,a)},_applySelectionIndicator:function(e,b){var c=e?e[0]:null;var d=e?e[1]:0;var a=e?e[2]:0;this.setCellContent(0,c);this.setCellDimension(0,d,a)},setHasSelectionListener:function(a){this._hasSelectionListener=a},setGrayed:function(a){if(a){this.addState($[172])}else{this.removeState($[172])}},setNoRadioGroup:function(a){if(this.hasState($[116])){this._noRadioGroup=a;this._isDeselectable=a}},getNoRadioGroup:function(){return this._noRadioGroup},execute:function(){arguments.callee.base.call(this);if(this._isSelectable){this.setSelection(!(this._selected&&this._isDeselectable))}this._sendChanges()},setSelection:function(b){if(this._selected!=b||this._selected){this._selected=b;if(this._selected){this.addState($[24])}else{this.removeState($[24])}if(!rwt.remote.EventUtil.getSuspended()){var d=rwt.remote.WidgetManager.getInstance();var c=d.findIdByWidget(this);var a=rwt.remote.Server.getInstance();a.addParameter(c+$[170],this._selected)}}},_sendChanges:function(){if(!rwt.remote.EventUtil.getSuspended()&&this._hasSelectionListener&&this._sendEvent){rwt.remote.EventUtil.notifySelected(this)}},_onMouseOver:function(a){if(a.getTarget()==this&&!this.hasState("over")){if(this.hasState($[29])){this.removeState($[29]);this.addState($[12])}this.addState("over");this._updateButtonImage();this.createDispatchEvent($[162])}},_onMouseOut:function(a){if(a.getTarget()==this){this.removeState("over");this._updateButtonImage();if(this.hasState($[12])){this.setCapture(true);this.removeState($[12]);this.addState($[29])}this.createDispatchEvent($[162])}},_onMouseDown:function(a){if(a.getTarget()==this&&a.isLeftButtonPressed()){this.removeState($[29]);this.addState($[12])}},_onMouseUp:function(b){this.setCapture(false);var a=this.hasState($[12]);var c=this.hasState($[29]);if(a){this.removeState($[12])}if(c){this.removeState($[29])}if(!c){this.addState("over");this._updateButtonImage();if(a){this.execute()}}},_onKeyDown:function(a){switch(a.getKeyIdentifier()){case $[49]:case $[78]:this.removeState($[29]);this.addState($[12]);a.stopPropagation()}},_onKeyUp:function(a){switch(a.getKeyIdentifier()){case $[49]:case $[78]:if(this.hasState($[12])){this.removeState($[29]);this.removeState($[12]);this.execute();a.preventDefault();a.stopPropagation()}}},_onKeyPress:function(a){switch(a.getKeyIdentifier()){case"Left":case"Up":case $[35]:case"Down":case $[40]:case $[45]:case"End":case"Home":case $[49]:case $[78]:a.preventDefault();a.stopPropagation()}},_applyAnimation:function(b,a){if(b.hoverIn||b[$[317]]){if(this._animation==null){this._animation=new rwt.animation.Animation();this._animation.addEventListener("init",this._initAnimation,this)}this.addEventListener($[162],this._animation.activateRendererOnce,this._animation);this.addEventListener($[324],this._configureRenderer,this);this._configureRenderer()}else{if(this._animation!=null){this.removeEventListener($[162],this._animation.activateRendererOnce,this._animation);this.removeEventListener($[324],this._configureRenderer,this)}}},_configureRenderer:function(c){if(!c||c.getValue()==null||c.getOldValue()==null){this._animation.skip();var d=this._animation.getDefaultRenderer(false);var a=this.getBackgroundGradient()!=null?$[126]:$[51];var b=rwt.animation.AnimationRenderer.ANIMATION_CHANGE;d.animate(this,a,b)}},_initAnimation:function(a){if(this.hasState($[12])){this._animation.cancel()}else{var b=this.getAnimation();if(this.hasState("over")&&b.hoverIn){this._animation.setProperties(b.hoverIn)}else{if(!this.hasState("over")&&b[$[317]]){this._animation.setProperties(b[$[317]])}else{this._animation.cancel()}}}},_renderAppearance:function(){arguments.callee.base.call(this);if(this._animation!=null&&!this._animation.isStarted()){this._animation.getDefaultRenderer().cancelActivateOnce()}}}}); rwt.qx.Class.define($[376],{extend:rwt.widgets.base.BasicButton,construct:function(a){arguments.callee.base.call(this,a);this._isDropDown=false;if(a=="dropDown"){this._isDropDown=true;this._isSelectable=false;this._isDeselectable=false;this._sendEvent=true;this.setCellDimension(3,1,0);this.setCellContent(3,"")}this._separatorBorder=null;this.setAppearance("toolbar-button");this.removeEventListener($[9],this._onKeyDown);this.removeEventListener($[34],this._onKeyUp)},properties:{dropDownArrow:{apply:"_applyDropDownArrow",nullable:true,themeable:true},separatorBorder:{nullable:true,init:null,apply:$[522],themeable:true}},events:{dropDownClicked:$[11]},members:{_CELLORDER:[$[14],$[14],$[67],$[67],$[14]],_onKeyPress:function(a){this.getParent().dispatchEvent(a);arguments.callee.base.call(this,a)},_onMouseDown:function(a){if(a.getTarget()==this&&a.isLeftButtonPressed()){this.removeState($[29]);if(this._isDropdownClick(a)){this._onDropDownClick()}else{this.addState($[12])}}},_isDropdownClick:function(e){var a=false;var d=this.getCellNode(3);if(d!=null){var c=rwt.html.Location.getLeft(d);var b=e.getClientX();a=b>c}return a},_onDropDownClick:function(){if(!rwt.remote.EventUtil.getSuspended()&&this._hasSelectionListener&&this._sendEvent){rwt.remote.EventUtil.notifySelected(this,0,0,0,0,"arrow")}this.dispatchSimpleEvent("dropDownClicked")},_applyDropDownArrow:function(e,c){var b=e?e[0]:null;var d=e?e[1]:0;var a=e?e[2]:0;this.setCellContent(4,b);this.setCellDimension(4,d,a)},_applySeparatorBorder:function(b,a){this._queueSeparatorBorder(b)},_queueSeparatorBorder:function(a){this._separatorBorder=a;this.addToQueue($[373])},_beforeRenderLayout:function(h){if(this._isDropDown){if(h.layoutY){var g=this.getPaddingTop()+this.getPaddingBottom();this._setCellHeight(3,this.getInnerHeight()+g)}if(h.layoutX){var l=this.getInnerWidth();this._setCellWidth(0,0);this._setCellWidth(2,null);var j=this.getPreferredInnerWidth();var i=l-j;if(i>0){var b=this.getSpacing();if((i>(b*2))&&this.getHorizontalChildrenAlign()!="left"){var e=Math.round(i*0.5)-b;var f=Math.round(i*0.5);this.setCellWidth(0,e);this.setCellWidth(2,this.getCellWidth(2)+f)}else{this.setCellWidth(2,this.getCellWidth(2)+i)}}}if(h.separatorBorder){var c=this.getCellNode(3).style;var a=this._separatorBorder.getWidthLeft();var k=this._separatorBorder.getStyleLeft();var d=this._separatorBorder.getColorLeft();c.borderLeftWidth=(a||0)+"px";c.borderLeftStyle=k||"none";c.borderLeftColor=d||""}}},_renderCellLayoutY:function(a){arguments.callee.base.call(this,a);if(this._isDropDown&&a==3){this.getCellNode(a).style.top=0}}}}); rwt.qx.Class.define($[542],{extend:rwt.widgets.base.Parent,construct:function(){arguments.callee.base.call(this);this._createFrameObject();this._createLegendObject();this.setLegend("");this.remapChildrenHandlingTo(this._frameObject);this.setOverflow($[10]);var b=new rwt.theme.ThemeValues({});this._themeBackgroundColor=b.getCssColor("Group-Label",$[338]);b.dispose();var a=this.getLegendObject().getLabelObject();if(a==null){this.setLegend($[277]);this.setLegend("")}a=this.getLegendObject().getLabelObject();a.setMode("html");this.addEventListener($[168],this._onChangeBackgroundColor,this);this.addEventListener($[100],this._onChangeFont,this);this.getLegendObject().addEventListener($[3],this._onMouseOver,this);this.getLegendObject().addEventListener($[6],this._onMouseOut,this);rwt.widgets.base.Widget.disableScrolling(this)},destruct:function(){this.removeEventListener($[168],this._onChangeBackgroundColor,this);this.removeEventListener($[100],this._onChangeFont,this);this.getLegendObject().removeEventListener($[3],this._onMouseOver,this);this.getLegendObject().removeEventListener($[6],this._onMouseOut,this);this._disposeObjects("_legendObject","_frameObject")},properties:{appearance:{refine:true,init:"group-box"}},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[38]){this._legendObject.addState(a);this._frameObject.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[38]){this._legendObject.removeState(a);this._frameObject.removeState(a)}},_onChangeBackgroundColor:function(a){var b=a.getValue();if(this._themeBackgroundColor===$[7]){this.getLegendObject().setBackgroundColor(b)}},_onChangeFont:function(b){var a=b.getValue();this.getLegendObject().setFont(a)},_onMouseOver:function(a){this.getLegendObject().addState("over");this.getFrameObject().addState("over")},_onMouseOut:function(a){this.getLegendObject().removeState("over");this.getFrameObject().removeState("over")},_layoutPost:function(a){arguments.callee.base.call(this,a);this._frameObject._layoutPost(a)},applyObjectId:function(b){arguments.callee.base.call(this,b);if(rwt.widgets.base.Widget._renderHtmlIds){var a=this.getLegendObject().getLabelObject();a.setHtmlAttribute("id",b+"-label")}},_createLegendObject:function(){this._legendObject=new rwt.widgets.base.Atom();this._legendObject.setAppearance("group-box-legend");this.add(this._legendObject)},_createFrameObject:function(){this._frameObject=new rwt.widgets.base.Parent();this._frameObject.setAppearance("group-box-frame");this.add(this._frameObject)},getFrameObject:function(){return this._frameObject},getLegendObject:function(){return this._legendObject},setLegend:function(a){if(a!==""&&a!==null){this._legendObject.setLabel(a);this._legendObject.setDisplay(true)}else{this._legendObject.setDisplay(false)}},getLegend:function(){return this._legendObject.getLabel()},setIcon:function(a){this._legendObject.setIcon(a)},getIcon:function(){this._legendObject.getIcon()}}}); rwt.remote.HandlerRegistry.add($[542],{factory:function(b){var a=new rwt.widgets.Group();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"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({text:function(c,b){var a=rwt.util.Encoding;var d=a.escapeText(b,true);c.setLegend(d)}}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define($[387],{extend:rwt.widgets.base.Window,include:rwt.animation.VisibilityAnimationMixin,construct:function(b){arguments.callee.base.call(this);this.setShowMinimize(b.MIN===true);this.setAllowMinimize(b.MIN===true);this.setShowMaximize(b.MAX===true);this.setAllowMaximize(b.MAX===true);this.setShowClose(b.CLOSE===true);this.setAllowClose(b.CLOSE===true);this.setResizableWest(b.RESIZE===true);this.setResizableNorth(b.RESIZE===true);this.setResizableEast(b.RESIZE===true);this.setResizableSouth(b.RESIZE===true);this.setOverflow($[10]);this.setRestrictToPageOnOpen(false);this._captionTitle.setMode("html");this._activeControl=null;this._focusControl=null;this._parentShell=null;this._renderZIndex=true;this._hasResizeListener=false;this._hasMoveListener=false;this.addEventListener($[451],this._onChangeActiveChild);this.addEventListener($[238],this._onChangeFocusedChild);this.addEventListener($[491],this._onChangeActive);this.addEventListener("changeMode",this._onChangeMode);this.addEventListener($[276],this._onChangeLocation,this);this.addEventListener("changeTop",this._onChangeLocation,this);this.addEventListener($[71],this._onChangeSize,this);this.addEventListener($[76],this._onChangeSize,this);this.addEventListener($[9],this._onKeydown);var a=rwt.remote.Server.getInstance();a.addEventListener("send",this._onSend,this);this.getCaptionBar().setWidth("100%");this.removeEventListener($[1],this._onwindowmousedown);this.addEventListener($[65],this._onCreate,this);this.__onwindowmousedown=rwt.util.Functions.bind(this._onwindowmousedown,this);this.addToDocument()},statics:{TOP_LEFT:"topLeft",TOP_RIGHT:"topRight",BOTTOM_LEFT:"bottomLeft",BOTTOM_RIGHT:$[475],CORNER_NAMES:["topLeft","topRight","bottomLeft",$[475]],_onParentClose:function(a){if(!rwt.remote.EventUtil.getSuspended()){this.doClose()}},reorderShells:function(c){var g=rwt.util.Objects.getValues(c.getAll());g=g.sort(rwt.widgets.Shell._compareShells);var f=g.length;var e=null;if(f>0){var b=g[0].getTopLevelWidget();var a=rwt.widgets.Shell.MIN_ZINDEX;for(var d=0;dthis.getZIndex()){this.setActive(false);a.setActive(true)}}},_onChangeMode:function(a){var c=a.getValue();var e=rwt.remote.WidgetManager.getInstance();var d=e.findIdByWidget(a.getTarget());var b=rwt.remote.Server.getInstance();b.addParameter(d+".mode",c)},_onChangeSize:function(a){if(!rwt.remote.EventUtil.getSuspended()){this._sendBounds();if(this._hasResizeListener){var b=rwt.remote.Server.getInstance();b.getRemoteObject(this).notify("Resize",{})}}},_onChangeLocation:function(a){if(!rwt.remote.EventUtil.getSuspended()){this._sendBounds();if(this._hasMoveListener){var b=rwt.remote.Server.getInstance();b.getRemoteObject(this).notify("Move",{})}}},_sendBounds:function(){var e=rwt.remote.Server.getInstance();var d=this._parseNumber(this.getLeft());var c=this._parseNumber(this.getTop());var a=this._parseNumber(this.getHeightValue());var b=this._parseNumber(this.getWidthValue());e.getRemoteObject(this).set($[86],[d,c,b,a])},_parseNumber:function(b){var a=parseInt(b,10);return isNaN(a)?0:a},_onKeydown:function(a){var c=a.getKeyIdentifier();if(c==$[49]&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isCtrlPressed()&&!a.isMetaPressed()){var b=this.getDefaultButton();if(b!=null&&b.isSeeable()){b.execute()}}else{if(c==$[104]&&this._parentShell!=null){this.close()}}},_onSend:function(a){if(this.getActive()){var c=this.getFocusedChild();if(c!=null&&c!=this._focusControl){this._focusControl=c;var f=rwt.remote.WidgetManager.getInstance();var b=f.findIdByWidget(c);var d=rwt.remote.Server.getInstance();var e=d.getRemoteObject(rwt.widgets.Display.getCurrent());e.set($[450],b)}}},_getParentControl:function(c){var b=rwt.remote.WidgetManager.getInstance();var a=c;while(a!=null&&!b.isControl(a)){if(a.getParent){a=a.getParent()}else{a=null}}return a},isDialogOf:function(c){var a=false;var b=this._parentShell;while(!a&&b!=null){a=c===b;b=b._parentShell}return a},getTopLevelShell:function(){var a=this;while(a._parentShell!=null){a=a._parentShell}return a},_sendTo:function(){rwt.widgets.Shell.reorderShells(this.getWindowManager())},bringToFront:function(){var a=this;while(a._parentShell!=null){a=a._parentShell}this._setRenderZIndex(false);this.setZIndex(rwt.widgets.Shell.MAX_ZINDEX+1);a.setZIndex(rwt.widgets.Shell.MAX_ZINDEX+1);rwt.widgets.Shell.reorderShells(this.getWindowManager());this._setRenderZIndex(true)},_applyZIndex:function(b,a){if(this._renderZIndex){arguments.callee.base.call(this,b,a)}},_setRenderZIndex:function(a){this._renderZIndex=a;if(a){this._applyZIndex(this.getZIndex())}},sendToBack:function(){var a=this;while(a._parentShell!=null){a=a._parentShell}this._setRenderZIndex(false);this.setZIndex(rwt.widgets.Shell.MIN_ZINDEX-1);a.setZIndex(rwt.widgets.Shell.MIN_ZINDEX-1);rwt.widgets.Shell.reorderShells(this.getWindowManager());this._setRenderZIndex(true)},setBlocked:function(a){if(a){if(!this._blocker){this._blocker=new rwt.widgets.base.Parent();this._blocker.setAppearance($[517]);this.add(this._blocker)}this._blocker.setSpace(0,0,10000,10000);this._blocker.setZIndex(1000)}else{if(this._blocker){this.remove(this._blocker);this._blocker.destroy();this._blocker=null}}},setFullScreen:function(a){if(a){this._captionBar.setDisplay(false)}else{this._captionBar.setDisplay(this.hasState("rwt_TITLE"))}}}}); rwt.remote.HandlerRegistry.add($[387],{factory:function(b){var d=rwt.remote.HandlerUtil;var c=d.createStyleMap(b.style);var a=new rwt.widgets.Shell(c);d.addStatesForStyles(a,b.style);a.setUserData($[22],true);d.callWithTarget(b.parentShell,function(e){if(e){a.setParentShell(e)}a.initialize()});return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["showMinimize","allowMinimize","showMaximize","allowMaximize","showClose","allowClose","resizable",$[14],"text","alpha",$[63],"mode","hasShellListener","minimumSize","defaultButton",$[449]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({bounds:function(b,a){if(!b.isDisableResize()){b.setLeft(a[0]);b.setTop(a[1]);b.setWidth(a[2]);b.setHeight(a[3])}},alpha:function(a,b){a.setOpacity(b/255)},defaultButton:function(a,b){rwt.remote.HandlerUtil.callWithTarget(b,function(c){a.setDefaultButton(c)})},activeControl:function(a,b){rwt.remote.HandlerUtil.callWithTarget(b,function(c){a.setActiveControl(c)})},mode:function(a,c){var b=c==="fullscreen";a.setMode(b?$[69]:c);a.setFullScreen(b)},minimumSize:function(a,b){a.setMinWidth(b[0]);a.setMinHeight(b[1])},text:function(a,b){var c=rwt.util.Encoding.escapeText(b,false);a.setCaption(c)},image:function(a,b){if(b===null){a.setIcon(b)}else{a.setIcon(b[0])}},visibility:function(a,b){if(b){a.show()}else{a.hide()}rwt.widgets.Shell.reorderShells(a.getWindowManager())}}),listeners:rwt.remote.HandlerUtil.extendControlListeners([$[236],"Close","Resize","Move"]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define($[469],{extend:rwt.widgets.base.Parent,construct:function(){arguments.callee.base.call(this);this.setOverflow($[10]);this.setAppearance("progressbar");this.setState($[52]);this._timer=null;this._gfxCanvasAppended=false;this._canvas=null;this._backgroundShape=null;this._indicatorShape=null;this._borderShape=null;this._useBorderShape=false;this._gfxBorderWidth=0;this._indicatorVirtualPosition=0;this._separatorStartShape=null;this._separatorEndShape=null;this._useSeparator=false;this._separatorWidth=0;this._minimum=0;this._maximum=100;this._selection=0},destruct:function(){if(this._timer!=null){this._timer.stop();this._timer.dispose()}this._timer=null;this._canvas=null;this._backgroundShape=null;this._indicatorShape=null;this._borderShape=null;this._separatorStartShape=null;this._separatorEndShape=null},statics:{UNDETERMINED_SIZE:40},events:{minimumChanged:$[11],maximumChanged:$[11],selectionChanged:$[11]},properties:{indicatorColor:{nullable:true,init:null,apply:$[237],themeable:true},indicatorImage:{nullable:true,init:null,apply:$[237],themeable:true},indicatorGradient:{nullable:true,init:null,apply:$[237],themeable:true},indicatorOpacity:{nullable:true,init:1,apply:$[237],themeable:true},backgroundImageSized:{nullable:true,init:null,apply:"_applyBackgroundImageSized",themeable:true},separatorBorder:{nullable:true,init:null,apply:$[522],themeable:true}},members:{setMinimum:function(a){this._minimum=a;this.dispatchSimpleEvent($[404])},setMaximum:function(a){this._maximum=a;this.dispatchSimpleEvent($[433])},setSelection:function(a){this._selection=a;this.addToQueue("indicatorSelection");this.dispatchSimpleEvent($[282])},addState:function(a){if(a===$[473]){this._timer=new rwt.client.Timer(120);this._timer.addEventListener($[27],this._onInterval,this);this._timer.start()}arguments.callee.base.call(this,a)},setState:function(a){if(a==$[134]){this.removeState($[52]);this.removeState("paused");this.addState($[134])}else{if(a=="paused"){this.removeState($[52]);this.removeState($[134]);this.addState("paused")}else{this.removeState($[134]);this.removeState("paused");this.addState($[52])}}},_isIndeterminate:function(){return this.hasState($[473])},_isHorizontal:function(){return this.hasState($[382])},_isVertical:function(){return this.hasState($[224])},_queueBorder:function(a){this.addToQueue("indicatorBorder");if(a&&a.getStyle()===$[84]){this._cachedBorderTop=0;this._cachedBorderRight=0;this._cachedBorderBottom=0;this._cachedBorderLeft=0;this._invalidateFrameDimensions()}else{arguments.callee.base.call(this,a)}},_applyBackgroundColor:function(a){if(this._gfxCanvasAppended){this._styleBackgroundFill()}},_applyBackgroundGradient:function(a){if(this._gfxCanvasAppended){this._styleBackgroundFill()}},_applyBackgroundImage:function(a){},_applyBackgroundImageSized:function(a){if(this._gfxCanvasAppended){this._styleBackgroundFill()}},_applyIndicatorFill:function(a){if(this._gfxCanvasAppended){this._styleIndicatorFill()}},_applySeparatorBorder:function(a){this.addToQueue($[373])},_onCanvasAppear:function(){rwt.graphics.GraphicsUtil.handleAppear(this._canvas)},_onInterval:function(){if(this.isSeeable()){this._renderIndicatorSelection()}},_layoutPost:function(b){if(!this._gfxCanvasAppended){this._createCanvas()}var a=b.width||b.height||b.frameWidth||b.frameHeight||b.initial;if(b.separatorBorder){this._styleSeparatorBorder()}if(b.indicatorBorder){this._styleIndicatorBorder()}if(b.indicatorBorder||a){this._renderDimension();this._renderIndicatorSelection()}else{if(b.indicatorSelection||b.separatorBorder){this._renderIndicatorSelection()}}},_createCanvas:function(){var a=rwt.graphics.GraphicsUtil;this._canvas=a.createCanvas();this._getTargetNode().appendChild(a.getCanvasNode(this._canvas));this._gfxCanvasAppended=true;this.addEventListener($[140],this._onCanvasAppear);this._backgroundShape=a.createShape($[154]);this._indicatorShape=a.createShape($[154]);a.addToCanvas(this._canvas,this._backgroundShape);a.addToCanvas(this._canvas,this._indicatorShape);this._styleBackgroundFill();this._styleIndicatorFill();if(this.isSeeable()){this._onCanvasAppear()}},_styleIndicatorBorder:function(){var b=rwt.graphics.GraphicsUtil;if(this.getBorder()&&this.getBorder().getStyle()===$[84]){if(!this._useBorderShape){this._style.border="";if(this._borderShape==null){this._borderShape=b.createShape($[154])}b.addToCanvas(this._canvas,this._borderShape);this._useBorderShape=true}this._gfxBorderWidth=this._getMaxBorderWidth(this.getBorder());var a=this.getBorder().getColor();b.setStroke(this._borderShape,a,this._gfxBorderWidth)}else{if(this._useBorderShape){b.removeFromCanvas(this._canvas,this._borderShape);this._useBorderShape=true;this._gfxBorderWidth=0}}},_styleSeparatorBorder:function(){var c=rwt.graphics.GraphicsUtil;var b=this.getSeparatorBorder();if(b!=null){if(!this._useSeparator){if(this._isIndeterminate()){if(this._separatorStartShape==null){this._separatorStartShape=c.createShape("rect")}c.addToCanvas(this._canvas,this._separatorStartShape)}if(this._separatorEndShape==null){this._separatorEndShape=c.createShape("rect")}c.addToCanvas(this._canvas,this._separatorEndShape);this._useSeparator=true}this._separatorWidth=this._getMaxBorderWidth(b);var a=b.getColorTop();c.setFillColor(this._separatorEndShape,a);if(this._isIndeterminate()){c.setFillColor(this._separatorStartShape,a)}}else{if(this._useSeparator){c.removeFromCanvas(this._canvas,this._separatorEndShape);this._useSeparator=false;if(this._isIndeterminate()){c.removeFromCanvas(this._canvas,this._separatorStartShape)}this._separatorWidth=0}}},_getMaxBorderWidth:function(a){var b=0;b=Math.max(b,a.getWidthTop());b=Math.max(b,a.getWidthLeft());b=Math.max(b,a.getWidthRight());b=Math.max(b,a.getWidthBottom());return b},_styleIndicatorFill:function(){var a=rwt.graphics.GraphicsUtil;if(this.getIndicatorImage()!=null&&this.getIndicatorImage()[0]!=null){var b=this.getIndicatorImage();a.setFillPattern(this._indicatorShape,b[0],b[1],b[2])}else{if(this.getIndicatorGradient()!=null){a.setFillGradient(this._indicatorShape,this.getIndicatorGradient())}else{a.setFillColor(this._indicatorShape,this.getIndicatorColor())}}a.setOpacity(this._indicatorShape,this.getIndicatorOpacity())},_styleBackgroundFill:function(){var a=rwt.graphics.GraphicsUtil;if(this.getBackgroundImageSized()!=null&&this.getBackgroundImageSized()[0]!=null){var b=this.getBackgroundImageSized();a.setFillPattern(this._backgroundShape,b[0],b[1],b[2])}else{if(this.getBackgroundGradient()!=null){a.setFillGradient(this._backgroundShape,this.getBackgroundGradient())}else{a.setFillColor(this._backgroundShape,this.getBackgroundColor())}}},_renderDimension:function(){var b=rwt.graphics.GraphicsUtil;var d=[0,0,0,0];var c=this.getInnerWidth();var a=this.getInnerHeight();if(this._useBorderShape){d=this.getBorder().getRadii();b.setRoundRectLayout(this._borderShape,this._gfxBorderWidth/2,this._gfxBorderWidth/2,c-this._gfxBorderWidth,a-this._gfxBorderWidth,d)}b.setRoundRectLayout(this._backgroundShape,this._gfxBorderWidth/2,this._gfxBorderWidth/2,c-this._gfxBorderWidth,a-this._gfxBorderWidth,d)},_renderIndicatorSelection:function(){var k=rwt.graphics.GraphicsUtil;var c=this._getIndicatorVirtualPosition();var g=Math.max(c,0);var b=this._getIndicatorLength(c);if(b>0){var f=this._getIndicatorRadii(g,b);var h=g;var i=b;if(g+b==this._getIndicatorFullLength()){i+=this._gfxBorderWidth/2}else{i+=this._separatorWidth}if(h===0){h+=this._gfxBorderWidth/2;i+=this._gfxBorderWidth/2}else{h+=this._gfxBorderWidth}var e=this._isVertical();var a=e?this.getInnerWidth()-this._gfxBorderWidth:i;var m=e?i:this.getInnerHeight()-this._gfxBorderWidth;var l=e?this.getInnerHeight()-(h+i):this._gfxBorderWidth/2;var d=e?this._gfxBorderWidth/2:h;var j=this._indicatorShape;k.setDisplay(this._indicatorShape,true);k.setRoundRectLayout(j,d,l,a,m,f)}else{k.setDisplay(this._indicatorShape,false)}if(this._useSeparator){this._renderSeparator(g,b)}},_renderSeparator:function(d,b){var i=rwt.graphics.GraphicsUtil;var g=b+d==this._getIndicatorFullLength();if(b===0){i.setDisplay(this._separatorEndShape,false);if(this._isIndeterminate()){i.setDisplay(this._separatorStartShape,false)}}else{i.setDisplay(this._separatorEndShape,!g);if(this._isIndeterminate()){i.setDisplay(this._separatorStartShape,d!==0)}var e=d+this._gfxBorderWidth-this._separatorWidth;var f=b+2*this._separatorWidth;if(this._isVertical()){var c=this._gfxBorderWidth;var j=this.getInnerHeight()-(f+e);var a=this.getInnerWidth()-2*this._gfxBorderWidth;var k=this._separatorWidth;var h=this._separatorEndShape;if(!g){i.setRectBounds(h,c,j,a,k)}if(d!==0){j=this.getInnerHeight()-e-this._separatorWidth;h=this._separatorStartShape;i.setRectBounds(h,c,j,a,k)}}else{var c=e+f-this._separatorWidth;var j=this._gfxBorderWidth;var a=this._separatorWidth;var k=this.getInnerHeight()-2*this._gfxBorderWidth;var h=this._separatorEndShape;if(!g){i.setRectBounds(h,c,j,a,k)}if(d!==0){c=e;h=this._separatorStartShape;i.setRectBounds(h,c,j,a,k)}}}},_getIndicatorLength:function(c){var a=this._getIndicatorVirtualLength();var e=this._getIndicatorFullLength();if(this._isIndeterminate()){if(c<0){a+=c}if((c+a)>e){a=e-c}}else{if(this._useBorderShape){var d=this._getIndicatorMinSafeLength();var b=this._getIndicatorMaxSafeLength();if(a0){a=d}else{a=0}}if(a>b&&a0&&c0&&ad&&cd){a=-e}}else{if(a>=f){a=-e}}this._indicatorVirtualPosition=a;return a},_getIndicatorRadii:function(b,d){var a=[0,0,0,0];if(this._useBorderShape&&d>0){var f=this.getBorder().getRadii();var c=b+d;var e=this._getIndicatorFullLength();if(this._isVertical()){if(b===0){a[2]=f[2];a[3]=f[3]}if(c==e){a[0]=f[0];a[1]=f[1]}}else{if(b===0){a[0]=f[0];a[3]=f[3]}if(c==e){a[1]=f[1];a[2]=f[2]}}}return a},_getIndicatorFullLength:function(){return this._isVertical()?this.getInnerHeight()-2*this._gfxBorderWidth:this.getInnerWidth()-2*this._gfxBorderWidth},_getIndicatorMinSafeLength:function(){var b=this.getBorder().getRadii();var a=this._isVertical()?Math.max(b[2],b[3]):Math.max(b[0],b[3]);a+=this._separatorWidth;a-=Math.floor(this._gfxBorderWidth/2);return a},_getIndicatorMaxSafeLength:function(){var c=this.getBorder().getRadii();var b=this._getIndicatorFullLength();var a=this._isVertical()?b-Math.max(c[0],c[1]):b-Math.max(c[1],c[2]);a-=this._separatorWidth;a+=Math.floor(this._gfxBorderWidth/2);return a}}}); rwt.remote.HandlerRegistry.add($[469],{factory:function(b){var a=new rwt.widgets.ProgressBar();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([$[264],$[265],$[60],"state"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({backgroundImage:function(b,a){if(a===null){b.resetBackgroundImageSized()}else{b.setBackgroundImageSized(a)}}}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define($[482],{extend:rwt.widgets.base.Parent,construct:function(){arguments.callee.base.call(this);this.setAppearance("link");this._text="";this._hasSelectionListener=false;this._hyperlinksHaveListeners=false;this._readyToSendChanges=true;this._focusedLinkIndex=-1;this._linksCount=0;this._link=new rwt.widgets.base.HtmlEmbed();this._link.setAppearance("link-text");this.add(this._link);this.setSelectable(false);this.setHideFocus(true);this.__onMouseDown=rwt.util.Functions.bindEvent(this._onMouseDown,this);this.__onMouseOver=rwt.util.Functions.bindEvent(this._onMouseOver,this);this.__onMouseOut=rwt.util.Functions.bindEvent(this._onMouseOut,this);this.__onKeyDown=rwt.util.Functions.bindEvent(this._onKeyDown,this);this.addEventListener($[36],this._onAppear,this);this.addEventListener($[179],this._onChangeEnabled,this);this.addEventListener($[4],this._onKeyPress);this.addEventListener($[120],this._onFocusOut);this._link.addEventListener($[335],this._onChangeHtml,this)},destruct:function(){this._removeEventListeners();delete this.__onMouseDown;delete this.__onMouseOver;delete this.__onMouseOut;delete this.__onKeyDown;this.removeEventListener($[36],this._onAppear,this);this.removeEventListener($[179],this._onChangeEnabled,this);this.removeEventListener($[4],this._onKeyPress);this.removeEventListener($[120],this._onFocusOut);this._link.removeEventListener($[335],this._onChangeHtml,this);this._link.dispose()},members:{_onAppear:function(a){this._link.setTabIndex(null);this._link.setHideFocus(true);this._applyHyperlinksStyleProperties();this._addEventListeners()},_onChangeHtml:function(a){this._applyHyperlinksStyleProperties();this._addEventListeners()},_applyTextColor:function(b,a){arguments.callee.base.call(this,b,a);this._applyHyperlinksStyleProperties()},_onChangeEnabled:function(a){this._applyHyperlinksStyleProperties();this._changeHyperlinksTabIndexProperty()},_getStates:function(){if(!this.__states){this.__states={}}return this.__states},addState:function(a){arguments.callee.base.call(this,a);this._link.addState(a)},removeState:function(a){arguments.callee.base.call(this,a);this._link.removeState(a)},setHasSelectionListener:function(a){this._hasSelectionListener=a},addText:function(a){this._text+=a},addLink:function(c,a){var b=this._getHyperlinkStyle(false);var e=rwt.remote.WidgetManager.getInstance();var d=e.findIdByWidget(this)+"#"+a;this._text+='";this._linksCount++},applyText:function(){this._link.setHtml(this._text);if(this._linksCount===0){this.setTabIndex(null)}else{this.setTabIndex(1)}},clear:function(){this._removeEventListeners();this._text="";this._linksCount=0;this._focusedLinkIndex=-1},_applyHyperlinksStyleProperties:function(){var c=this._getHyperlinkStyle(false);var a=this._getHyperlinkElements();for(var b=0;b0&&!this._hyperlinksHaveListeners){for(var b=0;b0&&this._hyperlinksHaveListeners){for(var b=0;b0){this._setFocusedLink(0)}},_onKeyPress:function(a){if(this.isFocused()&&a.getKeyIdentifier()==="Tab"&&this._linksCount>0){var b=this._focusedLinkIndex;if(!a.isShiftPressed()&&b>=0&&b0&&b<=this._linksCount-1){a.stopPropagation();a.preventDefault();this._setFocusedLink(b-1)}}}}},_onFocusOut:function(a){this._setFocusedLink(-1)},_setFocusedLink:function(a){var b=this._getFocusedHyperlinkElement();if(b!==null){b.blur();b.style.outline="none"}this._focusedLinkIndex=a;b=this._getFocusedHyperlinkElement();if(b!==null){b.focus();b.style.outline="1px dotted"}},_getFocusedHyperlinkElement:function(){var a=null;var c=this._getHyperlinkElements();var b=this._focusedLinkIndex;if(b>=0&&bd){c=this._selection+this._pageIncrement}else{c=this._selection-this._pageIncrement}this.setSelection(c);this._scheduleSendChanges()}},_onThumbMouseDown:function(b){var a;if(b.isLeftButtonPressed()){if(this._horizontal){a=b.getPageX()-rwt.html.Location.getLeft(this.getElement());this._thumbOffset=a-this._thumb.getLeft()}else{a=b.getPageY()-rwt.html.Location.getTop(this.getElement());this._thumbOffset=a-this._thumb.getTop()}this._thumb.setCapture(true)}},_onThumbMouseMove:function(b){var a;if(this._thumb.getCapture()){if(this._horizontal){a=b.getPageX()-rwt.html.Location.getLeft(this.getElement())}else{a=b.getPageY()-rwt.html.Location.getTop(this.getElement())}var c=this._getSelectionFromThumbPosition(a-this._thumbOffset);if(this._selection!=c){this.setSelection(c);this._scheduleSendChanges()}}},_onThumbMouseUp:function(a){this._thumb.setCapture(false)},_updateStep:function(){var a=rwt.widgets.Scale.PADDING+rwt.widgets.Scale.HALF_THUMB;if(this._horizontal){this._pxStep=(this.getWidth()-2*a)/(this._maximum-this._minimum)}else{this._pxStep=(this.getHeight()-2*a)/(this._maximum-this._minimum)}},_updateThumbPosition:function(){var a=rwt.widgets.Scale.PADDING+this._pxStep*(this._selection-this._minimum);if(this._horizontal){this._thumb.setLeft(a)}else{this._thumb.setTop(a)}},_getSelectionFromThumbPosition:function(a){var b=(a-rwt.widgets.Scale.PADDING)/this._pxStep+this._minimum;return this._normalizeSelection(Math.round(b))},_normalizeSelection:function(b){var a=b;if(bthis._maximum){a=this._maximum}return a},_scheduleSendChanges:function(){if(this._readyToSendChanges){this._readyToSendChanges=false;rwt.client.Timer.once(this._sendChanges,this,500)}},_sendChanges:function(){if(!rwt.remote.EventUtil.getSuspended()){var c=rwt.remote.WidgetManager.getInstance();var a=rwt.remote.Server.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+$[170],this._selection);if(this._hasSelectionListener){rwt.remote.EventUtil.notifySelected(this)}this._readyToSendChanges=true}},setHasSelectionListener:function(a){this._hasSelectionListener=a},setSelection:function(a){this._selection=this._normalizeSelection(a);this._updateThumbPosition();this.dispatchSimpleEvent($[282])},setMinimum:function(a){this._minimum=a;this._updateStep();this._updateThumbPosition();this.dispatchSimpleEvent($[404])},setMaximum:function(a){this._maximum=a;this._updateStep();this._updateThumbPosition();this.dispatchSimpleEvent($[433])},setIncrement:function(a){this._increment=a},setPageIncrement:function(a){this._pageIncrement=a},_visualizeFocus:function(){arguments.callee.base.call(this);this._thumb.addState($[75])},_visualizeBlur:function(){arguments.callee.base.call(this);this._thumb.removeState($[75])}}}); rwt.remote.HandlerRegistry.add($[487],{factory:function(b){var c=b.style.indexOf($[328])!=-1;var a=new rwt.widgets.Scale(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([$[264],$[265],$[60],$[309],$[312]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),listeners:rwt.remote.HandlerUtil.extendControlListeners([$[30]]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define("rwt.widgets.ToolItemSeparator",{extend:rwt.widgets.base.Parent,construct:function(b,a){arguments.callee.base.call(this);this._line=null;this._control=null;this._vertical=a;if(b){this._line=new rwt.widgets.base.Terminator();if(a){this._line.addState($[31])}this._line.setAppearance("toolbar-separator-line");this.add(this._line)}this.setStyleProperty($[184],"0px");this.setStyleProperty($[299],"0px")},properties:{appearance:{refine:true,init:"toolbar-separator"}},members:{_applyWidth:function(e,d){arguments.callee.base.call(this,e,d);if(this._line&&!this._vertical){var c=this._line.getWidth();var b=e*0.5;var a=Math.floor(b-(c*0.5));this._line.setLeft(a)}},_applyHeight:function(e,c){arguments.callee.base.call(this,e,c);if(this._line&&this._vertical){var d=this._line.getHeight();var a=e*0.5;var b=Math.floor(a-(d*0.5));this._line.setTop(b)}},setLineVisible:function(a){if(this._line){this._line.setVisibility(a)}}}}); rwt.qx.Class.define("rwt.theme.BorderDefinitions",{type:$[151],statics:{getDefinition:function(a){return this._definitions[a]},_definitions:{inset:{color:[$[19],$[33],$[33],$[19]],innerColor:[$[231],$[144],$[144],$[231]],width:2},thinInset:{color:[$[19],$[33],$[33],$[19]],width:1},outset:{color:[$[144],$[231],$[231],$[144]],innerColor:[$[33],$[19],$[19],$[33]],width:2},thinOutset:{color:[$[33],$[19],$[19],$[33]],width:1},groove:{color:[$[19],$[33],$[33],$[19]],innerColor:[$[33],$[19],$[19],$[33]],width:2},ridge:{color:[$[33],$[19],$[19],$[33]],innerColor:[$[19],$[33],$[33],$[19]],width:2},shadow:{width:1,color:[$[19],$[19],$[19],$[19]]},verticalDivider:{width:[1,0,1,0],color:[$[19],null,$[33],null]},horizontalDivider:{width:[0,1,0,1],color:[null,$[19],null,$[33]]},"separator.shadowin.horizontal.border":{width:[1,0,1,0],color:[$[144],null,$[33]]},"separator.shadowin.vertical.border":{width:[0,1,0,1],color:[null,$[33],null,$[144]]},"separator.shadowout.horizontal.border":{width:[1,0,1,0],color:[$[33],null,$[19],null]},"separator.shadowout.vertical.border":{width:[0,1,0,1],color:[null,$[19],null,$[33]]}}}}); rwt.qx.Class.define("rwt.widgets.base.BasicList",{extend:rwt.widgets.base.Scrollable,construct:function(b){arguments.callee.base.call(this,new rwt.widgets.base.VerticalBoxLayout());this.setAppearance("list");this.setTabIndex(1);this._manager=new rwt.widgets.util.SelectionManager(this._clientArea);this.addEventListener($[3],this._onmouseover);this.addEventListener($[1],this._onmousedown);this.addEventListener($[5],this._onmouseup);this.addEventListener($[4],this._onkeypress);this.addEventListener($[4],this._onkeyinput);this.initOverflow();this.initTabIndex();this._pressedString="";this._lastKeyPress=0;this._itemWidth=0;this._itemHeight=0;this._markupEnabled=false;var a=this.getManager();a.setMultiSelection(b);a.setDragSelection(false);this.addEventListener($[48],this._ondblclick,this)},destruct:function(){this.removeEventListener($[48],this._ondblclick,this);this._disposeObjects($[285])},members:{setMarkupEnabled:function(a){this._markupEnabled=a},getManager:function(){return this._manager},getPreferredWidth:function(){var b=0;var c=this.getItems();for(var d=0;d1000){this._pressedString=""}this._pressedString+=String.fromCharCode(d.getCharCode());var a=this.findString(this._pressedString,null);if(a){var c=this._manager._getChangeValue();var b=this._manager.getFireChange();this._manager.setFireChange(false);this._manager._deselectAll();this._manager.setItemSelected(a,true);this._manager.setAnchorItem(a);this._manager.setLeadItem(a);a.scrollIntoView();this._manager.setFireChange(b);if(b&&this._manager._hasChanged(c)){this._manager._dispatchChange()}}this._lastKeyPress=(new Date()).valueOf();d.preventDefault()}}},findString:function(b,a){return this._findItem(b,a||0)},_findItem:function(d,a){var b=this.getItems();if(a==null){a=b.indexOf(this.getSelectedItem());if(a==-1){a=0}}for(var c=a;ce.length){b=this._clientArea.getLastChild();b.removeEventListener($[3],this._onListItemMouseOver,this);b.removeEventListener($[6],this._onListItemMouseOut,this);b._isDisplayable=true;b.destroy()}c.setSelectedItems(a);c.setLeadItem(k);if(c.getMultiSelection()){c.setAnchorItem(g)}this._updateScrollDimension()},_escapeItems:function(b){var a=b;if(!this._markupEnabled){var c=rwt.util.Encoding;for(var d=0;df-e){e=b.top-c}this._list.setLocation(d,e);this._list.setWidth(i);this._list.setHeight(c);this._list.setItemDimensions(i,this._itemHeight)}},_toggleListVisibility:function(){if(this._list.getItemsCount()){if(this._editable){this._field.setReadOnly(!this._dropped)}if(!this._dropped){this._bringToFront()}this.setCapture(!this._dropped);this._list.setDisplay(!this._dropped);if(this._list.getDisplay()){this._setListBounds()}this._dropped=!this._dropped;if(this._dropped){this._setListSelection(this._selected)}this._updateListScrollBar();this._updateListVisibleRequestParam()}},_updateListScrollBar:function(){if(this._dropped){var a=this._list.getItemsCount()*this._itemHeight;var b=this._getListMaxHeight()this._list.getZIndex()){this._list.setZIndex(b+1)}},_setSelected:function(b){this._selected=b;if(b){var a=b.getLabel().toString();this.setText(this._formatText(a));if(this._field.isCreated()){if(!rwt.remote.EventUtil.getSuspended()){this._field.selectAll();this._handleSelectionChange()}}this._setListSelection(b);this._manager.scrollItemIntoView(b)}else{if(!this._editable){this.setText("")}this._resetListSelection()}this._sendWidgetSelected();this.dispatchSimpleEvent($[282])},_scrollItemIntoView:function(b,a){if(b.isCreated()&&b.isDisplayable()){b.scrollIntoView(a)}},_formatText:function(b){var a=b;a=a.replace(/<[^>]+?>/g,"");a=rwt.util.Encoding.unescape(a);return a},_reDispatch:function(b){var a=b.getTarget();if(this._list.contains(a)){a.dispatchEvent(b,false);b.stopPropagation()}},_onMouseDown:function(a){if(a.isLeftButtonPressed()){if(a.getTarget()==this._field){if(!this._editable||this._dropped){this._toggleListVisibility()}}else{if(this._dropped){this._reDispatch(a)}}}},_onMouseClick:function(a){if(a.isLeftButtonPressed()){if(this._button.hasState("over")){this._button.removeState("over")}var b=a.getTarget();if(b instanceof rwt.widgets.ListItem&&b===this._list.getListItemTarget(b)){this._reDispatch(a);this._toggleListVisibility();this._setSelected(this._manager.getSelectedItem());this.setFocused(true)}else{if(b==this._button||(this._dropped&&b!=this&&b!=this._field&&!this._list.contains(b))){this._toggleListVisibility()}}}},_onMouseUp:function(a){if(!this._dropped){this.setCapture(false)}if(a.getTarget()==this._field&&!rwt.remote.EventUtil.getSuspended()){this._handleSelectionChange()}else{if(this._dropped){this._reDispatch(a)}}},_onMouseWheel:function(a){if(this._dropped){if(!this._list.isRelevantEvent(a)){a.preventDefault();a.stopPropagation()}}else{if(this.getFocused()){a.preventDefault();a.stopPropagation();var c;var b=this._selected;if(b){if(a.getWheelDelta()<0){c=this._manager.getNext(b)}else{c=this._manager.getPrevious(b)}if(c){this._setSelected(c)}}else{if(this._list.getItemsCount()){this._setSelected(this._list.getItems()[0])}}}}},_onMouseOver:function(a){var b=a.getTarget();if(b instanceof rwt.widgets.ListItem&&!this._blockMouseOver){this._setListSelection(b)}else{if(b==this._button){this._button.addState("over")}}},_onMouseMove:function(a){var b=a.getTarget();if(b instanceof rwt.widgets.ListItem&&this._manager.getSelectedItem()!==a.getTarget()){this._onMouseOver(a)}},_onMouseOut:function(a){if(a.getTarget()==this._button){this._button.removeState("over")}},_setupCaptureRestore:function(){var a=this._list._vertScrollBar._thumb;a.addEventListener($[5],this._captureRestore,this)},_captureRestore:function(a){this.setCapture(true)},_onKeyDown:function(a){switch(a.getKeyIdentifier()){case $[49]:if(this._dropped){this._toggleListVisibility();this._setSelected(this._manager.getSelectedItem())}else{if(!a.isShiftPressed()&&!a.isAltPressed()&&!a.isCtrlPressed()&&!a.isMetaPressed()){this._sendWidgetDefaultSelected()}}this.setFocused(true);a.stopPropagation();break;case $[104]:if(this._dropped){this._toggleListVisibility()}this.setFocused(true);a.stopPropagation();break;case"Down":case"Up":case $[40]:case $[45]:if(a.isAltPressed()){this._toggleListVisibility()}else{if(this._selected||this._manager.getSelectedItem()){this._list._onkeypress(a);var b=this._manager.getSelectedItem();this._setSelected(b)}else{if(this._list.getItemsCount()){this._setSelected(this._list.getItems()[0])}}}break}if(this._field.isCreated()&&!rwt.remote.EventUtil.getSuspended()){this._handleSelectionChange()}},_onKeyPress:function(a){switch(a.getKeyIdentifier()){case $[104]:case"Down":case"Up":case $[40]:case $[45]:a.stopPropagation();break;case"Tab":if(this._dropped){this._toggleListVisibility()}break;case $[35]:if(this._dropped){var b=this._selected?this._manager.getNext(this._selected):this._manager.getFirst();if(b){this._setSelected(b)}}break;case"Left":if(this._dropped){var b=this._selected?this._manager.getPrevious(this._selected):this._manager.getLast();if(b){this._setSelected(b)}}break;case $[49]:a.preventDefault();break}if(this._field.isCreated()&&!rwt.remote.EventUtil.getSuspended()){this._handleSelectionChange()}if(a.getCharCode()!==0){this._onKeyInput(a)}},_onKeyInput:function(a){if((this._dropped||!this._editable)&&!a.isAltPressed()&&!a.isCtrlPressed()){this._list._onkeyinput(a);var b=this._manager.getSelectedItem();if(b!=null){this._setSelected(b)}else{this._setListSelection(this._selected)}}},_onTextInput:function(a){if(this._editable){this._isModified=true;this._selected=null;this._resetListSelection();if(!rwt.remote.EventUtil.getSuspended()){var b=rwt.remote.Server.getInstance();b.addEventListener("send",this._onSend,this);if(this._hasModifyListener){rwt.client.Timer.once(this._sendModifyText,this,500)}}}},_onTextBlur:function(a){if(!rwt.remote.EventUtil.getSuspended()&&this._isModified){var b=rwt.remote.Server.getInstance();b.send()}},_onSend:function(a){var d=rwt.remote.WidgetManager.getInstance();var c=d.findIdByWidget(this);var b=rwt.remote.Server.getInstance();b.addParameter(c+".text",this._field.getComputedValue());b.removeEventListener("send",this._onSend,this);this._isModified=false;this.setText(this._field.getComputedValue())},_sendModifyText:function(){var a=rwt.remote.Server.getInstance();a.getRemoteObject(this).notify("Modify");this._isModified=false},_sendWidgetSelected:function(){if(!rwt.remote.EventUtil.getSuspended()){var e=rwt.remote.WidgetManager.getInstance();var b=rwt.remote.Server.getInstance();var d=e.findIdByWidget(this);var c=this._list;var a=this._list.getSelectedItem();b.addParameter(d+".selectionIndex",c.getItemIndex(a));if(this._hasSelectionListener){rwt.remote.EventUtil.notifySelected(this)}if(this._hasModifyListener){this._sendModifyText()}}},_sendWidgetDefaultSelected:function(){if(this._hasDefaultSelectionListener&&!rwt.remote.EventUtil.getSuspended()){rwt.remote.EventUtil.notifyDefaultSelected(this)}},_updateListVisibleRequestParam:function(){if(!rwt.remote.EventUtil.getSuspended()){var c=rwt.remote.WidgetManager.getInstance();var a=rwt.remote.Server.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+".listVisible",this._list.getDisplay())}},_handleSelectionChange:function(){var c=this._field.getComputedSelection();var f=c[0];if(f===undefined){f=0}var b=c[1]-c[0];if(typeof b==$[7]){b=0}if(this._selectionStart!=f||this._selectionLength!=b){var e=rwt.remote.WidgetManager.getInstance();var d=e.findIdByWidget(this);var a=rwt.remote.Server.getInstance();this._selectionStart=f;a.addParameter(d+".selectionStart",f);this._selectionLength=b;a.addParameter(d+".selectionLength",b)}},_getListMaxHeight:function(){return this._itemHeight*this._visibleItemCount},setItems:function(a){this._list.setItems(a);this.createDispatchEvent($[545])},setVisibleItemCount:function(a){this._visibleItemCount=a},setItemHeight:function(a){this._itemHeight=a},select:function(b){var a=this._list.getItems();var c=null;if(b>=0&&b<=a.length-1){c=a[b]}this._setSelected(c)},setEditable:function(a){this._editable=a;this._field.setReadOnly(!a);this._field.setCursor(a?null:$[62])},setListVisible:function(a){if(this._list.getDisplay()!=a){this._dropped=!a;this._toggleListVisibility()}},setText:function(a){this._field.setValue(a)},setTextSelection:function(b,a){if(this._field.isCreated()){this._selectionStart=b;this._selectionLength=a;this._field.setSelection(b,b+a)}},setTextLimit:function(a){this._field.setMaxLength(a)},setHasSelectionListener:function(a){this._hasSelectionListener=a},setHasDefaultSelectionListener:function(a){this._hasDefaultSelectionListener=a},setHasModifyListener:function(a){this._hasModifyListener=a},applyObjectId:function(a){arguments.callee.base.call(this,a);if(rwt.widgets.base.Widget._renderHtmlIds){this._list.applyObjectId(a+"-listbox");this.addEventListener($[545],this._applyListItemIds)}},_applyListItemIds:function(){var a=this._list.getHtmlAttribute("id");var c=this._list.getItems();if(c){for(var b=0;b0&&f>0){this._context.save();this._context.translate(a,h);this._context.scale(1,f/g);this._context.arc(0,0,g,e,b,d);this._context.restore()}}}),_setProperty:function(a){var c=a[0];var b=a[1];if(b===$[506]){b=this._linearGradient}else{if(c==="fillStyle"||c===$[414]){b=rwt.util.Colors.rgbToRgbString(b)}else{if(c==="font"){b=this._toCssFont(b)}}}this._context[c]=b},_strokeText:function(a){this._fillText(a)},_fillText:function(c){var e=c[0]==="fillText";var f=this._escapeText(c[1],c[2],c[3],c[4]);var a=c[5];var g=c[6];var b=document.createElement("div");var d=b.style;d.position=$[16];d.left=a+"px";d.top=g+"px";d.color=this._context.strokeStyle;if(e){d.backgroundColor=this._context.fillStyle}if(this._context.font!==""&&this._context.font!=null){d.font=this._context.font}b.innerHTML=f;this._textCanvas.appendChild(b)},_escapeText:function(f,d,e,a){var b=rwt.util.Encoding;var g=b.escapeText(f,d);var c=e?$[96]:"";g=b.replaceNewLines(g,c);c=a?"    ":"";g=g.replace(/\t/g,c);return g},_drawImage:function(a){var b=a.slice(1);var f=b.length===3;var e=new Image();e.src=b[0];b[0]=e;if(e.complete||rwt.client.Client.isMshtml()){this._context.drawImage.apply(this._context,b)}else{var d=this._context.globalAlpha;var c=this._context;e.onload=function(){c.save();c.globalAlpha=d;c.drawImage.apply(c,b);c.restore()}}},_createLinearGradient:function(a){var b=this._context.createLinearGradient;this._linearGradient=b.apply(this._context,a.slice(1))},_addColorStop:function(a){this._linearGradient.addColorStop(a[1],rwt.util.Colors.rgbToRgbString(a[2]))},_toCssFont:function(b){var a="";if(b[3]){a+="italic "}if(b[2]){a+="bold "}a+=b[1]+"px ";a+=b[0].join(",");return a}}}); rwt.qx.Class.define("rwt.graphics.VMLCanvas",{extend:rwt.qx.Object,construct:function(a){this._autoDispose=false;arguments.callee.base.call(this);this._canvas=a;this._stateStack=[];this._currentPath=[];this.strokeStyle="#000000";this.fillStyle="#000000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=10;this.globalAlpha=1},destruct:function(){this._canvas=null},members:{save:function(){var a={};this._copyState(this,a);this._stateStack.push(a)},restore:function(){var a=this._stateStack.pop();this._copyState(a,this)},beginPath:function(){this._currentPath=[]},closePath:function(){this._currentPath.push({type:$[130]})},clearRect:function(b,d,c,a){rwt.graphics.VML.clearCanvas(this._canvas)},stroke:function(b){var a=rwt.graphics.VML.createShapeFromContext(this,b);rwt.graphics.VML.addToCanvas(this._canvas,a)},fill:function(){this.stroke(true)},moveTo:function(a,b){this._currentPath.push({type:"moveTo",x:a,y:b})},lineTo:function(a,b){this._currentPath.push({type:"lineTo",x:a,y:b})},quadraticCurveTo:function(c,b,a,d){this._currentPath.push({type:$[420],cp1x:c,cp1y:b,x:a,y:d})},bezierCurveTo:function(c,b,e,d,a,f){this._currentPath.push({type:$[425],cp1x:c,cp1y:b,cp2x:e,cp2y:d,x:a,y:f})},rect:function(b,d,c,a){this.moveTo(b,d);this.lineTo(b+c,d);this.lineTo(b+c,d+a);this.lineTo(b,d+a);this.closePath()},ellipse:function(i,h,b,a,j,f,c,g){if(this._currentPath.length===0){var e=i+Math.cos(f)*b;var d=h+Math.sin(f)*a;this.moveTo(e,d)}this._currentPath.push({type:"arc",anticlockwise:g,centerX:i,centerY:h,radiusX:b,radiusY:a,startAngle:f,endAngle:c})},arc:function(b,f,a,d,c,e){this.ellipse(b,f,a,a,0,d,c,e)},drawImage:function(){var g=rwt.graphics.VML.createShape($[14]);rwt.graphics.VML.setOpacity(g,this.globalAlpha);var b=arguments[0];if(arguments.length==3){var i=arguments[1];var h=arguments[2];rwt.graphics.VML.setImageData(g,b.src,i,h,b.width,b.height)}else{var f=arguments[1];var e=arguments[2];var c=arguments[3];var k=arguments[4];var i=arguments[5];var h=arguments[6];var j=arguments[7];var a=arguments[8];var d=[e/b.height,(b.width-f-c)/b.width,(b.height-e-k)/b.height,f/b.width];rwt.graphics.VML.setImageData(g,b.src,i,h,j,a,d)}rwt.graphics.VML.addToCanvas(this._canvas,g)},createLinearGradient:function(b,d,a,c){var e=[];e.addColorStop=this._addColorStopFunction;e.horizontal=b!=a;return e},_copyState:function(a,b){b.font=a.font;b.fillStyle=a.fillStyle;b.lineCap=a.lineCap;b.lineJoin=a.lineJoin;b.lineWidth=a.lineWidth;b.miterLimit=a.miterLimit;b.shadowBlur=a.shadowBlur;b.shadowColor=a.shadowColor;b.shadowOffsetX=a.shadowOffsetX;b.shadowOffsetY=a.shadowOffsetY;b.strokeStyle=a.strokeStyle;b.globalAlpha=a.globalAlpha},_addColorStopFunction:function(b,a){this.push([b,a])}}}); rwt.remote.HandlerRegistry.add($[546],{factory:function(b){var a=new rwt.widgets.Composite();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([$[126],$[360],"clientArea"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({backgroundGradient:rwt.remote.HandlerUtil.getBackgroundGradientHandler(),roundedBorder:rwt.remote.HandlerUtil.getRoundedBorderHandler()}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define($[546],{extend:rwt.widgets.base.Parent,include:rwt.animation.VisibilityAnimationMixin,construct:function(){arguments.callee.base.call(this);this.setAppearance("composite");this.setOverflow($[10]);this.setHideFocus(true);this.addEventListener($[3],this._onMouseOver,this);this.addEventListener($[6],this._onMouseOut,this);if(rwt.client.Client.isMshtml()){this._fixBackgroundTransparency();this.addEventListener($[168],this._fixBackgroundTransparency,this)}rwt.widgets.base.Widget.disableScrolling(this);this._clientArea=[0,0,0,0]},destruct:function(){this.removeEventListener($[3],this._onMouseOver,this);this.removeEventListener($[6],this._onMouseOut,this);this._clientArea=null},members:{setClientArea:function(a){this._clientArea=a;this.dispatchSimpleEvent($[367])},getClientArea:function(){return this._clientArea.concat()},_onMouseOver:function(a){this.addState("over")},_onMouseOut:function(a){this.removeState("over")},_applyBackgroundImage:rwt.util.Variant.select($[0],{mshtml:function(b,a){arguments.callee.base.call(this,b,a);if(b==null){this._fixBackgroundTransparency()}},"default":function(b,a){arguments.callee.base.call(this,b,a)}}),_fixBackgroundTransparency:function(){if(this.getBackgroundColor()==null&&this.getBackgroundImage()==null){this._applyBackgroundImage($[445],null)}}}}); rwt.qx.Class.define($[531],{extend:rwt.widgets.base.Parent,construct:function(){arguments.callee.base.call(this);this.setOverflow(null);this.setHtmlProperty($[447],"on");this.addEventListener($[71],this._onChangeSize,this);this.addEventListener($[76],this._onChangeSize,this);this.addEventListener($[3],this._onMouseOver,this);this.addEventListener($[6],this._onMouseOut,this);this._slider=new rwt.widgets.base.Parent();this._slider.setAppearance("sash-slider");this._slider.setVisibility(false);rwt.widgets.util.WidgetUtil.fixIEBoxHeight(this._slider);this.add(this._slider);this._sliderHandle=new rwt.widgets.base.Parent();this._sliderHandle.setStyleProperty($[255],$[429]);this._sliderHandle.setAppearance($[505]);this._sliderHandle.setVisibility(false);rwt.widgets.util.WidgetUtil.fixIEBoxHeight(this._sliderHandle);this.add(this._sliderHandle);this._handle=new rwt.widgets.base.Parent();this._handle.setStyleProperty($[255],$[429]);this._handle.setAppearance($[505]);rwt.widgets.util.WidgetUtil.fixIEBoxHeight(this._handle);this.add(this._handle);this.initOrientation();this._bufferZIndex=null},destruct:function(){this.removeEventListener($[71],this._onChangeSize,this);this.removeEventListener($[76],this._onChangeSize,this);this.removeEventListener($[3],this._onMouseOver,this);this.removeEventListener($[6],this._onMouseOut,this);this._removeStyle(this.getOrientation());this._disposeObjects("_slider","_handle","_sliderHandle")},properties:{appearance:{refine:true,init:"sash"},orientation:{check:[$[37],$[31]],apply:$[418],init:$[37],nullable:true}},members:{_onChangeSize:function(a){this._handle.setWidth(this.getWidth());this._handle.setHeight(this.getHeight())},_onMouseDownX:function(a){if(a.isLeftButtonPressed()){if(this.getEnabled()){this._commonMouseDown();this._dragOffset=a.getPageX();this._minMove=-this.getLeft()-this._frameOffset;this._maxMove=this.getParent().getWidth()-this.getLeft()-this.getWidth()-this._frameOffset}}},_onMouseDownY:function(a){if(a.isLeftButtonPressed()){if(this.getEnabled()){this._commonMouseDown();this._dragOffset=a.getPageY();this._minMove=-this.getTop()-this._frameOffset;this._maxMove=this.getParent().getHeight()-this.getTop()-this.getHeight()-this._frameOffset}}},_commonMouseDown:function(){this.setCapture(true);this.getTopLevelWidget().setGlobalCursor(this.getCursor());this._frameOffset=this.getFrameWidth()/2;this._slider.setLeft(0-this._frameOffset);this._slider.setTop(0-this._frameOffset);this._slider.setWidth(this.getWidth());this._slider.setHeight(this.getHeight());this._sliderHandle.setLeft(0);this._sliderHandle.setTop(0);this._sliderHandle.setWidth(this.getWidth());this._sliderHandle.setHeight(this.getHeight());this._bufferZIndex=this.getZIndex();this.setZIndex(10000000);this._slider.show();this._sliderHandle.show();this._sendWidgetSelected()},_onMouseUpX:function(a){if(this.getCapture()){this._commonMouseUp()}},_onMouseUpY:function(a){if(this.getCapture()){this._commonMouseUp()}},_commonMouseUp:function(){this._slider.hide();this._sliderHandle.hide();this.setCapture(false);this.getTopLevelWidget().setGlobalCursor(null);if(this._bufferZIndex!=null){this.setZIndex(this._bufferZIndex)}var a=rwt.widgets.util.WidgetUtil;a._fakeMouseEvent(this,$[6]);this._sendWidgetSelected()},_onMouseMoveX:function(b){if(this.getCapture()){if(this.getTopLevelWidget().getGlobalCursor()!=this.getCursor()){this.getTopLevelWidget().setGlobalCursor(this.getCursor())}var a=b.getPageX()-this._dragOffset;this._slider.setLeft(this._normalizeMove(a));this._sliderHandle.setLeft(this._normalizeMove(a))}},_onMouseMoveY:function(b){if(this.getCapture()){if(this.getTopLevelWidget().getGlobalCursor()!=this.getCursor()){this.getTopLevelWidget().setGlobalCursor(this.getCursor())}var a=b.getPageY()-this._dragOffset;this._slider.setTop(this._normalizeMove(a));this._sliderHandle.setTop(this._normalizeMove(a))}},_normalizeMove:function(b){var a=b;if(athis._maxMove){a=this._maxMove}return a},_applyOrientation:function(b,a){this._removeStyle(a);this._setStyle(b)},_setStyle:function(a){if(a==$[37]){this.addEventListener($[1],this._onMouseDownY,this);this.addEventListener($[28],this._onMouseMoveY,this);this.addEventListener($[5],this._onMouseUpY,this);this.addState($[37]);this._handle.addState($[37]);this._sliderHandle.addState($[37])}else{if(a==$[31]){this.addEventListener($[28],this._onMouseMoveX,this);this.addEventListener($[1],this._onMouseDownX,this);this.addEventListener($[5],this._onMouseUpX,this);this.addState($[31]);this._handle.addState($[31]);this._sliderHandle.addState($[31])}}},_removeStyle:function(a){if(a==$[37]){this.removeEventListener($[1],this._onMouseDownY,this);this.removeEventListener($[28],this._onMouseMoveY,this);this.removeEventListener($[5],this._onMouseUpY,this);this.removeState($[37]);this._handle.removeState($[37]);this._sliderHandle.removeState($[37])}else{if(a==$[31]){this.removeEventListener($[1],this._onMouseDownX,this);this.removeEventListener($[28],this._onMouseMoveX,this);this.removeEventListener($[5],this._onMouseUpX,this);this.removeState($[31]);this._handle.removeState($[31]);this._sliderHandle.removeState($[31])}}},_sendWidgetSelected:function(){if(!rwt.remote.EventUtil.getSuspended()){var b=this._slider.getLeft()+this._frameOffset;var a=this._slider.getTop()+this._frameOffset;rwt.remote.EventUtil.notifySelected(this,this.getLeft()+b,this.getTop()+a,this.getWidth(),this.getHeight(),this.getCapture()?"drag":null)}},_onMouseOver:function(a){this.addState("over")},_onMouseOut:function(a){this.removeState("over")}}}); rwt.remote.HandlerRegistry.add($[531],{factory:function(c){var a=new rwt.widgets.Sash();rwt.remote.HandlerUtil.addStatesForStyles(a,c.style);a.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(a,c.parent);var b=rwt.widgets.util.Layout.ORIENTATION_VERTICAL;if(c.style.indexOf($[328])!=-1){b=rwt.widgets.util.Layout.ORIENTATION_HORIZONTAL}a.setOrientation(b);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties([]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),listeners:rwt.remote.HandlerUtil.extendControlListeners([$[30]]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.remote.HandlerRegistry.add("rwt.widgets.Canvas",{factory:function(b){var a=new rwt.widgets.Composite();rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData($[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([$[126],$[360],"clientArea"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({backgroundGradient:rwt.remote.HandlerUtil.getBackgroundGradientHandler(),roundedBorder:rwt.remote.HandlerUtil.getRoundedBorderHandler()}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define($[372],{extend:rwt.widgets.base.BasicList,construct:function(c){arguments.callee.base.call(this,c);this.setScrollBarsVisible(false,false);this._topIndex=0;this._hasSelectionListener=false;this._hasDefaultSelectionListener=false;var a=rwt.remote.Server.getInstance();var b=this.getManager();b.addEventListener($[292],this._onChangeLeadItem,this);b.addEventListener($[247],this._onSelectionChange,this);this.addEventListener($[68],this._onFocusIn,this);this.addEventListener("blur",this._onFocusOut,this);this.addEventListener($[48],this._onDblClick,this);this.addEventListener($[36],this._onAppear,this);this.addEventListener($[208],this._onUserScroll)},destruct:function(){var a=rwt.remote.Server.getInstance();var b=this.getManager();b.removeEventListener($[292],this._onChangeLeadItem,this);b.removeEventListener($[247],this._onSelectionChange,this);this.removeEventListener($[68],this._onFocusIn,this);this.removeEventListener("blur",this._onFocusOut,this);this.removeEventListener($[48],this._onDblClick,this);this.removeEventListener($[36],this._onAppear,this)},members:{setTopIndex:function(a){this._topIndex=a;this._applyTopIndex(a)},_applyTopIndex:function(b){var a=this.getManager().getItems();if(a.length>0&&a[0].isCreated()){var c=this.getManager().getItemHeight(a[0]);if(c>0){this.setVBarSelection(b*c)}}},_getTopIndex:function(){var b=0;var c=this._clientArea.getScrollTop();var a=this.getManager().getItems();if(a.length>0){var d=this.getManager().getItemHeight(a[0]);if(d>0){b=Math.round(c/d)}}return b},_onAppear:function(a){this._applyTopIndex(this._topIndex)},_updateScrollDimension:function(){arguments.callee.base.call(this);this._applyTopIndex(this._topIndex)},setHasSelectionListener:function(a){this._hasSelectionListener=a},setHasDefaultSelectionListener:function(a){this._hasDefaultSelectionListener=a},_onChangeLeadItem:function(a){if(!rwt.remote.EventUtil.getSuspended()){var c=rwt.remote.WidgetManager.getInstance();var e=c.findIdByWidget(this);var b=rwt.remote.Server.getInstance();var d=this._clientArea.indexOf(this.getManager().getLeadItem());b.addParameter(e+".focusIndex",d)}},_onSelectionChange:function(a){if(!rwt.remote.EventUtil.getSuspended()){this._sendSelectionChange();if(this._hasSelectionListener){rwt.remote.EventUtil.notifySelected(this)}}this._updateSelectedItemState()},_sendSelectionChange:function(){var c=[];var d=this.getManager().getSelectedItems();for(var b=0;b=12){c=0;b++}break;case this._nextYearBt:b++;break}this.showMonth(c,b)},_onDayClicked:function(a){if(a.isLeftButtonPressed()){var b=a.getTarget().dateTime;this.setDate(new Date(b))}},_onDayDblClicked:function(){this.createDispatchDataEvent("select",this.getDate())},_onDayMouseOver:function(a){a.getTarget().addState("over")},_onDayMouseOut:function(a){a.getTarget().removeState("over")},_onkeypress:function(a){var e=null;var b=null;var d=null;if(a.getModifiers()===0){switch(a.getKeyIdentifier()){case"Left":e=-1;a.preventDefault();a.stopPropagation();break;case $[35]:e=1;a.preventDefault();a.stopPropagation();break;case"Up":e=-7;a.preventDefault();a.stopPropagation();break;case"Down":e=7;a.preventDefault();a.stopPropagation();break;case $[40]:b=-1;a.preventDefault();a.stopPropagation();break;case $[45]:b=1;a.preventDefault();a.stopPropagation();break;case $[104]:if(this.getDate()!=null){this.setDate(null);a.preventDefault();a.stopPropagation();return true}a.preventDefault();a.stopPropagation();break;case"Home":case"End":a.preventDefault();a.stopPropagation();break;case $[49]:case $[78]:if(this.getDate()!=null){this.createDispatchDataEvent("select",this.getDate())}a.preventDefault();a.stopPropagation();return}}else{if(a.isShiftPressed()){switch(a.getKeyIdentifier()){case $[40]:d=-1;a.preventDefault();a.stopPropagation();break;case $[45]:d=1;a.preventDefault();a.stopPropagation();break}}}if(e!=null||b!=null||d!=null){var c=this.getDate();if(c!=null){c=new Date(c.getTime())}if(c==null){c=new Date()}else{if(e!=null){c.setDate(c.getDate()+e)}if(b!=null){c.setMonth(c.getMonth()+b)}if(d!=null){c.setFullYear(c.getFullYear()+d)}}this.setDate(c)}},showMonth:function(b,a){if((b!=null&&b!=this.getShownMonth())||(a!=null&&a!=this.getShownYear())){if(b!=null){this.setShownMonth(b)}if(a!=null){this.setShownYear(a)}this._updateDatePane()}},_updateDatePane:function(){var t=new Date();var d=t.getFullYear();var j=t.getMonth();var z=t.getDate();var a=this.getDate();var r=(a==null)?-1:a.getFullYear();var b=(a==null)?-1:a.getMonth();var w=(a==null)?-1:a.getDate();var e=this.getShownMonth();var q=this.getShownYear();var x=this.__getWeekStart();var u=new Date(this.getShownYear(),this.getShownMonth(),1);var f=this.getShownYear();var v=rwt.widgets.base.Calendar.MONTH_NAMES[this.getShownMonth()];this._monthYearLabel.setText(v+" "+f);var k=u.getDay();var g=(1+7-k)%7;for(var o=0;o<7;o++){var n=(o+x)%7;var m=this._weekdayLabelArr[o];u.setDate(g+n);var s=rwt.widgets.base.Calendar.WEEKDAY_NAMES[u.getDay()+1];m.setText(s);if(this.__isWeekend(n)){m.addState("weekend")}else{m.removeState("weekend")}}u=new Date(q,e,1);var p=(7+k-x)%7;u.setDate(u.getDate()-p);for(var l=0;l<6;l++){this._weekLabelArr[l].setText(""+this.__getWeekInYear(u));for(var o=0;o<7;o++){var m=this._dayLabelArr[l*7+o];var f=u.getFullYear();var v=u.getMonth();var h=u.getDate();var c=(r==f&&b==v&&w==h);if(c){m.addState($[24])}else{m.removeState($[24])}if(v!=e){m.addState($[289])}else{m.removeState($[289])}var y=(f==d&&v==j&&h==z);if(y){m.addState("today")}else{m.removeState("today")}m.setText(""+h);m.dateTime=u.getTime();u.setDate(u.getDate()+1)}}},__thursdayOfSameWeek:function(a){return new Date(a.getTime()+(3-((a.getDay()+6)%7))*86400000)},__getWeekInYear:function(a){var d=this.__thursdayOfSameWeek(a);var b=d.getFullYear();var c=this.__thursdayOfSameWeek(new Date(b,0,4));return Math.floor(1.5+(d.getTime()-c.getTime())/86400000/7)},__getWeekStart:function(){var a={MV:5,AE:6,AF:6,BH:6,DJ:6,DZ:6,EG:6,ER:6,ET:6,IQ:6,IR:6,JO:6,KE:6,KW:6,LB:6,LY:6,MA:6,OM:6,QA:6,SA:6,SD:6,SO:6,TN:6,YE:6,AS:0,AU:0,AZ:0,BW:0,CA:0,CN:0,FO:0,GE:0,GL:0,GU:0,HK:0,IE:0,IL:0,IS:0,JM:0,JP:0,KG:0,KR:0,LA:0,MH:0,MN:0,MO:0,MP:0,MT:0,NZ:0,PH:0,PK:0,SG:0,TH:0,TT:0,TW:0,UM:0,US:0,UZ:0,VI:0,ZA:0,ZW:0,MW:0,NG:0,TJ:0};var b=this.__getTerritory();return a[b]!=null?a[b]:1},__getWeekendStart:function(){var a={EG:5,IL:5,SY:5,IN:0,AE:4,BH:4,DZ:4,IQ:4,JO:4,KW:4,LB:4,LY:4,MA:4,OM:4,QA:4,SA:4,SD:4,TN:4,YE:4};var b=this.__getTerritory();return a[b]!=null?a[b]:6},__getWeekendEnd:function(){var a={AE:5,BH:5,DZ:5,IQ:5,JO:5,KW:5,LB:5,LY:5,MA:5,OM:5,QA:5,SA:5,SD:5,TN:5,YE:5,AF:5,IR:5,EG:6,IL:6,SY:6};var b=this.__getTerritory();return a[b]!=null?a[b]:0},__isWeekend:function(b){var c=this.__getWeekendStart();var a=this.__getWeekendEnd();if(a>c){return((b>=c)&&(b<=a))}else{return((b>=c)||(b<=a))}},__getTerritory:function(){var a=rwt.client.Client.getTerritory()||rwt.client.Client.getLanguage();return a.toUpperCase()}},destruct:function(){this._disposeObjects("_lastYearBt","_lastMonthBt","_nextMonthBt","_nextYearBt","_monthYearLabel");this._disposeObjectDeep("_weekdayLabelArr",1);this._disposeObjectDeep("_dayLabelArr",1);this._disposeObjectDeep("_weekLabelArr",1)}}); rwt.qx.Class.define($[398],{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);this.setOverflow($[10]);this.setAppearance("coolitem");this._orientation=a;this._handle=new rwt.widgets.base.Terminator();this._handle.addState(a);this._handle.setAppearance($[541]);this._handle.addEventListener($[1],this._onHandleMouseDown,this);this._handle.addEventListener($[28],this._onHandleMouseMove,this);this._handle.addEventListener($[5],this._onHandleMouseUp,this);this.add(this._handle);this._bufferedZIndex=null;this._bufferedControlZIndex=null;this._control=null},destruct:function(){if(this._handle!=null){this._handle.removeEventListener($[1],this._onHandleMouseDown,this);this._handle.removeEventListener($[28],this._onHandleMouseMove,this);this._handle.removeEventListener($[5],this._onHandleMouseUp,this);this._handle.dispose()}},statics:{DRAG_CURSOR:$[337],CONTROL_OFFSET:6},members:{setLocked:function(a){this._handle.setDisplay(!a)},setControl:function(a){if(a!=null){a.setLeft(this.getLeft()+rwt.widgets.CoolItem.CONTROL_OFFSET);a.setDisplay(true)}if(this._control!=null){this._control.setDisplay(false)}this._control=a},updateHandleBounds:function(){if(this._orientation==$[31]){this._handle.setWidth(this.getWidth())}else{this._handle.setHeight(this.getHeight())}},_applyParent:function(b,a){arguments.callee.base.call(this,b,a);if(b!=null){this.setLocked(b.getLocked())}},_onHandleMouseDown:function(a){this._handle.setCapture(true);this.getTopLevelWidget().setGlobalCursor(rwt.widgets.CoolItem.DRAG_CURSOR);this._offsetX=a.getPageX()-this.getLeft();this._offsetY=a.getPageY()-this.getTop();this._bufferedZIndex=this.getZIndex();this.setZIndex(10000000-1);if(this._control!=null){this._bufferedControlZIndex=this._control.getZIndex();this._control.setZIndex(10000000)}this.setBackgroundColor(this._findBackground())},_applyLeft:function(c,a){arguments.callee.base.call(this,c,a);if(this._control!=null){var b=c+rwt.widgets.CoolItem.CONTROL_OFFSET;this._control.setLeft(b)}},_applyWidth:function(c,a){arguments.callee.base.call(this,c,a);if(this._control!=null){var b=c-rwt.widgets.CoolItem.CONTROL_OFFSET;this._control.setWidth(b)}},_onHandleMouseMove:function(a){if(this._handle.getCapture()){this.setLeft(a.getPageX()-this._offsetX)}},_onHandleMouseUp:function(a){this._handle.setCapture(false);this.setZIndex(this._bufferedZIndex);if(this._control!=null){this._control.setZIndex(this._bufferedControlZIndex)}this.resetBackgroundColor();this.getTopLevelWidget().setGlobalCursor(null);if(!rwt.remote.EventUtil.getSuspended()){rwt.remote.Server.getInstance().getRemoteObject(this).call("move",{left:this.getLeft()})}},_findBackground:function(){var b=true;var a=null;var c=this.getParent();while(b&&c!=null&&a==null){if(c.getBackgroundColor){a=c.getBackgroundColor()}if(c.getParent){c=c.getParent()}else{b=false}}return a}}}); rwt.remote.HandlerRegistry.add($[398],{factory:function(c){var d=rwt.remote.HandlerUtil.createStyleMap(c.style);var b=d.VERTICAL?$[31]:$[37];var a=new rwt.widgets.CoolItem(b);rwt.remote.HandlerUtil.setParent(a,c.parent);a.setMinWidth(0);a.setMinHeight(0);return a},destructor:rwt.remote.HandlerUtil.getWidgetDestructor(),properties:[$[86],"control",$[85]],propertyHandler:{bounds:function(b,a){b.setLeft(a[0]);b.setTop(a[1]);b.setWidth(a[2]);b.setHeight(a[3]);b.updateHandleBounds()},control:function(b,a){rwt.remote.HandlerUtil.callWithTarget(a,function(c){b.setControl(c)})}}}); rwt.qx.Class.define($[283],{extend:rwt.widgets.base.BasicButton,construct:function(a){arguments.callee.base.call(this,a);this._alignment=a==="arrow"?"up":$[23];switch(a){case"arrow":this.addState("rwt_UP");this.setAppearance($[548]);break;case"push":case $[202]:this.setAppearance($[548]);break;case $[108]:this.setAppearance($[356]);break;case $[116]:this.setAppearance("radio-button")}this.initTabIndex();this.addEventListener($[68],this._onFocus);this.addEventListener("blur",this._onBlur)},properties:{tabIndex:{refine:true,init:1}},members:{setAlignment:function(a){if(this.hasState("rwt_ARROW")){this.removeState("rwt_"+this._alignment.toUpperCase());this.addState("rwt_"+a.toUpperCase())}else{this.setHorizontalChildrenAlign(a)}this._alignment=a},setWrap:function(a){if(a){this.setFlexibleCell(2)}},_afterRenderLayout:function(a){if(this.hasState($[75])){this._showFocusIndicator()}},_showFocusIndicator:function(){var b=rwt.widgets.util.FocusIndicator.getInstance();var a=this.getCellNode(2)!=null?this.getCellNode(2):this.getCellNode(1);b.show(this,"Button-FocusIndicator",a)},_onFocus:function(a){this._showFocusIndicator()},_onBlur:function(b){var a=rwt.widgets.util.FocusIndicator.getInstance();a.hide(this)}}}); rwt.remote.HandlerRegistry.add($[283],{factory:function(c){var d=rwt.remote.HandlerUtil.createStyleMap(c.style);var b="push";if(d.CHECK){b=$[108]}else{if(d.TOGGLE){b=$[202]}else{if(d.RADIO){b=$[116]}else{if(d.ARROW){b="arrow"}}}}var a=new rwt.widgets.Button(b);a.setWrap(d.WRAP);rwt.remote.HandlerUtil.addStatesForStyles(a,c.style);a.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(a,c.parent);rwt.remote.HandlerUtil.callWithTarget(c.parent,function(e){a.setNoRadioGroup(e.hasState($[336]))});return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["text",$[361],$[14],$[60],$[172]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({text:function(c,b){var a=rwt.util.Encoding;var d=a.escapeText(b,true);if(c.hasState("rwt_WRAP")){d=a.replaceNewLines(d,$[96])}c.setText(d===""?null:d)},image:function(b,a){if(a===null){b.setImage(a)}else{b.setImage.apply(b,a)}}}),listeners:rwt.remote.HandlerUtil.extendControlListeners([$[30]]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define($[477],{extend:rwt.widgets.Button,construct:function(){arguments.callee.base.call(this,"push");this.setAppearance("file-upload");this.addEventListener($[140],this._layoutInputElement,this);this.addEventListener($[223],this._onMouseOverElement,this);this._formElement=null;this._inputElement=null;this._iframe=null;this._cursor="";this.__onValueChange=rwt.util.Functions.bind(this._onValueChange,this);this.setEnableElementFocus(false);this._createIframeWidget()},destruct:function(){this._formElement=null;this._inputElement=null},members:{submit:function(a){if(typeof a!==$[8]){throw new Error("No url given!")}if(this._getFileName()===""){throw new Error("No file selected!")}if(this._formElement===null){throw new Error("Form element not created!")}this._formElement.setAttribute("action",a);this._formElement.submit()},destroy:function(){arguments.callee.base.call(this);this._iframe.destroy()},_createSubelements:function(){if(this._formElement===null){arguments.callee.base.call(this);this._createFormElement();this._createInputElement()}else{this._formElement.removeChild(this._inputElement);this._getTargetNode().removeChild(this._formElement);arguments.callee.base.call(this);this._getTargetNode().appendChild(this._formElement);this._formElement.appendChild(this._inputElement)}},_createFormElement:function(){this._formElement=document.createElement("form");this._formElement.setAttribute("target",this._getFrameName());this._formElement.setAttribute("method","POST");if(rwt.client.Client.isMshtml()){this._formElement.setAttribute("encoding",$[523])}else{this._formElement.setAttribute("enctype",$[523])}this._getTargetNode().appendChild(this._formElement)},_createInputElement:function(){this._inputElement=document.createElement($[77]);this._inputElement.style.position=$[16];this._inputElement.setAttribute("type","file");this._inputElement.setAttribute("name","file");this._inputElement.setAttribute("size","1");this._inputElement.style.cursor=this._cursor;this._inputElement.onchange=this.__onValueChange;rwt.html.Style.setOpacity(this._inputElement,0);this._formElement.appendChild(this._inputElement)},_createIframeWidget:function(){this._iframe=new rwt.widgets.base.Iframe();this._iframe.setSource("about:blank");this._iframe.setVisibility(false);this._iframe.setWidth(0);this._iframe.setHeight(0);this._iframe.setFrameName(this._getFrameName());this._iframe.addToDocument()},_onValueChange:function(b){var e=this._formatFileName(this._getFileName());if(!rwt.remote.EventUtil.getSuspended()){var a=rwt.remote.Server.getInstance();var d=rwt.remote.WidgetManager.getInstance();var c=d.findIdByWidget(this);a.addParameter(c+".fileName",e);a.send()}},_getFileName:function(){return this._inputElement.value},_layoutPost:function(a){arguments.callee.base.call(this,a);if(a.width||a.height){this._layoutInputElement()}},_layoutInputElement:function(){if(this.getEnabled()&&this.isSeeable()&&!rwt.client.Client.isMobileSafari()){var a=10;this._layoutInputElementHorizontal(a);this._layoutInputElementVertical(a)}},_layoutInputElementHorizontal:function(g){var h=0.6;var a=this.getBoxWidth();var e=(a+g*2)/(h);var i=e/10;this._inputElement.style.fontSize=i;var c=0;while(this._inputElement.offsetWidth<=e){i+=10;this._inputElement.style.font=i+"px monospace";c++;if(c>100){var b="Failed to force input-element width.";throw new Error(b)}}var d=this._inputElement.offsetWidth;var f=a-d+g;this._inputElement.style.left=f+"px"},_layoutInputElementVertical:function(b){var a=this.getBoxHeight();this._inputElement.style.height=(a+b*2)+"px";this._inputElement.style.top=(b*-1)+"px"},setStyleProperty:function(b,a){if(b===$[133]){this._cursor=a;if(this._inputElement!=null){this._inputElement.style.cursor=a}}else{arguments.callee.base.call(this,b,a)}},_applyEnabled:function(b,a){arguments.callee.base.call(this,b,a);if(this._inputElement){this._inputElement.style.display=b?"":"none";this._layoutInputElement()}},_afterAppear:function(){arguments.callee.base.call(this);this._layoutInputElement()},_onMouseOver:function(a){if(a.getDomTarget()===this._inputElement){arguments.callee.base.call(this,a)}},_onMouseOverElement:function(a){if(a.getDomTarget()===this._inputElement){this._onMouseOver(a)}},_onMouseDown:function(a){if(a.getDomTarget()===this._inputElement){arguments.callee.base.call(this,a)}if(rwt.client.Client.getBrowser()===$[220]){this._onBlur()}},_onMouseUp:function(a){if(a.getDomTarget()===this._inputElement||this.hasState($[29])){arguments.callee.base.call(this,a)}},_onFocus:function(a){arguments.callee.base.call(this,a);this._inputElement.focus()},_onKeyDown:rwt.util.Functions.returnTrue,_onKeyUp:rwt.util.Functions.returnTrue,_ontabfocus:function(){if(rwt.client.Client.getBrowser()===$[220]){this._showFocusIndicator(true)}},_showFocusIndicator:function(a){var d=rwt.client.Client.getBrowser()===$[220];if(!d||a){var c=rwt.widgets.util.FocusIndicator.getInstance();var b=this.getCellNode(2)!=null?this.getCellNode(2):this.getCellNode(1);c.show(this,"FileUpload-FocusIndicator",b)}},_formatFileName:function(b){var a=b;if(a.indexOf("\\")!=-1){a=a.substr(a.lastIndexOf("\\")+1)}else{if(a.indexOf("/")!=-1){a=a.substr(a.lastIndexOf("/")+1)}}return a},_getFrameName:function(){return"FileUpload_"+this.toHashCode()}}}); rwt.remote.HandlerRegistry.add($[477],{factory:function(b){var a=new rwt.widgets.FileUpload();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",$[14]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({text:function(c,b){var a=rwt.util.Encoding;var d=a.escapeText(b,true);c.setText(d===""?null:d)},image:function(b,a){if(a===null){b.setImage(a)}else{b.setImage.apply(b,a)}}}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({}),methods:["submit"],methodHandler:{submit:function(b,a){b.submit(a.url)}}}); rwt.qx.Class.define($[461],{extend:rwt.widgets.base.AbstractSlider,construct:function(a){arguments.callee.base.call(this,a);this._hasSelectionListener=false;this._requestScheduled=false;this.addEventListener($[42],this._onContextMenu,this);this.addEventListener($[4],this._onKeyPress,this)},statics:{SEND_DELAY:50,_isNoModifierPressed:function(a){return !a.isCtrlPressed()&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isMetaPressed()}},members:{_configureAppearance:function(){this.setAppearance("slider");this._thumb.setAppearance($[379]);this._minButton.setAppearance("slider-min-button");this._maxButton.setAppearance("slider-max-button")},setSelection:function(a){this._setSelection(a)},setMinimum:function(a){this._setMinimum(a)},setMaximum:function(a){this._setMaximum(a)},setIncrement:function(a){this._setIncrement(a)},setPageIncrement:function(a){this._setPageIncrement(a)},setThumb:function(a){this._setThumb(a)},setHasSelectionListener:function(a){this._hasSelectionListener=a},_setSelection:function(a){arguments.callee.base.call(this,a);this._scheduleSendChanges()},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_onKeyPress:function(a){var c=a.getKeyIdentifier();var b=null;if(rwt.widgets.Slider._isNoModifierPressed(a)){switch(c){case"Left":b=this._selection-this._increment;a.preventDefault();a.stopPropagation();break;case"Down":if(this._horizontal){b=this._selection-this._increment}else{b=this._selection+this._increment}a.preventDefault();a.stopPropagation();break;case $[35]:b=this._selection+this._increment;a.preventDefault();a.stopPropagation();break;case"Up":if(this._horizontal){b=this._selection+this._increment}else{b=this._selection-this._increment}a.preventDefault();a.stopPropagation();break;case"Home":b=this._minimum;a.preventDefault();a.stopPropagation();break;case"End":b=this._maximum;a.preventDefault();a.stopPropagation();break;case $[45]:if(this._horizontal){b=this._selection-this._pageIncrement}else{b=this._selection+this._pageIncrement}a.preventDefault();a.stopPropagation();break;case $[40]:if(this._horizontal){b=this._selection+this._pageIncrement}else{b=this._selection-this._pageIncrement}a.preventDefault();a.stopPropagation();break}if(b!=null){if(bthis._maximum){b=this._maximum}this.setSelection(b);if(this._readyToSendChanges){this._readyToSendChanges=false;rwt.client.Timer.once(this._sendChanges,this,rwt.widgets.Slider.SEND_DELAY)}}}},_onMouseWheel:function(a){if(this.getFocused()){arguments.callee.base.call(this,a);if(this._readyToSendChanges){this._readyToSendChanges=false;rwt.client.Timer.once(this._sendChanges,this,500)}}},_scheduleSendChanges:function(){if(!rwt.remote.EventUtil.getSuspended()){if(!this._requestScheduled){this._requestScheduled=true;rwt.client.Timer.once(this._sendChanges,this,rwt.widgets.Slider.SEND_DELAY)}}},_sendChanges:function(){var c=rwt.remote.WidgetManager.getInstance();var a=rwt.remote.Server.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+$[170],this._selection);if(this._hasSelectionListener){rwt.remote.EventUtil.notifySelected(this)}this._requestScheduled=false}}}); rwt.remote.HandlerRegistry.add($[461],{factory:function(b){var c=b.style.indexOf($[328])!=-1;var a=new rwt.widgets.Slider(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(),properties:rwt.remote.HandlerUtil.extendControlProperties([$[264],$[265],$[60],$[309],$[312],"thumb"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),listeners:rwt.remote.HandlerUtil.extendControlListeners([$[30]]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define($[374],{extend:rwt.widgets.base.Spinner,construct:function(){arguments.callee.base.call(this);this._hasSelectionListener=false;this._hasDefaultSelectionListener=false;this.setWrap(false);this._textfield.setFocused=function(){};this._textfield.addEventListener($[118],this._onChangeValue,this);this._textfield.addEventListener($[4],this._onChangeValue,this);this._textfield.addEventListener("blur",this._onChangeValue,this);this._textfield.addEventListener($[9],this._onKeyDown,this);this._textfield.setTabIndex(null);this.addEventListener($[179],this._onChangeEnabled,this);this.addEventListener($[120],this._onFocusOut,this);this._checkValue=this.__checkValueWithDigits},destruct:function(){this._textfield.removeEventListener($[118],this._onChangeValue,this);this._textfield.removeEventListener($[4],this._onChangeValue,this);this._textfield.removeEventListener("blur",this._onChangeValue,this);this._textfield.removeEventListener($[9],this._onKeyDown,this);this.removeEventListener($[179],this._onChangeEnabled,this);this.removeEventListener($[120],this._onFocusOut,this)},properties:{digits:{check:$[18],init:0,apply:"_applyDigits"},decimalSeparator:{check:$[46],init:".",apply:"_applyDecimalSeparator"}},members:{setFont:function(a){this._textfield.setFont(a)},setMaxLength:function(a){this._textfield.setMaxLength(a)},setMinMaxSelection:function(b,a,c){this.setMin(Math.min(b,this.getMin()));this.setMax(Math.max(a,this.getMax()));this.setValue(c);this.setMin(b);this.setMax(a)},_applyCursor:function(b,a){arguments.callee.base.call(this,b,a);if(b){this._upbutton.setCursor(b);this._downbutton.setCursor(b);this._textfield.setCursor(b)}else{this._upbutton.resetCursor();this._downbutton.resetCursor();this._textfield.resetCursor()}},setHasSelectionListener:function(a){this._hasSelectionListener=a},setHasDefaultSelectionListener:function(a){this._hasDefaultSelectionListener=a},_visualizeFocus:function(){this._textfield._visualizeFocus();if(this._textfield.isCreated()){this._textfield.selectAll()}this.addState($[75])},_visualizeBlur:function(){this._textfield._setSelectionLength(0);this._textfield._visualizeBlur();this.removeState($[75])},_oninput:function(a){this._suspendTextFieldUpdate=true;this._checkValue(true,false);this._suspendTextFieldUpdate=false},_onChangeValue:function(a){if(!rwt.remote.EventUtil.getSuspended()){var b=rwt.remote.Server.getInstance();b.getRemoteObject(this).set($[60],this.getManager().getValue());if(this._hasSelectionListener){b.onNextSend(this._sendWidgetSelected,this);b.sendDelayed(500)}}},_onChangeEnabled:function(a){var b=a.getValue();this._upbutton.setEnabled(b&&this.getValue()this.getMin())},_onKeyDown:function(a){if(!rwt.remote.EventUtil.getSuspended()){if(a.getKeyIdentifier()==$[49]&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isCtrlPressed()&&!a.isMetaPressed()&&this._hasDefaultSelectionListener){a.stopPropagation();this._sendWidgetDefaultSelected()}}},_onmousewheel:function(a){if(this.getFocused()){arguments.callee.base.call(this,a)}},_sendWidgetSelected:function(){rwt.remote.EventUtil.notifySelected(this)},_sendWidgetDefaultSelected:function(){rwt.remote.EventUtil.notifyDefaultSelected(this)},_applyDigits:function(c,b){var a=this.getManager().getValue();if(this.getDigits()>0){this._textfield.setValue(this._format(a))}else{this._textfield.setValue(String(a))}},_applyDecimalSeparator:function(c,b){var a=this.getManager().getValue();if(this.getDigits()>0){this._textfield.setValue(this._format(a))}},_format:function(d){var c=this.getDigits();var f=d/Math.pow(10,c);var a=f.toFixed(c);var e=this.getDecimalSeparator();if(e!="."){var b=rwt.util.Encoding.escapeRegexpChars(".");a=a.replace(new RegExp(b),e)}return a},_limit:function(c){var a=c;var b=this.getDigits();if(b>0){a=a*Math.pow(10,b)}a=Math.round(a);if(a>this.getMax()){a=this.getMax()}if(a0&&b==c)){arguments.callee.base.call(this,a)}},_onchange:function(a){var b=this.getManager().getValue();if(!this._suspendTextFieldUpdate){if(this.getDigits()>0){this._textfield.setValue(this._format(b))}else{this._textfield.setValue(String(b))}}if(b==this.getMin()&&!this.getWrap()){this._downbutton.removeState($[12]);this._downbutton.setEnabled(false);this._timer.stop()}else{this._downbutton.resetEnabled()}if(b==this.getMax()&&!this.getWrap()){this._upbutton.removeState($[12]);this._upbutton.setEnabled(false);this._timer.stop()}else{this._upbutton.resetEnabled()}this.createDispatchDataEvent($[57],b)},__checkValueWithDigits:function(g,b){var k=this._textfield.getInputElement();if(k){if(k.value===""&&!g){this.resetValue()}else{var i=k.value;var e=i;var d=this.getDecimalSeparator();if(this.getDigits()>0&&d!="."){d=rwt.util.Encoding.escapeRegexpChars(d);e=i.replace(new RegExp(d),".")}var j=parseFloat(e);var f=this._limit(j);var a=this.getManager().getValue();var h=f;if(isNaN(j)||j!=f||j!=e){if(b){this._textfield.setValue(this._last_value)}else{if(isNaN(f)){h=a}}}if(!b){var c=String(h);if(this.getDigits()>0){c=this._format(h)}if(h===a&&i!==c&&!this._suspendTextFieldUpdate){this._textfield.setValue(c)}this.getManager().setValue(h)}}}}}}); rwt.remote.HandlerRegistry.add($[374],{factory:function(b){var a=new rwt.widgets.Spinner();rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(a,b.parent);var c=rwt.remote.HandlerUtil.createStyleMap(b.style);if(c.READ_ONLY){a.setEditable(false)}if(c.WRAP){a.setWrap(true)}return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties([$[264],$[265],$[60],"digits",$[309],$[312],$[293],"decimalSeparator"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({minimum:function(c,b){var a=c.getMax();if(b>a){c.setMax(b+1)}c.setMin(b)},maximum:function(b,a){b.setMax(a)},selection:function(b,a){b.setValue(a)},increment:function(b,a){b.setIncrementAmount(a);b.setWheelIncrementAmount(a)},pageIncrement:function(b,a){b.setPageIncrementAmount(a)},textLimit:function(b,a){b.setMaxLength(a)}}),listeners:rwt.remote.HandlerUtil.extendControlListeners([$[30],$[111]]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define("rwt.widgets.DateTimeTime",{extend:rwt.widgets.base.Parent,construct:function(a){arguments.callee.base.call(this);this.setOverflow($[10]);this.setAppearance("datetime-time");this._short=rwt.util.Strings.contains(a,"short");this._medium=rwt.util.Strings.contains(a,"medium");this._long=rwt.util.Strings.contains(a,"long");this._hasSelectionListener=false;this._requestTimer=null;this.addEventListener($[100],this._rwt_onChangeFont,this);this.addEventListener($[4],this._onKeyPress,this);this.addEventListener($[34],this._onKeyUp,this);this.addEventListener($[43],this._onMouseWheel,this);this.addEventListener($[42],this._onContextMenu,this);this.addEventListener($[68],this._onFocusIn,this);this.addEventListener("blur",this._onFocusOut,this);this._focusedTextField=null;this._hoursTextField=new rwt.widgets.base.Label("00");this._hoursTextField.setAppearance($[138]);this._hoursTextField.setUserData($[155],2);this._hoursTextField.addEventListener($[1],this._onTextFieldMouseDown,this);this.add(this._hoursTextField);this._separator3=new rwt.widgets.base.Label(":");this._separator3.setAppearance($[230]);this._separator3.addEventListener($[42],this._onContextMenu,this);this.add(this._separator3);this._minutesTextField=new rwt.widgets.base.Label("00");this._minutesTextField.setAppearance($[138]);this._minutesTextField.setUserData($[155],2);this._minutesTextField.addEventListener($[1],this._onTextFieldMouseDown,this);this.add(this._minutesTextField);this._separator4=new rwt.widgets.base.Label(":");this._separator4.setAppearance($[230]);if(this._medium||this._long){this.add(this._separator4)}this._secondsTextField=new rwt.widgets.base.Label("00");this._secondsTextField.setAppearance($[138]);this._secondsTextField.setUserData($[155],2);this._secondsTextField.addEventListener($[1],this._onTextFieldMouseDown,this);if(this._medium||this._long){this.add(this._secondsTextField)}this._spinner=new rwt.widgets.base.Spinner();this._spinner.set({wrap:true,border:null,backgroundColor:null});this._spinner.setMin(0);this._spinner.setMax(23);this._spinner.setValue(0);this._spinner.addEventListener($[57],this._onSpinnerChange,this);this._spinner._textfield.setTabIndex(null);this._spinner._textfield.setFocused=function(){};this._spinner._textfield.setVisibility(false);this._spinner._upbutton.setAppearance($[397]);this._spinner._downbutton.setAppearance($[422]);this._spinner.removeEventListener($[4],this._spinner._onkeypress,this._spinner);this._spinner.removeEventListener($[9],this._spinner._onkeydown,this._spinner);this._spinner.removeEventListener($[34],this._spinner._onkeyup,this._spinner);this._spinner.removeEventListener($[43],this._spinner._onmousewheel,this._spinner);this.add(this._spinner);this._focusedTextField=this._hoursTextField},destruct:function(){this.removeEventListener($[100],this._rwt_onChangeFont,this);this.removeEventListener($[4],this._onKeyPress,this);this.removeEventListener($[34],this._onKeyUp,this);this.removeEventListener($[43],this._onMouseWheel,this);this.removeEventListener($[42],this._onContextMenu,this);this.removeEventListener($[68],this._onFocusIn,this);this.removeEventListener("blur",this._onFocusOut,this);this._hoursTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._minutesTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._secondsTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._spinner.removeEventListener($[57],this._onSpinnerChange,this);this._disposeObjects("_hoursTextField","_minutesTextField","_secondsTextField",$[435],"_spinner","_separator3","_separator4")},statics:{HOURS_TEXTFIELD:8,MINUTES_TEXTFIELD:9,SECONDS_TEXTFIELD:10,HOURS_MINUTES_SEPARATOR:11,MINUTES_SECONDS_SEPARATOR:12,SPINNER:7,_isNoModifierPressed:function(a){return !a.isCtrlPressed()&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isMetaPressed()}},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[38]){this._hoursTextField.addState(a);this._minutesTextField.addState(a);this._secondsTextField.addState(a);this._spinner.addState(a);this._separator3.addState(a);this._separator4.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[38]){this._hoursTextField.removeState(a);this._minutesTextField.removeState(a);this._secondsTextField.removeState(a);this._spinner.removeState(a);this._separator3.removeState(a);this._separator4.removeState(a)}},_rwt_onChangeFont:function(a){var b=a.getValue();this._hoursTextField.setFont(b);this._minutesTextField.setFont(b);this._secondsTextField.setFont(b)},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_onFocusIn:function(a){this._focusedTextField.addState($[24]);this._initialEditing=true},_onFocusOut:function(a){this._focusedTextField.removeState($[24])},_onTextFieldMouseDown:function(a){this._setFocusedTextField(a.getTarget())},_setFocusedTextField:function(a){if(this._focusedTextField!==a){var b;this._focusedTextField.removeState($[24]);this._focusedTextField=null;if(a===this._hoursTextField){this._spinner.setMin(0);this._spinner.setMax(23);b=this._removeLeadingZero(this._hoursTextField.getText());this._spinner.setValue(parseInt(b,10))}else{if(a===this._minutesTextField){this._spinner.setMin(0);this._spinner.setMax(59);b=this._removeLeadingZero(this._minutesTextField.getText());this._spinner.setValue(parseInt(b,10))}else{if(a===this._secondsTextField){this._spinner.setMin(0);this._spinner.setMax(59);b=this._removeLeadingZero(this._secondsTextField.getText());this._spinner.setValue(parseInt(b,10))}}}this._focusedTextField=a;this._focusedTextField.addState($[24]);this._initialEditing=true}},_onSpinnerChange:function(a){if(this._focusedTextField!=null){var b=this._focusedTextField.getText();var c=this._addLeadingZero(this._spinner.getValue());this._focusedTextField.setText(c);if(b!=c){this._sendChanges()}}},_onKeyPress:function(a){var c=a.getKeyIdentifier();if(rwt.widgets.DateTimeTime._isNoModifierPressed(a)){switch(c){case"Left":if(this._focusedTextField===this._hoursTextField){if(this._short){this._setFocusedTextField(this._minutesTextField)}else{this._setFocusedTextField(this._secondsTextField)}}else{if(this._focusedTextField===this._minutesTextField){this._setFocusedTextField(this._hoursTextField)}else{if(this._focusedTextField===this._secondsTextField){this._setFocusedTextField(this._minutesTextField)}}}a.preventDefault();a.stopPropagation();break;case $[35]:if(this._focusedTextField===this._hoursTextField){this._setFocusedTextField(this._minutesTextField)}else{if(this._focusedTextField===this._minutesTextField){if(this._short){this._setFocusedTextField(this._hoursTextField)}else{this._setFocusedTextField(this._secondsTextField)}}else{if(this._focusedTextField===this._secondsTextField){this._setFocusedTextField(this._hoursTextField)}}}a.preventDefault();a.stopPropagation();break;case"Up":var b=this._spinner.getValue();if(b==this._spinner.getMax()){this._spinner.setValue(this._spinner.getMin())}else{this._spinner.setValue(b+1)}a.preventDefault();a.stopPropagation();break;case"Down":var b=this._spinner.getValue();if(b==this._spinner.getMin()){this._spinner.setValue(this._spinner.getMax())}else{this._spinner.setValue(b-1)}a.preventDefault();a.stopPropagation();break;case $[40]:case $[45]:case"Home":case"End":a.preventDefault();a.stopPropagation();break}}},_onKeyUp:function(a){var b=a.getKeyIdentifier();var e=this._focusedTextField.getText();e=this._removeLeadingZero(e);if(rwt.widgets.DateTimeTime._isNoModifierPressed(a)){switch(b){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":var d=this._focusedTextField.getUserData($[155]);var f=b;if(e.length=this._spinner.getMin()&&c<=this._spinner.getMax()){this._spinner.setValue(c)}else{f=b;c=parseInt(f,10);if(c>=this._spinner.getMin()&&c<=this._spinner.getMax()){this._spinner.setValue(c)}}this._initialEditing=false;a.preventDefault();a.stopPropagation();break;case"Home":var f=this._spinner.getMin();this._spinner.setValue(f);this._initialEditing=true;a.preventDefault();a.stopPropagation();break;case"End":var f=this._spinner.getMax();this._spinner.setValue(f);this._initialEditing=true;a.preventDefault();a.stopPropagation();break}}},_onMouseWheel:function(a){if(this.getFocused()){a.preventDefault();a.stopPropagation();this._spinner._onmousewheel(a)}},_addLeadingZero:function(a){return a<10?"0"+a:""+a},_removeLeadingZero:function(c){var a=c;if(c.length==2){var b=c.substring(0,1);if(b=="0"){a=c.substring(1)}}return a},_sendChanges:function(){if(!rwt.remote.EventUtil.getSuspended()){var c=rwt.remote.WidgetManager.getInstance();var a=rwt.remote.Server.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+".hours",this._removeLeadingZero(this._hoursTextField.getText()));a.addParameter(b+".minutes",this._removeLeadingZero(this._minutesTextField.getText()));a.addParameter(b+".seconds",this._removeLeadingZero(this._secondsTextField.getText()));if(this._hasSelectionListener){this._requestTimer.restart()}}},_onInterval:function(){this._requestTimer.stop();rwt.remote.EventUtil.notifySelected(this)},setHours:function(a){this._hoursTextField.setText(this._addLeadingZero(a));if(this._focusedTextField===this._hoursTextField){this._spinner.setValue(a)}},setMinutes:function(a){this._minutesTextField.setText(this._addLeadingZero(a));if(this._focusedTextField===this._minutesTextField){this._spinner.setValue(a)}},setSeconds:function(a){this._secondsTextField.setText(this._addLeadingZero(a));if(this._focusedTextField===this._secondsTextField){this._spinner.setValue(a)}},setHasSelectionListener:function(a){this._hasSelectionListener=a;this._requestTimer=new rwt.client.Timer(110);this._requestTimer.addEventListener($[27],this._onInterval,this)},setBounds:function(e,b,f,c,a){var d;switch(e){case rwt.widgets.DateTimeTime.HOURS_TEXTFIELD:d=this._hoursTextField;break;case rwt.widgets.DateTimeTime.MINUTES_TEXTFIELD:d=this._minutesTextField;break;case rwt.widgets.DateTimeTime.SECONDS_TEXTFIELD:d=this._secondsTextField;break;case rwt.widgets.DateTimeTime.HOURS_MINUTES_SEPARATOR:d=this._separator3;break;case rwt.widgets.DateTimeTime.MINUTES_SECONDS_SEPARATOR:d=this._separator4;break;case rwt.widgets.DateTimeTime.SPINNER:d=this._spinner;break}d.set({left:b,top:f,width:c,height:a})}}}); rwt.qx.Class.define("rwt.widgets.DateTimeDate",{extend:rwt.widgets.base.Parent,construct:function(f,e,b,d,g,c){arguments.callee.base.call(this);this.setOverflow($[10]);this.setAppearance("datetime-date");this._short=rwt.util.Strings.contains(f,"short");this._medium=rwt.util.Strings.contains(f,"medium");this._long=rwt.util.Strings.contains(f,"long");this._drop_down=rwt.util.Strings.contains(f,"drop_down");this._hasSelectionListener=false;this._requestTimer=null;this._readyToSendChanges=true;this._weekday=b;this._monthname=e;this._datePattern=c;this.addEventListener($[100],this._rwt_onChangeFont,this);this.addEventListener($[4],this._onKeyPress,this);this.addEventListener($[34],this._onKeyUp,this);this.addEventListener($[43],this._onMouseWheel,this);this.addEventListener($[42],this._onContextMenu,this);this.addEventListener($[68],this._onFocusIn,this);this.addEventListener("blur",this._onFocusOut,this);this._focusedTextField=null;this._weekdayTextField=new rwt.widgets.base.Label();this._weekdayTextField.setAppearance($[138]);if(this._long){this.add(this._weekdayTextField)}this._separator0=new rwt.widgets.base.Label(",");this._separator0.setAppearance($[230]);if(this._long){this.add(this._separator0)}this._monthTextField=new rwt.widgets.base.Label();this._monthTextField.setAppearance($[138]);this._monthTextField.set({textAlign:this._medium?$[13]:$[23]});this._monthInt=1;if(this._medium){this._monthTextField.setText("1")}else{this._monthTextField.setText(this._monthname[this._monthInt-1])}this._monthTextField.addEventListener($[1],this._onTextFieldMouseDown,this);this.add(this._monthTextField);this._separator1=new rwt.widgets.base.Label(g);this._separator1.setAppearance($[230]);if(this._medium){this.add(this._separator1)}this._dayTextField=new rwt.widgets.base.Label("1");this._dayTextField.setAppearance($[138]);this._dayTextField.setUserData($[155],2);this._dayTextField.set({textAlign:$[13]});this._dayTextField.addEventListener($[1],this._onTextFieldMouseDown,this);if(!this._short){this.add(this._dayTextField)}this._separator2=new rwt.widgets.base.Label(",");this._separator2.setAppearance($[230]);if(this._medium){this._separator2.setText(g)}this.add(this._separator2);this._yearTextField=new rwt.widgets.base.Label("1970");this._yearTextField.setAppearance($[138]);this._yearTextField.setUserData($[155],4);this._yearTextField.set({textAlign:$[13]});this._lastValidYear=1970;this._yearTextField.addEventListener($[1],this._onTextFieldMouseDown,this);this.add(this._yearTextField);this._spinner=new rwt.widgets.base.Spinner();this._spinner.set({wrap:true,border:null,backgroundColor:null});this._spinner.setMin(1);this._spinner.setMax(12);this._spinner.setValue(this._monthInt);this._spinner.addEventListener($[57],this._onSpinnerChange,this);this._spinner._textfield.setTabIndex(null);this._spinner._textfield.setFocused=function(){};this._spinner._textfield.setVisibility(false);this._spinner._upbutton.setAppearance($[397]);this._spinner._downbutton.setAppearance($[422]);this._spinner.removeEventListener($[4],this._spinner._onkeypress,this._spinner);this._spinner.removeEventListener($[9],this._spinner._onkeydown,this._spinner);this._spinner.removeEventListener($[34],this._spinner._onkeyup,this._spinner);this._spinner.removeEventListener($[43],this._spinner._onmousewheel,this._spinner);this._spinner.setVisibility(!this._drop_down);this.add(this._spinner);this._dropped=false;this._dropDownButton=null;this._calendar=null;if(this._drop_down){var a=rwt.widgets.base.ClientDocument.getInstance();a.addEventListener($[209],this._onWindowBlur,this);this.addEventListener($[36],this._onAppear,this);this.addEventListener($[169],this._onChangeVisibility,this);this.addEventListener($[1],this._onMouseDown,this);this.addEventListener($[15],this._onMouseClick,this);this.addEventListener($[3],this._onMouseOver,this);this.addEventListener($[6],this._onMouseOut,this);this._dropDownButton=new rwt.widgets.base.Button();this._dropDownButton.setAppearance("datetime-drop-down-button");this._dropDownButton.setTabIndex(null);this._dropDownButton.setAllowStretchY(true);this.add(this._dropDownButton);rwt.widgets.base.Calendar.MONTH_NAMES=e;rwt.widgets.base.Calendar.WEEKDAY_NAMES=d;this._calendar=new rwt.widgets.base.Calendar();this._calendar.setAppearance("datetime-drop-down-calendar");this._calendar.setDate(new Date(70,0,1));this._calendar.setTabIndex(null);this._calendar.setVisibility(false);this._calendar._lastYearBt.setToolTip(null);this._calendar._lastMonthBt.setToolTip(null);this._calendar._nextMonthBt.setToolTip(null);this._calendar._nextYearBt.setToolTip(null)}this._focusedTextField=this._monthTextField;this._setWeekday()},destruct:function(){this.removeEventListener($[100],this._rwt_onChangeFont,this);this.removeEventListener($[4],this._onKeyPress,this);this.removeEventListener($[34],this._onKeyUp,this);this.removeEventListener($[43],this._onMouseWheel,this);this.removeEventListener($[42],this._onContextMenu,this);this.removeEventListener($[68],this._onFocusIn,this);this.removeEventListener("blur",this._onFocusOut,this);this._monthTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._dayTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._yearTextField.removeEventListener($[1],this._onTextFieldMouseDown,this);this._spinner.removeEventListener($[57],this._onSpinnerChange,this);this._disposeObjects("_weekdayTextField","_monthTextField","_dayTextField","_yearTextField",$[435],"_spinner","_separator0","_separator1","_separator2");if(this._drop_down){var a=rwt.widgets.base.ClientDocument.getInstance();a.removeEventListener($[209],this._onWindowBlur,this);this.removeEventListener($[36],this._onAppear,this);this.removeEventListener($[169],this._onChangeVisibility,this);this.removeEventListener($[1],this._onMouseDown,this);this.removeEventListener($[15],this._onMouseClick,this);this.removeEventListener($[3],this._onMouseOver,this);this.removeEventListener($[6],this._onMouseOut,this);this._dropDownButton.dispose();this._dropDownButton=null;if(!rwt.qx.Object.inGlobalDispose()){this._calendar.setParent(null)}this._calendar.dispose();this._calendar=null}},statics:{WEEKDAY_TEXTFIELD:0,DATE_TEXTFIELD:1,MONTH_TEXTFIELD:2,YEAR_TEXTFIELD:3,WEEKDAY_MONTH_SEPARATOR:4,MONTH_DATE_SEPARATOR:5,DATE_YEAR_SEPARATOR:6,SPINNER:7,DROP_DOWN_BUTTON:13,_isNoModifierPressed:function(a){return !a.isCtrlPressed()&&!a.isShiftPressed()&&!a.isAltPressed()&&!a.isMetaPressed()}},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[38]){this._weekdayTextField.addState(a);this._monthTextField.addState(a);this._dayTextField.addState(a);this._yearTextField.addState(a);this._spinner.addState(a);this._separator0.addState(a);this._separator1.addState(a);this._separator2.addState(a);if(this._drop_down){this._dropDownButton.addState(a);this._calendar.addState(a)}}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[38]){this._weekdayTextField.removeState(a);this._monthTextField.removeState(a);this._dayTextField.removeState(a);this._yearTextField.removeState(a);this._spinner.removeState(a);this._separator0.removeState(a);this._separator1.removeState(a);this._separator2.removeState(a);if(this._drop_down){this._dropDownButton.removeState(a);this._calendar.removeState(a)}}},_rwt_onChangeFont:function(a){var b=a.getValue();this._weekdayTextField.setFont(b);this._dayTextField.setFont(b);this._monthTextField.setFont(b);this._yearTextField.setFont(b)},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null&&!this._dropped){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_onFocusIn:function(a){this._focusedTextField.addState($[24]);this._initialEditing=true},_onFocusOut:function(a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}this._focusedTextField.removeState($[24])},_onTextFieldMouseDown:function(a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}this._setFocusedTextField(a.getTarget())},_setFocusedTextField:function(a){if(this._focusedTextField!==a){this._focusedTextField.removeState($[24]);this._focusedTextField=null;if(a===this._dayTextField){this._spinner.setMin(1);this._spinner.setMax(this._getDaysInMonth());var b=this._removeLeadingZero(this._dayTextField.getText());this._spinner.setValue(parseInt(b,10))}else{if(a===this._monthTextField){this._spinner.setMin(1);this._spinner.setMax(12);this._spinner.setValue(this._monthInt)}else{if(a===this._yearTextField){this._spinner.setMax(9999);this._spinner.setMin(1752);this._spinner.setValue(this._lastValidYear)}}}this._focusedTextField=a;this._focusedTextField.addState($[24]);this._initialEditing=true}},_onSpinnerChange:function(a){if(this._focusedTextField!=null){var b=this._focusedTextField.getText();if(this._focusedTextField===this._monthTextField){this._monthInt=this._spinner.getValue();if(this._medium){this._focusedTextField.setText(this._addLeadingZero(this._monthInt))}else{this._focusedTextField.setText(this._monthname[this._monthInt-1])}}else{if(this._focusedTextField===this._yearTextField){this._lastValidYear=this._spinner.getValue();this._focusedTextField.setText(""+this._spinner.getValue())}else{this._focusedTextField.setText(this._addLeadingZero(this._spinner.getValue()))}}if(this._focusedTextField==this._monthTextField||this._focusedTextField==this._yearTextField){var c=this._dayTextField.getText();if(c>this._getDaysInMonth()){this._dayTextField.setText(""+this._getDaysInMonth())}}this._setWeekday();var d=this._focusedTextField.getText();if(b!=d){this._sendChanges()}}},_onKeyPress:function(a){var d=a.getKeyIdentifier();if(this._dropped){this._calendar._onkeypress(a);if(rwt.widgets.DateTimeDate._isNoModifierPressed(a)){switch(d){case $[49]:case $[104]:case $[78]:case"Tab":this._toggleCalendarVisibility();break;case"Left":case $[35]:case"Up":case"Down":case $[40]:case $[45]:var b=this._calendar.getDate();this._setDate(b);this._sendChanges();a.preventDefault();a.stopPropagation();break}}else{if(a.isShiftPressed()){switch(d){case"Tab":this._toggleCalendarVisibility();break;case $[40]:case $[45]:var b=this._calendar.getDate();this._setDate(b);this._sendChanges();a.preventDefault();a.stopPropagation();break}}}}else{if(rwt.widgets.DateTimeDate._isNoModifierPressed(a)){switch(d){case"Left":if(this._datePattern=="MDY"){this._rollLeft(this._monthTextField,this._dayTextField,this._yearTextField)}else{if(this._datePattern=="DMY"){this._rollLeft(this._dayTextField,this._monthTextField,this._yearTextField)}else{if(this._medium){this._rollLeft(this._yearTextField,this._monthTextField,this._dayTextField)}else{this._rollLeft(this._monthTextField,this._dayTextField,this._yearTextField)}}}a.preventDefault();a.stopPropagation();break;case $[35]:if(this._datePattern=="MDY"){this._rollRight(this._monthTextField,this._dayTextField,this._yearTextField)}else{if(this._datePattern=="DMY"){this._rollRight(this._dayTextField,this._monthTextField,this._yearTextField)}else{if(this._medium){this._rollRight(this._yearTextField,this._monthTextField,this._dayTextField)}else{this._rollRight(this._monthTextField,this._dayTextField,this._yearTextField)}}}a.preventDefault();a.stopPropagation();break;case"Up":if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}var c=this._spinner.getValue();if(c==this._spinner.getMax()){this._spinner.setValue(this._spinner.getMin())}else{this._spinner.setValue(c+1)}a.preventDefault();a.stopPropagation();break;case"Down":if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}var c=this._spinner.getValue();if(c==this._spinner.getMin()){this._spinner.setValue(this._spinner.getMax())}else{this._spinner.setValue(c-1)}a.preventDefault();a.stopPropagation();break;case $[40]:case $[45]:case"Home":case"End":a.preventDefault();a.stopPropagation();break}}}},_rollRight:function(c,b,a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}if(this._focusedTextField===c){if(b.isSeeable()){this._setFocusedTextField(b)}else{this._setFocusedTextField(a)}}else{if(this._focusedTextField===b){if(a.isSeeable()){this._setFocusedTextField(a)}else{this._setFocusedTextField(c)}}else{if(this._focusedTextField===a){if(c.isSeeable()){this._setFocusedTextField(c)}else{this._setFocusedTextField(b)}}}}},_rollLeft:function(c,b,a){if(this._focusedTextField===this._yearTextField){this._checkAndApplyYearValue()}if(this._focusedTextField===c){if(a.isSeeable()){this._setFocusedTextField(a)}else{this._setFocusedTextField(b)}}else{if(this._focusedTextField===b){if(c.isSeeable()){this._setFocusedTextField(c)}else{this._setFocusedTextField(a)}}else{if(this._focusedTextField===a){if(b.isSeeable()){this._setFocusedTextField(b)}else{this._setFocusedTextField(c)}}}}},_onKeyUp:function(a){if(!this._dropped){var b=a.getKeyIdentifier();var e=this._focusedTextField.getText();e=this._removeLeadingZero(e);if(rwt.widgets.DateTimeDate._isNoModifierPressed(a)){switch(b){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":var d=this._focusedTextField.getUserData($[155]);if(this._focusedTextField===this._monthTextField){e=""+this._monthInt;d=2}var f=b;if(e.length=this._spinner.getMin()&&c<=this._spinner.getMax()){this._spinner.setValue(c)}else{f=b;c=parseInt(f,10);if(c>=this._spinner.getMin()&&c<=this._spinner.getMax()){this._spinner.setValue(c)}}}else{if(this._focusedTextField==this._yearTextField){this._focusedTextField.setText(f);if(f.length==4){this._checkAndApplyYearValue()}}}this._initialEditing=false;a.preventDefault();a.stopPropagation();break;case"Home":var f=this._spinner.getMin();this._spinner.setValue(f);this._initialEditing=true;a.preventDefault();a.stopPropagation();break;case"End":var f=this._spinner.getMax();this._spinner.setValue(f);this._initialEditing=true;a.preventDefault();a.stopPropagation();break}}}},_onMouseWheel:function(a){if(this.getFocused()){a.preventDefault();a.stopPropagation();if(!this._dropped){this._spinner._onmousewheel(a)}}},_getDaysInMonth:function(){var a=31;var c=this._monthInt-1;var d=parseInt(this._yearTextField.getText(),10);var b=new Date(d,c,1);b.setDate(a);while(b.getMonth()!==c){a--;b=new Date(d,c,1);b.setDate(a)}return a},_setWeekday:function(){var a=new Date();a.setDate(parseInt(this._dayTextField.getText(),10));a.setMonth(this._monthInt-1);a.setFullYear(parseInt(this._yearTextField.getText(),10));this._weekdayTextField.setText(this._weekday[a.getDay()+1])},_checkAndApplyYearValue:function(){var a=this._lastValidYear;var b=parseInt(this._yearTextField.getText(),10);if(b>=0&&b<=29){this._lastValidYear=2000+b}else{if(b>=30&&b<=99){this._lastValidYear=1900+b}else{if(b>=1752){this._lastValidYear=b}}}this._yearTextField.setText(""+a);if(a!=this._lastValidYear){this._spinner.setValue(this._lastValidYear)}},_addLeadingZero:function(a){return a<10?"0"+a:""+a},_removeLeadingZero:function(c){var a=c;if(c.length==2){var b=c.substring(0,1);if(b=="0"){a=c.substring(1)}}return a},_sendChanges:function(){if(!rwt.remote.EventUtil.getSuspended()){var c=rwt.remote.WidgetManager.getInstance();var a=rwt.remote.Server.getInstance();var b=c.findIdByWidget(this);a.addParameter(b+".day",this._removeLeadingZero(this._dayTextField.getText()));a.addParameter(b+".month",this._monthInt-1);a.addParameter(b+".year",this._lastValidYear);if(this._hasSelectionListener){this._requestTimer.restart()}}},_onInterval:function(){this._requestTimer.stop();rwt.remote.EventUtil.notifySelected(this)},setMonth:function(a){this._monthInt=a+1;if(this._medium){this._monthTextField.setText(this._addLeadingZero(this._monthInt))}else{this._monthTextField.setText(this._monthname[this._monthInt-1])}if(this._focusedTextField===this._monthTextField){this._spinner.setValue(this._monthInt)}this._setWeekday()},setDay:function(a){this._dayTextField.setText(this._addLeadingZero(a));if(this._focusedTextField===this._dayTextField){this._spinner.setValue(a)}this._setWeekday()},setYear:function(a){this._lastValidYear=a;this._yearTextField.setText(""+a);if(this._focusedTextField===this._yearTextField){this._spinner.setValue(a)}this._setWeekday()},_setDate:function(a){this.setYear(a.getFullYear());this.setMonth(a.getMonth());this.setDay(a.getDate())},setHasSelectionListener:function(a){this._hasSelectionListener=a;this._requestTimer=new rwt.client.Timer(110);this._requestTimer.addEventListener($[27],this._onInterval,this)},setBounds:function(e,b,f,c,a){var d=null;switch(e){case rwt.widgets.DateTimeDate.WEEKDAY_TEXTFIELD:d=this._weekdayTextField;break;case rwt.widgets.DateTimeDate.DATE_TEXTFIELD:d=this._dayTextField;break;case rwt.widgets.DateTimeDate.MONTH_TEXTFIELD:d=this._monthTextField;break;case rwt.widgets.DateTimeDate.YEAR_TEXTFIELD:d=this._yearTextField;break;case rwt.widgets.DateTimeDate.WEEKDAY_MONTH_SEPARATOR:d=this._separator0;break;case rwt.widgets.DateTimeDate.MONTH_DATE_SEPARATOR:d=this._separator1;break;case rwt.widgets.DateTimeDate.DATE_YEAR_SEPARATOR:d=this._separator2;break;case rwt.widgets.DateTimeDate.SPINNER:d=this._spinner;break;case rwt.widgets.DateTimeDate.DROP_DOWN_BUTTON:d=this._dropDownButton;break}if(d!=null){d.set({left:b,top:f,width:c,height:a})}},_onAppear:function(a){if(this._calendar!=null){this.getTopLevelWidget().add(this._calendar);this._setCalendarLocation()}},_onWindowBlur:function(a){if(this._dropped){this._toggleCalendarVisibility()}},_onChangeVisibility:function(a){var b=a.getValue();if(!b&&this._dropped){this._toggleCalendarVisibility()}},_onMouseDown:function(a){var b=a.getTarget();if(b.getUserData($[186])){a.stopPropagation()}else{if(b.getUserData($[183])){a.stopPropagation()}else{if(this._dropped&&b!==this._dropDownButton){this._toggleCalendarVisibility()}}}},_onMouseClick:function(a){if(a.isLeftButtonPressed()){var c=a.getTarget();if(c.getUserData($[186])){this._calendar._onDayClicked(a);var b=this._calendar.getDate();this._setDate(b);this._toggleCalendarVisibility();this.setFocused(true);this._sendChanges()}else{if(c.getUserData($[183])){this._calendar._onNavButtonClicked(a)}else{if(c===this._dropDownButton){this._toggleCalendarVisibility()}}}}},_onMouseOver:function(a){var b=a.getTarget();if(b==this._dropDownButton){this._dropDownButton.addState("over")}else{if(b.getUserData($[186])){this._calendar._onDayMouseOver(a)}}},_onMouseOut:function(a){var b=a.getTarget();if(b==this._dropDownButton){this._dropDownButton.removeState("over")}else{if(b.getUserData($[186])){this._calendar._onDayMouseOut(a)}}},_toggleCalendarVisibility:function(){if(this._calendar!=null){this._dropped=!this._dropped;this._calendar.setVisibility(this._dropped);this.setCapture(this._dropped);if(this._dropped){this._bringToFront();this._setCalendarLocation();var c=parseInt(this._yearTextField.getText(),10);var a=parseInt(this._dayTextField.getText(),10);var b=new Date(c,this._monthInt-1,a);this._calendar.setDate(b);this._focusedTextField.removeState($[24])}else{if(this.getFocused()){this._focusedTextField.addState($[24])}}}},_setCalendarLocation:function(){if(this.getElement()&&this._calendar!=null){var b=rwt.html.Location.get(this.getElement());var c=rwt.html.Window.getInnerHeight(window);var d=b.top+this.getHeight();var a=this._calendar.getHeightValue();if(d+a>c){d=b.top-a}this._calendar.setLocation(b.left,d)}},_bringToFront:function(){var a=this.getTopLevelWidget().getChildren();var b=this._calendar.getZIndex();for(var d in a){var c=a[d];if(c.getZIndex){if(bthis._calendar.getZIndex()){this._calendar.setZIndex(b+1)}}}}); rwt.qx.Class.define("rwt.widgets.DateTimeCalendar",{extend:rwt.widgets.base.Parent,construct:function(c,b,a){arguments.callee.base.call(this);this.setOverflow($[10]);this.setAppearance("datetime-calendar");this._hasSelectionListener=false;rwt.widgets.base.Calendar.MONTH_NAMES=b;rwt.widgets.base.Calendar.WEEKDAY_NAMES=a;this._calendar=new rwt.widgets.base.Calendar();this._calendar.addEventListener($[288],this._onChangeDate,this);this._calendar.setDate(new Date(74,5,6));this._calendar.setTabIndex(null);this.add(this._calendar);this.addEventListener($[42],this._onContextMenu,this);this.addEventListener($[4],this._onKeyPress,this);this.addEventListener($[43],this._onmousewheel,this);this.addEventListener($[68],this._onFocusIn,this);this.addEventListener("blur",this._onFocusOut,this);this._updateSelectedDayState()},destruct:function(){this._calendar.removeEventListener($[288],this._onChangeDate,this);this.removeEventListener($[42],this._onContextMenu,this);this.removeEventListener($[4],this._onKeyPress,this);this.removeEventListener($[43],this._onmousewheel,this);this.removeEventListener($[68],this._onFocusIn,this);this.removeEventListener("blur",this._onFocusOut,this);this._disposeObjects("_calendar")},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[38]){this._calendar.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[38]){this._calendar.removeState(a)}},_onChangeDate:function(){var a=this._calendar.getDate();this._sendChanges(a.getDate(),a.getMonth(),a.getFullYear())},_onContextMenu:function(a){var b=this.getContextMenu();if(b!=null){b.setLocation(a.getPageX(),a.getPageY());b.setOpener(this);b.show();a.stopPropagation()}},_onKeyPress:function(a){this._calendar._onkeypress(a)},_onmousewheel:function(a){a.preventDefault();a.stopPropagation()},_onFocusIn:function(a){this._updateSelectedDayState()},_onFocusOut:function(a){this._updateSelectedDayState()},_updateSelectedDayState:function(){for(var a=0;a<6*7;a++){if(this.getFocused()){this._calendar._dayLabelArr[a].removeState($[91])}else{this._calendar._dayLabelArr[a].addState($[91])}}},_sendChanges:function(a,d,b){if(!rwt.remote.EventUtil.getSuspended()){var f=rwt.remote.WidgetManager.getInstance();var c=rwt.remote.Server.getInstance();var e=f.findIdByWidget(this);c.addParameter(e+".day",a);c.addParameter(e+".month",d);c.addParameter(e+".year",b);if(this._hasSelectionListener){rwt.remote.EventUtil.notifySelected(this)}}},setMonth:function(b){var a=this._calendar.getDate();a.setMonth(b);this._calendar.setDate(a)},setDay:function(b){var a=this._calendar.getDate();a.setDate(b);this._calendar.setDate(a)},setYear:function(b){var a=this._calendar.getDate();a.setYear(b);this._calendar.setDate(a)},setHasSelectionListener:function(a){this._hasSelectionListener=a},setFont:function(){}}}); rwt.remote.HandlerRegistry.add("rwt.widgets.DateTime",{factory:function(b){var a;var d=rwt.remote.HandlerUtil.createStyleMap(b.style);var c;if(d.SHORT){c="short"}else{if(d.LONG){c="long"}else{c="medium"}}if(d.DROP_DOWN){c+="|drop_down"}if(d.TIME){a=new rwt.widgets.DateTimeTime(c)}else{if(d.CALENDAR){rwt.widgets.base.Calendar.CELL_WIDTH=b.cellSize[0];rwt.widgets.base.Calendar.CELL_HEIGHT=b.cellSize[1];a=new rwt.widgets.DateTimeCalendar(c,b.monthNames,b.weekdayShortNames)}else{rwt.widgets.base.Calendar.CELL_WIDTH=b.cellSize[0];rwt.widgets.base.Calendar.CELL_HEIGHT=b.cellSize[1];a=new rwt.widgets.DateTimeDate(c,b.monthNames,b.weekdayNames,b.weekdayShortNames,b.dateSeparator,b.datePattern)}}rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData($[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(["year","month","day","hours","minutes","seconds","subWidgetsBounds"]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({subWidgetsBounds:function(c,b){for(var a=0;athis.getMaxLength()){var c=this.getValue();var a=this._getSelectionStart();if(c.length==(f.length-1)){this._inputElement.value=c;this._setSelectionStart(a-1);this._setSelectionLength(0)}else{if(f.length>=c.length&&f!=c){this._inputElement.value=f.slice(0,this.getMaxLength());this._setSelectionStart(Math.min(a,this.getMaxLength()));this._setSelectionLength(0)}}if(this._inputElement.value==c){d=false}}}if(d){this._oninputDom(e)}},_syncFieldWidth:function(){var a=this.getInnerWidth()-this._getIconOuterWidth($[79])-this._getIconOuterWidth($[83]);this._inputElement.style.width=Math.max(2,a)+"px"},_syncFieldLeft:function(){this._inputElement.style.marginLeft=this._getIconOuterWidth($[79])+"px"},_updateAllIcons:function(){if(this._isCreated){this._updateIcon($[79]);this._updateIcon($[83])}},_updateIcon:function(b){var a=this._getIconElement(b);if(this._hasIcon(b)&&a==null){a=document.createElement("div");a.style.position=$[16];a.style.cursor=$[149];if(rwt.client.Client.isMshtml()){a.style.fontSize=0;a.style.lineHeight=0}this._getTargetNode().insertBefore(a,this._inputElement);this._setIconElement(b,a)}if(a){var c=this._getIconImage(b);a.style.backgroundImage=c?"URL("+c[0]+")":"none"}this._layoutIcon(b)},_layoutAllIcons:function(){this._layoutIcon($[79]);this._layoutIcon($[83])},_layoutIcon:function(c){var a=this._getIconElement(c);if(a){var b=a.style;var e=this._getIconImage(c);b.width=e?e[1]+"px":0;b.height=e?e[2]+"px":0;var g=parseInt(b.height,10);b.top=Math.round(this.getInnerHeight()/2-g/2)+"px";if(this._getIconPosition(c)===$[13]){var d=this._getMessageStyle();var f=parseInt(b.width,10);b.left=(this.getBoxWidth()-this._cachedBorderRight-d.paddingRight-f)+"px"}}},_getIconElement:function(a){return a===$[79]?this._searchIconElement:this._cancelIconElement},_setIconElement:function(b,a){if(b===$[79]){this._searchIconElement=a}else{this._cancelIconElement=a}},_getIconOuterWidth:function(b){var a=0;var c=this._getIconImage(b);if(this._hasIcon(b)&&c!=null){a=c[1]+this._getIconSpacing(b)}return a},_hasIcon:function(a){return this.hasState(a===$[79]?"rwt_ICON_SEARCH":"rwt_ICON_CANCEL")},_getIconImage:function(a){return this._hasIcon(a)?this._getIconStyle(a).icon:null},_getIconPosition:function(a){return a===$[79]?"left":$[13]},_getIconSpacing:function(a){return this._hasIcon(a)?this._getIconStyle(a).spacing:0},_getIconStyle:function(b){var a=rwt.theme.AppearanceManager.getInstance();return a.styleFrom("text-field-icon",b===$[79]?{search:true}:{})},_reCreateInputField:function(){var a=this._getSelectionStart();var b=this._getSelectionLength();this._inputElement.parentNode.removeChild(this._inputElement);this._inputElement.onpropertychange=null;this._inputElement=null;this._firstInputFixApplied=false;this._applyElement(this.getElement(),null);this._afterAppear();this._postApply();this._applyFocused(this.getFocused());this._setSelectionStart(a);this._setSelectionLength(b)},_postApply:function(){arguments.callee.base.call(this);this._syncFieldLeft();this._layoutAllIcons();this._layoutMessage()},_applyValue:function(b,a){arguments.callee.base.call(this,b,a);this._updateMessageVisibility();if(!rwt.remote.EventUtil.getSuspended()){this._handleModification()}},_applyFocused:function(b,a){arguments.callee.base.call(this,b,a);this._updateMessageVisibility();if(b&&(this.getValue()===""||this.getValue()==null)){this._forceFocus()}},_forceFocus:rwt.util.Variant.select($[0],{mshtml:function(){rwt.client.Timer.once(function(){if(this._inputElement){this._inputElement.select();this._inputElement.focus()}},this,1)},webkit:function(){rwt.client.Timer.once(function(){if(this._inputElement){this._inputElement.focus()}},this,1)},"default":function(){}}),_applyCursor:function(b,a){arguments.callee.base.call(this,b,a);this._updateMessageCursor()},_applyFont:function(b,a){arguments.callee.base.call(this,b,a);this._updateMessageFont()},_preventEnter:function(a){if(this._inputTag!==$[119]){arguments.callee.base.call(this,a)}},_updateMessage:function(){if(this._isCreated){if(this._message!=null&&this._message!==""&&this._messageElement==null){this._messageElement=document.createElement("div");var a=this._messageElement.style;a.position=$[16];a.outline="none";var b=this._getMessageStyle();a.color=b.textColor||"";a.left=b.paddingLeft+"px";rwt.html.Style.setTextShadow(this._messageElement,b.textShadow);this._getTargetNode().insertBefore(this._messageElement,this._inputElement)}if(this._messageElement){this._messageElement.innerHTML=this._message?this._message:""}this._updateMessageCursor();this._updateMessageVisibility();this._updateMessageFont();this._layoutMessage()}},_layoutMessage:function(){if(this._messageElement){var d=this._getMessageStyle();var c=this._messageElement.style;var b=this.getBoxWidth()-this._cachedBorderLeft-this._cachedBorderRight-d.paddingLeft-d.paddingRight-this._getIconOuterWidth($[79])-this._getIconOuterWidth($[83]);c.width=Math.max(0,b)+"px";var a=parseInt(c.height,10);c.top=Math.round(this.getInnerHeight()/2-a/2)+"px";c.left=(this._getIconOuterWidth($[79])+d.paddingLeft)+"px"}},_getMessageStyle:function(){var a=rwt.theme.AppearanceManager.getInstance();return a.styleFrom("text-field-message",{})},_updateMessageVisibility:function(){if(this._messageElement){var a=(this.getValue()==null||this.getValue()==="")&&!this.getFocused();this._messageElement.style.display=a?"":"none"}},_updateMessageFont:function(){if(this._messageElement){var b=this._messageElement.style;var a=this.getFont();a.renderElement(this._messageElement);b.height=Math.round(a.getSize()*this._LINE_HEIGT_FACTOR)+"px"}},_updateMessageCursor:function(){if(this._messageElement){var a=this._inputElement.style.cursor;if(a==null||a===""){a="text"}this._messageElement.style.cursor=a}}}})}()); rwt.remote.HandlerRegistry.add($[341],{factory:function(b){var c=rwt.remote.HandlerUtil.createStyleMap(b.style);var a=new rwt.widgets.Text(c.MULTI);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);a.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(a,b.parent);if(c.RIGHT){a.setTextAlign($[13])}else{if(c.CENTER){a.setTextAlign($[23])}}a.setWrap(c.WRAP!==undefined);return a},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties(["text","message","echoChar","editable",$[60],$[293]]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({text:function(c,b){var a=rwt.util.Encoding;var d=a.truncateAtZero(b);if(!c.hasState($[210])){d=a.replaceNewLines(d," ")}c.setValue(d)},echoChar:function(b,a){if(!b.hasState($[210])){b.setPasswordMode(a!==null)}},editable:function(b,a){b.setReadOnly(!a)},textLimit:function(b,a){b.setMaxLength(a)}}),listeners:rwt.remote.HandlerUtil.extendControlListeners([$[111],"Modify"]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define($[465],{extend:rwt.widgets.base.BoxLayout,construct:function(){arguments.callee.base.call(this);rwt.widgets.util.WidgetUtil.fixIEBoxHeight(this);this._line=new rwt.widgets.base.Parent();this._line.setAnonymous(true);this._line.setAppearance("separator-line");this.add(this._line)},properties:{appearance:{refine:true,init:$[298]}},destruct:function(){this._line.dispose();this._line=null},members:{addState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[38]){this._line.addState(a)}},removeState:function(a){arguments.callee.base.call(this,a);if(a.substr(0,8)==$[38]){this._line.removeState(a)}},setLineStyle:function(a){this._line.addState(a)},setLineOrientation:function(a){if(a==$[31]){this.setHorizontalChildrenAlign($[23]);this._line.setHeight("100%");this._line.addState($[224])}else{this.setVerticalChildrenAlign($[44]);this._line.setWidth("100%");this._line.removeState($[224])}}}}); rwt.remote.HandlerRegistry.add($[465],{factory:function(c){var b=new rwt.widgets.Separator();rwt.remote.HandlerUtil.addStatesForStyles(b,c.style);b.setUserData($[22],true);rwt.remote.HandlerUtil.setParent(b,c.parent);var d=rwt.remote.HandlerUtil.createStyleMap(c.style);b.setLineOrientation(d.VERTICAL?$[31]:$[37]);var a="rwt_SHADOW_NONE";if(d.SHADOW_IN){a="rwt_SHADOW_IN"}else{if(d.SHADOW_OUT){a="rwt_SHADOW_OUT"}}b.setLineStyle(a);return b},destructor:rwt.remote.HandlerUtil.getControlDestructor(),getDestroyableChildren:rwt.remote.HandlerUtil.getDestroyableChildrenFinder(),properties:rwt.remote.HandlerUtil.extendControlProperties([]),propertyHandler:rwt.remote.HandlerUtil.extendControlPropertyHandler({}),listeners:rwt.remote.HandlerUtil.extendControlListeners([]),listenerHandler:rwt.remote.HandlerUtil.extendControlListenerHandler({})}); rwt.qx.Class.define($[438],{extend:rwt.widgets.base.Image,construct:function(){arguments.callee.base.call(this);this.setZIndex(1000);this.setVisibility(false);this._showHover=true;this._text=null},members:{setText:function(a){this._text=a;this._updateToolTip()},setShowHover:function(a){this._showHover=a;this._updateToolTip()},_updateToolTip:function(){var a=rwt.remote.WidgetManager.getInstance();if(this._text===null||this._text===""||!this._showHover){a.setToolTip(this,null)}else{a.setToolTip(this,this._text)}},setHasSelectionListener:function(b){var a=rwt.remote.EventUtil;if(b){this.addEventListener($[1],a.widgetSelected,this)}else{this.removeEventListener($[1],a.widgetSelected,this)}},setHasDefaultSelectionListener:function(b){var a=rwt.remote.EventUtil;if(b){this.addEventListener($[48],a.widgetDefaultSelected,this)}else{this.removeEventListener($[48],a.widgetDefaultSelected,this)}}}}); rwt.remote.HandlerRegistry.add($[438],{factory:function(b){var a=new rwt.widgets.ControlDecorator();rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);rwt.remote.HandlerUtil.setParent(a,b.parent);return a},destructor:rwt.remote.HandlerUtil.getWidgetDestructor(),properties:[$[86],"text",$[14],$[279],"showHover"],propertyHandler:{bounds:function(b,a){b.setLeft(a[0]);b.setTop(a[1]);b.setWidth(a[2]);b.setHeight(a[3])},text:function(c,b){var a=rwt.util.Encoding;var d=a.escapeText(b,false);d=a.replaceNewLines(d,$[96]);c.setText(d)},image:function(b,a){if(a===null){b.setSource(null)}else{b.setSource(a[0])}},visible:function(b,a){b.setVisibility(a)}},listeners:[$[30],$[111]]}); rwt.qx.Class.define("rwt.runtime.MobileWebkitSupport",{type:$[151],statics:{_draggableTypes:{"rwt.widgets.Shell":null,"rwt.widgets.Sash":null,"rwt.widgets.Scale":[$[371]],"rwt.widgets.Slider":[$[379]],"rwt.widgets.base.ScrollBar":null,"rwt.widgets.ScrolledComposite":[$[204]],"rwt.widgets.base.BasicButton":[$[204]],"rwt.widgets.base.Parent":[$[541]],"rwt.widgets.List":[$[204]],"rwt.widgets.Grid":["tree-column",$[67],$[14],$[204]]},_lastMouseOverTarget:null,_lastMouseClickTarget:null,_lastMouseClickTime:null,_mouseEnabled:true,_fullscreen:window.navigator.standalone,_touchListener:null,_gestureListener:null,_touchSession:null,_allowNativeScroll:false,_allowedMouseEvents:{INPUT:{mousedown:true,mouseup:true},TEXTAREA:{mousedown:true,mouseup:true},"*":{mousewheel:true}},init:function(){if(rwt.client.Client.supportsTouch()){this._configureToolTip();this._hideTabHighlight();this._bindListeners();this._registerListeners();this._registerFilter();this.setTouchScrolling(!rwt.client.Client.isAndroidBrowser())}},addDraggableType:function(a){var b=a in this._draggableTypes;if(!b){this._draggableTypes[a]=null}},setTouchListener:function(b,a){this._touchListener=[b,a]},setGestureListener:function(b,a){this._gestureListener=[b,a]},setTouchScrolling:function(a){this._allowNativeScroll=a},_isZoomed:function(){var a=window.orientation%180===0;var b=a?screen.width:screen.height;return window.innerWidth!==b},_configureToolTip:function(){var a=rwt.widgets.base.WidgetToolTip.getInstance();a.setShowInterval(600);a.setHideInterval(15000);a.setMousePointerOffsetX(-35);a.setMousePointerOffsetY(-100);var b=rwt.widgets.util.ToolTipManager.getInstance();b.handleMouseEvent=function(d){var c=d.getType();if(c===$[1]){this._handleMouseOver(d)}else{if(c===$[5]){this.setCurrentToolTip(null)}}}},_hideTabHighlight:function(){rwt.html.StyleSheet.createElement(" * { -webkit-tap-highlight-color: rgba(0,0,0,0); }")},_bindListeners:function(){this.__onTouchEvent=rwt.util.Functions.bind(this._onTouchEvent,this);this.__onGestureEvent=rwt.util.Functions.bind(this._onGestureEvent,this);this.__onOrientationEvent=rwt.util.Functions.bind(this._onOrientationEvent,this)},_registerListeners:function(){var a=document.body;a.ontouchstart=this.__onTouchEvent;a.ontouchmove=this.__onTouchEvent;a.ontouchend=this.__onTouchEvent;a.ontouchcancel=this.__onTouchEvent;a.ongesturestart=this.__onGestureEvent;a.ongesturechange=this.__onGestureEvent;a.ongestureend=this.__onGestureEvent;a.onorientationchange=this.__onOrientationEvent},_removeListeners:function(){var a=document.body;a.ontouchstart=null;a.ontouchmove=null;a.ontouchend=null;a.ontouchcancel=null;a.ongesturestart=null;a.ongesturechange=null;a.ongestureend=null;a.onorientationchange=null},_registerFilter:function(){var a=rwt.event.EventHandler;a.setMouseEventFilter(this._filterMouseEvents,this)},_filterMouseEvents:function(b){var c=this._allowedMouseEvents;var a=typeof b.originalEvent===$[20];if(!a){a=c["*"][b.type]===true}if(!a&&typeof c[b.target.tagName]===$[20]){a=c[b.target.tagName][b.type]===true}if(!a){b.preventDefault();b.returnValue=false}return a},_onTouchEvent:function(c){try{if(!rwt.remote.EventUtil.getSuspended()){var b=c.type;if(this._mouseEnabled){switch(b){case"touchstart":this._handleTouchStart(c);break;case"touchend":this._handleTouchEnd(c);break;case"touchmove":this._handleTouchMove(c);break}}else{if(this._touchListener!==null){this._touchListener[0].call(this._touchListener[1],c)}}}else{c.preventDefault()}}catch(a){alert("Error in touch event handling:"+a);if(typeof console===$[20]){console.log(a);if(a.stack){console.log(a.stack)}}}},_getTouch:function(a){var b=a.touches.item(0);if(b===null){b=a.changedTouches.item(0)}return b},_handleTouchStart:function(b){var e=this._getTouch(b);var c=b.target;var a=rwt.event.EventHandlerUtil.getOriginalTargetObject(c);var d=[e.clientX,e.clientY];this._touchSession={type:this._getSessionType(a),initialTarget:c,widgetTarget:a,initialPosition:d};if(!this._touchSession.type.scroll&&!this._touchSession.type.outerScroll&&!this._touchSession.type.focus){b.preventDefault()}this._moveMouseTo(c,b);this._fireMouseEvent($[1],c,b,d);if(this._touchSession.type.virtualScroll){this._initVirtualScroll(a)}},_handleTouchMove:function(b){if(this._touchSession!==null){var e=this._getTouch(b);var d=[e.clientX,e.clientY];if(!this._touchSession.type.scroll){b.preventDefault()}if(this._touchSession.type.virtualScroll){this._handleVirtualScroll(d)}if(this._touchSession.type.drag){b.preventDefault();var c=b.target;this._fireMouseEvent($[28],c,b,d)}else{var a=this._touchSession.initialPosition;if(Math.abs(a[0]-d[0])>=15||Math.abs(a[1]-d[1])>=15){this._cancelMouseSession(b)}}}},_handleTouchEnd:function(a){a.preventDefault();var d=this._getTouch(a);var c=[d.clientX,d.clientY];var b=a.target;if(this._touchSession!==null){if(this._touchSession.type.click){this._fireMouseEvent($[5],b,a,c)}if(this._touchSession.type.virtualScroll){this._finishVirtualScroll()}if(this._touchSession.type.click&&this._touchSession.initialTarget===b){this._fireMouseEvent($[15],b,a,c);this._touchSession=null;if(this._isDoubleClick(a)){this._lastMouseClickTarget=null;this._lastMouseClickTime=null;this._fireMouseEvent($[48],b,a,c)}else{this._lastMouseClickTarget=b;this._lastMouseClickTime=(new Date()).getTime()}}}},_getSessionType:function(b){var a={};a.click=true;if(this._isDraggableWidget(b)){a.drag=true}else{if(this._isGridRow(b)){a.virtualScroll=true;a.outerScroll=this._allowNativeScroll&&this._isScrollableWidget(b)}else{if(this._allowNativeScroll&&this._isScrollableWidget(b)){a.scroll=true}else{if(this._isFocusable(b)){a.focus=true}}}}return a},_initVirtualScroll:function(c){var b;if(c instanceof rwt.widgets.base.GridRow){b=c.getParent().getParent()}else{b=this._findScrollable(c)}var d=b._vertScrollBar;var a=b._horzScrollBar;this._touchSession.scrollBarV=d;this._touchSession.initScrollY=d.getValue();this._touchSession.maxScrollY=d.getMaximum();this._touchSession.scrollBarH=a;this._touchSession.initScrollX=a.getValue();this._touchSession.maxScrollX=a.getMaximum()},_handleVirtualScroll:function(h){var b=this._touchSession.initialPosition;var e=b[0]-h[0];var d=b[1]-h[1];var a=this._touchSession.initScrollX+e;var k=this._touchSession.initScrollY+d;var i=this._touchSession.scrollBarV.getMaximum()-this._touchSession.scrollBarV._thumbLength;var c=k<0||k>i;if(this._touchSession.type.outerScroll&&c){var j=this._findScrollable(this._touchSession.widgetTarget);var g=j._vertScrollBar.getValue();var f=j._vertScrollBar.getMaximum()-j._vertScrollBar._thumbLength;if((k<0&&g>0)||(k>i&&g0&&!this._matchesWidthToHeightRatio(a)){b-=10;a=this._getTextSize(c,b)}a.x=this._max(a.x,d.x);this._message.setWidth(a.x);this._message.setHeight(a.y)},_matchesWidthToHeightRatio:function(a){return a.x/a.y<=6},_max:function(d,c){return d>c?d:c},_getTextSize:function(d,a){var c=[];c[0]="";c[1]=d;c[2]=this._messageFont.getFamily();c[3]=this._messageFont.getSize();c[4]=this._messageFont.getBold();c[5]=this._messageFont.getItalic();c[6]=a;var b=rwt.widgets.util.FontSizeCalculation._measureItem(c);return{x:b[0],y:b[1]}},_onMouseDown:function(a){this._hide();if(this._hasSelectionListener){var c=this._getWidgetId();var b=rwt.remote.Server.getInstance();b.addEvent("org.eclipse.swt.events.Selection",c);b.send()}},_hide:function(){this.setVisible(false);rwt.widgets.base.Widget.flushGlobalQueues();var a=rwt.remote.Server.getInstance();a.addParameter(this._getWidgetId()+".visible",false)},_getWidgetId:function(){var a=rwt.remote.WidgetManager.getInstance();return a.findIdByWidget(this)},_getMessageFont:function(){var a=new rwt.theme.ThemeValues({});return a.getCssFont("ToolTip-Message","font")}}}); rwt.remote.HandlerRegistry.add($[427],{factory:function(b){var d=rwt.remote.HandlerUtil.createStyleMap(b.style);var c=null;if(d.ICON_ERROR){c=$[134]}else{if(d.ICON_WARNING){c="warning"}else{if(d.ICON_INFORMATION){c="information"}}}var a=new rwt.widgets.ToolTip(c);rwt.remote.HandlerUtil.addStatesForStyles(a,b.style);rwt.remote.HandlerUtil.callWithTarget(b.parent,function(e){rwt.remote.HandlerUtil.addDestroyableChild(e,a)});return a},destructor:rwt.remote.HandlerUtil.getWidgetDestructor(),properties:[$[85],$[360],$[126],"autoHide","text","message","location",$[279]],propertyHandler:{roundedBorder:rwt.remote.HandlerUtil.getRoundedBorderHandler(),backgroundGradient:rwt.remote.HandlerUtil.getBackgroundGradientHandler(),autoHide:function(b,a){b.setHideAfterTimeout(a)},text:function(c,b){var a=rwt.util.Encoding;var d=a.escapeText(b,false);c.setText(d)},message:function(c,b){var a=rwt.util.Encoding;var d=a.escapeText(b,false);d=a.replaceNewLines(d,$[96]);c.setMessage(d)},location:function(b,a){b.setLocation(a[0],a[1])}},listeners:[$[30]]}); rwt.qx.Class.define("rwt.remote.WidgetManager",{type:$[39],extend:rwt.qx.Object,construct:function(){arguments.callee.base.call(this)},members:{dispose:function(b){var a=this.findWidgetById(b);if(a!=null){this.remove(a);if(!a.getDisposed()){this._removeToolTipPopup(a);a.destroy()}}},add:function(c,d,b,a){if(b===true){c.setUserData($[22],true)}rwt.remote.ObjectRegistry.add(d,c,a)},remove:function(a){var b=this.findIdByWidget(a);rwt.remote.ObjectRegistry.remove(b)},findWidgetById:function(a){return rwt.remote.ObjectRegistry.getObject(a)},findIdByWidget:function(a){return rwt.remote.ObjectRegistry.getId(a)},isControl:function(b){var a=null;if(b!=null){a=b.getUserData($[22])}return a===true},findControl:function(b){var a=b;while(a!=null&&!this.isControl(a)){a=a.getParent?a.getParent():null}return a},findEnabledControl:function(b){var a=b;while(a!=null&&!(this.isControl(a)&&a.getEnabled())){a=a.getParent?a.getParent():null}return a},setToolTip:function(c,b){if(b!=null&&b!==""){c.setUserData($[182],b);var a=rwt.widgets.base.WidgetToolTip.getInstance();c.setToolTip(a);if(a.getParent()!=null){if(a.getBoundToWidget()==c){a.updateText(c)}}}else{this._removeToolTipPopup(c)}},_removeToolTipPopup:function(a){a.setToolTip(null);a.setUserData($[182],null)}}}); namespace($[185]);rwt.remote.MessageProcessor={processMessage:function(c){this.processHead(c.head);var a=c.operations;for(var b=0;b0},createMessage:function(){if(this._disposed){throw new Error("Protocol message writer already disposed!")}var a={head:this._head,operations:this._operations};return JSON.stringify(a)},appendHead:function(b,a){this._head[b]=a},appendSet:function(a,d,c){var b=this._getPropertiesObjectFor(a);b[d]=c},appendNotify:function(b,a,c){this._currentSetOperation=null;this._operations.push(["notify",b,a,c])},appendCall:function(b,a,c){this._currentSetOperation=null;this._operations.push(["call",b,a,c])},_getPropertiesObjectFor:function(a){if(this._currentSetOperation===null||this._currentSetOperation[1]!==a){this._currentSetOperation=["set",a,{}];this._operations.push(this._currentSetOperation)}return this._currentSetOperation[2]}}; namespace($[266]);rwt.client.ServerPush=function(){if(rwt.client.ServerPush._instance!==undefined){throw new Error("ServerPush can not be created twice")}else{rwt.client.ServerPush._instance=this}this._retryInterval=0;this._active=false;this._running=false;this._requestTimer=new rwt.client.Timer(0);this._requestTimer.addEventListener($[27],this._doSendUICallBackRequest,this)};rwt.client.ServerPush.getInstance=function(){if(rwt.client.ServerPush._instance===undefined){new rwt.client.ServerPush()}return rwt.client.ServerPush._instance};rwt.client.ServerPush.prototype={setActive:function(a){this._active=a},sendUIRequest:function(){rwt.remote.Server.getInstance().sendImmediate(true)},sendUICallBackRequest:function(){if(this._active&&!this._running){this._running=true;this._requestTimer.start()}},_doSendUICallBackRequest:function(){this._requestTimer.stop();var a=rwt.remote.Server.getInstance().getUrl();var b=new rwt.remote.Request(a,"GET","application/javascript");b.setSuccessHandler(this._handleSuccess,this);b.setErrorHandler(this._handleError,this);b.setData("servicehandler=org.eclipse.rap.serverpush");b.send()},_handleSuccess:function(a){this._running=false;this._retryInterval=0;this.sendUIRequest()},_handleError:function(a){this._running=false;if(rwt.remote.Server.getInstance()._isConnectionError(a.status)){rwt.client.Timer.once(this.sendUICallBackRequest,this,this._retryInterval);this._increaseRetryInterval()}},_increaseRetryInterval:function(){if(this._retryInterval===0){this._retryInterval=1000}else{if(this._retryInterval<60*1000){this._retryInterval*=2}}}}; rwt.remote.HandlerRegistry.add("rwt.client.ServerPush",{factory:function(a){return rwt.client.ServerPush.getInstance()},service:true,properties:[$[63]]}); (function(){var h=rwt.client.Client;var d=rwt.client.Timer;var c=rwt.remote.MessageProcessor;var b=rwt.runtime.ErrorHandler;var g=rwt.remote.EventUtil;var f=rwt.client.ServerPush;var a=rwt.widgets.base.ClientDocument;var e=rwt.widgets.base.Widget;rwt.qx.Class.define("rwt.remote.Server",{type:$[39],extend:rwt.qx.Target,construct:function(){arguments.callee.base.call(this);this._url="";this._writer=null;this._event=null;this._requestCounter=null;this._sendTimer=new d(60);this._sendTimer.addEventListener($[27],function(){this.sendImmediate(true)},this);this._delayTimer=new d();this._delayTimer.addEventListener($[27],function(){this._delayTimer.stop();this.send()},this);this._waitHintTimer=new d(500);this._waitHintTimer.addEventListener($[27],this._showWaitHint,this);this._retryHandler=null;this._sendListeners=[]},destruct:function(){this._retryHandler=null;this._sendTimer.dispose();this._sendTimer=null;this._waitHintTimer.dispose();this._waitHintTimer=null},members:{setUrl:function(i){this._url=i},getUrl:function(){return this._url},setRequestCounter:function(i){this._requestCounter=i},getRequestCounter:function(){return this._requestCounter},addParameter:function(j,l){var i=typeof j===$[8]?j.split("."):null;if(i){if(this._event&&j.indexOf(this._event[1])===0){this._event[2][i.pop()]=l}else{this._flushEvent();var m=i.shift();var k=i.join(".");this.getMessageWriter().appendSet(m,k,l)}}else{}},addEvent:function(i,j){this._flushEvent();this._event=[j,i,{}]},_flushEvent:function(){if(this._event){var i=this.getMessageWriter();this._event[1]=this._event[1].split(".").pop();i.appendNotify.apply(i,this._event);this._event=null}},sendDelayed:function(i){this._delayTimer.setInterval(i);this._delayTimer.start()},send:function(){this._sendTimer.start()},sendImmediate:function(i){this._delayTimer.stop();if(this._requestCounter===-1){this._sendTimer.stop();this.send()}else{this._flushEvent();this.dispatchSimpleEvent("send");rap._.notify("send");this._flushEvent();this._sendTimer.stop();if(this._requestCounter!=null){this.getMessageWriter().appendHead("requestCounter",this._requestCounter)}this._requestCounter=-1;var j=this._createRequest();j.setAsynchronous(i);j.setData(this.getMessageWriter().createMessage());this._writer.dispose();this._writer=null;this._waitHintTimer.start();j.send();this._removeSendListeners()}},getMessageWriter:function(){if(this._writer===null){this._writer=new rwt.remote.MessageWriter()}return this._writer},getRemoteObject:function(i){return rwt.remote.RemoteObjectFactory.getRemoteObject(i)},onNextSend:function(j,i){this._sendListeners.push([j,i]);this.addEventListener("send",j,i)},_removeSendListeners:function(){for(var j=0;j0){if(this._isJsonResponse(j)){var i=JSON.parse(l);b.showErrorBox(i.head.message,true)}else{b.showErrorPage(l)}}else{var k="

Request failed.

HTTP Status Code: "+j.status+"
";b.showErrorPage(k)}}this._hideWaitHint()},_handleSuccess:function(k){try{var j=JSON.parse(k.responseText);rwt.remote.EventUtil.setSuspended(true);c.processMessage(j);e.flushGlobalQueues();rap._.notify("render");g.setSuspended(false);f.getInstance().sendUICallBackRequest();this.dispatchSimpleEvent($[310])}catch(i){b.processJavaScriptErrorInResponse(k.responseText,i,k.target)}this._hideWaitHint()},_handleConnectionError:function(i){var j='

The server seems to be temporarily unavailable

Retry

';a.getInstance().setGlobalCursor(null);rwt.runtime.ErrorHandler.showErrorBox(j,false);this._retryHandler=function(){var l=this._createRequest();var k=i.target;l.setAsynchronous(k.getAsynchronous());l.setData(k.getData());l.send()}},_retry:function(){try{rwt.runtime.ErrorHandler.hideErrorBox();this._showWaitHint();this._retryHandler()}catch(i){rwt.runtime.ErrorHandler.processJavaScriptError(i)}},_isConnectionError:rwt.util.Variant.select($[0],{"mshtml|newmshtml":function(j){var i=(j===12007||j===12029||j===12030||j===12031||j===12152);return i},gecko:function(j){var i;if(h.getMajor()*10+h.getMinor()>=19){i=(j===0)}else{i=(j===-1)}return i},"default":function(i){return i===0}}),_isJsonResponse:function(i){var j=i.responseHeaders[$[440]];return j.indexOf($[259])!==-1},_showWaitHint:function(){this._waitHintTimer.stop();a.getInstance().setGlobalCursor($[241])},_hideWaitHint:function(){this._waitHintTimer.stop();a.getInstance().setGlobalCursor(null)}}})}());rwt.remote.Server.RESOURCE_PATH="./rwt-resources/resource/"; rwt.qx.Class.define($[258],{extend:rwt.widgets.base.Atom,construct:function(b,a){arguments.callee.base.call(this);if(b.classname!=$[349]){throw new Error("illegal parent, must be a CTabFolder")}this._parent=b;this.setAppearance("ctab-item");this.setVerticalChildrenAlign(rwt.widgets.util.Layout.ALIGN_MIDDLE);this.setHorizontalChildrenAlign(rwt.widgets.util.Layout.ALIGN_LEFT);this.setOverflow($[10]);this.setTabIndex(null);this.setLabel($[277]);this.getLabelObject().setMode("html");this.getLabelObject().setVerticalAlign(rwt.widgets.util.Layout.ALIGN_MIDDLE);this.setLabel("");this._selected=false;this._showClose=false;this._canClose=a;this.updateForeground();this.updateBackground();this.updateBackgroundImage();this.updateBackgroundGradient();this.setTabPosition(b.getTabPosition());if(b.hasState($[112])){this.addState($[112])}this._closeButton=new rwt.widgets.base.Image();this._closeButton.setAppearance("ctab-close-button");this._closeButton.setWidth(20);this._closeButton.addEventListener($[15],this._onClose,this);var c=rwt.remote.WidgetManager.getInstance();c.setToolTip(this._closeButton,rwt.widgets.CTabFolder.CLOSE_TOOLTIP);this.add(this._closeButton);this.updateCloseButton();this.addEventListener($[3],this._onMouseOver,this);this.addEventListener($[6],this._onMouseOut,this);this.addEventListener($[15],this._onClick,this);this.addEventListener($[48],this._onDblClick,this);this.addEventListener($[181],this._onChangeParent,this);this.addEventListener($[276],this._onChangeLeft,this)},destruct:function(){this.removeEventListener($[3],this._onMouseOver,this);this.removeEventListener($[6],this._onMouseOut,this);this.removeEventListener($[15],this._onClick,this);this.removeEventListener($[48],this._onDblClick,this);this.removeEventListener($[181],this._onChangeParent,this);this.removeEventListener($[276],this._onChangeLeft,this);this._closeButton.removeEventListener($[15],this._onClose,this);var a=rwt.remote.WidgetManager.getInstance();a.setToolTip(this._closeButton,null);this._closeButton.dispose();this._closeButton=null},statics:{STATE_OVER:"over",STATE_SELECTED:$[24],IMG_CLOSE:rwt.remote.Server.RESOURCE_PATH+"widget/rap/ctabfolder/close.gif",IMG_CLOSE_HOVER:rwt.remote.Server.RESOURCE_PATH+"widget/rap/ctabfolder/close_hover.gif"},members:{setTabPosition:function(a){if(a==="top"){this.addState($[152])}else{this.removeState($[152])}},setSelected:function(a){if(this._selected!==a){this._selected=a;if(a){this.addState(rwt.widgets.CTabItem.STATE_SELECTED)}else{this.removeState(rwt.widgets.CTabItem.STATE_SELECTED)}this._updateNextSelected();this.updateForeground();this.updateBackground();this.updateBackgroundImage();this.updateBackgroundGradient();this.updateCloseButton()}},_updateNextSelected:function(){var a=null;var d=false;var c=this._parent.getChildren();for(var b=0;b0&&!this._keyEventRequestRunning){var a=this._bufferedEvents.shift();this._sendKeyEvent.apply(this,a)}},_sendKeyEvent:function(c,d,a,b){if(this._keyEventRequestRunning){this._bufferedEvents.push([c,d,a,b])}else{this._attachKeyEvent(c,d,a,b);this._keyEventRequestRunning=true;this._sendRequestAsync()}},_sendRequestAsync:function(){window.setTimeout(function(){rwt.remote.Server.getInstance().sendImmediate(true)},0)},_attachKeyEvent:function(e,h,a,d){var g=rwt.remote.Server.getInstance();var c;if(e===null){c=g.getRemoteObject(rwt.widgets.Display.getCurrent())}else{c=g.getRemoteObject(e)}var f=this._getCharCode(h,a,d);var b={keyCode:h,charCode:f};rwt.remote.EventUtil.addModifierToProperties(b);if(this._shouldSendTraverse(h,a,d,e)){c.notify("Traverse",b,true)}if(this._shouldSendKeyDown(h,a,d,e)){c.notify("KeyDown",b,true)}},_shouldCancel:function(f,c,d,e){var a=this._isActive(this._cancelKeys,d,f,c);if(!a){var b=e?e.getUserData($[240]):null;if(b){a=this._isActive(b,d,f,c)}}return a},_getTargetControl:function(){var a=rwt.event.EventHandler.getCaptureWidget();if(!a){var b=rwt.event.EventHandler.getFocusRoot();a=b===null?null:b.getActiveChild()}var c=rwt.remote.WidgetManager.getInstance();while(a!==null&&!c.isControl(a)){a=a.getParent?a.getParent():null}return a},_isActive:function(f,d,e,b){var a=false;var c=this._getKeyBindingIdentifier(d,$[9],e,b);a=f[c]===true;if(!a){c=this._getKeyBindingIdentifier(d,$[4],e,b);a=f[c]===true}return a},_getKeyBindingIdentifier:function(d,c,e,b){var a=[];if(c===$[9]&&!isNaN(e)&&e>0){if(d.altKey){a.push("ALT")}if(d.ctrlKey){a.push("CTRL")}if(d.shiftKey){a.push("SHIFT")}a.push("#"+e.toString())}else{if(c===$[4]&&!isNaN(b)&&b>0){a.push(String.fromCharCode(b))}}return a.join("+")},_getCharCode:function(d,b,c){var a=b;if(a===0&&this._isAlphaNumeric(d)){if(c.shiftKey&&!this._isNumeric(d)){a=d}else{a=String.fromCharCode(d).toLowerCase().charCodeAt(0)}}return a},_isModifier:function(a){return a>=16&&a<=20&&a!==19},_isAlphaNumeric:function(a){return(a>=65&&a<=90)||this._isNumeric(a)},_isNumeric:function(a){return a>=48&&a<=57},_hasKeyListener:function(a){return a!==null&&a.getUserData($[464])===true},_hasTraverseListener:function(a){return a!==null&&a.getUserData($[484])===true},_isTraverseKey:function(b){var a=false;if(b===27||b===13||b===9){a=true}return a}}});rwt.remote.KeyEventSupport.getInstance(); namespace($[266]);rwt.client.JavaScriptExecutor=function(){if(rwt.client.JavaScriptExecutor._instance!==undefined){throw new Error("JavaScriptExecutor can not be created twice")}else{rwt.client.JavaScriptExecutor._instance=this}};rwt.client.JavaScriptExecutor.getInstance=function(){if(rwt.client.JavaScriptExecutor._instance===undefined){new rwt.client.JavaScriptExecutor()}return rwt.client.JavaScriptExecutor._instance};rwt.client.JavaScriptExecutor.prototype={execute:function(code){eval(code)}}; rwt.remote.HandlerRegistry.add("rwt.client.JavaScriptExecutor",{factory:function(a){return rwt.client.JavaScriptExecutor.getInstance()},service:true,destructor:rwt.util.Functions.returnTrue,methods:[$[107]],methodHandler:{execute:function(b,a){b.execute(a.content)}}}); namespace($[266]);rwt.client.UrlLauncher=function(){if(rwt.client.UrlLauncher._instance!==undefined){throw new Error("UrlLauncher can not be created twice")}else{rwt.client.UrlLauncher._instance=this}this._window=window;var a=document.createElement($[232]);a.style.visibility=$[10];a.style.position=$[16];a.style.left=$[263];a.style.top=$[263];a.src=rwt.remote.Server.RESOURCE_PATH+$[346];document.body.appendChild(a);this._iframe=a};rwt.client.UrlLauncher.getInstance=function(){if(rwt.client.UrlLauncher._instance===undefined){new rwt.client.UrlLauncher()}return rwt.client.UrlLauncher._instance};rwt.client.UrlLauncher.prototype={openURL:function(a){var c=this.getProtocol(a);try{if(["http:","https:","ftp:","ftps:"].indexOf(c)!==-1){this._window.open(a,"_blank")}else{this._iframe.src=a}}catch(b){}},getProtocol:function(a){var b=a.indexOf(":")!==-1?a.split(":")[0]+":":location.protocol;return b.toLowerCase()}}; rwt.remote.HandlerRegistry.add("rwt.client.UrlLauncher",{factory:function(a){return rwt.client.UrlLauncher.getInstance()},service:true,methods:["openURL"],methodHandler:{openURL:function(b,a){b.openURL(a.url)}}}); namespace($[266]);rwt.client.JavaScriptLoader={load:function(b){for(var a=0;a","overflowY","frame","visibility","changeFont","overflowX","protocolParent","alias","Escape","\" in class \"","transparent","execute","check","webkit","mshtml","DefaultSelection","rwt_BORDER","toolTip","locationY","gradient","radio","if(this.","changeValue","textarea","focusout","gecko","other","position","dragover","unstyle","backgroundGradient","padding","reset","rwt.widgets.base.Widget","close","locationX","border","cursor","error","boolean","delete this.","fixed","datetime-field","rwt_FLAT","insertDom","marginLeft","focusin","return this.","lightshadow","update","\",value);","rwt.event.DragEvent","paddingTop","pointer","scrollHeight","static","barTop","refresh","roundrect","maxLength","translucent","!==undefined)","marginTop","Expand","paddingLeft","Could not evaluate computed style: ","stateOverChanged","display","complex","inherit","n-resize","Collapse","changeBackgroundColor","changeVisibility",".selection","backgroundImageSize","grayed","e-resize","paddingBottom","rwt_BAR","Display","fillType","checked","changeEnabled","no-repeat","changeParent","toolTipText","calendar-button","fontSize","rwt.remote","calendar-day","Object","paddingRight","rwt.event.FocusEvent","top-reversed","center-reversed","left-reversed","Attention! The value \"","shadowLayouted","marginBottom","dispose","else if(this.","\" is an invalid value for the property \"","!active","android","textAlign","toggle","outline","scrollbar-thumb","Invalid key \"","nw-resize","ne-resize","userScroll","windowblur","rwt_MULTI","newmshtml","dragdrop","CSS1Compat","marginRight","destroy","rwt_SEPARATOR","remove","shorthand","middle-reversed","chrome","stroke","MozOpacity","elementOver","rwt_VERTICAL","backgroundLayouted","minimized","safari","borderRightWidth","collapsed","datetime-separator","darkshadow","iframe","linesvisible","borderBottomWidth","borderRadii","Activate","_applyIndicatorFill","changeFocusedChild","completed","cancelKeys","progress","enabled","!==undefined){","_applyClip","dragmove","textDecoration","changeSelection","destroyableChildren","lastChild","\" in mixin \"","_applyResizable","backgroundRepeat","mouseevent","rwt.event.DragAndDropHandler","backgroundPosition","keyevent","checkBox","rwt.widgets.CTabItem","application/json","dragend","old=this.","dragout","-1000px","minimum","maximum","rwt.client","activeKeys","border-box","borderWidths","rwt.widgets.base.ToolTip","rwt.widgets.MenuItem","rwt.event.KeyEvent","beforeunload","domKeyevent","windowresize","changeLeft","(empty)","changeFocused","visible","pointerEvents","Control","selectionChanged","rwt.widgets.Button","s-resize","_manager","rwt.widgets.util.PopupManager","expandIcon","changeDate","otherMonth","rwt.widgets.base.Button","borderLeftStyle","changeLeadItem","textLimit","DOMMouseScroll","changeTextColor","stroke-width","readonly","separator","lineHeight","rwt.widgets.TabItem","skipFlexible","The configuration key \"","rwt.widgets.TabFolder","crosshair","borderBottomStyle","rwt.client.BrowserNavigation","dragenter","\"! The type of the key must be \"","increment","received","w-resize","pageIncrement","-moz-scrollbars-none","Variant \"","rwt-resources/themes/images/","borderTopStyle","hoverOut","Backspace","foreground","changeElement","treeColumn","not-allowed","_applyWrap","changeBackgroundGradient","dragEnter","borderColor","sw-resize","HORIZONTAL","cellCheckBox","boxShadow","updateRows","Conflict between mixin \"","Invalid type of key \"","Navigation","changeHtml","rwt_NO_RADIO_GROUP","col-resize","background-color","showResizeLine","_applyOpacity","rwt.widgets.Text","\" of property \"","_applyTextAlign","underline","\" is not allowed!","static/html/blank.html","_applyBackgroundGradient","changeChecked","rwt.widgets.CTabFolder","',sizingMethod='crop')","borderMaxWidth","typeof value === \"number\" && isFinite(value)","rwt.widgets.ExpandBar","tabIndex","dnd_selected","check-box","se-resize","disappear","cancelAnimations","roundedBorder","alignment","borderRightStyle","_applyIcon","Alpha(opacity=","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='","_applyManager","clientAreaChanged","org.eclipse.swt.dnd.","rwt.widgets.Label","\" in member \"","scale-thumb","rwt.widgets.List","separatorBorder","rwt.widgets.Spinner","\" which must be an instance of \"","rwt.widgets.ToolItem","rwt.widgets.base.BasicText","if(old===computed)return value;","slider-thumb","flyInBottom","removeChild","rwt_HORIZONTAL","rwt.event.DomEvent","rwt.widgets.Browser","returnValue","rwt.html.Style","rwt.widgets.Shell","changeSource","ctabfolder-button","delete window.","MouseEvents","rwt.widgets.base.Parent","hideResizeLine","rwt.html.ImagePreloader","createContent","if(old===undefined)old=null;","datetime-button-up","rwt.widgets.CoolItem","Could not parse color: ","Unable to destroy function: ","rwt.client.ClientInfo","\" failed with exception ","rwt.event.ChangeEvent","minimumChanged","rwt.widgets.ExternalBrowser","color-stop(","' in mixin '","showDragFeedback","changeSpacing",") but parent layout ","rwt.widgets.ToolBar","rwt.widgets.GC","_applySelectionIndicator","strokeStyle","text/javascript","left bottom","flyOutRight","_applyOrientation","headerHeight","quadraticCurveTo","rwt.widgets.util.IframeManager","datetime-button-down","draggesture","MozUserSelect","bezierCurveTo","topItemIndex","rwt.widgets.ToolTip","value !== null","center center",";background-repeat:no-repeat;' >","\" but is typeof \"","qx.client.NativeWindow","maximumChanged","rwt.widgets.Menu","_focusedTextField","' of class '","minimize.gif","rwt.widgets.ControlDecorator","\" must be defined!","Content-Type","KhtmlUserSelect","-moz-scrollbars-horizontal","qx.compatibility","Untranslated computed property value: ","static/image/blank.gif","rwt.widgets.util.RadioManager","unselectable","checkDisposedItems","activeControl","focusControl","changeActiveChild","rwt.widgets.ExpandItem","postApplyDimensions failed ","pixelBottom","if(computed===undefined)computed=null;","rwt.widgets.ScrolledComposite",".$$properties.","rwt.widgets.Combo","rwt.widgets.GridItem","cellChecked","rwt.widgets.Slider"," does not support it","ignoreFlexible","keyListener","rwt.widgets.Separator","_applyVisibility","maximize.gif",". Only pixel values work well across different clients.","rwt.widgets.ProgressBar","MouseDoubleClick","resizeStart","_applyHeight","rwt_INDETERMINATE","nextSelected","bottomRight","Includes of mixins must be mixins. The include number '","rwt.widgets.FileUpload","_childrenQueue","deactivateListener","pixelHeight","Iframe source could not be set! This may be related to AdBlock Plus Firefox Extension.","rwt.widgets.Link","rwt.qx.Object","traverseListener","rwt.util.Range","numericRound","rwt.widgets.Scale","minThumbSize","flyOutBottom","linear-gradient( ","changeActive","var prop=rwt.qx.Property;",":border-box;","if(value===undefined)prop.error(this,2,\"","rwt.widgets.util.WindowManager","_applyAnimation","activateListener"," modified: Failed to dispatch change event: ",":content-box;","bottom-reversed","_applyVerticalChildrenAlign","_applySource"," is not inside this parent.","rwt.widgets.base.Window","sash-handle","linearGradient","calendar-week","subMenuChanged","rwt.widgets.Grid","rwt.widgets.CoolBar","_applySpacing","rwt.theme.ThemeStore","_applyHorizontalChildrenAlign","Cascaded styles are not supported in this browser!","rwt.widgets.util.FocusHandler","hoverFristItem","client-document-blocker","-moz-scrollbars-vertical","Could not convert system colors to RGB: ","WebkitUserSelect","hideDragFeedback","_applySeparatorBorder","multipart/form-data","_invalidate","_applyBackgroundColor","background-image:url(","right-reversed","rwt.widgets.base.TabFolderPage","rwt.widgets.util","rwt.widgets.GridColumn","rwt.widgets.Sash","_applyEnabled","\"! The value is undefined/null!","\" which must be typeof \"","text-decoration:","dragFinished","hasComputed","Failed to check property ","restore.gif","mozBoxSizing","coolitem-handle","rwt.widgets.Group","scrolledComposite","\"! The value needs to be a map!","itemsChanged","rwt.widgets.Composite","stdDeviation","push-button","qx.ui.embed.Flash"]);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy