qx.$$packageData['2']={"locales":{},"resources":{},"translations":{"C":{},"de":{"This field is required":"Dieses Feld ist erforderlich"},"de_AT":{},"de_DE":{},"en":{},"en_GB":{},"en_US":{},"es":{"This field is required":"Este cuadro es obligatorio"},"es_ES":{},"es_MX":{},"ro":{"This field is required":"Acest câmp este obligatoriu"},"ro_RO":{},"sv":{"This field is required":"Det här fältet måste fyllas i"},"sv_SE":{}}};
qx.Part.$$notifyLoad("2", function() {
(function(){var c="password",b="qx.ui.form.PasswordField",a="input";
qx.Class.define(b,{extend:qx.ui.form.TextField,members:{_createInputElement:function(){var d=new qx.html.Input(c);
d.addListener(a,this._onHtmlInput,this);
return d;
}}});
})();
(function(){var k="",j="complete",h="String",g="changeValid",f="qx.event.type.Event",d="value instanceof Function || qx.Class.isSubClassOf(value.constructor, qx.ui.form.validation.AsyncValidator)",c="qx.ui.form.validation.Manager",b="This field is required",a="qx.event.type.Data";
qx.Class.define(c,{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);
this.__fR=[];
this.__fS={};
this.setRequiredFieldMessage(qx.locale.Manager.tr(b));
},events:{"changeValid":a,"complete":f},properties:{validator:{check:d,init:null,nullable:true},invalidMessage:{check:h,init:k},requiredFieldMessage:{check:h,init:k},context:{nullable:true}},members:{__fR:null,__fT:null,__fS:null,__fU:null,add:function(l,m,n){if(!this.__ga(l)){throw new Error("Added widget not supported.");
}if(this.__gb(l)){if(m!=null){throw new Error("Widgets supporting selection can only be validated "+"in the form validator");
}}var o={item:l,validator:m,valid:null,context:n};
this.__fR.push(o);
},remove:function(p){var q=this.__fR;

for(var i=0,r=q.length;i<r;i++){if(p===q[i].item){q.splice(i,1);
return p;
}}return null;
},getItems:function(){var s=[];

for(var i=0;i<this.__fR.length;i++){s.push(this.__fR[i].item);
}return s;
},validate:function(){var x=true;
this.__fU=true;
var u=[];
for(var i=0;i<this.__fR.length;i++){var v=this.__fR[i].item;
var y=this.__fR[i].validator;
u.push(v);
if(y==null){var t=this.__fV(v);
x=x&&t;
this.__fU=t&&this.__fU;
continue;
}var t=this.__fW(this.__fR[i],v.getValue());
x=t&&x;

if(t!=null){this.__fU=t&&this.__fU;
}}var w=this.__fX(u);

if(qx.lang.Type.isBoolean(w)){this.__fU=w&&this.__fU;
}x=w&&x;
this.__gc(x);

if(qx.lang.Object.isEmpty(this.__fS)){this.fireEvent(j);
}return x;
},__fV:function(z){if(z.getRequired()){if(this.__gb(z)){var A=!!z.getSelection()[0];
}else{var A=!!z.getValue();
}z.setValid(A);
var C=z.getRequiredInvalidMessage();
var B=C?C:this.getRequiredFieldMessage();
z.setInvalidMessage(B);
return A;
}return true;
},__fW:function(D,E){var J=D.item;
var I=D.context;
var H=D.validator;
if(this.__fY(H)){this.__fS[J.toHashCode()]=null;
H.validate(J,J.getValue(),this,I);
return null;
}var G=null;

try{var G=H.call(I||this,E,J);

if(G===undefined){G=true;
}}catch(e){if(e instanceof qx.core.ValidationError){G=false;

if(e.message&&e.message!=qx.type.BaseError.DEFAULTMESSAGE){var F=e.message;
}else{var F=e.getComment();
}J.setInvalidMessage(F);
}else{throw e;
}}J.setValid(G);
D.valid=G;
return G;
},__fX:function(K){var M=this.getValidator();
var N=this.getContext()||this;

if(M==null){return true;
}this.setInvalidMessage(k);

if(this.__fY(M)){this.__fS[this.toHashCode()]=null;
M.validateForm(K,this,N);
return null;
}
try{var O=M.call(N,K,this);

if(O===undefined){O=true;
}}catch(e){if(e instanceof qx.core.ValidationError){O=false;

if(e.message&&e.message!=qx.type.BaseError.DEFAULTMESSAGE){var L=e.message;
}else{var L=e.getComment();
}this.setInvalidMessage(L);
}else{throw e;
}}return O;
},__fY:function(P){var Q=false;

if(!qx.lang.Type.isFunction(P)){Q=qx.Class.isSubClassOf(P.constructor,qx.ui.form.validation.AsyncValidator);
}return Q;
},__ga:function(R){var S=R.constructor;
return qx.Class.hasInterface(S,qx.ui.form.IForm);
},__gb:function(T){var U=T.constructor;
return qx.Class.hasInterface(U,qx.ui.core.ISingleSelection);
},__gc:function(V){var W=this.__fT;
this.__fT=V;
if(W!=V){this.fireDataEvent(g,V,W);
}},getValid:function(){return this.__fT;
},isValid:function(){return this.getValid();
},getInvalidMessages:function(){var X=[];
for(var i=0;i<this.__fR.length;i++){var Y=this.__fR[i].item;

if(!Y.getValid()){X.push(Y.getInvalidMessage());
}}if(this.getInvalidMessage()!=k){X.push(this.getInvalidMessage());
}return X;
},reset:function(){for(var i=0;i<this.__fR.length;i++){var ba=this.__fR[i];
ba.item.setValid(true);
}this.__fT=null;
},setItemValid:function(bb,bc){this.__fS[bb.toHashCode()]=bc;
bb.setValid(bc);
this.__gd();
},setFormValid:function(bd){this.__fS[this.toHashCode()]=bd;
this.__gd();
},__gd:function(){var bf=this.__fU;
for(var bg in this.__fS){var be=this.__fS[bg];
bf=be&&bf;
if(be==null){return;
}}this.__gc(bf);
this.__fS={};
this.fireEvent(j);
}},destruct:function(){this.__fR=null;
}});
})();
(function(){var s="html.classlist",r="default",q="native",p="",o=" ",n='',m="(^|\\s)",k="(\\s|$)",j="\\b",h="g",c='function',g="\\b|\\b",f="qx.bom.element.Class",b='SVGAnimatedString',a='object',e="$2",d='undefined';
qx.Class.define(f,{statics:{__fG:/\s+/g,__fH:/^\s+|\s+$/g,add:qx.lang.Object.select(qx.core.Environment.get(s)?q:r,{"native":function(t,name){t.classList.add(name);
return name;
},"default":function(u,name){if(!this.has(u,name)){u.className+=(u.className?o:p)+name;
}return name;
}}),addClasses:qx.lang.Object.select(qx.core.Environment.get(s)?q:r,{"native":function(v,w){for(var i=0;i<w.length;i++){v.classList.add(w[i]);
}return v.className;
},"default":function(x,y){var z={};
var B;
var A=x.className;

if(A){B=A.split(this.__fG);

for(var i=0,l=B.length;i<l;i++){z[B[i]]=true;
}
for(var i=0,l=y.length;i<l;i++){if(!z[y[i]]){B.push(y[i]);
}}}else{B=y;
}return x.className=B.join(o);
}}),get:function(C){var D=C.className;

if(typeof D.split!==c){if(typeof D===a){if(qx.Bootstrap.getClass(D)==b){D=D.baseVal;
}else{D=n;
}}
if(typeof D===d){D=n;
}}return D;
},has:qx.lang.Object.select(qx.core.Environment.get(s)?q:r,{"native":function(E,name){return E.classList.contains(name);
},"default":function(F,name){var G=new RegExp(m+name+k);
return G.test(F.className);
}}),remove:qx.lang.Object.select(qx.core.Environment.get(s)?q:r,{"native":function(H,name){H.classList.remove(name);
return name;
},"default":function(I,name){var J=new RegExp(m+name+k);
I.className=I.className.replace(J,e);
return name;
}}),removeClasses:qx.lang.Object.select(qx.core.Environment.get(s)?q:r,{"native":function(K,L){for(var i=0;i<L.length;i++){K.classList.remove(L[i]);
}return K.className;
},"default":function(M,N){var O=new RegExp(j+N.join(g)+j,h);
return M.className=M.className.replace(O,p).replace(this.__fH,p).replace(this.__fG,o);
}}),replace:function(P,Q,R){this.remove(P,Q);
return this.add(P,R);
},toggle:qx.lang.Object.select(qx.core.Environment.get(s)?q:r,{"native":function(S,name,T){if(T===undefined){S.classList.toggle(name);
}else{T?this.add(S,name):this.remove(S,name);
}return name;
},"default":function(U,name,V){if(V==null){V=!this.has(U,name);
}V?this.add(U,name):this.remove(U,name);
return name;
}})}});
})();
(function(){var k="button",j="hovered",i="pressed",h="arrow",g="Enter",f="Space",d="abandoned",c="both",b="String",a="changeVisibility",A="splitbutton",z="changeShow",y="mouseout",x="keydown",w="execute",v="_applyMenu",u="icon",t="mouseover",s="keyup",r="qx.ui.menu.Menu",p="_applyIcon",q="label",n="_applyShow",o="changeMenu",l="_applyLabel",m="qx.ui.form.SplitButton";
qx.Class.define(m,{extend:qx.ui.core.Widget,include:[qx.ui.core.MExecutable],implement:[qx.ui.form.IExecutable],construct:function(B,C,D,E){qx.ui.core.Widget.call(this);
this._setLayout(new qx.ui.layout.HBox);
this._createChildControl(h);
this.addListener(t,this._onMouseOver,this,true);
this.addListener(y,this._onMouseOut,this,true);
this.addListener(x,this._onKeyDown);
this.addListener(s,this._onKeyUp);
if(B!=null){this.setLabel(B);
}
if(C!=null){this.setIcon(C);
}
if(D!=null){this.setMenu(D);
}
if(E!=null){this.setCommand(E);
}},properties:{appearance:{refine:true,init:A},focusable:{refine:true,init:true},label:{apply:l,nullable:true,check:b},icon:{check:b,apply:p,nullable:true,themeable:true},show:{init:c,check:[c,q,u],themeable:true,inheritable:true,apply:n,event:z},menu:{check:r,nullable:true,apply:v,event:o}},members:{__CE:null,_createChildControlImpl:function(F,G){var H;

switch(F){case k:H=new qx.ui.form.Button;
H.addListener(w,this._onButtonExecute,this);
H.setFocusable(false);
this._addAt(H,0,{flex:1});
break;
case h:H=new qx.ui.form.MenuButton;
H.setFocusable(false);
this._addAt(H,1);
break;
}return H||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,F);
},_forwardStates:{hovered:1,focused:1},_applyLabel:function(I,J){var K=this.getChildControl(k);
I==null?K.resetLabel():K.setLabel(I);
},_applyIcon:function(L,M){var N=this.getChildControl(k);
L==null?N.resetIcon():N.setIcon(L);
},_applyMenu:function(O,P){var Q=this.getChildControl(h);

if(O){Q.resetEnabled();
Q.setMenu(O);
O.setOpener(this);
O.addListener(a,this._onChangeMenuVisibility,this);
}else{Q.setEnabled(false);
Q.resetMenu();
}
if(P){P.removeListener(a,this._onChangeMenuVisibility,this);
P.resetOpener();
}},_applyShow:function(R,S){},_onMouseOver:function(e){e.stopPropagation();
this.addState(j);
delete this.__CE;
},_onMouseOut:function(e){e.stopPropagation();
if(!this.hasState(j)){return;
}var U=e.getRelatedTarget();

if(qx.ui.core.Widget.contains(this,U)){return;
}var T=this.getMenu();

if(T&&T.isVisible()){this.__CE=true;
return;
}this.removeState(j);
},_onKeyDown:function(e){var V=this.getChildControl(k);

switch(e.getKeyIdentifier()){case g:case f:V.removeState(d);
V.addState(i);
}},_onKeyUp:function(e){var W=this.getChildControl(k);

switch(e.getKeyIdentifier()){case g:case f:if(W.hasState(i)){W.removeState(d);
W.removeState(i);
W.execute();
}}},_onButtonExecute:function(e){this.execute();
},_onChangeMenuVisibility:function(e){if(!this.getMenu().isVisible()&&this.__CE){this.removeState(j);
}}}});
})();
(function(){var k="pressed",j="abandoned",i="hovered",h="Boolean",g="Space",f="undetermined",d="Enter",c="checked",b="mousedown",a="_applyTriState",w="mouseout",v="changeValue",u="keydown",t="_applyGroup",s="button",r="execute",q="qx.ui.form.RadioGroup",p="_applyValue",o="qx.ui.form.ToggleButton",n="mouseover",l="keyup",m="mouseup";
qx.Class.define(o,{extend:qx.ui.basic.Atom,include:[qx.ui.core.MExecutable],implement:[qx.ui.form.IBooleanForm,qx.ui.form.IExecutable,qx.ui.form.IRadioItem],construct:function(x,y){qx.ui.basic.Atom.call(this,x,y);
this.addListener(n,this._onMouseOver);
this.addListener(w,this._onMouseOut);
this.addListener(b,this._onMouseDown);
this.addListener(m,this._onMouseUp);
this.addListener(u,this._onKeyDown);
this.addListener(l,this._onKeyUp);
this.addListener(r,this._onExecute,this);
},properties:{appearance:{refine:true,init:s},focusable:{refine:true,init:true},value:{check:h,nullable:true,event:v,apply:p,init:false},group:{check:q,nullable:true,apply:t},triState:{check:h,apply:a,nullable:true,init:null}},members:{_applyGroup:function(z,A){if(A){A.remove(this);
}
if(z){z.add(this);
}},_applyValue:function(B,C){B?this.addState(c):this.removeState(c);

if(this.isTriState()){if(B===null){this.addState(f);
}else if(C===null){this.removeState(f);
}}},_applyTriState:function(D,E){this._applyValue(this.getValue());
},_onExecute:function(e){this.toggleValue();
},_onMouseOver:function(e){if(e.getTarget()!==this){return;
}this.addState(i);

if(this.hasState(j)){this.removeState(j);
this.addState(k);
}},_onMouseOut:function(e){if(e.getTarget()!==this){return;
}this.removeState(i);

if(this.hasState(k)){if(!this.getValue()){this.removeState(k);
}this.addState(j);
}},_onMouseDown:function(e){if(!e.isLeftPressed()){return;
}this.capture();
this.removeState(j);
this.addState(k);
e.stopPropagation();
},_onMouseUp:function(e){this.releaseCapture();

if(this.hasState(j)){this.removeState(j);
}else if(this.hasState(k)){this.execute();
}this.removeState(k);
e.stopPropagation();
},_onKeyDown:function(e){switch(e.getKeyIdentifier()){case d:case g:this.removeState(j);
this.addState(k);
e.stopPropagation();
}},_onKeyUp:function(e){if(!this.hasState(k)){return;
}
switch(e.getKeyIdentifier()){case d:case g:this.removeState(j);
this.execute();
this.removeState(k);
e.stopPropagation();
}}}});
})();
(function(){var g="label",f="checkbox",e="qx.ui.form.CheckBox",d="value",c="toolTipText",b="enabled",a="menu";
qx.Class.define(e,{extend:qx.ui.form.ToggleButton,include:[qx.ui.form.MForm,qx.ui.form.MModelProperty],implement:[qx.ui.form.IForm,qx.ui.form.IModel],construct:function(h){qx.ui.form.ToggleButton.call(this,h);
this.setValue(false);
},properties:{appearance:{refine:true,init:f},allowGrowX:{refine:true,init:false}},members:{_forwardStates:{invalid:true,focused:true,undetermined:true,checked:true,hovered:true},_bindableProperties:[b,g,c,d,a]}});
})();
(function(){var k="value",j="Spinner",h="Boolean",g="RadioButtonGroup",f="SelectBox",e="qxc.application.formdemo.FormItems",d="Selection",c="Website 3",b="TextArea",a="execute",Q="Website 2",P="Text",O="ToggleButton",N="RadioButton 1",M="RadioButton 3",L="MenuButton :",K="placeholder test...",J="RadioButton",I="middle",H="Button",r="SplitButton",s="Buttons",p="RepeatButton :",q="required",n="Slider",o="ToggleButton :",l="TextField",m="0",t="right",u="SplitButton :",z="Button :",y="ComboBox",B="List",A="RadioButton 2",D="Tri-State CheckBox",C="Number",w="CheckBox",G="DateField",F="MenuButton",E="Website 1",v="PasswordField",x="VirtualComboBox";
qx.Class.define(e,{extend:qx.ui.container.Composite,construct:function(){qx.ui.container.Composite.call(this);
this.__KV=[];
this._createView();
},members:{__KV:null,_createView:function(){var bl=new qx.ui.layout.Grid(20,5);
bl.setColumnFlex(0,1);
bl.setColumnFlex(1,1);
this.setLayout(bl);
this.setPadding(10);
var ba=1;
var bj=new qx.ui.form.Form();
var R=new qx.ui.groupbox.GroupBox(P);
R.setLayout(new qx.ui.layout.Canvas());
this.add(R,{row:0,column:0});
var bv=new qx.ui.form.TextField();
bv.setPlaceholder(q);
bv.setTabIndex(ba++);
bv.setRequired(true);
this.__KV.push(bv);
bj.add(bv,l);
var Y=new qx.ui.form.PasswordField();
Y.setTabIndex(ba++);
bv.setRequired(true);
this.__KV.push(Y);
bj.add(Y,v);
var S=new qx.ui.form.TextArea();
S.setPlaceholder(K);
S.setTabIndex(ba++);
this.__KV.push(S);
bj.add(S,b);
var T=new qx.ui.form.ComboBox();
T.setTabIndex(ba++);
this.__KW(T);
this.__KV.push(T);
bj.add(T,y);
var bb=new qx.ui.form.VirtualComboBox();
bb.setTabIndex(ba++);
this.__KX(bb);
this.__KV.push(bb);
bj.add(bb,x);
var bo=new qx.ui.form.DateField();
bo.setTabIndex(ba++);
this.__KV.push(bo);
bj.add(bo,G);
var W=new qx.ui.form.renderer.Single(bj);
R.add(W);
bj=new qx.ui.form.Form();
var bd=new qx.ui.groupbox.GroupBox(d);
bd.setLayout(new qx.ui.layout.Canvas());
this.add(bd,{row:1,column:0,rowSpan:2});
var bp=new qx.ui.form.SelectBox();
bp.setTabIndex(ba++);
bj.add(bp,f);
this.__KW(bp);
this.__KV.push(bp);
var bc=new qx.ui.form.VirtualSelectBox();
bc.setTabIndex(ba++);
this.__KX(bc);
this.__KV.push(bc);
var bu=new qx.ui.form.List();
bu.setTabIndex(ba++);
bu.setHeight(60);
bu.setWidth(155);
bj.add(bu,B);
this.__KW(bu);
this.__KV.push(bu);
var bm=new qx.ui.form.RadioButtonGroup();
bm.add(new qx.ui.form.RadioButton(N).set({tabIndex:ba++}));
bm.add(new qx.ui.form.RadioButton(A).set({tabIndex:ba++}));
bm.add(new qx.ui.form.RadioButton(M).set({tabIndex:ba++}));
bj.add(bm,g);
this.__KV.push(bm);
W=new qx.ui.form.renderer.Single(bj);
bd.add(W);
var bs=new qx.ui.groupbox.GroupBox(s);
var bn=new qx.ui.layout.Grid(8,8);
bs.setLayout(bn);
bn.setColumnAlign(0,t,I);
this.add(bs,{row:0,column:1});
var bt=new qx.ui.form.Button(H).set({tabIndex:ba++});
var be=new qx.ui.basic.Label(z);
be.setBuddy(bt);
bs.add(be,{row:0,column:0});
bs.add(bt,{row:0,column:1});
this.__KV.push(bt);
var V=new qx.ui.form.ToggleButton(O).set({tabIndex:ba++});
be=new qx.ui.basic.Label(o);
be.setBuddy(V);
bs.add(be,{row:1,column:0});
bs.add(V,{row:1,column:1});
this.__KV.push(V);
var bh=new qx.ui.form.RepeatButton(m).set({tabIndex:ba++});
be=new qx.ui.basic.Label(p);
be.setBuddy(bh);
bs.add(be,{row:2,column:0});
bs.add(bh,{row:2,column:1});
this.__KV.push(bh);
var bi=new qx.ui.form.MenuButton(F,null,this.__KY()).set({tabIndex:ba++});
be=new qx.ui.basic.Label(L);
be.setBuddy(bi);
bs.add(be,{row:3,column:0});
bs.add(bi,{row:3,column:1});
this.__KV.push(bi);
var X=new qx.ui.form.SplitButton(r,null,this.__La()).set({tabIndex:ba++});
be=new qx.ui.basic.Label(u);
be.setBuddy(X);
bs.add(be,{row:4,column:0});
bs.add(X,{row:4,column:1});
this.__KV.push(X);
bh.addListener(a,function(){var bx=parseInt(bh.getLabel(),10)+1;
bh.setLabel(bx.toString());
});
bj=new qx.ui.form.Form();
var U=new qx.ui.groupbox.GroupBox(h);
U.setLayout(new qx.ui.layout.Canvas());
this.add(U,{row:1,column:1});
var bq=new qx.ui.form.CheckBox().set({tabIndex:ba++});
bj.add(bq,w);
this.__KV.push(bq);
var bw=new qx.ui.form.CheckBox().set({tabIndex:ba++,triState:true,value:null});
bj.add(bw,D);
this.__KV.push(bw);
var bg=new qx.ui.form.RadioButton().set({tabIndex:ba++});
bj.add(bg,J);
this.__KV.push(bg);
W=new qx.ui.form.renderer.Single(bj);
U.add(W);
bj=new qx.ui.form.Form();
var br=new qx.ui.groupbox.GroupBox(C);
br.setLayout(new qx.ui.layout.Canvas());
this.add(br,{row:2,column:1});
var bf=new qx.ui.form.Spinner(0,50,100).set({tabIndex:ba++});
bj.add(bf,j);
this.__KV.push(bf);
var bk=new qx.ui.form.Slider().set({tabIndex:ba++});
bk.setWidth(130);
bj.add(bk,n);
this.__KV.push(bk);
bk.bind(k,bf,k);
bf.bind(k,bk,k);
W=new qx.ui.form.renderer.Single(bj);
br.add(W);
},__KW:function(by){for(var i=0;i<10;i++){var bz=new qx.ui.form.ListItem("Item "+i);
by.add(bz);
}},__KX:function(bA){var bB=new qx.data.Array();

for(var i=0;i<300;i++){bB.push("Item "+(i));
}bA.setModel(bB);
},__KY:function(){var bC=new qx.ui.menu.Menu;

for(var i=0;i<3;i++){bC.add(new qx.ui.menu.RadioButton("Option"+i));
}var bF=new qx.ui.form.RadioGroup;
bF.add.apply(bF,bC.getChildren());
var bE=new qx.ui.menu.Menu();

for(i=0;i<3;i++){var bG=new qx.ui.menu.Button("Button"+i);
bE.add(bG);
}var bD=new qx.ui.menu.Button("Options","",null,bC);
bE.addSeparator();
bE.add(bD);
return bE;
},__La:function(){var bH=new qx.ui.menu.Menu;
var bK=new qx.ui.menu.Button(E);
var bI=new qx.ui.menu.Button(Q);
var bJ=new qx.ui.menu.Button(c);
bH.add(bK);
bH.add(bI);
bH.add(bJ);
return bH;
},getWidgets:function(){return this.__KV;
}}});
})();
(function(){var k="textfield",j="",i="downbutton",h="upbutton",g="Number",f="inner",d="PageUp",c="Boolean",b="changeValue",a="Down",J="Up",I="execute",H="PageDown",G="changeLocale",F="qx.dynlocale",E="_applyEditable",D="_applyWrap",C="keydown",B="\-]",A="mousewheel",r="_applyValue",s="y",p="number",q="_applyMinimum",n="qx.util.format.NumberFormat",o="[0-9",l="keyup",m="spinner",t="this._checkValue(value)",u="_applyMaximum",w="changeNumberFormat",v="changeMaximum",y="changeMinimum",x="_applyNumberFormat",z="qx.ui.form.Spinner";
qx.Class.define(z,{extend:qx.ui.core.Widget,implement:[qx.ui.form.INumberForm,qx.ui.form.IRange,qx.ui.form.IForm],include:[qx.ui.core.MContentPadding,qx.ui.form.MForm],construct:function(K,L,M){qx.ui.core.Widget.call(this);
var N=new qx.ui.layout.Grid();
N.setColumnFlex(0,1);
N.setRowFlex(0,1);
N.setRowFlex(1,1);
this._setLayout(N);
this.addListener(C,this._onKeyDown,this);
this.addListener(l,this._onKeyUp,this);
this.addListener(A,this._onMouseWheel,this);

if(qx.core.Environment.get(F)){qx.locale.Manager.getInstance().addListener(G,this._onChangeLocale,this);
}this._createChildControl(k);
this._createChildControl(h);
this._createChildControl(i);
if(K!=null){this.setMinimum(K);
}
if(M!=null){this.setMaximum(M);
}
if(L!==undefined){this.setValue(L);
}else{this.initValue();
}},properties:{appearance:{refine:true,init:m},focusable:{refine:true,init:true},singleStep:{check:g,init:1},pageStep:{check:g,init:10},minimum:{check:g,apply:q,init:0,event:y},value:{check:t,nullable:true,apply:r,init:0,event:b},maximum:{check:g,apply:u,init:100,event:v},wrap:{check:c,init:false,apply:D},editable:{check:c,init:true,apply:E},numberFormat:{check:n,apply:x,nullable:true},allowShrinkY:{refine:true,init:false}},members:{__BW:null,__BX:false,__BY:false,_createChildControlImpl:function(O,P){var Q;

switch(O){case k:Q=new qx.ui.form.TextField();
Q.setFilter(this._getFilterRegExp());
Q.addState(f);
Q.setWidth(40);
Q.setFocusable(false);
Q.addListener(b,this._onTextChange,this);
this._add(Q,{column:0,row:0,rowSpan:2});
break;
case h:Q=new qx.ui.form.RepeatButton();
Q.addState(f);
Q.setFocusable(false);
Q.addListener(I,this._countUp,this);
this._add(Q,{column:1,row:0});
break;
case i:Q=new qx.ui.form.RepeatButton();
Q.addState(f);
Q.setFocusable(false);
Q.addListener(I,this._countDown,this);
this._add(Q,{column:1,row:1});
break;
}return Q||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,O);
},_getFilterRegExp:function(){var V=qx.locale.Number.getDecimalSeparator(qx.locale.Manager.getInstance().getLocale());
var U=qx.locale.Number.getGroupSeparator(qx.locale.Manager.getInstance().getLocale());
var T=j;
var R=j;

if(this.getNumberFormat()!==null){T=this.getNumberFormat().getPrefix()||j;
R=this.getNumberFormat().getPostfix()||j;
}var S=new RegExp(o+qx.lang.String.escapeRegexpChars(V)+qx.lang.String.escapeRegexpChars(U)+qx.lang.String.escapeRegexpChars(T)+qx.lang.String.escapeRegexpChars(R)+B);
return S;
},_forwardStates:{focused:true,invalid:true},tabFocus:function(){var W=this.getChildControl(k);
W.getFocusElement().focus();
W.selectAllText();
},_applyMinimum:function(X,Y){if(this.getMaximum()<X){this.setMaximum(X);
}
if(this.getValue()<X){this.setValue(X);
}else{this._updateButtons();
}},_applyMaximum:function(ba,bb){if(this.getMinimum()>ba){this.setMinimum(ba);
}
if(this.getValue()>ba){this.setValue(ba);
}else{this._updateButtons();
}},_applyEnabled:function(bc,bd){qx.ui.core.Widget.prototype._applyEnabled.call(this,bc,bd);
this._updateButtons();
},_checkValue:function(be){return typeof be===p&&be>=this.getMinimum()&&be<=this.getMaximum();
},_applyValue:function(bf,bg){var bh=this.getChildControl(k);
this._updateButtons();
this.__BW=bf;
if(bf!==null){if(this.getNumberFormat()){bh.setValue(this.getNumberFormat().format(bf));
}else{bh.setValue(bf+j);
}}else{bh.setValue(j);
}},_applyEditable:function(bi,bj){var bk=this.getChildControl(k);

if(bk){bk.setReadOnly(!bi);
}},_applyWrap:function(bl,bm){this._updateButtons();
},_applyNumberFormat:function(bn,bo){var bp=this.getChildControl(k);
bp.setFilter(this._getFilterRegExp());
this.getNumberFormat().addListener(w,this._onChangeNumberFormat,this);
this._applyValue(this.__BW,undefined);
},_getContentPaddingTarget:function(){return this.getChildControl(k);
},_updateButtons:function(){var br=this.getChildControl(h);
var bq=this.getChildControl(i);
var bs=this.getValue();

if(!this.getEnabled()){br.setEnabled(false);
bq.setEnabled(false);
}else{if(this.getWrap()){br.setEnabled(true);
bq.setEnabled(true);
}else{if(bs!==null&&bs<this.getMaximum()){br.setEnabled(true);
}else{br.setEnabled(false);
}if(bs!==null&&bs>this.getMinimum()){bq.setEnabled(true);
}else{bq.setEnabled(false);
}}}},_onKeyDown:function(e){switch(e.getKeyIdentifier()){case d:this.__BX=true;
case J:this.getChildControl(h).press();
break;
case H:this.__BY=true;
case a:this.getChildControl(i).press();
break;
default:return ;
}e.stopPropagation();
e.preventDefault();
},_onKeyUp:function(e){switch(e.getKeyIdentifier()){case d:this.getChildControl(h).release();
this.__BX=false;
break;
case J:this.getChildControl(h).release();
break;
case H:this.getChildControl(i).release();
this.__BY=false;
break;
case a:this.getChildControl(i).release();
break;
}},_onMouseWheel:function(e){var bt=e.getWheelDelta(s);

if(bt>0){this._countDown();
}else if(bt<0){this._countUp();
}e.stop();
},_onTextChange:function(e){var bu=this.getChildControl(k);
var bv;
if(this.getNumberFormat()){try{bv=this.getNumberFormat().parse(bu.getValue());
}catch(bw){}}if(bv===undefined){bv=parseFloat(bu.getValue());
}if(!isNaN(bv)){if(bv>this.getMaximum()){bu.setValue(this.getMaximum()+j);
return;
}else if(bv<this.getMinimum()){bu.setValue(this.getMinimum()+j);
return;
}this.setValue(bv);
}else{this._applyValue(this.__BW,undefined);
}},_onChangeLocale:function(bx){if(this.getNumberFormat()!==null){this.setNumberFormat(this.getNumberFormat());
var by=this.getChildControl(k);
by.setFilter(this._getFilterRegExp());
by.setValue(this.getNumberFormat().format(this.getValue()));
}},_onChangeNumberFormat:function(bz){var bA=this.getChildControl(k);
bA.setFilter(this._getFilterRegExp());
bA.setValue(this.getNumberFormat().format(this.getValue()));
},_countUp:function(){if(this.__BX){var bC=this.getValue()+this.getPageStep();
}else{var bC=this.getValue()+this.getSingleStep();
}if(this.getWrap()){if(bC>this.getMaximum()){var bB=this.getMaximum()-bC;
bC=this.getMinimum()+bB;
}}this.gotoValue(bC);
},_countDown:function(){if(this.__BY){var bE=this.getValue()-this.getPageStep();
}else{var bE=this.getValue()-this.getSingleStep();
}if(this.getWrap()){if(bE<this.getMinimum()){var bD=this.getMinimum()+bE;
bE=this.getMaximum()-bD;
}}this.gotoValue(bE);
},gotoValue:function(bF){return this.setValue(Math.min(this.getMaximum(),Math.max(this.getMinimum(),bF)));
}},destruct:function(){if(qx.core.Environment.get(F)){qx.locale.Manager.getInstance().removeListener(G,this._onChangeLocale,this);
}}});
})();
(function(){var f="mshtml",e="engine.name",d="pop.push.reverse.shift.sort.splice.unshift.join.slice",c="number",b="qx.type.BaseArray",a=".";
qx.Class.define(b,{extend:Array,construct:function(g){},members:{toArray:null,valueOf:null,pop:null,push:null,reverse:null,shift:null,sort:null,splice:null,unshift:null,concat:null,join:null,slice:null,toString:null,indexOf:null,lastIndexOf:null,forEach:null,filter:null,map:null,some:null,every:null}});
(function(){function k(l){if((qx.core.Environment.get(e)==f)){j.prototype={length:0,$$isArray:true};
var o=d.split(a);

for(var length=o.length;length;){j.prototype[o[--length]]=Array.prototype[o[length]];
}}var p=Array.prototype.slice;
j.prototype.concat=function(){var r=this.slice(0);

for(var i=0,length=arguments.length;i<length;i++){var q;

if(arguments[i] instanceof j){q=p.call(arguments[i],0);
}else if(arguments[i] instanceof Array){q=arguments[i];
}else{q=[arguments[i]];
}r.push.apply(r,q);
}return r;
};
j.prototype.toString=function(){return p.call(this,0).toString();
};
j.prototype.toLocaleString=function(){return p.call(this,0).toLocaleString();
};
j.prototype.constructor=j;
j.prototype.indexOf=qx.lang.Core.arrayIndexOf;
j.prototype.lastIndexOf=qx.lang.Core.arrayLastIndexOf;
j.prototype.forEach=qx.lang.Core.arrayForEach;
j.prototype.some=qx.lang.Core.arraySome;
j.prototype.every=qx.lang.Core.arrayEvery;
var m=qx.lang.Core.arrayFilter;
var n=qx.lang.Core.arrayMap;
j.prototype.filter=function(){var s=new this.constructor;
s.push.apply(s,m.apply(this,arguments));
return s;
};
j.prototype.map=function(){var t=new this.constructor;
t.push.apply(t,n.apply(this,arguments));
return t;
};
j.prototype.slice=function(){var u=new this.constructor;
u.push.apply(u,Array.prototype.slice.apply(this,arguments));
return u;
};
j.prototype.splice=function(){var v=new this.constructor;
v.push.apply(v,Array.prototype.splice.apply(this,arguments));
return v;
};
j.prototype.toArray=function(){return Array.prototype.slice.call(this,0);
};
j.prototype.valueOf=function(){return this.length;
};
return j;
}function j(length){if(arguments.length===1&&typeof length===c){this.length=-1<length&&length===length>>.5?length:this.push(length);
}else if(arguments.length){this.push.apply(this,arguments);
}}function h(){}h.prototype=[];
j.prototype=new h;
j.prototype.length=0;
qx.type.BaseArray=k(j);
})();
})();
(function(){var m="get",k="set",h="reset",g=":not(",f="getValue",e="append",d=")",c="getPreviousSiblings",b="getOffsetParent",a="qx.bom.Collection",K="setValue",J="prepend",I="string",H="getAncestors",G="#",F="remove",E=">*",D="add",C="*",B="",t="addListener",u="has",r="toggle",s="getSiblings",p="replace",q="after",n="replaceWith",o="setCss",v="setStyles",w="before",y="getNextSiblings",x="getPosition",A="getCss",z="removeListener";
(function(){var M=function(N,O){return function(P,Q,R,S,T,U){var length=this.length;

if(length>0){var V=N[O];

for(var i=0;i<length;i++){if(this[i].nodeType===1){V.call(N,this[i],P,Q,R,S,T,U);
}}}return this;
};
};
var L=function(W,X){return function(Y,ba,bb,bc,bd,be){if(this.length>0){var bf=this[0].nodeType===1?W[X](this[0],Y,ba,bb,bc,bd,be):null;

if(bf&&bf.nodeType){return this.__sW([bf]);
}else{return bf;
}}return null;
};
};
qx.Class.define(a,{extend:qx.type.BaseArray,construct:function(bg){qx.type.BaseArray.apply(this,arguments);
},statics:{query:function(bh,bi){var bj=qx.bom.Selector.query(bh,bi);
return qx.lang.Array.cast(bj,qx.bom.Collection);
},id:function(bk){var bl=document.getElementById(bk);
if(bl&&bl.id!=bk){return qx.bom.Collection.query(G+bk);
}if(bl){return new qx.bom.Collection(bl);
}else{return new qx.bom.Collection();
}},html:function(bm,bn){var bo=qx.bom.Html.clean([bm],bn);
return qx.lang.Array.cast(bo,qx.bom.Collection);
},__sS:/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,create:function(bp,bq){var bs=qx.bom.Collection;
if(bp.nodeType){return new bs(bp);
}else if(typeof bp===I){var br=bs.__sS.exec(bp);

if(br){return br[1]?bs.html(br[1],bq):bs.id(br[3].substring(1));
}else{return bs.query(bp,bq);
}}else{return qx.lang.Array.cast(bp,qx.bom.Collection);
}}},members:{__sT:null,setAttribute:M(qx.bom.element.Attribute,k),resetAttribute:M(qx.bom.element.Attribute,h),getAttribute:L(qx.bom.element.Attribute,m),addClass:M(qx.bom.element.Class,D),getClass:L(qx.bom.element.Class,m),hasClass:L(qx.bom.element.Class,u),removeClass:M(qx.bom.element.Class,F),replaceClass:M(qx.bom.element.Class,p),toggleClass:M(qx.bom.element.Class,r),setValue:M(qx.bom.Input,K),getValue:L(qx.bom.Input,f),setStyle:M(qx.bom.element.Style,k),setStyles:M(qx.bom.element.Style,v),resetStyle:M(qx.bom.element.Style,h),getStyle:L(qx.bom.element.Style,m),setCss:M(qx.bom.element.Style,o),getCss:M(qx.bom.element.Style,A),getOffset:L(qx.bom.element.Location,m),getPosition:L(qx.bom.element.Location,x),getOffsetParent:L(qx.bom.element.Location,b),setScrollLeft:function(bt){var Node=qx.dom.Node;

for(var i=0,l=this.length,bu;i<l;i++){bu=this[i];

if(Node.isElement(bu)){bu.scrollLeft=bt;
}else if(Node.isWindow(bu)){bu.scrollTo(bt,this.getScrollTop(bu));
}else if(Node.isDocument(bu)){Node.getWindow(bu).scrollTo(bt,this.getScrollTop(bu));
}}return this;
},setScrollTop:function(bv){var Node=qx.dom.Node;

for(var i=0,l=this.length,bw;i<l;i++){bw=this[i];

if(Node.isElement(bw)){bw.scrollTop=bv;
}else if(Node.isWindow(bw)){bw.scrollTo(this.getScrollLeft(bw),bv);
}else if(Node.isDocument(bw)){Node.getWindow(bw).scrollTo(this.getScrollLeft(bw),bv);
}}return this;
},getScrollLeft:function(){var bx=this[0];

if(!bx){return null;
}var Node=qx.dom.Node;

if(Node.isWindow(bx)||Node.isDocument(bx)){return qx.bom.Viewport.getScrollLeft();
}return bx.scrollLeft;
},getScrollTop:function(){var by=this[0];

if(!by){return null;
}var Node=qx.dom.Node;

if(Node.isWindow(by)||Node.isDocument(by)){return qx.bom.Viewport.getScrollTop();
}return by.scrollTop;
},getWidth:function(){var bz=this[0];
var Node=qx.dom.Node;

if(bz){if(Node.isElement(bz)){return qx.bom.element.Dimension.getWidth(bz);
}else if(Node.isDocument(bz)){return qx.bom.Document.getWidth(Node.getWindow(bz));
}else if(Node.isWindow(bz)){return qx.bom.Viewport.getWidth(bz);
}}return null;
},getContentWidth:function(){var bA=this[0];

if(qx.dom.Node.isElement(bA)){return qx.bom.element.Dimension.getContentWidth(bA);
}return null;
},getHeight:function(){var bB=this[0];
var Node=qx.dom.Node;

if(bB){if(Node.isElement(bB)){return qx.bom.element.Dimension.getHeight(bB);
}else if(Node.isDocument(bB)){return qx.bom.Document.getHeight(Node.getWindow(bB));
}else if(Node.isWindow(bB)){return qx.bom.Viewport.getHeight(bB);
}}return null;
},getContentHeight:function(){var bC=this[0];

if(qx.dom.Node.isElement(bC)){return qx.bom.element.Dimension.getContentHeight(bC);
}return null;
},addListener:M(qx.bom.Element,t),removeListener:M(qx.bom.Element,z),eq:function(bD){return this.slice(bD,+bD+1);
},filter:function(bE,bF){var bG;

if(qx.lang.Type.isFunction(bE)){bG=qx.type.BaseArray.prototype.filter.call(this,bE,bF);
}else{bG=qx.bom.Selector.matches(bE,this);
}return this.__sW(bG);
},is:function(bH){return !!bH&&qx.bom.Selector.matches(bH,this).length>0;
},__sU:/^.[^:#\[\.,]*$/,not:function(bI){if(this.__sU.test(bI)){var bJ=qx.bom.Selector.matches(g+bI+d,this);
return this.__sW(bJ);
}var bJ=qx.bom.Selector.matches(bI,this);
return this.filter(function(bK){return bJ.indexOf(bK)===-1;
});
},add:function(bL,bM){var bN=qx.bom.Selector.query(bL,bM);
var bO=qx.lang.Array.unique(this.concat(bN));
return this.__sW(bO);
},children:function(bP){var bQ=[];

for(var i=0,l=this.length;i<l;i++){bQ.push.apply(bQ,qx.dom.Hierarchy.getChildElements(this[i]));
}
if(bP){bQ=qx.bom.Selector.matches(bP,bQ);
}return this.__sW(bQ);
},closest:function(bR){var bS=new qx.bom.Collection(1);
var bU=qx.bom.Selector;
var bT=this.map(function(bV){while(bV&&bV.ownerDocument){bS[0]=bV;

if(bU.matches(bR,bS).length>0){return bV;
}bV=bV.parentNode;
}});
return this.__sW(qx.lang.Array.unique(bT));
},contents:function(){var bX=[];
var bW=qx.lang.Array;

for(var i=0,l=this.length;i<l;i++){bX.push.apply(bX,bW.fromCollection(this[i].childNodes));
}return this.__sW(bX);
},find:function(bY){var cb=qx.bom.Selector;
if(this.length===1){return this.__sW(cb.query(bY,this[0]));
}else{var ca=[];

for(var i=0,l=this.length;i<l;i++){ca.push.apply(ca,cb.query(bY,this[i]));
}return this.__sW(qx.lang.Array.unique(ca));
}},next:function(cc){var cd=qx.dom.Hierarchy;
var ce=this.map(cd.getNextElementSibling,cd);
if(cc){ce=qx.bom.Selector.matches(cc,ce);
}return this.__sW(ce);
},nextAll:function(cf){return this.__sV(y,cf);
},prev:function(cg){var ch=qx.dom.Hierarchy;
var ci=this.map(ch.getPreviousElementSibling,ch);
if(cg){ci=qx.bom.Selector.matches(cg,ci);
}return this.__sW(ci);
},prevAll:function(cj){return this.__sV(c,cj);
},parent:function(ck){var Element=qx.dom.Element;
var cl=qx.lang.Array.unique(this.map(Element.getParentElement,Element));
if(ck){cl=qx.bom.Selector.matches(ck,cl);
}return this.__sW(cl);
},parents:function(cm){return this.__sV(H,cm);
},siblings:function(cn){return this.__sV(s,cn);
},__sV:function(co,cp){var cr=[];
var cq=qx.dom.Hierarchy;

for(var i=0,l=this.length;i<l;i++){cr.push.apply(cr,cq[co](this[i]));
}var cs=qx.lang.Array.unique(cr);
if(cp){cs=qx.bom.Selector.matches(cp,cs);
}return this.__sW(cs);
},__sW:function(ct){var cu=new qx.bom.Collection;
cu.__sT=this;
ct=Array.prototype.slice.call(ct,0);
cu.push.apply(cu,ct);
return cu;
},andSelf:function(){return this.add(this.__sT);
},end:function(){return this.__sT||new qx.bom.Collection();
},__sX:function(cv,cw){var cB=this[0];
var cA=cB.ownerDocument||cB;
var cz=cA.createDocumentFragment();
var cD=qx.bom.Html.clean(cv,cA,cz);
var cF=cz.firstChild;
if(cF){var cx=this.length-1;

for(var i=0,l=cx;i<l;i++){cw.call(this,this[i],cz.cloneNode(true));
}cw.call(this,this[cx],cz);
}if(cD){var cy;
var cE=qx.io.ScriptLoader;
var cC=qx.lang.Function;

for(var i=0,l=cD.length;i<l;i++){cy=cD[i];
if(cy.src){(new cE()).load(cy.src);
}else{cC.globalEval(cy.text||cy.textContent||cy.innerHTML||B);
}if(cy.parentNode){cy.parentNode.removeChild(cy);
}}}return this;
},__sY:function(cG,cH){var cJ=qx.bom.Selector;
var cI=qx.lang.Array;
var cL=[];

for(var i=0,l=cG.length;i<l;i++){cL.push.apply(cL,cJ.query(cG[i]));
}cL=cI.cast(cI.unique(cL),qx.bom.Collection);
for(var i=0,cK=this.length;i<cK;i++){cL[cH](this[i]);
}return this;
},append:function(cM){return this.__sX(arguments,this.__ta);
},prepend:function(cN){return this.__sX(arguments,this.__tb);
},__ta:function(cO,cP){cO.appendChild(cP);
},__tb:function(cQ,cR){cQ.insertBefore(cR,cQ.firstChild);
},appendTo:function(cS){return this.__sY(arguments,e);
},prependTo:function(cT){return this.__sY(arguments,J);
},before:function(cU){return this.__sX(arguments,this.__tc);
},after:function(cV){return this.__sX(arguments,this.__td);
},__tc:function(cW,cX){cW.parentNode.insertBefore(cX,cW);
},__td:function(cY,da){cY.parentNode.insertBefore(da,cY.nextSibling);
},insertBefore:function(db){return this.__sY(arguments,w);
},insertAfter:function(dc){return this.__sY(arguments,q);
},wrapAll:function(content){var de=this[0];

if(de){var dd=qx.bom.Collection.create(content,de.ownerDocument).clone();
if(de.parentNode){de.parentNode.insertBefore(dd[0],de);
}dd.map(this.__te).append(this);
}return this;
},__te:function(df){while(df.firstChild){df=df.firstChild;
}return df;
},wrapInner:function(content){var dg=new qx.bom.Collection(1);

for(var i=0,l=this.length;i<l;i++){dg[0]=this[i];
dg.contents().wrapAll(content);
}return this;
},wrap:function(content){var dh=new qx.bom.Collection(1);
for(var i=0,l=this.length;i<l;i++){dh[0]=this[i];
dh.wrapAll(content);
}return this;
},replaceWith:function(content){return this.after(content).remove();
},replaceAll:function(di){return this.__sY(arguments,n);
},remove:function(dj){var dl=this;

if(dj){dl=this.filter(dj);

if(dl.length==0){return this;
}}for(var i=0,dm=dl.length,dk;i<dm;i++){dk=dl[i];

if(dk.parentNode){dk.parentNode.removeChild(dk);
}}return dl;
},destroy:function(dn){if(this.length==0){return this;
}var dq=qx.bom.Selector;
var dt=this;

if(dn){dt=this.filter(dn);

if(dt.length==0){return this;
}}var ds=qx.event.Registration.getManager(this[0]);

for(var i=0,l=dt.length,dr,du;i<l;i++){dr=dt[i];
ds.removeAllListeners(dr);
du=dq.query(C,dr);

for(var j=0,dp=du.length;j<dp;j++){ds.removeAllListeners(du[j]);
}if(dr.parentNode){dr.parentNode.removeChild(dr);
}}if(dn){dt.end();
qx.lang.Array.exclude(this,dt);
}else{this.length=0;
}return this;
},empty:function(){var dv=qx.bom.Collection;

for(var i=0,l=this.length;i<l;i++){dv.query(E,this[i]).destroy();
while(this.firstChild){this.removeChild(this.firstChild);
}}return this;
},clone:function(dw){var Element=qx.bom.Element;
return dw?this.map(function(dx){return Element.clone(dx,true);
}):this.map(Element.clone,Element);
}},defer:function(dy){if(window.$==null){window.$=dy.create;
}}});
})();
})();
(function(){var a="qx.ui.form.validation.AsyncValidator";
qx.Class.define(a,{extend:qx.core.Object,construct:function(b){qx.core.Object.call(this);
this.__ge=b;
},members:{__ge:null,__gf:null,__dy:null,__gg:null,validate:function(c,d,e,f){this.__gg=false;
this.__gf=c;
this.__dy=e;
this.__ge.call(f||this,this,d);
},validateForm:function(g,h,i){this.__gg=true;
this.__dy=h;
this.__ge.call(i,g,this);
},setValid:function(j,k){if(this.__gg){if(k!==undefined){this.__dy.setInvalidMessage(k);
}this.__dy.setFormValid(j);
}else{if(k!==undefined){this.__gf.setInvalidMessage(k);
}this.__dy.setItemValid(this.__gf,j);
}}},destruct:function(){this.__dy=this.__gf=null;
}});
})();
(function(){var a="qx.ui.form.renderer.IFormRenderer";
qx.Interface.define(a,{members:{addItems:function(b,c,d,e,f){},addButton:function(g,h){}}});
})();
(function(){var j="qx.dynlocale",h="",g="changeLocale",f="visibility",d=" <span style='color:red'>*</span> ",c="abstract",b="qx.ui.form.renderer.AbstractRenderer",a=" :";
qx.Class.define(b,{type:c,extend:qx.ui.core.Widget,implement:qx.ui.form.renderer.IFormRenderer,construct:function(k){qx.ui.core.Widget.call(this);
this._visibilityBindingIds=[];
this._labels=[];
if(qx.core.Environment.get(j)){qx.locale.Manager.getInstance().addListener(g,this._onChangeLocale,this);
this._names=[];
}var o=k.getGroups();

for(var i=0;i<o.length;i++){var n=o[i];
this.addItems(n.items,n.labels,n.title,n.options,n.headerOptions);
}var l=k.getButtons();
var m=k.getButtonOptions();

for(var i=0;i<l.length;i++){this.addButton(l[i],m[i]);
}},members:{_names:null,_visibilityBindingIds:null,_labels:null,_connectVisibility:function(p,q){var r=p.bind(f,q,f);
this._visibilityBindingIds.push({id:r,item:p});
},_onChangeLocale:qx.core.Environment.select(j,{"true":function(e){for(var i=0;i<this._names.length;i++){var s=this._names[i];

if(s.name&&s.name.translate){s.name=s.name.translate();
}var t=this._createLabelText(s.name,s.item);
s.label.setValue(t);
}},"false":null}),_createLabelText:function(name,u){var v=h;

if(u.getRequired()){v=d;
}var w=name.length>0||u.getRequired()?a:h;
return name+v+w;
},addItems:function(x,y,z){throw new Error("Abstract method call");
},addButton:function(A){throw new Error("Abstract method call");
}},destruct:function(){if(qx.core.Environment.get(j)){qx.locale.Manager.getInstance().removeListener(g,this._onChangeLocale,this);
}this._names=null;
for(var i=0;i<this._labels.length;i++){this._labels[i].dispose();
}for(var i=0;i<this._visibilityBindingIds.length;i++){var B=this._visibilityBindingIds[i];
B.item.removeBinding(B.id);
}}});
})();
(function(){var k="",j="dropdown",h="pressed",g="abandoned",f="selection",e="atom",d="hovered",c="Space",b="interval",a="arrow",C="search",B="spacer",A="Enter",z="qx.data.Array",y="mouseout",x="open",w="list",v="qx.ui.form.VirtualSelectBox",u="changeSelection",t="_applySelection",r="icon",s="mouseover",p="converter",q="click",n="model",o="label",l=" ",m="virtual-selectbox";
qx.Class.define(v,{extend:qx.ui.form.core.AbstractVirtualBox,construct:function(D){qx.ui.form.core.AbstractVirtualBox.call(this,D);
this._createChildControl(e);
this._createChildControl(B);
this._createChildControl(a);
this.addListener(s,this._onMouseOver,this);
this.addListener(y,this._onMouseOut,this);
this.__bg=[];
this.initSelection(this.getChildControl(j).getSelection());
this.__Cj=new qx.event.Timer(500);
this.__Cj.addListener(b,this.__Cl,this);
},properties:{appearance:{refine:true,init:m},width:{refine:true,init:120},selection:{check:z,event:u,apply:t,nullable:false,deferredInit:true}},members:{__Ck:k,__Cj:null,__bg:null,syncWidget:function(){this._removeBindings();
this._addBindings();
},_createChildControlImpl:function(E,F){var G;

switch(E){case B:G=new qx.ui.core.Spacer();
this._add(G,{flex:1});
break;
case e:G=new qx.ui.form.ListItem(k);
G.setCenter(false);
G.setAnonymous(true);
this._add(G,{flex:1});
break;
case a:G=new qx.ui.basic.Image();
G.setAnonymous(true);
this._add(G);
break;
}return G||qx.ui.form.core.AbstractVirtualBox.prototype._createChildControlImpl.call(this,E,F);
},_getAction:function(event){var H=event.getKeyIdentifier();
var J=this.getChildControl(j).isVisible();
var I=this._isModifierPressed(event);

if(!J&&!I&&(H===A||H===c)){return x;
}else if(J&&event.isPrintable()){return C;
}else{return qx.ui.form.core.AbstractVirtualBox.prototype._getAction.call(this,event);
}},_addBindings:function(){var O=this.getChildControl(e);
var K=this._getBindPath(f,k);
var M=this.bind(K,O,n,null);
this.__bg.push(M);
var N=this._getBindPath(f,this.getLabelPath());
M=this.bind(N,O,o,this.getLabelOptions());
this.__bg.push(M);

if(this.getIconPath()!=null){var L=this._getBindPath(f,this.getIconPath());
M=this.bind(L,O,r,this.getIconOptions());
this.__bg.push(M);
}},_removeBindings:function(){while(this.__bg.length>0){var P=this.__bg.pop();
this.removeBinding(P);
}},_handleMouse:function(event){qx.ui.form.core.AbstractVirtualBox.prototype._handleMouse.call(this,event);
var Q=event.getType();

if(Q===q){this.toggle();
}},_handleKeyboard:function(event){var R=this._getAction(event);

switch(R){case C:this.__Ck+=this.__Cm(event.getKeyIdentifier());
this.__Cj.restart();
break;
default:qx.ui.form.core.AbstractVirtualBox.prototype._handleKeyboard.call(this,event);
break;
}},_onMouseOver:function(event){if(!this.isEnabled()||event.getTarget()!==this){return;
}
if(this.hasState(g)){this.removeState(g);
this.addState(h);
}this.addState(d);
},_onMouseOut:function(event){if(!this.isEnabled()||event.getTarget()!==this){return;
}this.removeState(d);

if(this.hasState(h)){this.removeState(h);
this.addState(g);
}},_applySelection:function(S,T){this.getChildControl(j).setSelection(S);
qx.ui.core.queue.Widget.add(this);
},__Cl:function(){this.__Cj.stop();
var X=this.__Ck;

if(X==null||X==k){return;
}var be=this.getModel();
var Y=this.getChildControl(j).getChildControl(w);
var V=Y.getSelection();
var length=Y._getLookupTable().length;
var ba=be.indexOf(V.getItem(0));
var bc=Y._reverseLookup(ba);

for(var i=1;i<=length;i++){var bf=(i+bc)%length;
var bd=be.getItem(Y._lookup(bf));
var bb=bd;

if(this.getLabelPath()!=null){bb=qx.data.SingleValueBinding.getValueFromObject(bd,this.getLabelPath());
var U=this.getLabelOptions();

if(U!=null){var W=qx.util.Delegate.getMethod(U,p);

if(W!=null){bb=W(bb,bd);
}}}
if(qx.lang.String.startsWith(bb.toLowerCase(),X.toLowerCase())){V.push(bd);
break;
}}this.__Ck=k;
},__Cm:function(bg){if(bg===c){return l;
}else{return bg;
}}},destruct:function(){this._removeBindings();
this.__Cj.removeListener(b,this.__Cl,this);
this.__Cj.dispose();
this.__Cj==null;
}});
})();
(function(){var h="right",g="bold",f="_buttonRow",e="qx.ui.form.renderer.Single",d="form-renderer-label",c="qx.dynlocale",b="top",a="left";
qx.Class.define(e,{extend:qx.ui.form.renderer.AbstractRenderer,construct:function(j){var k=new qx.ui.layout.Grid();
k.setSpacing(6);
k.setColumnFlex(0,1);
k.setColumnAlign(0,h,b);
this._setLayout(k);
qx.ui.form.renderer.AbstractRenderer.call(this,j);
},members:{_row:0,_buttonRow:null,addItems:function(l,m,n){if(n!=null){this._add(this._createHeader(n),{row:this._row,column:0,colSpan:2});
this._row++;
}for(var i=0;i<l.length;i++){var p=this._createLabel(m[i],l[i]);
this._add(p,{row:this._row,column:0});
var o=l[i];
p.setBuddy(o);
this._add(o,{row:this._row,column:1});
this._row++;
this._connectVisibility(o,p);
if(qx.core.Environment.get(c)){this._names.push({name:m[i],label:p,item:l[i]});
}}},addButton:function(q){if(this._buttonRow==null){this._buttonRow=new qx.ui.container.Composite();
this._buttonRow.setMarginTop(5);
var r=new qx.ui.layout.HBox();
r.setAlignX(h);
r.setSpacing(5);
this._buttonRow.setLayout(r);
this._add(this._buttonRow,{row:this._row,column:0,colSpan:2});
this._row++;
}this._buttonRow.add(q);
},getLayout:function(){return this._getLayout();
},_createLabel:function(name,s){var t=new qx.ui.basic.Label(this._createLabelText(name,s));
this._labels.push(t);
t.setRich(true);
t.setAppearance(d);
return t;
},_createHeader:function(u){var v=new qx.ui.basic.Label(u);
this._labels.push(v);
v.setFont(g);

if(this._row!=0){v.setMarginTop(10);
}v.setAlignX(a);
return v;
}},destruct:function(){if(this._buttonRow){this._buttonRow.removeAll();
this._disposeObjects(f);
}}});
})();
(function(){var m="string",k="script",h="<table>",g="engine.name",f="<fieldset>",e="<select multiple='multiple'>",d="</div>",c="</select>",b="</tr></tbody></table>",a="<col",J="div",I="<table><tbody><tr>",H=">",G="<table><tbody></tbody><colgroup>",F="<th",E="</tbody></table>",D="<td",C="</colgroup></table>",B="<opt",A="text/javascript",t="",u="</fieldset>",r="<table><tbody>",s="div<div>",p="<table",q="mshtml",n="qx.bom.Html",o="<leg",v="tbody",w="<tr",y="</table>",x="undefined",z="></";
qx.Class.define(n,{statics:{__tf:function(K,L,M){return M.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?K:L+z+M+H;
},__tg:{opt:[1,e,c],leg:[1,f,u],table:[1,h,y],tr:[2,r,E],td:[3,I,b],col:[2,G,C],def:qx.core.Environment.select(g,{"mshtml":[1,s,d],"default":null})},__th:function(N,O){var U=O.createElement(J);
N=N.replace(/(<(\w+)[^>]*?)\/>/g,this.__tf);
var Q=N.replace(/^\s+/,t).substring(0,5).toLowerCase();
var T,P=this.__tg;

if(!Q.indexOf(B)){T=P.opt;
}else if(!Q.indexOf(o)){T=P.leg;
}else if(Q.match(/^<(thead|tbody|tfoot|colg|cap)/)){T=P.table;
}else if(!Q.indexOf(w)){T=P.tr;
}else if(!Q.indexOf(D)||!Q.indexOf(F)){T=P.td;
}else if(!Q.indexOf(a)){T=P.col;
}else{T=P.def;
}if(T){U.innerHTML=T[1]+N+T[2];
var S=T[0];

while(S--){U=U.lastChild;
}}else{U.innerHTML=N;
}if((qx.core.Environment.get(g)==q)){var V=/<tbody/i.test(N);
var R=!Q.indexOf(p)&&!V?U.firstChild&&U.firstChild.childNodes:T[1]==h&&!V?U.childNodes:[];

for(var j=R.length-1;j>=0;--j){if(R[j].tagName.toLowerCase()===v&&!R[j].childNodes.length){R[j].parentNode.removeChild(R[j]);
}}if(/^\s/.test(N)){U.insertBefore(O.createTextNode(N.match(/^\s*/)[0]),U.firstChild);
}}return qx.lang.Array.fromCollection(U.childNodes);
},clean:function(W,X,Y){X=X||document;
if(typeof X.createElement===x){X=X.ownerDocument||X[0]&&X[0].ownerDocument||document;
}if(!Y&&W.length===1&&typeof W[0]===m){var bg=/^<(\w+)\s*\/?>$/.exec(W[0]);

if(bg){return [X.createElement(bg[1])];
}}var ba,bc=[];

for(var i=0,l=W.length;i<l;i++){ba=W[i];
if(typeof ba===m){ba=this.__th(ba,X);
}if(ba.nodeType){bc.push(ba);
}else if(ba instanceof qx.type.BaseArray){bc.push.apply(bc,Array.prototype.slice.call(ba,0));
}else if(ba.toElement){bc.push(ba.toElement());
}else{bc.push.apply(bc,ba);
}}if(Y){var bf=[],be=qx.lang.Array,bd,bb;

for(var i=0;bc[i];i++){bd=bc[i];

if(bd.nodeType==1&&bd.tagName.toLowerCase()===k&&(!bd.type||bd.type.toLowerCase()===A)){if(bd.parentNode){bd.parentNode.removeChild(bc[i]);
}bf.push(bd);
}else{if(bd.nodeType===1){bb=be.fromCollection(bd.getElementsByTagName(k));
bc.splice.apply(bc,[i+1,0].concat(bb));
}Y.appendChild(bd);
}}return bf;
}return bc;
}}});
})();
(function(){var b="qx.ui.form.Form",a="";
qx.Class.define(b,{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);
this.__gx=[];
this._buttons=[];
this._buttonOptions=[];
this._validationManager=new qx.ui.form.validation.Manager();
this._resetter=new qx.ui.form.Resetter();
},members:{__gx:null,_validationManager:null,_groupCounter:0,_buttons:null,_buttonOptions:null,_resetter:null,add:function(c,d,e,name,f,g){if(this.__gy()){this.__gx.push({title:null,items:[],labels:[],names:[],options:[],headerOptions:{}});
}this.__gx[this._groupCounter].items.push(c);
this.__gx[this._groupCounter].labels.push(d);
this.__gx[this._groupCounter].options.push(g);
if(name==null){name=d.replace(/\s+|&|-|\+|\*|\/|\||!|\.|,|:|\?|;|~|%|\{|\}|\(|\)|\[|\]|<|>|=|\^|@|\\/g,a);
}this.__gx[this._groupCounter].names.push(name);
this._validationManager.add(c,e,f);
this._resetter.add(c);
},addGroupHeader:function(h,k){if(!this.__gy()){this._groupCounter++;
}this.__gx.push({title:h,items:[],labels:[],names:[],options:[],headerOptions:k});
},addButton:function(l,m){this._buttons.push(l);
this._buttonOptions.push(m||null);
},__gy:function(){return this.__gx.length===0;
},reset:function(){this._resetter.reset();
this._validationManager.reset();
},redefineResetter:function(){this._resetter.redefine();
},validate:function(){return this._validationManager.validate();
},getValidationManager:function(){return this._validationManager;
},getGroups:function(){return this.__gx;
},getButtons:function(){return this._buttons;
},getButtonOptions:function(){return this._buttonOptions;
},getItems:function(){var n={};
for(var i=0;i<this.__gx.length;i++){var o=this.__gx[i];
for(var j=0;j<o.names.length;j++){var name=o.names[j];
n[name]=o.items[j];
}}return n;
}},destruct:function(){this.__gx=this._buttons=this._buttonOptions=null;
this._validationManager.dispose();
this._resetter.dispose();
}});
})();
(function(){var k="auto",j="engine.name",i="hidden",h="overflowY",g="textarea",f="width",d="Boolean",c="Integer",b="input",a="appear",A="mshtml",z="webkit",y="px",x="_applyWrap",w="-1",v="_applyMinimalLineHeight",u="mousewheel",t="visible",s="y",r="browser.documentmode",p="_applyAutoSize",q="tabIndex",n='name',o="qx.ui.form.TextArea",l='id',m="absolute";
qx.Class.define(o,{extend:qx.ui.form.AbstractField,construct:function(B){qx.ui.form.AbstractField.call(this,B);
this.initWrap();
this.addListener(u,this._onMousewheel,this);
},properties:{wrap:{check:d,init:true,apply:x},appearance:{refine:true,init:g},singleStep:{check:c,init:20},minimalLineHeight:{check:c,apply:v,init:4},autoSize:{check:d,apply:p,init:false}},members:{__xP:null,__xQ:null,__xR:null,setValue:function(C){C=qx.ui.form.AbstractField.prototype.setValue.call(this,C);
this.__xS();
return C;
},_onMousewheel:function(e){var D=this.getContentElement();
var scrollY=D.getScrollY();
D.scrollToY(scrollY+e.getWheelDelta(s)*this.getSingleStep());
var E=D.getScrollY();

if(E!=scrollY){e.stop();
}},__xS:function(){if(this.isAutoSize()){var H=this.__xT();

if(H){this.__xR=this.__xR||this._getAreaHeight();
var J=this._getScrolledAreaHeight();
if(this.getMaxHeight()){var F=this.getInsets();
var G=-F.top+this.getMaxHeight()-F.bottom;

if(J>G){this.getContentElement().setStyle(h,k);
}else{this.getContentElement().setStyle(h,i);
}}var I=Math.max(J,this.__xR);
this._setAreaHeight(I);
}else{this.addListenerOnce(a,function(){this.__xS();
},this);
}}},_getAreaHeight:function(){return this.getInnerSize().height;
},_setAreaHeight:function(K){if(this._getAreaHeight()!==K){this.__xQ=K;
qx.ui.core.queue.Layout.add(this);
qx.ui.core.queue.Manager.flush();
this.__xW();
}},_getScrolledAreaHeight:function(){var M=this.__xT();
var L=M.getDomElement();

if(L){if(!L.parentNode){qx.html.Element.flush();
return this._getScrolledAreaHeight();
}if(qx.core.Environment.get(j)===z){M.setWrap(!this.getWrap(),true);
}M.setWrap(this.getWrap(),true);
if(qx.core.Environment.get(j)==z){L.style.overflow=i;
}if(qx.core.Environment.get(j)==A&&qx.core.Environment.get(r)>=8){L.style.overflow=t;
}M.setValue(this.getValue());
this.__xV(M);

if(qx.core.Environment.get(j)==A){if(!L.scrollTop){qx.html.Element.flush();
}return L.scrollTop+this._getTextSize().height;
}return L.scrollTop;
}},__xT:function(){this.__xP=this.__xP||this.__xU();
return this.__xP;
},__xU:function(){var Q,O,N,P;
Q=this.getContentElement();
if(!Q.getDomElement()){return;
}N=qx.bom.Collection.create(Q.getDomElement()).clone()[0];
P=new qx.html.Input(g);
P.useElement(N);
O=P;
O.setStyles({position:m,top:0,left:-9999,height:0,overflow:i},true);
O.removeAttribute(l);
O.removeAttribute(n);
O.setAttribute(q,w);
O.setValue(Q.getValue());
O.insertBefore(Q);
this.__xV(O);
return O;
},__xV:function(R){R=R.getDomElement();

if(R){R.scrollTop=10000;
}},_createInputElement:function(){return new qx.html.Input(g,{overflowX:k,overflowY:k});
},_applyWrap:function(S,T){this.getContentElement().setWrap(S);
this.__xS();
},_applyMinimalLineHeight:function(){qx.ui.core.queue.Layout.add(this);
},_applyAutoSize:function(U,V){if(U){this.__xS();
this.addListener(b,this.__xS,this);
this.addListenerOnce(a,function(){this.getContentElement().setStyle(h,i);
});
}else{this.removeListener(b,this.__xS);
this.getContentElement().setStyle(h,k);
}},_applyDimension:function(W){qx.ui.form.AbstractField.prototype._applyDimension.call(this);

if(W===this.getMaxHeight()){this.__xS();
}},__xW:function(){var content=this.getContentElement();
var Y=content.getDomElement();
var X=content.getStyle(f);
content.setStyle(f,parseInt(X,10)+1000+y,true);
if(Y){qx.bom.element.Dimension.getWidth(Y);
}content.setStyle(f,X,true);
},__xX:function(){if(this.isAutoSize()&&this.getHeight()){this.warn("autoSize is ignored when the height property is set. "+"If you want to set an initial height, use the minHeight "+"property instead.");
}},_getContentHint:function(){var ba=qx.ui.form.AbstractField.prototype._getContentHint.call(this);
ba.height=ba.height*this.getMinimalLineHeight();
ba.width=this._getTextSize().width*20;

if(this.isAutoSize()){ba.height=this.__xQ||ba.height;
}return ba;
}}});
})();
(function(){var a="showcase.page.form.Content";
qx.Class.define(a,{extend:showcase.AbstractContent,construct:function(b){showcase.AbstractContent.call(this,b);
this.setView(new qxc.application.formdemo.FormItems());
}});
})();
(function(){var b="qx.ui.form.IColorForm",a="qx.event.type.Data";
qx.Interface.define(b,{events:{"changeValue":a},members:{setValue:function(c){return arguments.length==1;
},resetValue:function(){},getValue:function(){}}});
})();
(function(){var a="qx.ui.form.Resetter";
qx.Class.define(a,{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);
this.__fI=[];
},members:{__fI:null,add:function(b){if(this._supportsValue(b)){var c=b.getValue();
}else if(this.__gb(b)){var c=b.getSelection();
}else{throw new Error("Item "+b+" not supported for reseting.");
}this.__fI.push({item:b,init:c});
},reset:function(){for(var i=0;i<this.__fI.length;i++){var d=this.__fI[i];
this.__gz(d.item,d.init);
}},resetItem:function(e){var f;

for(var i=0;i<this.__fI.length;i++){var g=this.__fI[i];

if(g.item===e){f=g.init;
break;
}}if(f===undefined){throw new Error("The given item has not been added.");
}this.__gz(e,f);
},__gz:function(h,j){if(this._supportsValue(h)){h.setValue(j);
}else if(this.__gb(h)){h.setSelection(j);
}},redefine:function(){for(var i=0;i<this.__fI.length;i++){var k=this.__fI[i].item;
this.__fI[i].init=this.__gA(k);
}},redefineItem:function(l){var m;

for(var i=0;i<this.__fI.length;i++){if(this.__fI[i].item===l){m=this.__fI[i];
break;
}}if(m===undefined){throw new Error("The given item has not been added.");
}m.init=this.__gA(m.item);
},__gA:function(n){if(this._supportsValue(n)){return n.getValue();
}else if(this.__gb(n)){return n.getSelection();
}},__gb:function(o){var p=o.constructor;
return qx.Class.hasInterface(p,qx.ui.core.ISingleSelection);
},_supportsValue:function(q){var r=q.constructor;
return (qx.Class.hasInterface(r,qx.ui.form.IBooleanForm)||qx.Class.hasInterface(r,qx.ui.form.IColorForm)||qx.Class.hasInterface(r,qx.ui.form.IDateForm)||qx.Class.hasInterface(r,qx.ui.form.INumberForm)||qx.Class.hasInterface(r,qx.ui.form.IStringForm));
}},destruct:function(){this.__fI=null;
}});
})();

});