if(!nexacro.RadioClickEventInfo){nexacro.RadioClickEventInfo=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o){nexacro.ClickEventInfo.call(this,_a,_b||"onradioclick",_f,_g,_h,_i,_j,_k,_l,_m,_n,_o);this.index=_c;this.itemtext=_d;this.itemvalue=_e;};var _pRadioClickEventInfo=nexacro._createPrototype(nexacro.ClickEventInfo,nexacro.RadioClickEventInfo);nexacro.RadioClickEventInfo.prototype=_pRadioClickEventInfo;_pRadioClickEventInfo._type_name="RadioClickEventInfo";delete _pRadioClickEventInfo;}if(!nexacro.Radio){nexacro.Radio_Style=function(_a){nexacro.Style.call(this);this.buttonalign=null;this.buttonbackground=null;this.buttonbackgroundimagemode=null;this.buttonborder=null;this.buttoncolor=null;this.buttongradation=null;this.buttonimage=null;this.buttonsize=null;this.itembackground=null;this.itemborder=null;this.itembordertype=null;this.itemgradation=null;this.itempadding=null;this.textpadding=null;if(_a){this._target=_a;}};var _pRadioStyle=nexacro._createPrototype(nexacro.Style,nexacro.Radio_Style);nexacro.Radio_Style.prototype=_pRadioStyle;eval(nexacro._createAlignAttributeEvalStr("_pRadioStyle","buttonalign"));eval(nexacro._createBackgroundAttributeEvalStr("_pRadioStyle","buttonbackground"));eval(nexacro._createValueAttributeEvalStr("_pRadioStyle","buttonbackgroundimagemode"));eval(nexacro._createBorderAttributeEvalStr("_pRadioStyle","buttonborder"));eval(nexacro._createColorAttributeEvalStr("_pRadioStyle","buttoncolor"));eval(nexacro._createGradationAttributeEvalStr("_pRadioStyle","buttongradation"));eval(nexacro._createValueAttributeEvalStr("_pRadioStyle","buttonimage"));eval(nexacro._createValueAttributeEvalStr("_pRadioStyle","buttonsize"));eval(nexacro._createBackgroundAttributeEvalStr("_pRadioStyle","itembackground"));eval(nexacro._createBorderAttributeEvalStr("_pRadioStyle","itemborder"));eval(nexacro._createBordertypeAttributeEvalStr("_pRadioStyle","itembordertype"));eval(nexacro._createGradationAttributeEvalStr("_pRadioStyle","itemgradation"));eval(nexacro._createPaddingAttributeEvalStr("_pRadioStyle","itempadding"));eval(nexacro._createPaddingAttributeEvalStr("_pRadioStyle","textpadding"));eval(nexacro._createAccessibilityAttributeEvalStr("_pRadioStyle","accessibility"));eval(nexacro._createAccessibilityAttributeEvalStr("_pRadioStyle","itemaccessibility"));_pRadioStyle.__custom_emptyObject=function(){this.buttonalign=null;this.buttonbackground=null;this.buttonbackgroundimagemode=null;this.buttonborder=null;this.buttoncolor=null;this.buttongradation=null;this.buttonimage=null;this.buttonsize=null;this.itembackground=null;this.itemborder=null;this.itembordertype=null;this.itemgradation=null;this.itempadding=null;this.textpadding=null;this.accessibility=null;this.itemaccessibility=null;};_pRadioStyle.__get_custom_style_value=function(){var _a="";if(this.buttonalign&&this.buttonalign._is_empty){_a+="buttonalign:"+this.buttonalign._value+"; ";}if(this.buttonimage&&this.buttonimage._is_empty){_a+="buttonimage:"+this.buttonimage._value+"; ";}if(this.textpadding&&this.textpadding._is_empty){_a+="textpadding:"+this.textpadding._value+"; ";}if(this.buttonborder&&this.buttonborder._is_empty){_a+="buttonborder:"+this.buttonborder._value+"; ";}if(this.buttoncolor&&this.buttoncolor._is_empty){_a+="buttoncolor:"+this.buttoncolor._value+"; ";}if(this.buttonsize&&this.buttonsize._is_empty){_a+="buttonsize:"+this.buttonsize._value+"; ";}if(this.buttonbackground&&this.buttonbackground._is_empty){_a+="buttonbackground:"+this.buttonbackground._value+"; ";}if(this.buttongradation&&this.buttongradation._is_empty){_a+="buttongradation:"+this.buttongradation._value+"; ";}if(this.buttonbackgroundimagemode&&this.buttonbackgroundimagemode._is_empty){_a+="buttonbackgroundimagemode:"+this.buttonbackgroundimagemode._value+"; ";}if(this.itembackground&&this.itembackground._is_empty){_a+="itembackground:"+this.itembackground._value+"; ";}if(this.itemborder&&this.itemborder._is_empty){_a+="itemborder:"+this.itemborder._value+"; ";}if(this.itembordertype&&this.itembordertype._is_empty){_a+="itembordertype:"+this.itembordertype._value+"; ";}if(this.itemgradation&&this.itemgradation._is_empty){_a+="itemgradation:"+this.itemgradation._value+"; ";}if(this.itempadding&&this.itempadding._is_empty){_a+="itempadding:"+this.itempadding._value+"; ";}if(this.accessibility&&this.accessibility._is_empty){_a+="accessibility:"+this.accessibility._value+"; ";}if(this.itemaccessibility&&this.itemaccessibility._is_empty){_a+="itemaccessibility:"+this.itemaccessibility._value+"; ";}return _a;};nexacro.Radio_CurrentStyle=function(){nexacro.CurrentStyle.call(this);this.buttonalign=null;this.buttonimage=null;this.textpadding=null;this.buttonborder=null;this.buttoncolor=null;this.buttonsize=null;this.buttonbackground=null;this.buttongradation=null;this.buttonbackgroundimagemode=null;this.itembackground=null;this.itemborder=null;this.itembordertype=null;this.itemgradation=null;this.itempadding=null;};var _pRadioCurrentStyle=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.Radio_CurrentStyle);nexacro.Radio_CurrentStyle.prototype=_pRadioCurrentStyle;_pRadioCurrentStyle.__get_custom_style_value=_pRadioStyle.__get_custom_style_value;_pRadioCurrentStyle.__custom_emptyObject=_pRadioStyle.__custom_emptyObject;delete _pRadioStyle;delete _pRadioCurrentStyle;nexacro.Radio=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Component.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.pre_index= -1;this.pre_text;this.pre_value;this.datacolumn="";this.value=undefined;this.index= -1;this.index_init= -1;this.codecolumn="";this.readonly=false;this.innerdataset=null;this.columncount=0;this.rowcount=0;this.direction="horizontal";this._event_list={"onclick":1,"ondblclick":1,"onkeypress":1,"onkeydown":1,"onkeyup":1,"onkillfocus":1,"onsetfocus":1,"ondrag":1,"ondrop":1,"ondragenter":1,"ondragleave":1,"ondragmove":1,"ondragend":1,"onlbuttondown":1,"onlbuttonup":1,"onrbuttondown":1,"onrbuttonup":1,"onmouseenter":1,"onmouseleave":1,"onmousemove":1,"onmove":1,"onsize":1,"onitemclick":1,"onitemchanged":1,"canitemchange":1,"onmousedown":1,"onmouseup":1,"ontouchstart":1,"ontouchmove":1,"ontouchend":1,"onflingstart":1,"onfling":1,"onflingend":1,"onpinchstart":1,"onpinch":1,"onpinchend":1,"onlongpress":1,"onslidestart":1,"onslide":1,"onslideend":1};this._apply_pushed_pseudo=true;this._do_apply_val=true;this._accessibility_role="radio";this._want_tab=true;this._want_arrow=false;this._is_first_focus=false;this._accessibility_index= -1;this._items=[];this._exprcache={};};var _pRadio=nexacro._createPrototype(nexacro.Component,nexacro.Radio);nexacro.Radio.prototype=_pRadio;_pRadio._type_name="Radio";_pRadio.on_apply_custom_pseudo=function(_a){var _b=this.currentstyle;var _c=this.on_find_CurrentStyle_buttonalign(_a);var _d=this.on_find_CurrentStyle_buttonbackground(_a);var _e=this.on_find_CurrentStyle_buttonbackgroundimagemode(_a);var _f=this.on_find_CurrentStyle_buttonborder(_a);var _g=this.on_find_CurrentStyle_buttoncolor(_a);var _h=this.on_find_CurrentStyle_buttongradation(_a);var _i=this.on_find_CurrentStyle_buttonimage(_a);var _j=this.on_find_CurrentStyle_buttonsize(_a);var _k=this.on_find_CurrentStyle_itembackground(_a);var _l=this.on_find_CurrentStyle_itemborder(_a);var _m=this.on_find_CurrentStyle_itembordertype(_a);var _n=this.on_find_CurrentStyle_itemgradation(_a);var _o=this.on_find_CurrentStyle_itempadding(_a);var _p=this.on_find_CurrentStyle_textpadding(_a);var _q=this.on_find_CurrentStyle_font(_a);var _r=this.on_find_CurrentStyle_color(_a);var _s=this.on_find_CurrentStyle_align(_a);var _t=this.on_find_CurrentStyle_accessibility(_a);var _u=this.on_find_CurrentStyle_itemaccessibility(_a);if(_b.font!=_q){_b.font=_q;this.on_apply_style_font(_b.font);}if(_b.color!=_r){_b.color=_r;this.on_apply_style_color(_b.color);}if(_b.align!=_s){_b.align=_s;this.on_apply_style_align(_b.align);}if(_c!=_b.buttonalign){_b.buttonalign=_c;this.on_apply_style_buttonalign(_b.buttonalign);}if(_d!=_b.buttonbackground){_b.buttonbackground=_d;this.on_apply_style_buttonbackground(_b.buttonbackground);}if(_e!=_b.buttonbackgroundimagemode){_b.buttonbackgroundimagemode=_e;this.on_apply_style_buttonbackgroundimagemode(_b.buttonbackgroundimagemode);}if(_f!=_b.buttonborder){_b.buttonborder=_f;this.on_apply_style_buttonborder(_b.buttonborder);}if(_g!=_b.buttoncolor){_b.buttoncolor=_g;this.on_apply_style_buttoncolor(_b.buttoncolor);}if(_h!=_b.buttongradation){_b.buttongradation=_h;this.on_apply_style_buttongradation(_b.buttongradation);}if(_i!=_b.buttonimage){_b.buttonimage=_i;this.on_apply_style_buttonimage(_b.buttonimage);}if(_j!=_b.buttonsize){_b.buttonsize=_j;this.on_apply_style_buttonsize(_b.buttonsize);}if(_k!=_b.itembackground){_b.itembackground=_k;this.on_apply_style_itembackground(_b.itembackground);}if(_l!=_b.itemborder){_b.itemborder=_l;this.on_apply_style_itemborder(_b.itemborder);}if(_m!=_b.itembordertype){_b.itembordertype=_m;this.on_apply_style_itembordertype(_b.itembordertype);}if(_n!=_b.itemgradation){_b.itemgradation=_n;this.on_apply_style_itemgradation(_b.itemgradation);}if(_o!=_b.itempadding){_b.itempadding=_o;this.on_apply_style_itempadding(_b.itempadding);}if(_p!=_b.textpadding){_b.textpadding=_p;this.on_apply_style_textpadding(_b.textpadding);}if(_t!=_b.accessibility){_b.accessibility=_t;this.on_update_style_accessibility();}if(_u!=_b.itemaccessibility){this.currentstyle.itemaccessibility=_u;this.on_apply_style_itemaccessibility(_u);}var _v=this.on_find_CurrentStyle_rtlimagemirroring(_a);if(_v!=_b.rtlimagemirroring){_b.rtlimagemirroring=_v;this.on_apply_style_rtlimagemirroring(_v);}};_pRadio.on_create_custom_style=function(){return new nexacro.Radio_Style(this);};_pRadio.on_create_custom_currentStyle=function(){return new nexacro.Radio_CurrentStyle();};_pRadio.on_find_CurrentStyle_buttonalign=function(_a){return this._find_pseudo_obj("buttonalign",_a,"align");};_pRadio.on_find_CurrentStyle_buttonbackground=function(_a){return this._find_pseudo_obj("buttonbackground",_a,"background");};_pRadio.on_find_CurrentStyle_buttonbackgroundimagemode=function(_a){return this._find_pseudo_obj("buttonbackgroundimagemode",_a);};_pRadio.on_find_CurrentStyle_buttonborder=function(_a){return this._find_pseudo_obj("buttonborder",_a,"border");};_pRadio.on_find_CurrentStyle_buttoncolor=function(_a){return this._find_pseudo_obj("buttoncolor",_a,"color");};_pRadio.on_find_CurrentStyle_buttongradation=function(_a){return this._find_pseudo_obj("buttongradation",_a,"gradation");};_pRadio.on_find_CurrentStyle_buttonimage=function(_a){return this._find_pseudo_obj("buttonimage",_a);};_pRadio.on_find_CurrentStyle_buttonsize=function(_a){return this._find_pseudo_obj("buttonsize",_a);};_pRadio.on_find_CurrentStyle_itembackground=function(_a){return this._find_pseudo_obj("itembackground",_a,"background");};_pRadio.on_find_CurrentStyle_itemborder=function(_a){return this._find_pseudo_obj("itemborder",_a,"border");};_pRadio.on_find_CurrentStyle_itembordertype=function(_a){return this._find_pseudo_obj("itembordertype",_a,"bordertype");};_pRadio.on_find_CurrentStyle_itemgradation=function(_a){return this._find_pseudo_obj("itemgradation",_a,"gradation");};_pRadio.on_find_CurrentStyle_itempadding=function(_a){return this._find_pseudo_obj("itempadding",_a,"padding");};_pRadio.on_find_CurrentStyle_itemaccessibility=function(_a){var _b=this._find_pseudo_obj("itemaccessibility",_a,"accessibility");return _b?_b:nexacro.Component._default_accessibility;};_pRadio.on_find_CurrentStyle_textpadding=function(_a){return this._find_pseudo_obj("textpadding",_a,"padding");};_pRadio.on_update_style_buttonalign=function(){this.currentstyle.buttonalign=this.on_find_CurrentStyle_buttonalign(this._pseudo);this.on_apply_style_buttonalign(this.currentstyle.buttonalign);};_pRadio.on_update_style_buttonimage=function(){this.currentstyle.buttonimage=this.on_find_CurrentStyle_buttonimage(this._pseudo);this.on_apply_style_buttonimage(this.currentstyle.buttonimage);};_pRadio.on_update_style_textpadding=function(){this.currentstyle.textpadding=this.on_find_CurrentStyle_textpadding(this._pseudo);this.on_apply_style_textpadding(this.currentstyle.textpadding);};_pRadio.on_update_style_buttonborder=function(){this.currentstyle.buttonborder=this.on_find_CurrentStyle_buttonborder(this._pseudo);this.on_apply_style_buttonborder(this.currentstyle.buttonborder);};_pRadio.on_update_style_buttoncolor=function(){this.currentstyle.buttoncolor=this.on_find_CurrentStyle_buttoncolor(this._pseudo);this.on_apply_style_buttoncolor(this.currentstyle.buttoncolor);};_pRadio.on_update_style_buttonsize=function(){this.currentstyle.buttonsize=this.on_find_CurrentStyle_buttonsize(this._pseudo);this.on_apply_style_buttonsize(this.currentstyle.buttonsize);};_pRadio.on_update_style_buttonbackground=function(){this.currentstyle.buttonbackground=this.on_find_CurrentStyle_buttonbackground(this._pseudo);this.on_apply_style_buttonbackground(this.currentstyle.buttonbackground);};_pRadio.on_update_style_buttongradation=function(){this.currentstyle.buttongradation=this.on_find_CurrentStyle_buttongradation(this._pseudo);this.on_apply_style_buttongradation(this.currentstyle.buttongradation);};_pRadio.on_update_style_buttonbackgroundimagemode=function(){this.currentstyle.buttonbackgroundimagemode=this.on_find_CurrentStyle_buttonbackgroundimagemode(this._pseudo);this.on_apply_style_buttonbackgroundimagemode(this.currentstyle.buttonbackgroundimagemode);};_pRadio.on_update_style_itembackground=function(){this.currentstyle.itembackground=this.on_find_CurrentStyle_itembackground(this._pseudo);this.on_apply_style_itembackground(this.currentstyle.itembackground);};_pRadio.on_update_style_itemborder=function(){this.currentstyle.itemborder=this.on_find_CurrentStyle_itemborder(this._pseudo);this.on_apply_style_itemborder(this.currentstyle.itemborder);};_pRadio.on_update_style_itembordertype=function(){this.currentstyle.itembordertype=this.on_find_CurrentStyle_itembordertype(this._pseudo);this.on_apply_style_itembordertype(this.currentstyle.itembordertype);};_pRadio.on_update_style_itemgradation=function(){this.currentstyle.itemgradation=this.on_find_CurrentStyle_itemgradation(this._pseudo);this.on_apply_style_itemgradation(this.currentstyle.itemgradation);};_pRadio.on_update_style_itempadding=function(){this.currentstyle.itempadding=this.on_find_CurrentStyle_itempadding(this._pseudo);this.on_apply_style_itempadding(this.currentstyle.itempadding);};_pRadio.on_update_style_itemaccessibility=function(){this.currentstyle.itemaccessibility=this.on_find_CurrentStyle_itemaccessibility(this._pseudo);this.on_apply_style_itemaccessibility(this._make_accessibility_value(this.currentstyle.itemaccessibility));};_pRadio._search_style_obj=function(_a,_b,_c){if(_a&&_a._bindtype!=0){return nexacro._getValueForStyleBindExpr(this,_a,_b,_c);}else{return _a;}};_pRadio.on_apply_style_align=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_align(_a);}}};_pRadio.on_apply_style_color=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_a=this._search_style_obj(_a,"color",_d);_b[_d].on_apply_style_color(_a);}}};_pRadio.on_apply_style_font=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_a=this._search_style_obj(_a,"font",_d);_b[_d].on_apply_style_font(_a);}}};_pRadio.on_apply_style_cursor=function(_a){var _b=this.getElement();if(_b){_b.setElementCursor(_a);var _c=this._items;if(_c){var _d=_c.length;for(var _e=0;_e<_d;_e++ ){_c[_e].on_apply_style_cursor(_a);}}}};_pRadio.on_apply_style_buttonalign=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_buttonalign();}}};_pRadio.on_apply_style_buttonbackground=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_buttonbackground(_a);}}};_pRadio.on_apply_style_buttonbackgroundimagemode=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_buttonbackgroundimagemode(_a);}}};_pRadio.on_apply_style_buttonborder=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_buttonborder(_a);}}};_pRadio.on_apply_style_buttoncolor=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_buttoncolor(_a);}}};_pRadio.on_apply_style_buttongradation=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_buttongradation(_a);}}};_pRadio.on_apply_style_buttonimage=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_buttonimage(_a);}}};_pRadio.on_apply_style_buttonsize=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_buttonsize(_a);}}};_pRadio.on_apply_style_textpadding=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d].on_apply_style_textpadding(_a);}}};_pRadio.on_apply_style_itembackground=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_a=this._search_style_obj(_a,"background",_d);_b[_d].on_update_style_background();}}};_pRadio.on_apply_style_itemborder=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_a=this._search_style_obj(_a,"border",_d);_b[_d].on_apply_style_border(_a);}}};_pRadio.on_apply_style_itembordertype=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_a=this._search_style_obj(_a,"bordertype",_d);_b[_d].on_apply_style_bordertype(_a);}}};_pRadio.on_apply_style_itemgradation=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_a=this._search_style_obj(_a,"gradation",_d);_b[_d].on_apply_style_gradation(_a);}}};_pRadio.on_apply_style_itempadding=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_a=this._search_style_obj(_a,"padding",_d);_b[_d].on_apply_style_padding(_a);}}};_pRadio.on_apply_style_accessibility=function(_a){if(_a){var _b=this.getElement();if(_b){_b.setAccessibility(_a);}}};_pRadio.on_apply_style_itemaccessibility=function(_a){var _b=this._items;this.currentstyle.itemaccessibility=_a;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_a){var _e=this._search_style_obj(_a,"accessibility",_d);if(_e){_b[_d].style.set_accessibility(_e._value);}}}}};_pRadio.on_create_contents=function(){var _a=this.getElement();if(_a){if(!this.innerdataset){var _b=new nexacro.TextBoxElement(_a);this._text_elem=_b;var _c=this.currentstyle.align.halign==""?"center":this.currentstyle.align._halign;var _d=this.currentstyle.align.valign==""?"middle":this.currentstyle.align._valign;_b.setElementSize(this._client_width,this._client_height);_b.setElementFont(this.currentstyle.font);_b.setElementColor(this.currentstyle.color);_b.setElementAlignXY(_c,_d);}}};_pRadio.on_created_contents=function(){var _a=this.getElement();if(_a){var _b=this._innerdataset;var _c=this.datacolumn==""?this.codecolumn:this.datacolumn;var _d=this.codecolumn;var _e="";var _f="";var _g=null;if(_b){var _h=_b.getRowCount();var _i=false;if(_h>0){for(var _j=0;_j<_h;_j++ ){_e=_b.getColumn(_j,_c);_f=_b.getColumn(_j,_d);_g=new nexacro.RadioItemCtrl("item","absolute",0,0,0,0,null,null,this);_g.set_text(_e);_g.set_code(_f);_g.set_index(_j);if(_f){if(_f==this.value&&_i==false){_g.set_value(true);_i=true;}}_g.createComponent();if(nexacro._enableaccessibility){_g._setAccessibilityInfoCount(_h);_g._setAccessibilityInfoIndex(_j);}_g._setEventHandler("onclick",this.on_notify_item_onclick,this);this._items[_j]=_g;}this._update_radioitem();}if(this.index_init> -1&&this.index<0&&this.value===undefined){this.index=this.index_init;}this.on_apply_index(this.pre_index,this.index,false);}else{var _k=this._text_elem;if(_k){_k.create();this.on_apply_text();}}this.on_apply_readonly(this.readonly);this.on_apply_value();if(nexacro._enableaccessibility){this._want_arrow=nexacro._enableaccessibility;this.on_update_style_accessibility();}this.on_apply_style_color(this.currentstyle.color);this.on_apply_style_font(this.currentstyle.font);this.on_apply_style_align(this.currentstyle.align);this.on_apply_style_cursor(this.currentstyle.cursor);this.on_apply_style_buttonalign(this.currentstyle.buttonalign);this._setEventHandler("onkeydown",this.on_notify_radio_onkeydown,this);}this.on_apply_prop_rtldirection();};_pRadio.on_destroy_contents=function(){var _a=this._items;var _b=_a.length;var _c=this._text_elem;if(_c){_c.destroy();this._text_elem=null;}for(var _d=0;_d<_b;_d++ ){_a[_d].destroy();_a[_d]=null;}this._items=null;if(this._innerdataset){this._innerdataset._removeEventHandler("onvaluechanged",this._callback_onvaluechanged,this);this._innerdataset._removeEventHandler("onrowsetchanged",this._callback_onrowsetchanged,this);this._innerdataset=null;}this._exprcache=null;};_pRadio.on_change_containerRect=function(_a,_b){this._update_radioitem();};_pRadio.on_getBindableProperties=function(){return "value";};_pRadio.on_apply_prop_enable=function(_a){var _b=this._items;if(_b){var _c=_b.length;for(var _d=0;_d<_c;_d++ ){_b[_d]._setEnable(_a);}}};_pRadio.on_init_bindSource=function(_a,_b,_c){if(_b=="value"){this.value=undefined;var _d=this._getItem(this.index);var _e=this._getItem( -1);this.index= -1;if(_d){_d.set_value(false);}if(_e){_e.set_value(true);this.text=_e.text;}return true;}};_pRadio.on_change_bindSource=function(_a,_b,_c,_d,_e){if(_a=="value"){var _f=_b.getColumn(_c,_d);this.value=_f;var _g=this._innerdataset;if(!_g){return true;}var _h=this.codecolumn;var _i=_g.findRow(_h,_f);var _j=this._getItem(this.index);var _k=this._getItem(_i);this.index=_i;if(_j){_j.set_value(false);}if(_k){_k.set_value(true);this.text=_k.text;}return true;}return false;};_pRadio.on_fire_user_onkeydown=function(_a,_b,_c,_d,_e,_f){var _g=this._items;var _h=this._accessibility_index;var _i=this.index;var _j=_g.length;if(_a==nexacro.Event.KEY_TAB){if(_i> -1){if(_d){if(_h<0){this._want_tab=false;}else{var _k=this._last_focused;this._do_defocus(_k,true);if(_k&&_k._selected){_k._stat_change("select","selected");}this._on_focus(true);this._accessibility_index= -1;}}else{if(_h> -1){this._want_tab=false;}else{var _l=_g[_i];if(_l){_l._on_focus(true);}this._accessibility_index=_i;}}}else{if((_d&&_h<0)||(!_d&&_h>=_j-1)){this._want_tab=false;}else{if(_d){_h-- ;}else{_h++ ;}var _l=_g[_h];if(_l){_l._on_focus(true);}else{this._do_defocus(this._last_focused,true);this._on_focus(true);}this._accessibility_index=_h;}}this._getWindow()._keydown_element._event_stop=true;}else if(_a==nexacro.Event.KEY_SPACE){if(!this.readonly){if(this._accessibility_index> -1){_g[this._accessibility_index]._stat_change("notfocus","normal");this.set_index(this._accessibility_index);}}}return nexacro.Component.prototype.on_fire_user_onkeydown.call(this,_a,_b,_c,_d,_e,_f);};_pRadio.on_fire_sys_onaccessibilitygesture=function(_a,_b,_c){var _d=false;var _e=this._items;if(_e){if(_a){this._accessibility_index++ ;}else{this._accessibility_index-- ;}if(_e[this._accessibility_index]){_d=true;_e[this._accessibility_index]._setAccessibilityNotifyEvent();}}return _d;};_pRadio._setAccessibilityNotifyEvent=function(_a){var _b=false;var _c=this._items;if(_c){if(_a){this._accessibility_index=0;}else{this._accessibility_index=_c.length-1;}if(_c[this._accessibility_index]){_b=_c[this._accessibility_index]._setAccessibilityNotifyEvent();}}else{_b=nexacro.Component.prototype._setAccessibilityNotifyEvent.call(this,_a);}return _b;};_pRadio._setAccessibilityInfoByHover=function(_a){if(_a&&_a.parent instanceof nexacro.RadioItemCtrl){_a=_a.parent;}this._accessibility_index=_a.index;return _a._setAccessibilityNotifyEvent();};_pRadio._getDlgCode=function(_a,_b,_c,_d){if(_a&&(_a==nexacro.Event.KEY_TAB)){var _e=this._getPreCalculateWantTab(_a,_d);}else{var _f=this._getPreCalculateWantArrow(_a);}if(this._is_first_focus){this._is_first_focus=false;}this._want_arrow=nexacro._enableaccessibility;this._want_tab=true;return {want_tab:_e,want_return:false,want_escape:false,want_chars:false,want_arrows:_f};};_pRadio._setFocus=function(_a,_b){this._focus_direction=_b;var _c=this.setFocus(_a);this._focus_direction= -1;return _c;};_pRadio._on_focus=function(_a,_b,_c,_d,_e,_f){var _g=false;var _h=this._focus_direction;if(_b=="tabkey"){_h=0;}else if(_b=="shifttabkey"){_h=1;}else if(_b=="downkey"){_h=2;}else if(_b=="upkey"){_h=3;}if(_a==false){this._focus_direction= -1;}if(_h>=0){_g=nexacro.Component.prototype._on_focus.call(this,_a,_b,_c,_d,_e,_f);if(_a==false){this._accessibility_index= -1;var _i=this._items;if(_h<2){var _i=this._items;if(_i.length>0){var _j;this._is_first_focus=true;if(this.index> -1){this._accessibility_index=this.index;_j=_i[this._accessibility_index];_j._on_focus(true);_j._stat_change("select","selected");}else{if(_h==0){this._accessibility_index=0;}else{this._accessibility_index=_i.length-1;}_j=_i[this._accessibility_index];_j._on_focus(true);}}}else if(nexacro._enableaccessibility){if(!this.readonly){if(_h==2){if(!this._isAccessibilityEnable()){var _i=this._items;this._is_first_focus=true;if(this.index> -1){_j=_i[this._accessibility_index=this.index];this.set_index(this._accessibility_index);_j._on_focus(true);}else if(_i.length>0){var _k=this._getNextAccessibilityOrderIndex(1);if(_k> -1){this.set_index(_k);this._accessibility_index=_k;var _j=_i[_k];_j._on_focus(true);}}_j._stat_change("select","selected");}}else if(_h==3){if(!this._isAccessibilityEnable()){var _i=this._items;this._is_first_focus=true;if(this.index> -1){_j=_i[this._accessibility_index=this.index];this.set_index(this._accessibility_index);_j._on_focus(true);}else if(_i.length>0){var _k=this._getNextAccessibilityOrderIndex(1);if(_k> -1){this.set_index(_k);this._accessibility_index=_k;var _j=_i[_k];_j._on_focus(true);}}_j._stat_change("select","selected");}}}}}}else{_g=nexacro.Component.prototype._on_focus.call(this,_a,_b,_c,_d,_e,_f);}return _g;};_pRadio._on_getAccessibilityAdditionalLabel=function(){if(this._isAccessibilityEnable()&&!this._is_first_focus){var _a=0;var _b=this._items;if(_b){_a=_b.length;}return ( +this.index+1)+" "+_a;}return "";};_pRadio._on_getAccessibilityAdditionalRole=function(){var _a="";if(!this._is_first_focus&&this._getAccessibilityRole(this.on_find_CurrentStyle_accessibility(this._pseudo))=="radio"){_a=" radio";}return _a;};_pRadio.on_get_style_accessibility_label=function(){var _a="";if(!this._is_first_focus){_a=this.text?this.text:this.value;}return _a;};_pRadio.set_text=nexacro._emptyFn;_pRadio.on_apply_text=function(){var _a=this._control_element;var _b=this._text_elem;if(_a){if(!this.innerdataset){if(this._text_elem){_b.setElementText(this.id);}}else{if(this._text_elem){_b.setElementText("");}}this._redraw_radioitem();}};_pRadio.set_value=function(_a){if(_a!=this.value){if(_a==undefined||_a==null){_a="";}else{_a=_a.toString();}}var _b=this.index;var _c=this.value;this._setValue(_a,false);var _d=this.index;var _e=_a;if(this.applyto_bindSource("value",_a)==false){var _f=this._getItem(_d);var _g=this._getItem(_b);if(_f){_f.set_value(false);}if(_g){_g.set_value(true);}this.index=_b;this.value=_c;}};_pRadio.on_apply_value=function(_a){var _b=this._innerdataset;if(!_b){return;}var _c=this.codecolumn;var _d=this.datacolumn;if(!_c&&!_d){return;}if(this.value){var _e=_b.findRow(_c,this.value);if(_a!=true){if(this.index!=_e){this._setIndex(_e,true);}}}if(_a!=true){if(this.value==undefined||this.value===""){this._setIndex( -1,true);}}};_pRadio.set_index=function(_a){this._setIndex(_a,false);};_pRadio.on_apply_index=function(_a,_b,_c){var _d=this._innerdataset;if(!_d){return;}var _e=this.codecolumn;var _f=this.datacolumn;if(!_e&&!_f){return;}var _g,_h,_i;if(_b>=0){_g=_d.getColumn(_b,_e);if(this.value!=_g){if(this.applyto_bindSource("value",_g)===false){_i=this._getItem(_b);if(_i){_i.set_value(false);}_h=this._getItem(this.index);if(_h){_h.set_value(true);this.text=_h.text;}this._do_apply_val=false;return;}this._setValue(_g,true);}}if(_c!=true){if(this.index==undefined){this._setValue(undefined,true);}}if(_b<0){var _l;for(var _m=0;_m -1){_a.idx=this.index;}else if(this.index==0&&_h.KEY_UP==_b.keycode){var _k=this._getWindow();_k._removeFromCurrentFocusPath(this,true);if(this._isAccessibilityEnable()){this._on_focus(true);}this._accessibility_index= -1;return;}else{_a.idx=this._accessibility_index+_i;}}else{_a.idx=this.index+_i;}if(_a.idx>=_d){_a.idx=0;}else if(_a.idx<0){_a.idx=_e;}this._accessibility_index=_a.idx;var _l=this._getItem(_a.idx);if(_d!=_a.idx&&_d>=_a.idx&&0<=_a.idx){this.set_index(_a.idx);if(_a.idx!=this.pre_index){this.on_fire_onitemchanged(_l,_b);}}if(nexacro._enableaccessibility){_l._on_focus(true);_l._stat_change("select","selected");}}return false;};_pRadio.on_notify_item_onclick=function(_a,_b){if(!this.enable||this.readonly==true){if(nexacro._enableaccessibility&&nexacro._accessibilitytype==5){_a._setAccessibilityNotifyEvent();}return false;}var _c=this._items;var _d=_c.length;var _e= -1;for(var _g=0;_g<_d;_g++ ){if(_c[_g].value==true){this.pre_index=_c[_g].index;this.pre_value=_c[_g].code;this.pre_text=_c[_g].text;_e=_g;}}var _f=this.on_fire_canitemchange(_a,_b);if(_f!==false){if(_e>=0){_c[this.pre_index].set_value(false);}this.on_fire_onitemclick(_a,_b);_a.set_value(true);this.set_index(_a.index);if(this.index!=this.pre_index||_e<0){this.on_fire_onitemchanged(_a,_b);}if(nexacro._enableaccessibility){this._accessibility_index=_a.index;_a._on_focus(true);}}};_pRadio.on_fire_canitemchange=function(_a,_b){if(this.canitemchange&&this.canitemchange._has_handlers){var _c=new nexacro.ItemChangeEventInfo(this,"canitemchange",this.pre_index,this.pre_text,this.pre_value,_a.index,_a.text,_a.code);return this.canitemchange._fireCheckEvent(this,_c);}return;};_pRadio.on_fire_onitemchanged=function(_a,_b){if(this.onitemchanged&&this.onitemchanged._has_handlers){var _c=new nexacro.ItemChangeEventInfo(this,"onitemchanged",this.pre_index,this.pre_text,this.pre_value,_a.index,_a.text,_a.code);return this.onitemchanged._fireEvent(this,_c);}return false;};_pRadio.on_fire_onitemclick=function(_a,_b){if(this.onitemclick&&this.onitemclick._has_handlers){var _c=new nexacro.ItemClickEventInfo(this,"onitemclick",_a.index,_a.text,_a.code);return this.onitemclick._fireEvent(this,_c);}return false;};_pRadio._callback_onvaluechanged=function(_a,_b){this._redraw_radioitem();};_pRadio._callback_onload=function(_a,_b){};_pRadio._callback_onrowsetchanged=function(_a,_b){this._redraw_radioitem();};_pRadio._get_contents_rows=function(){var _a=this._buffer_pages,_b=[];if(_a){var _c,_d;for(var _e=0,_f=_a.length;_e<_f;_e++ ){_c=_a[_e];if(_c){_b=_b.concat(_c);}}}return _b;};_pRadio._setIndex=function(_a,_b){_a=parseInt(_a)|0;if(this.index_init<0&&this.index<0&&this._items.length==0){this.index_init=_a;}if(_a>0&&this._items.length>0&&(_a>=this._items.length)){_a= -1;}else if(this._innerdataset&&this._items.length==0){if(this._innerdataset.getRowCount()==0){_a= -1;}}this._do_apply_val=true;this.on_apply_index(this.index,_a,_b);if(this._do_apply_val){this.index=_a;}};_pRadio._getItem=function(_a){var _b=this._items;var _c=_b.length;if(_a>=0&&_b.length>0){return _b[_a];}return null;};_pRadio._redraw_radioitem=function(){var _a=this.getElement();var _b=this._innerdataset;var _c=null;var _d="";var _e="";if(_a&&_a.getRootWindowHandle()){this._delete_radioitem();if(_b){var _f=_b.getRowCount();var _g=this.datacolumn;var _h=this.codecolumn;if(_f>0){for(var _i=0;_i<_f;_i++ ){_d=_b.getColumn(_i,_g==""?_h:_g);_e=_b.getColumn(_i,_h);_c=new nexacro.RadioItemCtrl("item","absolute",0,0,0,0,null,null,this);_c.set_text(_d);_c.set_code(_e);_c.set_index(_i);_c.createComponent();_c.on_created();_c._setEventHandler("onclick",this.on_notify_item_onclick,this);if(nexacro._enableaccessibility){_c._setAccessibilityInfoIndex(_i);_c._setAccessibilityInfoCount(_f);}this._items[_i]=_c;}this._update_radioitem();}}this.on_apply_index(this.pre_index,this.index,false);this.on_apply_style_cursor();}};_pRadio._delete_radioitem=function(){var _a=this._items;var _b=_a.length;for(var _c=0;_c<_b;_c++ ){_a[_c].destroy();_a[_c]=null;}while(_b>0){_a.pop();_b-- ;}};_pRadio._update_radioitem=function(){var _a=this.getElement();if(_a){var _b=this._innerdataset;var _c=this._items;var _d=_c.length;if(_b==null||_d==0){return;}var _e=parseInt(this.columncount)|0;var _f=parseInt(this.rowcount)|0;var _g=_b.getRowCount();var _h=_b.getColCount();var _i=1;var _j=_g;var _k="row";var _l=this.direction.toString();var _m=0;var _n=0;var _o=1;if(_e== -1&&_f== -1){_j=1;_i=0;var _p=0;for(var _q=0;_q<_d;_q++ ){var _r=_c[_q]._getItemRealSize();_p+=_r.width;if(this._client_width<_p){_j++ ;_p=_r.width;_i=1;}else{_i++ ;_o=_o>_i?_o:_i;}}_i=_o;var _s=0;var _t=0,_u=0;var _r;for(var _q=0;_q<_j;_q++ ){_t=0;for(var _v=0;_v<_i;_v++ ){if(_g<=_s){break;}var _w=_c[_s];_r=_w._getItemRealSize();_w.move(_t,_u,_r.width,_r.height);_w.setTextOverflow(false);_t+=_r.width;_s++ ;}_u+=_r.height;}}else{if(_l.toLowerCase()=="horizontal"){if(_e>0){_i=_e;}else if((_e<0&&_f<0)||(_e<0&&_f==0)||(_e==0&&_f==0)||(_e==0&&_f==_g)){_i=1;}else if(_e<0&&(_e<_f)&&(_f>1)){_i=Math.round(_j/_f);}else if(_f>0){_i=Math.ceil(_j/_f);if((_i*_f)<_j){_i++ ;_j=(((_i*_f)-_j)>=_i)?_f-1:_f;}}else{_i=_j;}if(_i>_j){_i=_j;}_k="col";_j=parseInt(_g/_i)|0;if((_g>_i)&&(_g%_i)>0){_j++ ;}}else{if(_f>0){_j=_f;}else if(_e>0){_j=parseInt(_g/_e);if((_e*_j)<_g){_j++ ;_i=(((_e*_j)-_g)>=_j)?_e-1:_e;}}else{_j=1;}_k="row";_i=parseInt(_g/_j)|0;if(_i<=0){_i=1;}if((_g>_j)&&(_g%_j)>0){_i++ ;}}_m=this._client_width/_i;_n=this._client_height/_j;var _s=0;var _w;if(_k=="col"){for(var _q=0;_q<_j;_q++ ){for(var _v=0;_v<_i;_v++ ){if(_g<=_s){break;}_w=this._items[_s];_w.move((_m*_v),(_n*_q),_m,_n);_w.setTextOverflow(true);_s++ ;}}}else if(_k==""||_k=="row"){var _t=0,_u;for(var _q=0;_q<_i;_q++ ){_u=0;for(var _v=0;_v<_j;_v++ ){if(_g<=_s){break;}_w=this._items[_s];_w.move((_m*_q),(_n*_v),_m,_n);_w.setTextOverflow(true);_s++ ;}}}}}};_pRadio._searchStyleValue=nexacro._emptyFn;_pRadio._exeExprStyle=nexacro._emptyFn;_pRadio._setValue=function(_a,_b){if(this.value==_a){return null;}var _c=null;if(_a==undefined||_a==null){_c="";}else{_c=_a.toString();}this.value=_c;this.on_apply_value(_b);};_pRadio._do_defocus=function(_a,_b){var _c=this._getWindow();_c._removeFromCurrentFocusPath(_a,true);if(_b){_c._removeFromCurrentFocusPath(this,false);}};_pRadio._getPreCalculateWantTab=function(_a,_b){var _c=this._innerdataset;if(_c){if(this.index> -1){var _d=this.index;if(_d==this._accessibility_index){return false;}}else{var _e=this._accessibility_index;if(_b){if(_e<0){return false;}}else{var _f=_c.getRowCount();if(_e+1>_f){return false;}}}}return this._want_tab;};_pRadio._getPreCalculateWantArrow=function(_a){var _b=this._innerdataset;if(nexacro._enableaccessibility&&nexacro._accessibilitytype==5){return true;}else{if(_b){if(_a==nexacro.Event.KEY_UP){return false;}else if(_a==nexacro.Event.KEY_DOWN){return false;}}else{return false;}}return this._want_arrow;};_pRadio._getNextAccessibilityOrderIndex=function(_a){var _b=this._accessibility_index;var _c=this._items;if(_a>0){for(var _d=_b+_a;_d<_c.length;_d++ ){if(_c[_d]._isAccessibilityEnable()){return _d;}}_b= -1;}else if(_a<0){for(var _d=_b+_a;_d>=0;_d-- ){if(_c[_d]._isAccessibilityEnable()){return _d;}}_b=this._accessibility_index= -1;}return _b;};delete _pRadio;nexacro.RadioCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Radio.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;this._is_overflow=false;};var _pRadioCtrl=nexacro._createPrototype(nexacro.Radio,nexacro.RadioCtrl);nexacro.RadioCtrl.prototype=_pRadioCtrl;_pRadioCtrl._type_name="RadioControl";nexacro._setForControlStyleFinder(_pRadioCtrl);delete _pRadioCtrl;};if(!nexacro.RadioItemCtrl){nexacro.RadioItem_Style=function(_a,_b){nexacro.Style.call(this,_a,_b);this.buttonalign=null;this.buttonbackground=null;this.buttonbackgroundimagemode=null;this.buttonborder=null;this.buttoncolor=null;this.buttongradation=null;this.buttonimage=null;this.buttonsize=null;this.textpadding=null;};var _pRadioItemStyle=nexacro._createPrototype(nexacro.Style,nexacro.RadioItem_Style);nexacro.RadioItem_Style.prototype=_pRadioItemStyle;eval(nexacro._createAlignAttributeEvalStr("_pRadioItemStyle","buttonalign"));eval(nexacro._createBackgroundAttributeEvalStr("_pRadioItemStyle","buttonbackground"));eval(nexacro._createValueAttributeEvalStr("_pRadioItemStyle","buttonbackgroundimagemode"));eval(nexacro._createBorderAttributeEvalStr("_pRadioItemStyle","buttonborder"));eval(nexacro._createColorAttributeEvalStr("_pRadioItemStyle","buttoncolor"));eval(nexacro._createGradationAttributeEvalStr("_pRadioItemStyle","buttongradation"));eval(nexacro._createValueAttributeEvalStr("_pRadioItemStyle","buttonimage"));eval(nexacro._createValueAttributeEvalStr("_pRadioItemStyle","buttonsize"));eval(nexacro._createPaddingAttributeEvalStr("_pRadioItemStyle","textpadding"));eval(nexacro._createAccessibilityAttributeEvalStr("_pRadioItemStyle","accessibility"));_pRadioItemStyle.__custom_emptyObject=function(){this.buttonalign=null;this.buttonbackground=null;this.buttonbackgroundimagemode=null;this.buttonborder=null;this.buttoncolor=null;this.buttongradation=null;this.buttonimage=null;this.buttonsize=null;this.textpadding=null;this.accessibility=null;};_pRadioItemStyle.__get_custom_style_value=function(){var _a="";if(this.buttonalign._value.length){_a+="buttonalign:"+this.buttonalign._value+"; ";}if(this.buttonimage._value.length){_a+="buttonimage:"+this.buttonimage._value+"; ";}if(this.textpadding._value.length){_a+="textpadding:"+this.textpadding._value+"; ";}if(this.buttonborder._value.length){_a+="buttonborder:"+this.buttonborder._value+"; ";}if(this.buttoncolor._value.length){_a+="buttoncolor:"+this.buttoncolor._value+"; ";}if(this.buttonsize._value.length){_a+="buttonsize:"+this.buttonsize._value+"; ";}if(this.buttonbackground._value.length){_a+="buttonbackground:"+this.buttonbackground._value+"; ";}if(this.buttongradation._value.length){_a+="buttongradation:"+this.buttongradation._value+"; ";}if(this.buttonbackgroundimagemode._value.length){_a+="buttonbackgroundimagemode:"+this.buttonbackgroundimagemode._value+"; ";}if(this.accessibility._value.length){_a+="accessibility:"+this.accessibility._value+"; ";}return _a;};nexacro.RadioItem_CurrentStyle=function(){nexacro.CurrentStyle.call(this);this.buttonalign=null;this.buttonimage=null;this.textpadding=null;this.buttonborder=null;this.buttoncolor=null;this.buttonsize=null;this.buttonbackground=null;this.buttongradation=null;this.buttonbackgroundimagemode=null;};var _pRadioItemCurrentStyle=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.RadioItem_CurrentStyle);nexacro.RadioItem_CurrentStyle.prototype=_pRadioItemCurrentStyle;_pRadioItemCurrentStyle.__get_custom_style_value=_pRadioItemStyle.__get_custom_style_value;_pRadioItemCurrentStyle.__custom_emptyObject=_pRadioItemStyle.__custom_emptyObject;delete _pRadioItemStyle;delete _pRadioItemCurrentStyle;nexacro.RadioItemCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.StaticCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.radioimg=null;this.value=false;this.index= -1;this.readonly=false;this.code="";this._text_elem=null;this._is_reference_control=false;this._accessibility_role="radioitem";};var _pRadioItemCtrl=nexacro._createPrototype(nexacro.StaticCtrl,nexacro.RadioItemCtrl);nexacro.RadioItemCtrl.prototype=_pRadioItemCtrl;nexacro._setForControlStyleFinder(_pRadioItemCtrl);_pRadioItemCtrl.on_apply_custom_pseudo=function(_a){var _b=this.currentstyle;var _c=this.on_find_CurrentStyle_buttonalign(_a);var _d=this.on_find_CurrentStyle_buttonimage(_a);var _e=this.on_find_CurrentStyle_textpadding(_a);var _f=this.on_find_CurrentStyle_buttonborder(_a);var _g=this.on_find_CurrentStyle_buttoncolor(_a);var _h=this.on_find_CurrentStyle_buttonsize(_a);var _i=this.on_find_CurrentStyle_buttonbackground(_a);var _j=this.on_find_CurrentStyle_buttongradation(_a);var _k=this.on_find_CurrentStyle_buttonbackgroundimagemode(_a);var _l=this.on_find_CurrentStyle_accessibility(_a);if(_c!=_b.buttonalign){_b.buttonalign=_c;this.on_apply_style_buttonalign();}if(_d!=_b.buttonimage){_b.buttonimage=_d;this.on_apply_style_buttonimage(_b.buttonimage);}if(_e!=_b.textpadding){_b.textpadding=_e;this.on_apply_style_textpadding(_b.textpadding);}if(_f!=_b.buttonborder){_b.buttonborder=_f;if(this.radioimg){this.radioimg.on_apply_pseudo(_a);}}if(_g!=_b.buttoncolor){_b.buttoncolor=_g;if(this.radioimg){this.radioimg.on_apply_pseudo(_a);}}if(_h!=_b.buttonsize){_b.buttonsize=_h;this.on_apply_style_buttonsize(_b.buttonsize);}if(_i!=_b.buttonbackground){_b.buttonbackground=_i;if(this.radioimg){this.radioimg.on_apply_pseudo(_a);}}if(_j!=_b.buttongradation){_b.buttongradation=_j;if(this.radioimg){this.radioimg.on_apply_pseudo(_a);}}if(_k!=_b.buttonbackgroundimagemode){_b.buttonbackgroundimagemode=_k;if(this.radioimg){this.radioimg.on_apply_pseudo(_a);}}if(_l!=_b.accessibility){_b.accessibility=this._make_accessibility_value(_l);this.on_apply_style_accessibility(_b.accessibility);}};_pRadioItemCtrl.on_create_custom_style=function(){return new nexacro.RadioItem_Style(this);};_pRadioItemCtrl.on_create_custom_currentStyle=function(){return new nexacro.RadioItem_CurrentStyle(this);};_pRadioItemCtrl.on_find_CurrentStyle_background=function(_a){var _b=this.parent.on_find_CurrentStyle_itembackground(_a);return this.parent._search_style_obj(_b,"background",this.index);};_pRadioItemCtrl.on_find_CurrentStyle_buttonalign=function(_a){return this.parent.on_find_CurrentStyle_buttonalign(_a);};_pRadioItemCtrl.on_find_CurrentStyle_buttonbackground=function(_a){return this.parent.on_find_CurrentStyle_buttonbackground(_a);};_pRadioItemCtrl.on_find_CurrentStyle_buttonbackgroundimagemode=function(_a){return this.parent.on_find_CurrentStyle_buttonbackgroundimagemode(_a);};_pRadioItemCtrl.on_find_CurrentStyle_buttonborder=function(_a){return this.parent.on_find_CurrentStyle_buttonborder(_a);};_pRadioItemCtrl.on_find_CurrentStyle_buttoncolor=function(_a){return this.parent.on_find_CurrentStyle_buttoncolor(_a);};_pRadioItemCtrl.on_find_CurrentStyle_buttongradation=function(_a){return this.parent.on_find_CurrentStyle_buttongradation(_a);};_pRadioItemCtrl.on_find_CurrentStyle_buttonimage=function(_a){return this.parent.on_find_CurrentStyle_buttonimage(_a);};_pRadioItemCtrl.on_find_CurrentStyle_buttonsize=function(_a){return this.parent.on_find_CurrentStyle_buttonsize(_a);};_pRadioItemCtrl.on_find_CurrentStyle_textpadding=function(_a){return this.parent.on_find_CurrentStyle_textpadding(_a);};_pRadioItemCtrl.on_find_CurrentStyle_align=function(_a){return this.parent.on_find_CurrentStyle_align(_a);};_pRadioItemCtrl.on_find_CurrentStyle_color=function(_a){var _b=this.parent.on_find_CurrentStyle_color(_a);return this.parent._search_style_obj(_b,"color",this.index);};_pRadioItemCtrl.on_find_CurrentStyle_font=function(_a){var _b=this.parent.on_find_CurrentStyle_font(_a);return this.parent._search_style_obj(_b,"font",this.index);};_pRadioItemCtrl.on_find_CurrentStyle_cursor=function(_a){return this.parent.on_find_CurrentStyle_cursor(_a);};_pRadioItemCtrl.on_find_CurrentStyle_accessibility=function(_a){var _b=this.parent.on_find_CurrentStyle_itemaccessibility(_a);return this.parent._search_style_obj(_b,"accessibility",this.index);};_pRadioItemCtrl.on_find_CurrentStyle_border=function(_a){return this.parent.on_find_CurrentStyle_itemborder(_a);};_pRadioItemCtrl.on_find_CurrentStyle_bordertype=function(_a){return this.parent.on_find_CurrentStyle_itembordertype(_a);};_pRadioItemCtrl.on_find_CurrentStyle_padding=function(_a){return this.parent.on_find_CurrentStyle_itempadding(_a);};_pRadioItemCtrl.on_find_CurrentStyle_gradation=function(_a){return this.parent.on_find_CurrentStyle_itemgradation(_a);};_pRadioItemCtrl.on_update_style_buttonalign=function(){this.currentstyle.buttonsize=this.on_find_CurrentStyle_buttonalign(this._pseudo);this.on_apply_style_buttonalign(this.currentstyle.buttonsize);};_pRadioItemCtrl.on_update_style_buttonbackground=function(){this.currentstyle.buttonbackground=this.on_find_CurrentStyle_buttonbackground(this._pseudo);this.on_apply_style_buttonbackground(this.currentstyle.buttonbackground);};_pRadioItemCtrl.on_update_style_buttonbackgroundimagemode=function(){this.currentstyle.buttonbackgroundimagemode=this.on_find_CurrentStyle_buttonbackgroundimagemode(this._pseudo);this.on_apply_style_buttonbackgroundimagemode(this.currentstyle.buttonbackgroundimagemode);};_pRadioItemCtrl.on_update_style_buttonborder=function(){this.currentstyle.buttonborder=this.on_find_CurrentStyle_buttonborder(this._pseudo);this.on_apply_style_buttonborder(this.currentstyle.buttonborder);};_pRadioItemCtrl.on_update_style_buttoncolor=function(){this.currentstyle.buttoncolor=this.on_find_CurrentStyle_buttoncolor(this._pseudo);this.on_apply_style_buttoncolor(this.currentstyle.buttoncolor);};_pRadioItemCtrl.on_update_style_buttongradation=function(){this.currentstyle.buttongradation=this.on_find_CurrentStyle_buttongradation(this._pseudo);this.on_apply_style_buttongradation(this.currentstyle.buttongradation);};_pRadioItemCtrl.on_update_style_buttonimage=function(){this.currentstyle.buttonimage=this.on_find_CurrentStyle_buttonimage(this._pseudo);this.on_apply_style_buttonimage(this.currentstyle.buttonimage);};_pRadioItemCtrl.on_update_style_buttonsize=function(){this.currentstyle.buttonsize=this.on_find_CurrentStyle_buttonsize(this._pseudo);this.on_apply_style_buttonsize(this.currentstyle.buttonsize);};_pRadioItemCtrl.on_update_style_textpadding=function(){this.currentstyle.textpadding=this.on_find_CurrentStyle_textpadding(this._pseudo);this.on_apply_style_textpadding(this.currentstyle.textpadding);};_pRadioItemCtrl.on_update_style_accessibility=function(){this.on_apply_style_accessibility(this.currentstyle.accessibility=this._make_accessibility_value(this.on_find_CurrentStyle_accessibility(this._pseudo)));};_pRadioItemCtrl.on_apply_style_align=function(_a){if(this._text_elem&&_a){var _b=_a.halign==""?"left":_a._halign;var _c=_a.valign==""?"middle":_a._valign;this._text_elem.setElementAlignXY(_b,_c);}};_pRadioItemCtrl.on_apply_style_color=function(_a){if(this._text_elem){if(_a){this._text_elem.setElementColor(_a);}else{this._text_elem.setElementColor("");}}};_pRadioItemCtrl.on_apply_style_font=function(_a){if(this._text_elem){this._text_elem.setElementFont(_a);}};_pRadioItemCtrl.on_apply_style_cursor=function(_a){this._control_element.setElementCursor(_a);if(this.radioimg){this.radioimg.style.set_cursor(_a);}};_pRadioItemCtrl.on_apply_style_buttonalign=function(_a){var _b=this.on_find_CurrentStyle_buttonalign(this.pseudo);var _c=this.on_find_CurrentStyle_buttonsize(this.pseudo);var _d=this.on_find_CurrentStyle_textpadding(this.pseudo);if(_b){var _e=_b.toString().trim().split(" ");var _f=_e.length;var _g="left";var _h="middle";var _i,_j,_k,_l,_m,_n;var _o=0,_p=0,_q=0,_r=0,_s=0,_t=0;var _u,_v,_w,_x;_w=_c;_x=_d;if(_c==null){_u=20;}else{_u=parseInt(_w._value)|0;}for(var _y=0;_y<_f;_y++ ){_v=_e[_y].toString();if(_v=="center"){_g="center";}else if(_v=="right"){_g="right";}else if(_v=="top"){_h="top";}else if(_v=="bottom"){_h="bottom";}}var _z=0;var _aa=_z+_u;if(_x){if(_x.left){_o=_x.left;}if(_x.right){_q=_x.right;}if(_x.top){_p=_x.top;}if(_x.bottom){_r=_x.bottom;}}if(_g=="left"){_i=_z;_o+=_aa;_aa=0;}else if(_g=="right"){_i=this._client_width-_aa;}else if(_g=="center"){_i=Math.round((this._client_width-_u)/2);}if(_h=="top"){_j=0;_l=_u;}else if(_h=="bottom"){_j=this._client_height-_u;}else{_j=(this._client_height-_u)/2;}if(this.radioimg){this.radioimg.move(_i,_j,_u,_u);}if(this._text_elem){_s=this._client_width-_q-_o-_aa;_t=this._client_height-_r-_p;_s=(_s<0)?0:_s;_t=(_t<0)?0:_t;_o=this._convertLeftForRtlLayout(_o,_s);this._text_elem.setElementPosition(_o,_p);this._text_elem.setElementSize(_s,_t);this.setTextOverflow(!this._is_overflow);}}};_pRadioItemCtrl.on_apply_style_buttonimage=function(_a){this.on_apply_value();};_pRadioItemCtrl.on_apply_style_buttonborder=function(_a){if(this.radioimg){this.radioimg.on_update_style_border();}};_pRadioItemCtrl.on_apply_style_buttoncolor=function(_a){if(this.radioimg){this.radioimg.on_update_style_color();}};_pRadioItemCtrl.on_apply_style_buttonsize=function(_a){this.on_apply_style_buttonalign();};_pRadioItemCtrl.on_apply_style_buttongradation=function(_a){if(this.radioimg){this.radioimg.on_update_style_gradation();}};_pRadioItemCtrl.on_apply_style_buttonbackground=function(_a){var _b=this.radioimg;if(_b){this.radioimg.on_update_style_background();}};_pRadioItemCtrl.on_apply_style_buttonbackgroundimagemode=function(_a){var _b=this.radioimg;var _c="";if(_a.toString()=="quad"){_c="quad";}else{_c="no-repeat";}if(_b){_b.style.set_background_repeat(_c);}};_pRadioItemCtrl.on_apply_style_textpadding=function(_a){this.on_apply_style_buttonalign();};_pRadioItemCtrl.on_apply_style_accessibility=function(_a){if(_a){var _b=this.getElement();_b.setAccessibility(_a);}};_pRadioItemCtrl.on_apply_prop_enable=function(_a){var _b=this.radioimg;if(_b){_b._setEnable(_a);}};_pRadioItemCtrl.on_apply_prop_rtldirection=function(){nexacro.Component.prototype.on_apply_prop_rtldirection.call(this);this.on_change_containerRect();};_pRadioItemCtrl.on_create_contents=function(){var _a=this.getElement();if(_a){this.radioimg=new nexacro.ImageRadioCtrl("radioimg","absolute",0,0,0,0,null,null,this);this.radioimg.style.set_bordertype("round 50 50");var _b=new nexacro.TextBoxElement(_a);this._text_elem=_b;var _c=this.on_find_CurrentStyle_align();var _d=_c.halign==""?"center":_c._halign;var _e=_c.valign==""?"middle":_c._valign;_b.setElementSize(this._client_width,this._client_height);_b.setElementColor(this.on_find_CurrentStyle_color());_b.setElementFont(this.on_find_CurrentStyle_font());_b.setElementAlignXY(_d,_e);_b.setElementText(this.text);_b.setElementWordWrap("char");this.radioimg.createComponent(true);}};_pRadioItemCtrl.on_created_contents=function(){var _a=this._text_elem;if(_a){_a.create();}this.radioimg.on_created();};_pRadioItemCtrl.on_destroy_contents=function(){var _a=this._text_elem;if(_a){_a.destroy();this._text_elem=null;}if(this.radioimg){this.radioimg.destroy();this.radioimg=null;}};_pRadioItemCtrl.on_change_containerRect=function(_a,_b){this.on_apply_style_buttonalign(this.currentstyle.buttonalign);this.on_apply_style_buttonimage(this.currentstyle.buttonimage);this.on_apply_style_buttonbackground(this.currentstyle.buttonbackground);this.on_apply_style_textpadding(this.currentstyle.textpadding);this.on_apply_style_buttonborder(this.currentstyle.buttonborder);var _c=this._text_elem;var _d=this.on_find_CurrentStyle_align(this._pseudo);if(this._text_elem){_c.setElementSize(_a,_b);this.on_apply_style_align(_d);}};_pRadioItemCtrl.set_value=function(_a){if(_a!=this.value){this.value=_a;this.on_apply_value();}};_pRadioItemCtrl.on_apply_value=function(){if(this.radioimg){var _a=this._isSelected();var _b=this.on_find_CurrentStyle_buttonimage(this._pseudo);if(_a==true&&_b){this.radioimg.set_image(_b);this.radioimg.set_imagealign("center middle");}else{this.radioimg.set_image("");this._stat_change("","normal");}this._setAccessibilityStatChecked(_a);}};_pRadioItemCtrl.set_index=function(_a){this.index=_a;};_pRadioItemCtrl.set_readonly=function(_a){_a=nexacro._toBoolean(_a);if(_a!=this.readonly){this.readonly=_a;this.on_apply_readonly();}};_pRadioItemCtrl.on_apply_readonly=function(){var _a=this.readonly;if(_a){this._stat_change("readonly",this._pseudo);}else{this._stat_change("writable",this._pseudo=="readonly"?"normal":this._pseudo);}};_pRadioItemCtrl.set_text=function(_a){this.text=_a;this.on_apply_text();};_pRadioItemCtrl.on_apply_text=function(){if(this._text_elem){this._text_elem.setElementText(this.text);}};_pRadioItemCtrl.set_code=function(_a){this.code=_a;};_pRadioItemCtrl._on_getAccessibilityAdditionalLabel=function(){if(this._isAccessibilityEnable()&&!this.parent._is_first_focus){if(this.index> -1){return ( +this.index+1)+" "+this.parent._items.length;}}return "";};_pRadioItemCtrl._getFormChildById=function(_a){return this.parent._getFormChildById(_a);};_pRadioItemCtrl._getAccessibilityLabel=function(_a){var _b="";if(this.parent._is_first_focus){var _c=this.parent;var _d=_c.on_find_CurrentStyle_accessibility(_c._pseudo);_b=_c._getAccessibilityParentValue(_d);}_b+=" "+nexacro.Component.prototype._getAccessibilityLabel.call(this,_a);return _b;};_pRadioItemCtrl._isSelected=function(){return this.value;};_pRadioItemCtrl._getItemRealSize=function(){var _a=this.on_find_CurrentStyle_buttonalign(this.pseudo);var _b=this.on_find_CurrentStyle_buttonsize(this.pseudo);var _c=this.on_find_CurrentStyle_textpadding(this.pseudo);var _d,_e;var _f=0,_g=0,_h=0,_i=0;var _j=20;if(_b){_j=parseInt(_b._value)|0;}if(_c){if(_c.left){_f=_c.left;}if(_c.right){_h=_c.right;}if(_c.top){_g=_c.top;}if(_c.bottom){_i=_c.bottom;}}var _k=0;if(this._text_elem){var _l=this.on_find_CurrentStyle_font(this.pseudo);_k=nexacro._getTextSize2(this._text_elem.text,_l);}_d=_j+_f+_h+_k[0];_e=_j+_g+_i+_k[1];return {width:Math.ceil(_d),height:Math.ceil(_e)};};_pRadioItemCtrl.setTextOverflow=function(_a){var _b=this._text_elem;if(_b){this._is_overflow=!_a;if(_a){_b.setElementWordWrap("char");}else{_b.setElementTextOverFlow();}}};delete _pRadioItemCtrl;nexacro.ImageRadioCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.ImageViewerCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_reference_control=false;};var _pImageRadioCtrl=nexacro._createPrototype(nexacro.ImageViewerCtrl,nexacro.ImageRadioCtrl);nexacro.ImageRadioCtrl.prototype=_pImageRadioCtrl;_pImageRadioCtrl.on_find_CurrentStyle_background=function(_a){return this.parent.on_find_CurrentStyle_buttonbackground(_a);};_pImageRadioCtrl.on_find_CurrentStyle_buttonbackgroundimagemode=function(_a){return this.parent.on_find_CurrentStyle_buttonbackgroundimagemode(_a);};_pImageRadioCtrl.on_find_CurrentStyle_image=function(_a){return this.parent.on_find_CurrentStyle_buttonimage(_a);};_pImageRadioCtrl.on_find_CurrentStyle_border=function(_a){return this.parent.on_find_CurrentStyle_buttonborder(_a);};_pImageRadioCtrl.on_find_CurrentStyle_gradation=function(_a){return this.parent.on_find_CurrentStyle_buttongradation(_a);};_pImageRadioCtrl.on_fire_onclick=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(!this.parent.enable){return false;}this.parent.on_fire_onclick(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);};delete _pImageRadioCtrl;};