Рекомендуемая категория для самостоятельной подготовки:
Курсовая работа*
Код |
169919 |
Дата создания |
2012 |
Страниц |
23
|
Источников |
16 |
Мы сможем обработать ваш заказ (!) 25 декабря в 12:00 [мск] Файлы будут доступны для скачивания только после обработки заказа.
|
Содержание
Оглавление
Введение
1. Определение эмоций
2. Роль эмоций в жизни и деятельности человека. Эмоции и познавательные процессы
2.1 Отражательно-оценочная роль эмоций
2.2 Мотивационная роль эмоций
2.3 Коммуникативная роль эмоций
2.4 Активационно-энергетическая роль эмоций. Роль «положительных» и «отрицательных» эмоций
2.5 Прикладная роль эмоций
2.6 Деструктивная роль эмоций
Заключение
Список литературы
Фрагмент работы для ознакомления
form.VTypes.ipRegExp.test(val);},ipText:"Invalid IP Address format"});
Ext.Component.prototype.destroy=Ext.Component.prototype.destroy.createInterceptor(function(){this.cleanId();});Ext.Component.prototype.initComponent=Ext.Component.prototype.initComponent.createSequence(function(){if(!Ext.isEmpty(this.contextMenuId,false)){this.on("render",function(){this.el.on("contextmenu",function(e,t){var menu=Ext.menu.MenuMgr.get(this.contextMenuId);menu.trg=t;e.stopEvent();e.preventDefault();menu.showAt(e.getPoint());},this);},this,{single:true});}
this.initFieldLabel();if(!Ext.isEmpty(this.defaultAnchor,true)){if(Ext.isEmpty(this.defaults)){this.defaults={};}
Ext.apply(this.defaults,{anchor:this.defaultAnchor});}
if(this.selectable===false){this.on("afterrender",function(){this.setSelectable(false);});}
if(this.autoFocus){if(this.ownerCt){this.ownerCt.on("afterlayout",function(){this.focus(this.selectOnFocus||false,this.autoFocusDelay);},this);}else{this.on("afterrender",function(){this.focus(this.selectOnFocus||false,this.autoFocusDelay);});}}
if(this.postback){this.on(this.postback.eventName,this.postback.fn,this,{delay:30});}});Ext.override(Ext.Component,{selectable:true,autoFocusDelay:10,setSelectable:function(selectable){if(selectable===false){this.setDisabled(true).el.removeClass("x-item-disabled").applyStyles("color:black;");}else if(selectable===true){this.setDisabled(false);}
this.selectable=false;return this;},initFieldLabel:function(){if(this.fieldLabel){this.plugins=this.plugins||[];if(!Ext.isArray(this.plugins)){this.plugins=[this.plugins];}
this.plugins.push(Ext.ux.FieldLabeler);}},addPlugins:function(plugins){if(Ext.isEmpty(this.plugins)){this.plugins=[];}else if(!Ext.isArray(this.plugins)){this.plugins=[this.plugins];}
if(Ext.isArray(plugins)){var i=0;for(i;i<plugins.length;i++){this.plugins.push(this.initPlugin(plugins[i]));}}else{this.plugins.push(this.initPlugin(plugins));}},getForm:function(id){var form=Ext.isEmpty(id)?this.el.up("form"):Ext.get(id);if(!Ext.isEmpty(form)){Ext.apply(form,form.dom);form.submit=function(){form.dom.submit();};}
return form;},setFieldLabel:function(text){this.fieldLabel=text;if(this.label){this.label.update(text);}},setAnchor:function(anchor,doLayout){this.anchor=anchor;delete this.anchorSpec;if(doLayout&&this.ownerCt){this.ownerCt.doLayout();}}});
Ext.override(Ext.Container,{addAndDoLayout:function(comp){var c=this.add(comp);this.doLayout();return c;},insertAndDoLayout:function(index,comp){var c=this.insert(index,comp);this.doLayout();return c;}});Ext.Container.prototype.initComponent=Ext.Container.prototype.initComponent.createSequence(function(){if(this.autoDoLayout===true){this.on("afterrender",this.doLayout,this,{delay:10});}});
Ext.Panel.override({addButton:function(config,handler,scope){var bc={handler:handler,scope:scope,minWidth:this.minButtonWidth,hideParent:true};if(Ext.isString(config)){bc.text=config;}else{Ext.apply(bc,config);}
var btn=Ext.ComponentMgr.create(bc,"button");if(!this.buttons){this.buttons=[];}
this.buttons.push(btn);return btn;},getCollapsedField:function(){if(!this.collapsedField){this.collapsedField=new Ext.form.Hidden({id:this.id+"_Collapsed",name:this.id+"_Collapsed",value:this.collapsed||false});this.on("beforedestroy",function(){if(this.rendered){this.destroy();}},this.collapsedField);this.collapsedField.render(this.el.parent()||this.el);}
return this.collapsedField.el;},getBody:function(focus){if(this.iframe){var self=this.iframe.dom.contentWindow;if(focus!==false){try{self.focus();}catch(e){}}
return self;}
return Ext.get(this.id+"_Content")||this.body;},setAutoScroll:function(){if(this.rendered&&this.autoScroll){var el=this.body||this.el;if(el){el.setOverflow("auto");el.dom.style.position="relative";}}
return this;},isIFrame:function(cfg){var frame=false;if(typeof cfg==="string"&&cfg.indexOf("://")>=0){frame=true;}else if(cfg.mode){if(cfg.mode==="iframe"){frame=true;}}else if(cfg.url&&cfg.url.indexOf("://")>=0){frame=true;}else if((this.getAutoLoad().url&&this.autoLoad.url.indexOf("://")>=0)||(this.getAutoLoad().mode&&this.autoLoad.mode==="iframe")){frame=true;}
return frame;},load:function(config){if(!Ext.isEmpty(config)&&!Ext.isEmptyObj(config)){if(config.passParentSize){config.params=config.params||{};config.params.width=this.body.getWidth(true);config.params.height=this.body.getHeight(true);}
var al=this.getAutoLoad(),url;if(typeof config==="string"){al.url=config;}else if(typeof config==="object"){Ext.apply(al,config);}
if(Ext.isEmpty(al.url)){return;}
if(this.isIFrame(config)){return this.loadIFrame(al);}
url=al.url;if(al.params){var params={},key;for(key in al.params){var ov=al.params[key];if(typeof ov==="function"){params[key]=ov.call(this);}else{params[key]=ov;}}
params=Ext.urlEncode(params);url=url+((url.indexOf("?")>-1)?"&":"?")+params;}
var um=this.body.getUpdater();loadCfg=Ext.applyIf({url:url},al);if(loadCfg.params){delete loadCfg.params;}
um.update.call(um,loadCfg);}
return this;},doAutoLoad:function(){},reload:function(nocache){this.getAutoLoad().nocache=nocache||this.autoLoad.nocache;this.load(this.getAutoLoad());},getAutoLoad:function(){this.autoLoad=this.autoLoad||{};return this.autoLoad;},loadContent:function(config){this.load(config);},clearContent:function(){if(this.iframe){this.iframe.un("load",this.afterLoad,this);if(Ext.isIE){this.iframe.dom.src=String.format("java{0}","script:false");}
this.removeAll(true);delete this.iframe;if(this.body.isMasked()){this.body.unmask();}}else if(this.rendered){this.body.dom.innerHTML="";}},loadIFrame:function(config){var url=config.url;if(config.nocache===true){url=url+((url.indexOf("?")>-1)?"&":"?")+new Date().getTime();}
if(config.params){var params={},key;for(key in config.params){var ov=config.params[key];if(typeof ov==="function"){params[key]=ov.call(this);}else{params[key]=ov;}}
params=Ext.urlEncode(params);url=url+((url.indexOf("?")>-1)?"&":"?")+params;}
if(Ext.isEmpty(this.iframe)){var iframeObj={tag:"iframe",id:this.id+"_IFrame",name:this.id+"_IFrame",cls:config.cls||"",src:url,frameborder:0},layout=this.getLayout();if(layout&&layout.resizeTask&&layout.resizeTask.cancel){layout.resizeTask.cancel();}
if(!this.layout||this.layout.type!=="fit"){layout=new Ext.Container.LAYOUTS.fit({});this.setLayout(layout);}
this.removeAll(true);var p=this,iframeCt=new Ext.Container({autoEl:iframeObj,listeners:{render:function(){p.iframe=this.el;if(config.monitorComplete){p.startIframeMonitoring();}else{this.el.on("load",p.afterLoad,p);}
p.fireEvent("beforeupdate",p,{url:url,iframe:this.el});p.beforeIFrameLoad(config);}}});this.add(iframeCt);this.doLayout();}else{this.iframe.dom.src=String.format("java{0}","script:false");this.fireEvent("beforeupdate",this,{url:this.iframe.dom.src,iframe:this.iframe});this.iframe.dom.src=url;this.beforeIFrameLoad(config);}
if(Ext.isIE6&&!this.destroyIframeOnUnload){this.destroyIframeOnUnload=true;if(window.addEventListener){window.addEventListener("unload",this.destroy.createDelegate(this),false);}else if(window.attachEvent){window.attachEvent("onunload",this.destroy.createDelegate(this));}}
return this;},iframeCompleteCheck:function(){if(this.iframe.dom.readyState==="complete"){this.stopIframeMonitoring();this.afterLoad();}},startIframeMonitoring:function(){if(this.iframeTask){this.iframeTask.stopAll();this.iframeTask=null;}
this.iframeTask=new Ext.util.TaskRunner();this.iframeTask.start({run:this.iframeCompleteCheck,interval:200,scope:this});},stopIframeMonitoring:function(){if(this.iframeTask){this.iframeTask.stopAll();this.iframeTask=null;}},beforeIFrameLoad:function(al){try{this.iframe.dom.contentWindow.parentAutoLoadControl=this;}catch(e){}
if(al.showMask){this.body.mask(al.maskMsg||"Loading...",al.maskCls||"x-mask-loading");}
this.autoLoad=al;},afterLoad:function(){if(this.autoLoad.showMask){this.body.unmask();}
try{this.iframe.dom.contentWindow.parentAutoLoadControl=this;}catch(e){}
var loadCfg=this.getAutoLoad();if(loadCfg.callback){loadCfg.callback.call(loadCfg.scope||this,this,true,{iframe:this.iframe,url:this.iframe.dom.src},loadCfg);delete loadCfg.callback;}
this.fireEvent("update",this,{iframe:this.iframe,url:this.iframe.dom.src});},autoLoadBeforeUpdate:function(el,url,params){this.fireEvent("beforeupdate",this,{url:url,params:params});if(this.autoLoad.showMask){this.body.mask(this.autoLoad.maskMsg||"Loading...",this.autoLoad.maskCls||"x-mask-loading");}},autoLoadUpdate:function(el,response){if(this.autoLoad.showMask){this.body.unmask();}
this.fireEvent("update",this,{response:response});},autoLoadFailure:function(el,response){if(this.autoLoad.showMask){this.body.unmask();}
this.fireEvent("failure",this,{response:response});},show:function(){Ext.Panel.superclass.show.call(this);if(Ext.isIE&&this.hideMode==="offsets"&&this.el){this.el.repaint();}
return this;}});Ext.Panel.prototype.beforeDestroy=Ext.Panel.prototype.beforeDestroy.createInterceptor(function(){if(this.iframe){try{this.clearContent();}catch(e){}}
if(this.collapsedField){this.collapsedField.destroy();}});Ext.Panel.prototype.initComponent=Ext.Panel.prototype.initComponent.createSequence(function(){this.addEvents("beforeupdate","update","failure");if(this.autoLoad){if(this.isIFrame(this.autoLoad)){this.layout="fit";}
this.on("render",function(){var udr=this.getUpdater();udr.showLoadIndicator=false;udr.on("beforeupdate",this.autoLoadBeforeUpdate,this);udr.on("update",this.autoLoadUpdate,this);udr.on("failure",this.autoLoadFailure,this);},this);var loadConfig={delay:10,single:true},triggerCmp,triggerControl=this.autoLoad.triggerControl||this,triggerEvent=this.autoLoad.triggerEvent||"render";if(Ext.isFunction(triggerControl)){triggerControl=triggerControl.call(window);}else if(Ext.isString(triggerControl)){triggerCmp=Ext.getCmp(triggerControl);if(triggerCmp){triggerControl=triggerCmp;}else{triggerControl=Ext.net.getEl(triggerControl);}}
loadConfig.single=!(this.autoLoad.reloadOnEvent||false);if(Ext.isEmpty(this.autoLoad.manuallyTriggered)||this.autoLoad.manuallyTriggered!==true){triggerControl.on(triggerEvent,function(){this.load(this.getAutoLoad());},this,loadConfig);}}
var refreshBars=function(){var bar=this.getBottomToolbar();if(bar&&bar.el){bar.el.repaint();}
bar=this.getTopToolbar();if(bar&&bar.el){bar.el.repaint();}
if(this.header&&this.header.repaint){this.header.repaint();}
if(this.footer&&this.footer.repaint){this.footer.repaint();}else if(this.ft){this.ft.repaint();}};if(Ext.isIE6||Ext.isIE7){this.on("show",refreshBars,this,{buffer:100});this.on("resize",refreshBars,this,{buffer:100});}});Ext.Panel.prototype.onCollapse=Ext.Panel.prototype.onCollapse.createSequence(function(doAnim,animArg){var f=this.getCollapsedField();if(!Ext.isEmpty(f)){f.dom.value="true";}});Ext.Panel.prototype.onExpand=Ext.Panel.prototype.onExpand.createSequence(function(doAnim,animArg){var f=this.getCollapsedField();if(!Ext.isEmpty(f)){f.dom.value="false";}});Ext.Panel.prototype.initComponent=Ext.Panel.prototype.initComponent.createInterceptor(function(){if(this.tbar&&(this.tbar.xtype==="paging"||this.tbar.xtype==="ux.paging")&&!Ext.isDefined(this.tbar.store)&&this.store){this.tbar.store=this.store;}
if(this.bbar&&(this.bbar.xtype==="paging"||this.bbar.xtype==="ux.paging")&&!Ext.isDefined(this.bbar.store)&&this.store){this.bbar.store=this.store;}});
Ext.override(Ext.layout.FitLayout,{onLayout:function(ct,target){Ext.layout.FitLayout.superclass.onLayout.call(this,ct,target);if(!ct.collapsed){var sz;if(Ext.isIE6&&Ext.isStrict&&target.dom==(Ext.net.ResourceMgr.getAspForm()||{}).dom){sz=Ext.getBody().getViewSize();}else{sz=((Ext.isIE6&&Ext.isStrict&&target.dom==document.body)||target.dom==(Ext.net.ResourceMgr.getAspForm()||{}).dom)?target.getViewSize():target.getStyleSize();}
this.setItemSize(this.activeItem||ct.items.itemAt(0),sz);}}});
Ext.layout.BorderLayout.SplitRegion.prototype.render=Ext.layout.BorderLayout.SplitRegion.prototype.render.createInterceptor(function(ct,p){var pos=this.position,dir="westeast".indexOf(pos)>-1?"Width":"Height";this.splitSettings[pos].maxProp=(Ext.isDefined(p["boxMax"+dir])?"boxMax":"max")+dir;this.splitSettings[pos].minProp=(Ext.isDefined(p["boxMin"+dir])?"boxMin":"min")+dir;});Ext.layout.BorderLayout.SplitRegion.prototype.getCollapsedEl=Ext.layout.BorderLayout.SplitRegion.prototype.getCollapsedEl.createSequence(function(){if(this.useSplitTips){this.collapsedEl.dom.title=this.collapsible?this.expandableSplitTip:this.splitTip;}});Ext.layout.BorderLayout.Region.prototype.destroy=Ext.layout.BorderLayout.Region.prototype.destroy.createInterceptor(function(){this.clearMonitor();});Ext.layout.BorderLayout.SplitRegion.override({expandableSplitTip:"Double click to show."});
Ext.layout.BoxLayout.override({getVisibleItems:function(ct){ct=ct||this.container;var t=ct.getLayoutTarget(),cti=ct.items.items,len=cti.length,i,c,items=[];for(i=0;i<len;i++){if((c=cti[i]).rendered&&this.isValidParent(c,t)&&c.hidden!==true){items.push(c);}}
return items;}});Ext.layout.VBoxLayout.override({renderItem:function(c){c.on("collapse",function(item){item.oldHeight=item.height;item.height=item.getHeight();this.layout();},this);c.on("beforeexpand",function(item){item.height=item.oldHeight;this.layout();},this);Ext.layout.VBoxLayout.superclass.renderItem.apply(this,arguments);}});
Ext.layout.AnchorLayout.override({monitorResize:true,getLayoutTargetSize:function(){var target=this.container.getLayoutTarget(),ret={},isViewSize;if(target){isViewSize=((target.dom==Ext.getBody().dom)||(target.dom==(Ext.net.ResourceMgr.getAspForm()||{}).dom));ret=isViewSize?target.getViewSize():target.getStyleSize();if(Ext.isIE&&Ext.isStrict&&ret.width===0){ret=target.getStyleSize();}
if(isViewSize){ret.width-=target.getPadding("lr");ret.height-=target.getPadding("tb");}}
return ret;}});
Ext.ux.layout.CenterLayout=Ext.extend(Ext.layout.FitLayout,{setItemSize:function(item,size){this.container.addClass("ux-layout-center");if(item&&size.height>0){item.addClass("ux-layout-center-item");if(item.width){size.width=item.width;}
item.setSize(size);}}});Ext.Container.LAYOUTS["ux.center"]=Ext.ux.layout.CenterLayout;
Ext.net.ColumnLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,extraCls:"x-column",scrollOffset:0,margin:0,split:false,fitHeight:true,background:false,isValidParent:function(c,target){return this.innerCt&&(c.getPositionEl?c.getPositionEl():c.getEl()).dom.parentNode==this.innerCt.dom;},renderAll:function(ct,target){if(this.split&&!this.splitBars){this.splitBars=[];this.margin=5;}
Ext.net.ColumnLayout.superclass.renderAll.apply(this,arguments);},getLayoutTargetSize:function(){var target=this.container.getLayoutTarget(),ret;if(target){ret=target.getViewSize();if(Ext.isIE&&Ext.isStrict&&ret.width===0){ret=target.getStyleSize();}
ret.width-=(target.getPadding("lr")+this.scrollOffset);ret.height-=target.getPadding("tb");}
return ret;},onLayout:function(ct,target){var cs=ct.items.items,len=cs.length,c,cel,i;if(!this.innerCt){target.addClass("x-column-layout-ct");if(this.background){target.addClass("x-column-layout-bg-ct");}
this.innerCt=target.createChild({cls:"x-column-inner"});this.innerCt.createChild({cls:"x-clear"});}
this.renderAll(ct,this.innerCt);var size=this.getLayoutTargetSize();if(size.width<1&&size.height<1){return;}
var w=size.width,h=size.height;this.availableWidth=w;var pw=this.availableWidth,lastProportionedColumn;if(this.split){this.maxWidth=pw-((this.minWidth+5)*(len?(len-1):1));}
if(this.fitHeight){this.innerCt.setSize(w,h);}else{this.innerCt.setWidth(w);}
for(i=0;i<len;i++){c=cs[i];cel=c.getPositionEl();if(this.margin&&(i<(len-1))){cel.setStyle("margin-right",this.margin+"px");}
if(c.columnWidth){lastProportionedColumn=i;}else{pw-=c.getSize().width;}
if(i<(len-1)){pw-=(cel.getMargins("lr")||this.margin);}}
var remaining=(pw=pw<0?0:pw),splitterPos=0,cw,cmargin;for(i=0;i<len;i++){c=cs[i];cel=c.getPositionEl();if(c.columnWidth){cw=(i===lastProportionedColumn)?remaining:Math.floor(c.columnWidth*pw);cmargin=cel.getMargins("lr");if(!cmargin&&(i<(len-1))){cmargin=this.margin;}
cmargin=0;if(this.fitHeight){c.setSize(cw-cmargin,h);}else{c.setSize(cw-cmargin);}
remaining-=cw;}else if(this.fitHeight){c.setHeight(h);}
if(this.split){cw=cel.getWidth();if(i<(len-1)){splitterPos+=cw;if(this.splitBars[i]){this.splitBars[i].el.setHeight(h);}else{this.splitBars[i]=new Ext.SplitBar(this.innerCt.createChild({cls:"x-layout-split x-layout-split-west",style:{top:"0px",left:splitterPos+"px",height:h+"px"}}),cel);this.splitBars[i].index=i;this.splitBars[i].leftComponent=c;this.splitBars[i].addListener("resize",this.onColumnResize,this);this.splitBars[i].minSize=Math.max(c.boxMinWidth||5,5);}
splitterPos+=this.splitBars[i].el.getWidth();}
delete c.columnWidth;}}
if(this.split){this.setMaxWidths();}
if(Ext.isIE){if(i=target.getStyle("overflow")&&i!=="hidden"&&!this.adjustmentPass){var ts=this.getLayoutTargetSize();if(ts.width!==size.width){this.adjustmentPass=true;this.onLayout(ct,target);}}}
delete this.adjustmentPass;},onColumnResize:function(sb,newWidth){if(sb.dragSpecs.startSize){sb.leftComponent.setWidth(newWidth);var items=this.container.items.items,expansion=newWidth-sb.dragSpecs.startSize,i,c,w,len;for(i=sb.index+1,len=items.length;expansion&&i<len;i++){c=items[i];w=c.el.getWidth();newWidth=w-expansion;if(newWidth<this.minWidth){c.setWidth(this.minWidth);}else if(newWidth>this.maxWidth){expansion-=(newWidth-this.maxWidth);c.setWidth(this.maxWidth);}else{c.setWidth(c.el.getWidth()-expansion);break;}}
this.setMaxWidths();}},setMaxWidths:function(){var items=this.container.items.items,spare=items[items.length-1].el.dom.offsetWidth-100,i=items.length-2;for(i;i>-1;i--){var sb=this.splitBars[i],sbel=sb.el,c=items[i],cel=c.el,itemWidth=cel.dom.offsetWidth;sbel.setStyle("left",(cel.getX()-Ext.fly(cel.dom.parentNode).getX()+itemWidth)+"px");sb.maxSize=itemWidth+spare;sb.setCurrentSize(itemWidth);spare=itemWidth-100;}},onResize:function(){if(this.split){var items=this.container.items.items,tw=0,c,i;if(items[0].rendered){for(i=0;i<items.length;i++){c=items[i];tw+=c.el.getWidth()+c.el.getMargins("lr");}
for(i=0;i<items.length;i++){c=items[i];c.columnWidth=(c.el.getWidth()+c.el.getMargins("lr"))/tw;}}}
Ext.net.ColumnLayout.superclass.onResize.apply(this,arguments);}});Ext.reg("netcolumn",Ext.net.ColumnLayout);Ext.Container.LAYOUTS.netcolumn=Ext.net.ColumnLayout;
Ext.layout.ContainerLayout.prototype.layout=Ext.layout.ContainerLayout.prototype.layout.createInterceptor(function(){if(this.activeItem){this.activeItem=this.container.getComponent(this.activeItem);}});
Ext.layout.FormLayout.override({trackLabels:true});
Ext.ux.RowLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,scrollOffset:0,margin:0,split:false,background:false,isValidParent:function(c,target){return(c.getPositionEl?c.getPositionEl():c.getEl()).dom.parentNode==this.innerCt.dom;},renderAll:function(ct,target){if(this.split&&!this.splitBars){this.splitBars=[];this.margin=5;}
Ext.ux.RowLayout.superclass.renderAll.apply(this,arguments);},onLayout:function(ct,target){var cs=ct.items.items,len=cs.length,c,cel,i;if(!this.innerCt){target.addClass("x-column-layout-ct");if(this.background){target.addClass("x-column-layout-bg-ct");}
this.innerCt=target.createChild({cls:"x-column-inner"});this.innerCt.createChild({cls:"x-clear"});}
this.renderAll(ct,this.innerCt);var size=target.getViewSize();if(size.width<1&&size.height<1){return;}
var w=size.height-target.getPadding("tb");this.availableHeight=w;var pw=this.availableHeight,lastProportionedColumn;if(this.split){this.maxHeight=pw-((this.minHeight+5)*(len?(len-1):1));}
this.innerCt.setHeight(w);for(i=0;i<len;i++){c=cs[i];cel=c.getEl();if(!c.isVisible()){continue;}
if(this.margin&&(i<(len-1))&&c.split!==false){cel.setStyle("margin-bottom",this.margin+"px");}
if(c.rowHeight){lastProportionedColumn=i;}else{pw-=(c.getSize().height+cel.getMargins("tb"));}}
var remaining=(pw=pw<0?0:pw),splitterPos=0,cw;for(i=0;i<len;i++){c=cs[i];cel=c.getEl();if(!c.isVisible()){continue;}
if(c.rowHeight){cw=(i===lastProportionedColumn)?remaining:Math.floor(c.rowHeight*pw);c.setHeight(cw-cel.getMargins("tb"));if(Ext.isEmpty(c.width)){var elWidth=size.width-target.getPadding("lr")-this.scrollOffset;c.setWidth(elWidth);}
remaining-=cw;}else if(Ext.isEmpty(c.width)){c.setWidth(size.width-target.getPadding("lr")-this.scrollOffset);}
if(this.split){cw=cel.getHeight();if(i<(len-1)&&c.split!==false){splitterPos+=cw;this.splitBars[i]=new Ext.SplitBar(this.innerCt.createChild({cls:"x-layout-split x-layout-split-north",style:{left:"0px",top:splitterPos+"px",width:"100%",height:this.margin+"px"}}),cel,Ext.SplitBar.VERTICAL,Ext.SplitBar.TOP);this.splitBars[i].index=i;this.splitBars[i].topComponent=c;this.splitBars[i].addListener("resize",this.onColumnResize,this);this.splitBars[i].minSize=Math.max(c.boxMinHeight||5,5);splitterPos+=this.splitBars[i].el.getHeight();}}}
if(this.split&&this.splitBars.length>0){this.setMaxHeights();}},onColumnResize:function(sb,newHeight){if(sb.dragSpecs.startSize){sb.topComponent.el.setStyle("height","");sb.topComponent.setHeight(newHeight);var items=this.container.items.items,expansion=newHeight-sb.dragSpecs.startSize,i=sb.index+1,len;for(i,len=items.length;expansion&&i<len;i++){var c=items[i],w=c.el.getHeight();newHeight=w-expansion;if(newHeight<this.minHeight){c.setHeight(this.minHeight);}else if(newHeight>this.maxHeight){expansion-=(newHeight-this.maxHeight);c.setHeight(this.maxHeight);}else{c.setHeight(c.el.getHeight()-expansion);break;}
delete c.rowHeight;}
this.setMaxHeights();}},setMaxHeights:function(){var items=this.container.items.items,spare=items[items.length-1].el.dom.offsetHeight-100,i;for(i=items.length-2;i>-1;i--){var sb=this.splitBars[i];if(sb){var sbel=sb.el,c=items[i],cel=c.el,itemHeight=cel.dom.offsetHeight;sbel.setStyle("top",(cel.getY()-Ext.fly(cel.dom.parentNode).getY()+itemHeight)+"px");sb.maxSize=itemHeight+spare;spare=itemHeight-100;}}},onResize:function(){Ext.ux.RowLayout.superclass.onResize.apply(this,arguments);}});Ext.Container.LAYOUTS["ux.row"]=Ext.ux.RowLayout;
Ext.layout.AccordionLayout.prototype.renderItem=Ext.layout.AccordionLayout.prototype.renderItem.createSequence(function(c){if(this.originalHeader){c.header.removeClass('x-accordion-hd');}});
Ext.apply(Ext.lib.Ajax,{serializeForm:function(form,parentEl){var fElements=form.elements||(document.forms[form]||Ext.getDom(form)).elements,hasSubmit=false,encoder=encodeURIComponent,element,name,data=[],type,submitDisabled=Ext.net&&Ext.net.ResourceMgr&&Ext.net.ResourceMgr.submitDisabled,i=0;hasSubmit=form.ignoreAllSubmitFields||false;for(i;i<fElements.length;i++){element=fElements[i];name=element.name;type=element.type;if(!Ext.isEmpty(parentEl)&&Ext.isEmpty(Ext.fly(element).parent("#"+parentEl.id))){continue;}
if((!element.disabled||submitDisabled)&&name){if(/select-(one|multiple)/i.test(type)){Ext.each(element.options,function(opt){if(opt.selected){data.push(encoder(name));data.push("=");data.push((opt.hasAttribute?opt.hasAttribute("value"):opt.getAttribute("value")!==null)?opt.value:opt.text);data.push("&");}});}else if(!/file|undefined|reset|button/i.test(type)){if(!(/radio|checkbox/i.test(type)&&!element.checked)&&!(type==="submit"&&hasSubmit)){data.push(encoder(name));data.push("=");data.push(encoder(element.value));data.push("&");if(type==="submit"){hasSubmit=/submit/i.test(type);}}}}}
data=data.join("");data=data.substr(0,data.length-1);return data;}});
Ext.net.DirectEvent=new Ext.data.Connection({autoAbort:false,confirmTitle:"Confirmation",confirmMessage:"Are you sure?",confirmRequest:function(directEventConfig){directEventConfig=directEventConfig||{};if(directEventConfig.confirmation&&directEventConfig.confirmation.confirmRequest){if(directEventConfig.confirmation.beforeConfirm&&directEventConfig.confirmation.beforeConfirm(directEventConfig)===false){Ext.net.DirectEvent.request(directEventConfig);return;}
Ext.Msg.confirm(directEventConfig.confirmation.title||this.confirmTitle,directEventConfig.confirmation.message||this.confirmMessage,this.confirmAnswer.createDelegate(this,[directEventConfig],true),this);}else{Ext.net.DirectEvent.request(directEventConfig);}},confirmAnswer:function(btn,text,buttonConfig,directEventConfig){if(btn==="yes"){Ext.net.DirectEvent.request(directEventConfig);}
if(btn==="no"&&directEventConfig.confirmation.cancel){directEventConfig.confirmation.cancel(directEventConfig);}},serializeForm:function(form){return Ext.lib.Ajax.serializeForm(form);},setValue:function(form,name,value){var input=null,pe;var els=Ext.fly(form).select("input[name="+name+"]");if(els.getCount()>0){input=els.elements[0];}else{input=document.createElement("input");input.setAttribute("name",name);input.setAttribute("type","hidden");}
input.setAttribute("value",value);pe=input.parentElement?input.parentElement:input.parentNode;if(Ext.isEmpty(pe)){form.appendChild(input);}},delayedF:function(el,remove){if(!Ext.isEmpty(el)){el.unmask();if(remove===true){el.remove();}}},showFailure:function(response,errorMsg){var bodySize=Ext.getBody().getViewSize(),width=(bodySize.width<500)?bodySize.width-50:500,height=(bodySize.height<300)?bodySize.height-50:300,win;if(Ext.isEmpty(errorMsg)){errorMsg=response.responseText;}
win=new Ext.Window({modal:true,width:width,height:height,title:"Request Failure",layout:"fit",maximizable:true,listeners:{"maximize":{fn:function(el){var v=Ext.getBody().getViewSize();el.setSize(v.width,v.height);},scope:this},"resize":{fn:function(wnd){var editor=wnd.getComponent(0).getComponent("__ErrorMessageEditor");var sz=wnd.body.getViewSize();editor.setSize(sz.width,sz.height-42);}}},items:new Ext.Container({layout:"absolute",defaultType:"label",items:[{x:5,y:5,html:'<div class="x-window-dlg"><div class="ext-mb-error" style="width:32px;height:32px"></div></div>'},{x:42,y:6,html:"<b>Status Code: </b>"},{x:125,y:6,text:response.status},{x:42,y:25,html:"<b>Status Text: </b>"},{x:125,y:25,text:response.statusText},{x:0,y:42,itemId:"__ErrorMessageEditor",xtype:"htmleditor",value:errorMsg,readOnly:true,submitValue:false,enableAlignments:false,enableColors:false,enableFont:false,enableFontSize:false,enableFormat:false,enableLinks:false,enableLists:false,enableSourceEdit:false}]})});win.show();},parseResponse:function(response,options){var text=response.responseText,result={},exception=false;result.success=true;try{if(/^<\?xml/.test(response.responseText)){var xmlData=response.responseXML,root=xmlData.documentElement||xmlData,q=Ext.DomQuery;if(root.nodeName==="DirectResponse"){var sv=q.selectValue("Success",root,true),pSuccess=sv!==false&&sv!=="false",pErrorMessage=q.selectValue("ErrorMessage",root,""),pScript=q.selectValue("Script",root,""),pViewState=q.selectValue("ViewState",root,""),pViewStateEncrypted=q.selectValue("ViewStateEncrypted",root,""),pEventValidation=q.selectValue("EventValidation",root,""),pServiceResponse=q.selectValue("ServiceResponse",root,""),pUserParamsResponse=q.selectValue("ExtraParamsResponse",root,""),pResult=q.selectValue("Result",root,"");if(!Ext.isEmpty(pSuccess)){Ext.apply(result,{success:pSuccess});}
if(!Ext.isEmpty(pErrorMessage)){Ext.apply(result,{errorMessage:pErrorMessage});}
if(!Ext.isEmpty(pScript)){Ext.apply(result,{script:pScript});}
if(!Ext.isEmpty(pViewState)){Ext.apply(result,{viewState:pViewState});}
if(!Ext.isEmpty(pViewStateEncrypted)){Ext.apply(result,{viewStateEncrypted:pViewStateEncrypted});}
if(!Ext.isEmpty(pEventValidation)){Ext.apply(result,{eventValidation:pEventValidation});}
if(!Ext.isEmpty(pServiceResponse)){Ext.apply(result,{serviceResponse:eval("("+pServiceResponse+")")});}
if(!Ext.isEmpty(pUserParamsResponse)){Ext.apply(result,{extraParamsResponse:eval("("+pUserParamsResponse+")")});}
if(!Ext.isEmpty(pResult)){Ext.apply(result,{result:eval("("+pResult+")")});}
return{result:result,exception:false};}else{return{result:response.responseXML,exception:false};}}
result=eval("("+text+")");}catch(e){result.success=false;exception=true;if(response.responseText.length===0){result.errorMessage="NORESPONSE";}else{result.errorMessage="BADRESPONSE: "+e.message;result.responseText=response.responseText;}
response.statusText=result.errorMessage;}
if(result&&result.d){result=result.d;if(Ext.isString(result)&&options.isDirectMethod!==true){result=Ext.decode(result);}}
return{result:result,exception:exception};},cacheBusterCheck:function(o){var method=o.method||this.method||((o.params||o.xmlData||o.jsonData||o.form)?"POST":"GET"),url=o.url||this.url,form=Ext.getDom(o.form);if(form){url=url||form.action;}
if(method==="POST"&&(this.disableCaching&&o.disableCaching!==false)){if(Ext.isFunction(url)){url=url.call(o.scope||"window",o);}
var dcp=o.disableCachingParam||this.disableCachingParam;o.url=Ext.urlAppend(url,dcp+'='+(new Date().getTime()));}},listeners:{beforerequest:{fn:function(conn,options){var o=options||{};o.eventType=o.eventType||"event";var isInstance=(o.eventType==="public"),submitConfig={},forms,aspForm;o.extraParams=o.extraParams||{};switch(o.eventType){case"event":case"custom":case"proxy":case"postback":case"public":if(isInstance){o.action=o.name;}
o.control=o.control||{};o.type=o.type||"submit";o.viewStateMode=o.viewStateMode||"default";o.action=o.action||"Click";o.headers=Ext.apply(o.headers||{},{"X-Ext.Net":"delta=true"});if(o.type==="submit"){o.form=Ext.get(o.formProxyArg);if(!Ext.isEmpty(o.form)&&!Ext.isEmpty(o.form.id)){var cmp=Ext.getCmp(o.form.id);if(!Ext.isEmpty(cmp)&&cmp.getForm&&cmp.startMonitoring){if(cmp.form&&cmp.form.el.dom.elements){o.form=cmp.form.el;}else{o.form=undefined;}}}
if(Ext.isEmpty(o.form)&&!Ext.isEmpty(o.control.el)){if(Ext.isEmpty(o.control.isComposite)||o.control.isComposite===false){o.form=o.control.el.up("form");if(Ext.isEmpty(o.form)&&o.control.findParentByType){var formPanel=o.control.findParentByType("form");if(formPanel&&formPanel.renderFormElement!==false){o.form=formPanel.getForm().el;}}}else{o.form=Ext.get(o.control.elements[0]).up("form");}}
if(Ext.isEmpty(o.form)&&Ext.isEmpty(o.url)&&!Ext.isEmpty(Ext.net.ResourceMgr.aspForm)){o.form=Ext.get(Ext.net.ResourceMgr.aspForm);}}else if(o.type==="load"&&Ext.isEmpty(o.method)){o.method="GET";}
if(Ext.isEmpty(o.form)&&Ext.isEmpty(o.url)){if(!Ext.isEmpty(Ext.net.ResourceMgr.aspForm)){aspForm=Ext.getDom(Ext.net.ResourceMgr.aspForm);}
if(aspForm){if(o.type==="submit"){o.form=aspForm;}else{o.url=aspForm.action;}}}
var argument=String.format("{0}|{1}|{2}",o.proxyId||o.control.storeId||o.control.proxyId||o.control.id||"-",o.eventType,o.action);if(!Ext.isEmpty(o.form)){this.setValue(o.form.dom,"__EVENTTARGET",Ext.net.ResourceMgr.id);this.setValue(o.form.dom,"__EVENTARGUMENT",argument);Ext.getDom(o.form).ignoreAllSubmitFields=true;}else{o.url=o.url||Ext.net.ResourceMgr.url||window.location.href;Ext.apply(submitConfig,{__EVENTTARGET:Ext.net.ResourceMgr.id,__EVENTARGUMENT:argument});}
if(o.viewStateMode!=="default"){Ext.apply(submitConfig,{viewStateMode:o.viewStateMode});}
if(o.rethrowException){submitConfig.rethrowException=true;}
if(o.before){if(o.before.call(o.control||window,o.control,o.eventType,o.action,o.extraParams,o)===false){return false;}}
if(this.fireEvent("beforeajaxrequest",o.control,o.eventType,o.action,o.extraParams,o)===false){return false;}
if(!Ext.isEmpty(o.extraParams)&&!Ext.isEmptyObj(o.extraParams)){Ext.apply(submitConfig,{extraParams:o.extraParams});}
if(!Ext.isEmpty(o.serviceParams)){Ext.apply(submitConfig,{serviceParams:o.serviceParams});}
if(!Ext.isEmpty(submitConfig)&&!Ext.isEmptyObj(submitConfig)){o.params={submitDirectEventConfig:Ext.encode({config:submitConfig})};}else{o.params={};}
if(!Ext.isEmpty(o.form)){var enctype=Ext.getDom(o.form).getAttribute("enctype");if((enctype&&enctype.toLowerCase()==="multipart/form-data")||o.isUpload){Ext.apply(o.params,{"__ExtNetDirectEventMarker":"delta=true"});}}
if(o.cleanRequest){o.params=Ext.apply({},o.extraParams||{});if(o.json){o.jsonData=o.params;o.params="";}else{var ov,key;for(key in o.params){ov=o.params[key];if(typeof ov==="object"){o.params[key]=Ext.encode(ov);}}}}
if(!Ext.isEmpty(o.form)){o.form.dom.action=o.form.dom.action||o.form.action||o.url||Ext.net.ResourceMgr.url||window.location.href;}
break;case"static":o.headers={"X-Ext.Net":"delta=true,staticmethod=true"};if(Ext.isEmpty(o.form)&&Ext.isEmpty(o.url)){forms=Ext.select("form").elements;o.url=(forms.length===1&&!Ext.isEmpty(forms[0].action))?forms[0].action:Ext.net.ResourceMgr.url||window.location.href;}
if(o.before){if(o.before(o.control,o.eventType,o.action,o.extraParams)===false){return false;}}
if(this.fireEvent("beforeajaxrequest",o.control,o.eventType,o.action,o.extraParams,o)===false){return false;}
o.params=Ext.apply(o.extraParams,{"_methodName_":o.name});if(o.rethrowException){o.params._rethrowException_=true;}
break;}
o.scope=this;var el,em=o.eventMask||{};if((em.showMask===true)){if(!Ext.isEmpty(em.customTarget,false)&&Ext.isEmpty(em.target,false)){em.target="customtarget";}
switch(em.target||"page"){case"this":if(o.control.getEl){el=o.control.getEl();}else if(o.control.dom){el=o.control;}
break;case"parent":if(o.control.getEl){el=o.control.getEl().parent();}else if(o.control.parent){el=o.control.parent();}
break;case"page":var theHeight="100%";if(window.innerHeight){theHeight=window.innerHeight+"px";}else if(document.documentElement&&document.documentElement.clientHeight){theHeight=document.documentElement.clientHeight+"px";}else if(document.body){theHeight=document.body.clientHeight+"px";}
el=Ext.getBody().createChild({cls:"x-page-mask",style:"position:absolute;left:0;top:0;width:100%;height:"+theHeight+";z-index:20000;background-color:Transparent;"});var scroll=Ext.getBody().getScroll();el.setLeftTop(scroll.left,scroll.top);break;case"customtarget":var trg=em.customTarget||"";el=Ext.net.getEl(trg);if(Ext.isEmpty(el)){el=trg.getEl?trg.getEl():null;}
break;}
if(!Ext.isEmpty(el)){el.mask(em.msg||Ext.LoadMask.prototype.msg,em.msgCls||Ext.LoadMask.prototype.msgCls);o.maskEl=el;}}
var removeMask=function(o){if(o.maskEl!==undefined&&o.maskEl!==null){var delay=0,em=o.eventMask||{},task;if(em&&em.minDelay){delay=em.minDelay;}
var remove=(em.target||"page")==="page";task=new Ext.util.DelayedTask(function(o,remove){o.scope.delayedF(o.maskEl,remove);},o.scope,[o,remove]).delay(delay);}};var executeScript=function(o,result,response){var delay=0,em=o.eventMask||{};if(em.minDelay){delay=em.minDelay;}
var task=new Ext.util.DelayedTask(function(o,result,response){if(result.script&&result.script.length>0){(function(o,result,response){eval(result.script);}).call(window,o,result,response);}
this.fireEvent("ajaxrequestcomplete",response,result,o.control,o.eventType,o.action,o.extraParams,o);if(o.userSuccess){o.userSuccess.call(o.control||window,response,result,o.control,o.eventType,o.action,o.extraParams,o);}
if(o.userComplete){o.userComplete.call(o.control||window,true,response,result,o.control,o.eventType,o.action,o.extraParams,o);}},o.scope,[o,result,response]).delay(delay);};o.failure=function(response,options){var o=options;removeMask(o);if(this.fireEvent("ajaxrequestexception",response,{"errorMessage":response.statusText},o.control,o.eventType,o.action,o.extraParams,o)===false){o.cancelFailureWarning=true;}
if(o.userFailure){o.userFailure.call(o.control||window,response,{"errorMessage":response.responseText},o.control,o.eventType,o.action,o.extraParams,o);}else if(o.showWarningOnFailure!==false&&!o.cancelFailureWarning){o.scope.showFailure(response,"");}
if(o.userComplete){o.userComplete.call(o.control||window,false,response,{"errorMessage":response.statusText},o.control,o.eventType,o.action,o.extraParams,o);}};o.success=function(response,options){var o=options;removeMask(o);var parsedResponse=o.scope.parseResponse(response,options);if(!Ext.isEmpty(parsedResponse.result.documentElement)){executeScript(o,parsedResponse.result,response);return;}
var result=parsedResponse.result,exception=parsedResponse.exception;if(result.success===false){if(this.fireEvent("ajaxrequestexception",response,result,o.control,o.eventType,o.action,o.extraParams,o)===false){o.cancelFailureWarning=true;}
if(o.userFailure){o.userFailure.call(o.control||window,response,result,o.control,o.eventType,o.action,o.extraParams,o);}else{if(o.showWarningOnFailure!==false&&!o.cancelFailureWarning){var errorMsg="";if(!exception&&result.errorMessage&&result.errorMessage.length>0){errorMsg=result.errorMessage;}
o.scope.showFailure(response,errorMsg);}}
if(o.userComplete){o.userComplete.call(o.control||window,false,response,result,o.control,o.eventType,o.action,o.extraParams,o);}
return;}
if(!Ext.isEmpty(result.viewState)&&o.form!==null){o.scope.setValue(o.form.dom,"__VIEWSTATE",result.viewState);delete result.viewState;if(!Ext.isEmpty(result.viewStateEncrypted)&&o.form!==null){o.scope.setValue(o.form.dom,"__VIEWSTATEENCRYPTED",result.viewStateEncrypted);delete result.viewStateEncrypted;}
if(!Ext.isEmpty(result.eventValidation)&&o.form!==null){o.scope.setValue(o.form.dom,"__EVENTVALIDATION",result.eventValidation);delete result.eventValidation;}}
executeScript(o,result,response);};this.cacheBusterCheck(o);}}}});Ext.net.DirectEvent.addEvents("beforeajaxrequest","ajaxrequestcomplete","ajaxrequestexception");Ext.net.DirectEvent.request=Ext.net.DirectEvent.request.createSequence(function(o){if(!Ext.isEmpty(o.form)){this.setValue(o.form.dom,"__EVENTTARGET","");this.setValue(o.form.dom,"__EVENTARGUMENT","");}
if(o.after){o.after(o.control,o.extraParams);}});
Ext.net.DirectMethod={request:function(name,options){options=options||{};if(typeof options!=="object"){throw{message:"The DirectMethod options object is an invalid type: typeof "+typeof options};}
var obj;if(!Ext.isEmpty(name)&&typeof name==="object"&&Ext.isEmptyObj(options)){options=name;}
if(options.params&&options.json!==true){var key;for(key in options.params){obj=options.params[key];if(obj===undefined){delete options.params[key];}
else if(obj&&typeof obj==="object"){options.params[key]=Ext.encode(obj);}}}
obj={name:options.cleanRequest?undefined:(options.name||name),cleanRequest:options.cleanRequest,url:options.url,control:Ext.isEmpty(options.control)?null:{id:options.control},eventType:options.specifier||"public",type:options.type||"submit",method:options.method||"POST",eventMask:options.eventMask,extraParams:options.params,directMethodSuccess:options.success,directMethodFailure:options.failure,directMethodComplete:options.complete,viewStateMode:options.viewStateMode,isDirectMethod:true,userSuccess:function(response,result,control,eventType,action,extraParams,o){result=Ext.isEmpty(result.result,true)?(result.d||result):result.result;if(!Ext.isEmpty(o.directMethodSuccess)){o.directMethodSuccess(result,response,extraParams,o);}
if(!Ext.isEmpty(o.directMethodComplete)){o.directMethodComplete(true,result,response,extraParams,o);}},userFailure:function(response,result,control,eventType,action,extraParams,o){if(!Ext.isEmpty(o.directMethodFailure)){o.directMethodFailure(result.errorMessage,response,extraParams,o);}else if(o.showFailureWarning!==false){Ext.net.DirectEvent.showFailure(response,result.errorMessage);}
if(!Ext.isEmpty(o.directMethodComplete)){o.directMethodComplete(false,result.errorMessage,response,extraParams,o);}}};Ext.net.DirectEvent.request(Ext.apply(options,obj));}};
Ext.override(Ext.Button,{getPressedField:function(){if(!this.pressedField){this.pressedField=new Ext.form.Hidden({id:this.id+"_Pressed",name:this.id+"_Pressed"});this.on("beforedestroy",function(){if(this.rendered){this.destroy();}},this.pressedField);}
return this.pressedField;},menuArrow:true,toggleMenuArrow:function(){if(this.menuArrow===false){this.showMenuArrow();this.menuArrow=true;}else{this.hideMenuArrow();this.menuArrow=false;}},showMenuArrow:function(){var el=this.el.child("td.x-btn-mc em");if(!Ext.isEmpty(el)){el.addClass("x-btn-arrow"+(this.arrowAlign==="bottom"?"-bottom":""));}},hideMenuArrow:function(){var bottom=this.arrowAlign==="bottom"?"-bottom":"",el=this.el.child("td.x-btn-mc em.x-btn-arrow"+bottom);if(!Ext.isEmpty(el)){el.removeClass("x-btn-arrow"+bottom);}},setTarget:function(target){this.target=target;}});Ext.Button.prototype.onRender=Ext.Button.prototype.onRender.createSequence(function(el){if(this.enableToggle||!Ext.isEmpty(this.toggleGroup)){this.getPressedField().render(this.el.parent()||this.el);this.on("toggle",function(el,pressed){el.getPressedField().setValue(pressed);},this);}
if(this.el.hasClass("x-btn-over")){this.on("mouseout",function(){this.addClass("x-btn-over");},this);}
if(this.flat){this.el.wrap({cls:"x-toolbar x-inline-toolbar"});}
if(this.menuArrow===false){this.hideMenuArrow();}
if(this.navigateUrl){this.on("click",function(){if(this.target){window.open(this.navigateUrl,this.target);}else{window.location=this.navigateUrl;}},this);}});
Ext.CycleButton.prototype.setActiveItem=Ext.CycleButton.prototype.setActiveItem.createSequence(function(item,suppressEvent){if(!this.forceIcon){if(item.icon){this.setIcon(item.icon);}}});Ext.override(Ext.CycleButton,{initComponent:function(){this.addEvents("change");if(this.changeHandler){this.on("change",this.changeHandler,this.scope||this);delete this.changeHandler;}
this.itemCount=this.menu.items.length;this.menu.cls="x-cycle-menu";var checked=0,item,i=0,len;for(i,len=this.itemCount;i<len;i++){item=this.menu.items[i];item.group=item.group||this.id;item.itemIndex=i;item.checkHandler=this.checkHandler;item.scope=this;item.checked=item.checked||false;if(item.checked){checked=i;}}
Ext.CycleButton.superclass.initComponent.call(this);this.on("click",this.toggleSelected,this);this.setActiveItem(checked,true);},showMenuArrow:function(){var el=this.el.child("td.x-btn-mc em");if(!Ext.isEmpty(el)){el.addClass("x-btn-split"+(this.arrowAlign==="bottom"?"-bottom":""));}},hideMenuArrow:function(){var bottom=this.arrowAlign==="bottom"?"-bottom":"",el=this.el.child("td.x-btn-mc em.x-btn-split"+bottom);if(!Ext.isEmpty(el)){el.removeClass("x-btn-split"+bottom);}}});
Ext.net.ImageButton=Ext.extend(Ext.Button,{buttonSelector:"img",cls:"",iconAlign:"left",initComponent:function(){Ext.net.ImageButton.superclass.initComponent.call(this);var i;if(this.imageUrl){i=new Image().src=this.imageUrl;}
if(this.overImageUrl){i=new Image().src=this.overImageUrl;}
if(this.disabledImageUrl){i=new Image().src=this.disabledImageUrl;}
if(this.pressedImageUrl){i=new Image().src=this.pressedImageUrl;}},onRender:function(ct,position){if(!this.el){var img=document.createElement("img");img.id=this.getId();img.src=this.imageUrl;img.style.border="none";img.style.cursor="pointer";this.imgEl=Ext.get(img);this.el=this.imgEl;if(!Ext.isEmpty(this.imgEl.getAttributeNS("","width"),false)||!Ext.isEmpty(this.imgEl.getAttributeNS("","height"),false)){img.removeAttribute("width");img.removeAttribute("height");}
if(this.altText){img.setAttribute("alt",this.altText);}
if(this.align&&this.align!=="notset"){img.setAttribute("align",this.align);}
if(this.pressed&&this.pressedImageUrl){img.src=this.pressedImageUrl;}
if(this.disabled&&this.disabledImageUrl){img.src=this.disabledImageUrl;}
if(this.tabIndex!==undefined){img.tabIndex=this.tabIndex;}
if(this.menu){this.menu.on("show",this.onMenuShow,this);this.menu.on("hide",this.onMenuHide,this);}
if(this.repeat){var repeater=new Ext.util.ClickRepeater(this.imgEl,typeof this.repeat==="object"?this.repeat:{});repeater.on("click",this.onClick,this);}
this.imgEl.on(this.clickEvent,this.onClick,this);if(this.handleMouseEvents){this.imgEl.on("mouseover",this.onMouseOver,this);this.imgEl.on("mousedown",this.onMouseDown,this);}
if(!Ext.isEmpty(this.cls,false)){this.el.dom.className=this.cls;}
Ext.BoxComponent.superclass.onRender.call(this,ct,position);}
if(this.tooltip){if(typeof this.tooltip==="object"){Ext.QuickTips.register(Ext.apply({target:this.imgEl.id},this.tooltip));}else{this.imgEl.dom[this.tooltipType]=this.tooltip;}}
Ext.ButtonToggleMgr.register(this);},afterRender:function(){Ext.Button.superclass.afterRender.call(this);this.doc=Ext.getDoc();},onMenuShow:function(e){this.ignoreNextClick=0;this.fireEvent("menushow",this,this.menu);},onMenuHide:function(e){this.ignoreNextClick=this.restoreClick.defer(250,this);this.fireEvent("menuhide",this,this.menu);},toggle:function(state){state=state===undefined?!this.pressed:state;if(state!==this.pressed){if(state){if(this.pressedImageUrl){this.imgEl.dom.src=this.pressedImageUrl;}
this.pressed=true;this.fireEvent("toggle",this,true);}else{this.imgEl.dom.src=(this.monitoringMouseOver)?this.overImageUrl:this.imageUrl;this.pressed=false;this.fireEvent("toggle",this,false);}
if(this.toggleHandler){this.toggleHandler.call(this.scope||this,this,state);}}},setText:function(t,encode){},setDisabled:function(disabled){this.disabled=disabled;if(this.imgEl&&this.imgEl.dom){this.imgEl.dom.disabled=disabled;}
if(disabled){if(this.disabledImageUrl){this.imgEl.dom.src=this.disabledImageUrl;}else{this.imgEl.addClass(this.disabledClass);}}else{this.imgEl.dom.src=this.imageUrl;this.imgEl.removeClass(this.disabledClass);}},onMouseOver:function(e){if(!this.disabled){var internal=e.within(this.el.dom,true);if(!internal){if(this.overImageUrl&&!this.pressed){this.imgEl.dom.src=this.overImageUrl;}
if(!this.monitoringMouseOver){Ext.getDoc().on("mouseover",this.monitorMouseOver,this);this.monitoringMouseOver=true;}}}
this.fireEvent("mouseover",this,e);},onMouseOut:function(e){if(!this.disabled&&!this.pressed){this.imgEl.dom.src=this.imageUrl;}
this.fireEvent("mouseout",this,e);},onMouseDown:function(e){if(!this.disabled&&e.button===0){if(this.pressedImageUrl){this.imgEl.dom.src=this.pressedImageUrl;}
Ext.getDoc().on("mouseup",this.onMouseUp,this);}},onMouseUp:function(e){if(e.button===0){this.imgEl.dom.src=(this.overImageUrl&&this.monitoringMouseOver)?this.overImageUrl:this.imageUrl;Ext.getDoc().un("mouseup",this.onMouseUp,this);}},setImageUrl:function(image){this.imageUrl=image;if((!this.disabled||Ext.isEmpty(this.disabledImageUrl,false))&&(!this.pressed||Ext.isEmpty(this.pressedImageUrl,false))){this.imgEl.dom.src=image;}else{new Image().src=image;}},setDisabledImageUrl:function(image){this.disabledImageUrl=image;if(this.disabled){this.imgEl.dom.src=image;}else{new Image().src=image;}},setOverImageUrl:function(image){this.overImageUrl=image;if((!this.disabled||Ext.isEmpty(this.disabledImageUrl,false))&&this.monitoringMouseOver&&(!this.pressed||Ext.isEmpty(this.pressedImageUrl,false))){this.imgEl.dom.src=image;}else{new Image().src=image;}},setPressedImageUrl:function(image){this.pressedImageUrl=image;if((!this.disabled||Ext.isEmpty(this.disabledImageUrl,false))&&this.pressed){this.imgEl.dom.src=image;}else{new Image().src=image;}},setAlign:function(align){this.align=align;if(this.rendered){this.imgEl.dom.setAttribute("align",this.align);}},setAltText:function(altText){this.altText=altText;if(this.rendered){this.imgEl.dom.setAttribute("altText",this.altText);}}});Ext.reg("netimagebutton",Ext.net.ImageButton);
Ext.net.LinkButton=Ext.extend(Ext.Button,{buttonSelector:"a:first",cls:"",iconAlign:"left",valueElement:function(){var textEl=document.createElement("a");textEl.style.verticalAlign="middle";textEl.id=Ext.id();if(!Ext.isEmpty(this.cls,false)){textEl.className=this.cls;}
textEl.setAttribute("href","#");if(this.disabled||this.pressed){textEl.setAttribute("disabled","1");textEl.removeAttribute("href");if(this.pressed&&this.allowDepress!==false){textEl.style.cursor="pointer";}}
if(this.tabIndex!==undefined){textEl.tabIndex=this.tabIndex;}
if(this.tooltip){if(typeof this.tooltip==="object"){Ext.QuickTips.register(Ext.apply({target:textEl.id},this.tooltip));}else{textEl[this.tooltipType]=this.tooltip;}}
textEl.innerHTML=this.text;var txt=Ext.get(textEl);if(this.menu){this.menu.on("show",this.onMenuShow,this);this.menu.on("hide",this.onMenuHide,this);}
if(this.repeat){var repeater=new Ext.util.ClickRepeater(txt,typeof this.repeat==="object"?this.repeat:{});repeater.on("click",this.onClick,this);}
txt.on(this.clickEvent,this.onClick,this);this.textEl=textEl;return this.textEl;},onMenuShow:function(e){this.ignoreNextClick=0;this.fireEvent("menushow",this,this.menu);},onMenuHide:function(e){this.ignoreNextClick=this.restoreClick.defer(250,this);this.fireEvent("menuhide",this,this.menu);},toggle:function(state){state=state===undefined?!this.pressed:state;if(state!==this.pressed){if(state){this.setDisabled(true);this.disabled=false;this.pressed=true;if(this.allowDepress!==false){this.textEl.style.cursor="pointer";this.el.dom.style.cursor="pointer";}
this.fireEvent("toggle",this,true);}else{this.setDisabled(false);this.pressed=false;this.fireEvent("toggle",this,false);}
if(this.toggleHandler){this.toggleHandler.call(this.scope||this,this,state);}}},onRender:function(ct,position){if(!this.el){var el=document.createElement("span");el.id=this.getId();var img=document.createElement("img");img.src=Ext.BLANK_IMAGE_URL;img.className="x-label-icon "+(this.iconCls||"");if(Ext.isEmpty(this.iconCls)){img.style.display="none";}
if(this.iconAlign==="left"){el.appendChild(img);}
el.appendChild(this.valueElement());if(this.iconAlign==="right"){el.appendChild(img);}
this.el=el;Ext.BoxComponent.superclass.onRender.call(this,ct,position);}
if(this.pressed&&this.allowDepress!==false){this.setDisabled(true);this.disabled=false;this.el.dom.style.cursor="pointer";}
Ext.ButtonToggleMgr.register(this);},setText:function(t,encode){this.text=t;if(this.rendered){this.textEl.innerHTML=encode!==false?Ext.util.Format.htmlEncode(t):t;}
return this;},setIconClass:function(cls){var oldCls=this.iconCls;this.iconCls=cls;if(this.rendered){var img=this.el.child("img.x-label-icon");img.replaceClass(oldCls,this.iconCls);img.dom.style.display=(cls==="")?"none":"inline";}},setDisabled:function(disabled){Ext.net.LinkButton.superclass.setDisabled.apply(this,arguments);if(disabled){this.textEl.setAttribute("disabled","1");this.textEl.removeAttribute("href");}else{this.textEl.removeAttribute("disabled");this.textEl.setAttribute("href","#");}}});Ext.reg("netlinkbutton",Ext.net.LinkButton);
Ext.override(Ext.SplitButton,{isClickOnArrow:function(e){if(this.arrowAlign!=="bottom"){var visBtn=this.el.child("em.x-btn-split");if(!visBtn){return false;}
return e.getPageX()>(visBtn.getRegion().right-visBtn.getPadding("r"));}else{return e.getPageY()>this.btnEl.getRegion().bottom;}},showMenuArrow:function(){var el=this.el.child("em.x-btn-split"+(this.arrowAlign==="bottom"?"-bottom":""));if(!Ext.isEmpty(el)){el.removeClass("x-btn-no-arrow");}},hideMenuArrow:function(){var el=this.el.child("em.x-btn-split"+(this.arrowAlign==="bottom"?"-bottom":""));if(!Ext.isEmpty(el)){el.addClass("x-btn-no-arrow");}}});
Ext.form.Field.override({hideWithLabel:true,dataIndexAsName:true,isRemoteValidation:false,remoteValidatingMessage:"Validating...",activateRemoteValidation:function(){this.originalIsValid=this.isValid;this.originalValidate=this.validate;this.isValid=this.rv_isValid;this.validate=this.rv_validate;this.rvConfig=Ext.apply({remoteValidated:false,remoteValid:false,validationEvent:"keyup",eventOwner:"element",validationBuffer:500,showBusy:true,busyIconCls:"loading-indicator",busyTip:"Validating...",initValueValidation:"valid",responseFields:{success:"valid",message:"message",returnValue:"value"}},this.remoteValidationOptions||{});var fn=function(){this.rvTask=new Ext.util.DelayedTask(this.remoteValidate,this);(this.rvConfig.eventOwner==="element"?this.el:this).on(this.rvConfig.validationEvent,this.performRemoteValidation,this);};if(this.rendered){fn();}else{this.on("render",fn);this.on("afterrender",function(){if(this.value!==undefined){switch(this.rvConfig.initValueValidation){case"valid":this.markAsValid();break;case"invalid":break;case"validate":this.remoteValidate();break;}}});}},deactivateRemoteValidation:function(){this.isValid=this.originalIsValid;this.validate=this.originalValidate;if(this.rvTask){this.rvTask.cancel();}
(this.rvConfig.eventOwner==="element"?this.el:this).un(this.rvConfig.validationEvent,this.performRemoteValidation,this);delete this.originalIsValid;delete this.originalValidate;},markAsValid:function(abortRequest){if(!this.isRemoteValidation){return;}
this.rvConfig.validating=false;this.rvConfig.remoteValidated=true;this.rvConfig.remoteValid=true;if(this.validationId&&abortRequest!==false){Ext.net.DirectEvent.abort(this.validationId);}},rv_isValid:function(preventMark){if(this.disabled){return true;}
if(this.rvConfig.validating){preventMark=true;}
return this.originalIsValid.call(this,preventMark)&&!this.rvConfig.validating&&this.rvConfig.remoteValidated&&this.rvConfig.remoteValid;},rv_validate:function(){var clientValid=this.originalValidate.call(this),orgPrevent;if(!this.disabled&&!clientValid){return false;}
if(this.rvConfig.validating){orgPrevent=this.preventMark;this.preventMark=true;this.markInvalid(this.remoteValidatingMessage);this.preventMark=orgPrevent;return false;}
if(this.disabled||(clientValid&&(!this.rvConfig.remoteValidated||this.rvConfig.remoteValid))){this.clearInvalid();return this.rvConfig.remoteValid;}
if(this.rvConfig.remoteValidated&&!this.rvConfig.remoteValid){orgPrevent=this.preventMark;this.preventMark=this.rvConfig.validating;this.markInvalid(this.rv_response.message||"Invalid");this.preventMark=orgPrevent;return false;}
return false;},performRemoteValidation:function(e){if(this.rvConfig.lastValue===this.getValue()){this.rvTask.cancel();this.rvConfig.remoteValid=true;return;}
if(!e||!e.isNavKeyPress||(e&&e.isNavKeyPress&&!e.isNavKeyPress())){if(e&&e.normalizeKey){var k=e.normalizeKey(e.keyCode);if(k>=16&&k<=20){return;}}
this.rvConfig.remoteValid=false;this.rvConfig.remoteValidated=false;this.rvTask.delay(this.rvConfig.validationBuffer);}},remoteValidate:function(){var dc=Ext.apply({},this.remoteValidationOptions),options={params:{}};if(this.fireEvent("beforeremotevalidation",this,options)!==false){dc.userSuccess=this.remoteValidationSuccess.createDelegate(this);dc.userFailure=this.remoteValidationFailure.createDelegate(this);dc.extraParams=Ext.apply(dc.extraParams||{},options.params);dc.control=this;dc.eventType="postback";dc.action="remotevalidation";var o={id:this.id,name:this.name,value:this.getValue()};dc.serviceParams=Ext.encode(o);if(dc.url){dc.cleanRequest=true;if(dc.json&&Ext.isEmpty(dc.method,false)){dc.method="POST";}
dc.extraParams=Ext.apply(dc.extraParams,o);dc.type="load";}
if(this.rvConfig.showBusy){this.setIndicatorIconCls(this.rvConfig.busyIconCls);if(this.rvConfig.busyTip){this.setIndicatorTip(this.rvConfig.busyTip);}
this.alignIndicator();}
this.rvConfig.remoteValidated=false;this.rvConfig.validating=true;this.rvConfig.lastValue=o.value;if(this.validationId){Ext.net.DirectEvent.abort(this.validationId);}
this.validationId=Ext.net.DirectEvent.request(dc);}},remoteValidationSuccess:function(response,result,context,type,action,extraParams,o){var isException=false,responseObj;this.rvConfig.validating=false;this.validationId=null;if(this.rvConfig.showBusy){this.clearIndicator();}
try{responseObj=result.serviceResponse||result.d||result;result={success:responseObj[this.rvConfig.responseFields.success],message:responseObj[this.rvConfig.responseFields.message],value:responseObj[this.rvConfig.responseFields.returnValue]};}catch(ex){result={success:false,message:ex.message};isException=true;this.rvConfig.remoteValidated=true;this.rvConfig.remoteValid=false;this.fireEvent("remotevalidationinvalid",this,response,responseObj,ex,o);if(o.cancelWarningFailure!==true&&(this.remoteValidationOptions||{}).showWarningFailure!==false&&!this.hasListener("remotevalidationinvalid")){Ext.net.DirectEvent.showFailure(response,response.responseText);}
return;}
if(!isException&&result.success!==true){this.fireEvent("remotevalidationinvalid",this,response,responseObj,result,o);}
if(result.success===true){this.fireEvent("remotevalidationvalid",this,response,responseObj,result,o);}
if(result.value!==null&&Ext.isDefined(result.value)){this.setValue(result.value);}
this.rvConfig.remoteValidated=true;this.rvConfig.remoteValid=result.success;this.rv_response=result;this.validate();},remoteValidationFailure:function(response,result,context,type,action,extraParams,o){this.validationId=null;if(this.rvConfig.showBusy){this.clearIndicator();}
this.fireEvent("remotevalidationfailure",this,response,{message:response.statusText},o);this.rvConfig.validating=false;this.rvConfig.remoteValidated=true;this.rvConfig.remoteValid=false;this.rv_response={success:false,message:response.responseText};if(o.cancelWarningFailure!==true&&(this.remoteValidationOptions||{}).showWarningFailure!==false&&!this.hasListener("remotevalidationfailure")){Ext.net.DirectEvent.showFailure(response,response.responseText);}},setReadOnly:function(readOnly){if(this.rendered){this.el.dom.setAttribute("readOnly",readOnly);this.el.dom.readOnly=readOnly;}else{this.readOnly=readOnly;}},getReadOnly:function(){return this.rendered?this.el.dom.readOnly:this.readOnly;},adjustWidth:function(tag,w){if(typeof w==="number"&&(Ext.isIE6||!Ext.isStrict)&&/input|textarea/i.test(tag)&&!this.inEditor){return w-3;}
return w;},hideNote:function(){if(!Ext.isEmpty(this.note,false)&&this.noteEl){this.noteEl.addClass("x-hide-"+this.hideMode);}
if(this.noteAlign==="top"&&this.label){this.label.removeClass("x-top-note-label");}},showNote:function(){if(!Ext.isEmpty(this.note,false)&&this.noteEl){this.noteEl.removeClass("x-hide-"+this.hideMode);}
if(this.noteAlign==="top"&&this.label){this.label.addClass("x-top-note-label");}},setNote:function(t,encode){this.note=t;if(this.rendered){this.noteEl.dom.innerHTML=encode!==false?Ext.util.Format.htmlEncode(t):t;}},setNoteCls:function(cls){if(this.rendered){this.noteEl.removeClass(this.noteCls);this.noteEl.addClass(cls);}
this.noteCls=cls;},clear:function(){this.setValue("");},hideFieldLabel:function(){if(this.label&&this.hideWithLabel){var parent=this.getActionEl().parent(".x-form-item");if(!Ext.isEmpty(parent)){parent.addClass("x-hide-"+this.hideMode);}}},showFieldLabel:function(){if(this.label&&this.hideWithLabel){var parent=this.getActionEl().parent(".x-form-item");if(!Ext.isEmpty(parent)){parent.removeClass("x-hide-"+this.hideMode);}}},clearIndicator:function(){this.setIndicator("");this.setIndicatorCls("");this.setIndicatorIconCls("");this.setIndicatorTip("");},setIndicator:function(t,encode){this.indi
Список литературы [ всего 16]
Список литературы
1..Алексеева И.А., Новосельский И.Г. Жестокое обращение с ребёнком. Причины. Последствия. Помощь. – М., 2006. – 256 с.
2..Бойко В.В. Синдром «эмоционального выгорания» в профессиональном общении. – СПб, 1999. – 105 с.
3..Бойко В.В. Энергия эмоций в общении: взгляд на себя и на других. - М., 1996. – 469 с.
4..Большой психологический словарь / Под ред. Б.Г.Мещерякова, В.П.Зинченко. - СПб, 2006. – 672 с.
5.Гонохова Т.А. Психологические факторы формирования мнемических и мыслительных способностей: Дисс. … канд. психол. наук. – Новосибирск, 1998. – 160 с.
6..Изард К.Э. Психология эмоций. - СПб, 2009. - 464 с.
7..Ильин Е.П. Эмоции и чувства. - СПб, 2008. - 783 с.
8..Кабанов М.М., Личко А.Е, Смирнов В.М. Методы психологической диагностики и коррекции в клинике. - М., 1983. - 312 с.
9.Ломов Б.Ф. Методологические и теоретические проблемы психологии. – М., 1984.- 443 с.
10..Люсин Д.В. Современные представления об эмоциональном интеллекте //Социальный интеллект: Теория, измерение, исследования / Под ред. Д.В. Ушакова, Д.В. Люсина. - М., 2004. - С. 29-39.
11..Мещерякова С.Ю. Психологическая готовность к материнству. // Вопросы психологии. - 2000. №5. - С. 18 - 27.
12. Нго Конг Хоан 0. Эмоции в структуре мыслительного процесса: Дисс. … канд. психол. наук. – Л., 1984. – 158 с.
13..Сидоров П.И. Синдром эмоционального выгорания // Медицинская газета. - 2005. № 4. - С. 3-17.
14..Фрейд З. Введение в психоанализ. – СПб, 2007. – 480 с.
15..Хьелл Л., Зиглер Д. Теории личности. – СПб, 2007. – 607 с.
16.Чеботарь Л.Г. Развитие эмоционально-чувственной сферы как условие формирования творческого мышления учащихся старших классов: Дисс. … канд. пед. наук. – Тюмень, 2003. – 164 с.
Пожалуйста, внимательно изучайте содержание и фрагменты работы. Деньги за приобретённые готовые работы по причине несоответствия данной работы вашим требованиям или её уникальности не возвращаются.
* Категория работы носит оценочный характер в соответствии с качественными и количественными параметрами предоставляемого материала. Данный материал ни целиком, ни любая из его частей не является готовым научным трудом, выпускной квалификационной работой, научным докладом или иной работой, предусмотренной государственной системой научной аттестации или необходимой для прохождения промежуточной или итоговой аттестации. Данный материал представляет собой субъективный результат обработки, структурирования и форматирования собранной его автором информации и предназначен, прежде всего, для использования в качестве источника для самостоятельной подготовки работы указанной тематики.
bmt: 0.0051