123456 |
- function C_TreeView(_h4C1, _hXP1, _hLN1){if(!_hXP1){var _h1E1=U_XML.F_CreateDocument();_hXP1=_h1E1.appendChild(_h1E1.createElement("treeView"));}this._hKE2=document;this._hFI1=G_HAL.M_sImagePath;this._hXN1=_hLN1?_hLN1:null;this._hK91=window["G_ResManager"]?G_ResManager:null;this._h5C1=_h4C1;this._h5C1.onselectstart=U_DOM.F_HandleSelectStart;this._h5C1.ondragstart=U_DOM.F_CancelEvent;this._h5C1._hYP1=this;this._hZP1=_hXP1;this._h0B1=( _hXP1.getAttribute( "readOnly" )=="true" );this._hHY=( _hXP1.getAttribute( "selectable" ) != "false" );this._hER=( _hXP1.getAttribute( "multiSelect" )=="true" );this._h811=( _hXP1.getAttribute( "showTooltips" ) != "false" );this._h2E1=( _hXP1.getAttribute( "showCheckboxes" )=="true" );if(this._h2E1){this._hB4=( _hXP1.getAttribute( "showCheckedDescendents" )=="true" );}this._hQN=( _hXP1.getAttribute( "forceSelection" )=="true" );this._h3E1=( _hXP1.getAttribute( "forceHover" )=="true" );this._h132=( _hXP1.getAttribute( "static" )=="true" );this._hVR1=( _hXP1.getAttribute( "setFocus" )=="true" );this._h36=( _hXP1.getAttribute( "ensureChildrenVisible" )=="true" );this._hRJ=1;this._h4E1=1;var _hS02=_hXP1.getAttribute("classPrefix");if(!_hS02){_hS02="clsTreeNode";}this._hII1=_hS02+"_normal";this._hIP1=_hS02+"_hover";this._hY41=_hS02+"_selected";this._h5E1=_hS02+"_loading";this._hCU=this._hK91?this._hK91.F_GetOptionalString("IDS_HAL_TV_EXPAND"):null;this._hJK=this._hK91?this._hK91.F_GetOptionalString("IDS_HAL_TV_COLLAPSE"):null;this._h6E1=this._hKE2.createElement("DIV");this._h6C1=this._hKE2.createElement("IMG");this._h6C1.style.verticalAlign="middle";var _hNZ1=this._hZP1.getAttribute("checkHeight");this._h6C1.style.height=(_hNZ1==null)?"20px":_hNZ1;var _h952=this._hZP1.getAttribute("checkWidth");this._h6C1.style.width=(_h952==null)?"19px":_h952;this._hOL=this._h6C1.cloneNode(true);this._hOL.style.marginRight="0px";this._hOL.style.display="none";var _hNZ1=this._hZP1.getAttribute("checkHeight");this._hOL.style.height=(_hNZ1==null)?"20px":_hNZ1;var _h952=this._hZP1.getAttribute("checkWidth");this._hOL.style.width=(_h952==null)?"19px":_h952;this._h7O=this._h6C1.cloneNode(true);this._h7O.style.marginRight="2px";var _hNZ1=this._hZP1.getAttribute("smallIconHeight");this._h7O.style.height=(_hNZ1==null)?"16px":_hNZ1;var _h952=this._hZP1.getAttribute("smallIconWidth");this._h7O.style.width=(_h952==null)?"16px":_h952;this._hPL=this._h6C1.cloneNode(true);this._hPL.style.marginRight="2px";this._hPL.style.display="none";var _hNZ1=this._hZP1.getAttribute("stateSmallIconHeight");this._hPL.style.height=(_hNZ1==null)?"16px":_hNZ1;var _h952=this._hZP1.getAttribute("stateSmallIconWidth");this._hPL.style.width=(_h952==null)?"16px":_h952;this._hMH=this._hKE2.createElement("SPAN");this._hMH.style.verticalAlign="middle";this._hMH.style.padding="0px 2px 1px 2px";this._hLC=this._h6E1.cloneNode(true);this._hLC.style.display="none";this._hHD();this.F_Draw();this.F_SetEnabled(!this._h0B1||G_HAL.M_oLibraries["hal"]["enableAccessibility"]);this._h051=this._hKE2.getElementById("idTreeViewDropCaret");};C_TreeView.prototype.F_SetEnabled=function(_hFU1){if(_hFU1==this._hAU1){return;}this._hAU1=_hFU1;if(_hFU1){this._h5C1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerover":"onmouseover"] =function(e){ this._hYP1._hO91(e); };this._h5C1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerout":"onmouseout"] =function(e){ this._hYP1._hRG1(e); };this._h5C1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"] =function(e){ this._hYP1._hP91(e); };this._h5C1.ondblclick=function(e){ this._hYP1._hDJ1(e); };this._hH(true);}else{this._h5C1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerover":"onmouseover"]=null;this._h5C1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerout":"onmouseout"]=null;this._h5C1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=null;this._h5C1.ondblclick=null;this._hH();}if(!this._h0B1){this._h5C1.disabled=!_hFU1;}U_Accessibility.F_SetAriaStateAndProperty(this._h5C1, "aria-disabled", !_hFU1);};C_TreeView.prototype.F_Detach=function(){this._h5C1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerover":"onmouseover"]=null;this._h5C1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerout":"onmouseout"]=null;this._h5C1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerdown":"onmousedown"]=null;this._h5C1.ondblclick=null;this._hH();this._h0E();this._h5C1.innerHTML="";this._h5C1._hYP1=null;};C_TreeView.prototype.F_GetId=function(){return this._h5C1.id;};C_TreeView.prototype.F_GetContainer=function(){return this._h5C1;};C_TreeView.prototype.F_GetTreeViewNode=function(){return this._hZP1;};C_TreeView.prototype.F_GetSingleSelectedNode=function(){var _hEJ1=this.F_GetSelectedNodes();return(_hEJ1.length==1)?_hEJ1[0]:null;};C_TreeView.prototype.F_GetSelectedNode=function(){return this._hZP1.selectSingleNode(".//treeNode[@selected='true']");};C_TreeView.prototype._hO=function(n1,n2){var i1=parseInt(n1.getAttribute("selectedCounter"));var i2=parseInt(n2.getAttribute("selectedCounter"));return(i1>i2)?1:((i1<i2)?-1:0);};C_TreeView.prototype.F_GetSelectedNodes=function(){var _hEJ1=U_XML.F_AppendNodeListToArray(null, this._hZP1.selectNodes(".//treeNode[@selected='true']"));_hEJ1.sort(this._hO);return _hEJ1;};C_TreeView.prototype.F_GetCheckedNodes=function(){return this._hZP1.selectNodes(".//treeNode[@checked='true']");};C_TreeView.prototype.F_GetCheckedChildrenNodes=function(_h0Q1){return _h0Q1.selectNodes("treeNode[@checked='true']");};C_TreeView.prototype.F_GetUncheckedNodes=function(){return this._hZP1.selectNodes( ".//treeNode[(not(@checked) or @checked='false') and not(@hideCheckbox='true')]" );};C_TreeView.prototype.F_GetUncheckedChildrenNodes=function(_h0Q1){return _h0Q1.selectNodes( "treeNode[(not(@checked) or @checked='false') and not(@hideCheckbox='true')]" );};C_TreeView.prototype._h2=function(){return this._hZP1.selectNodes( ".//treeNode[.//treeNode[@checked='true']][(not(@checked) or @checked='false') and not(@hideCheckbox='true')]" );};C_TreeView.prototype.F_GiveKey=function(_h0Q1){var s="k"+this._h4E1++;_h0Q1.setAttribute("HAL_key", s);return s;};C_TreeView.prototype.F_GetKey=function(_h0Q1){_h0Q1.getAttribute("HAL_key");};C_TreeView.F_GetTreeNodeLabel=function(_h0Q1){var _h4P1=_h0Q1.getAttribute("idsLabel");if(_h4P1){return G_ResManager.F_GetString(_h4P1);}return _h0Q1.getAttribute("label");};C_TreeView.prototype.F_ClearSelections=function(_hNB1){this._hL7(this._hZP1, _hNB1);this._hRJ=1;};C_TreeView.prototype._hL7=function(_hIZ,_hNB1){var _hR8=G_HAL.M_oLibraries["hal"]["enableAccessibility"];var nl=_hIZ.selectNodes(".//treeNode[@selected='true']");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var _h0Q1=nl.item(i);this._hL91(_h0Q1, false);if(_hNB1!=false){var _h512=_h0Q1.getAttribute("htmlId");if(_h512){var _hS02=_h0Q1.getAttribute("classPrefix");this._hKE2.getElementById(_h512).lastChild.previousSibling.className=_hS02?_hS02+"_normal":this._hII1;}}if(_hR8){this._hX2(this._hKE2.getElementById(_h512), _h0Q1);}}return _hBZ1;};C_TreeView.prototype._hNH=function(_h0Q1){var _h232=(!_h0Q1||(_h0Q1==this._hZP1))?this._h5C1:this._hKE2.getElementById(_h0Q1.getAttribute("htmlId"));var nl=_h232.getElementsByTagName("DIV");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){var div=nl.item(i);if(div.nNode){div.nNode=null;}}if(_h232==this._h5C1){this._h5C1.innerHTML="";}else{_h232.lastChild.innerHTML="";}};C_TreeView.prototype.F_Clear=function(_h0Q1){var _hAA2=_h0Q1?_h0Q1:this._hZP1;while(_hAA2.hasChildNodes()){_hAA2.removeChild(_hAA2.lastChild);}this._hRJ=1;};C_TreeView.prototype.F_ShowDragDropFeedback=function(_hPP1){if(_hPP1&&(_hPP1._h112==this)){this.F_ClearSelections();_hPP1.nNode.setAttribute( "selected", "true" );_hPP1._h1O1.className=this._hY41;if(_hPP1._h212&&(_hPP1._hWJ & G_DragDrop.eLocationInside)){_hPP1._hQP1=G_DragDrop.eLocationInside;this._h1Z();}else if(_hPP1._hWJ & G_DragDrop.eLocationBeforeOrAfter){this._h0Z(_hPP1);}else{this._h1Z();}}else{this._h1Z();this.F_ClearSelections();}};C_TreeView.prototype.F_EndDragDropFeedback=function(){this._h1Z();this.F_ClearSelections();};C_TreeView.prototype._h0Z=function(_hPP1){if(_hPP1._hWJ & _hPP1._hQP1 & G_DragDrop.eLocationBefore){this._h051.style.top=(_hPP1._hIC2.top-4)+"px";}else if(_hPP1._hWJ & _hPP1._hQP1 & G_DragDrop.eLocationAfter){this._h051.style.top=(_hPP1._hIC2.top+14)+ "px";}else{this._h1Z();return;}this._h051.style.left=(_hPP1._hIC2.left-3)+"px";this._h051.style.visibility="visible";this._h051.ownerID=this._h5C1.id;};C_TreeView.prototype._h1Z=function(){if(this._h051.ownerID==this._h5C1.id){this._h051.style.visibility="hidden";this._h051.ownerID="";}};C_TreeView.prototype.F_DragInfoHitTest=function(x,y){var _hPP1=null;var _hAZ1=this._hVB1(x, y);if(_hAZ1){_hPP1={};_hPP1.F_GetLocation=function(){if(this._h212&&(this._hWJ & G_DragDrop.eLocationReplace)){return G_DragDrop.eLocationReplace;}var _h4T=(this._hWJ & G_DragDrop.eLocationInside);if(this._h212&&_h4T){return G_DragDrop.eLocationInside;}if(this._hWJ & G_DragDrop.eLocationBeforeOrAfter){if(this._hWJ & this._hQP1 & G_DragDrop.eLocationBefore){return this._hQP1;}else if(this._hWJ & this._hQP1 & G_DragDrop.eLocationAfter){return this._hQP1;}}if(_h4T&&(this._hQP1 & G_DragDrop.eLocationBeforeOrAfter)){return G_DragDrop.eLocationInside;}return G_DragDrop.eLocationNone;};_hPP1._hWJ=G_DragDrop.eLocationNone;_hPP1._h112=this;_hPP1.x=x;_hPP1.y=y;_hPP1._hF12=_hAZ1.parentNode;_hPP1._h1O1=_hAZ1.nextSibling.nextSibling;_hPP1.nNode=_hPP1._hF12.nNode;_hPP1._hIC2=U_DOM.F_GetRelativeOffset(_hAZ1, document.body);var _h312=_hPP1._hIC2.top+8;var _hI62=_h312-y;if(_hI62>0){_hPP1._hQP1=G_DragDrop.eLocationBefore;}else{_hPP1._hQP1=G_DragDrop.eLocationAfter;}if(Math.abs(_hI62)<4){_hPP1._h212=true;}}return _hPP1;};C_TreeView.prototype._hVB1=function(x,y){var el=this._hKE2.elementFromPoint(x, y);if(el){var img=el;if(img.id==this._h051.id){img.style.zIndex=-1;el=this._hKE2.elementFromPoint(x, y);img.style.zIndex=10000;}if(this._h5C1.contains(el)){if(el.getAttribute("_h8C1")){return el.lastChild.previousSibling.previousSibling.previousSibling;}if(el.getAttribute("_h0W1")){return el.previousSibling.previousSibling;}if(el.getAttribute("_hG12")){return el;}if(el.getAttribute("_hOX1")){return el.previousSibling;}}}return null;};C_TreeView.prototype.F_HitTest=function(x,y){var el=this._hKE2.elementFromPoint(x, y);if(el){if(el.getAttribute( "_hG12" )||el.getAttribute( "_hOX1" )||el.getAttribute( "_h0W1" ) ){if(this._h5C1.contains(el)){return el.parentNode.nNode;}}}return null;};C_TreeView.prototype.F_ExpandNode=function(_h0Q1){var _hEJ1=[];for(var n=_h0Q1;n.nodeName=="treeNode";n=n.parentNode){if(n.getAttribute( "expanded" ) != "true" ){_hEJ1.push(n);}}for(var i=_hEJ1.length-1;i>=0;i--){this._hHL1(this._hKE2.getElementById(_hEJ1[i].getAttribute("htmlId")));}if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_TreeView_OnAfterExpandNode){if(!this._hEO){G_HAL.M_oTestListener.F_TreeView_OnAfterExpandNode(this, _h0Q1, false);}}};C_TreeView.prototype.F_ExpandAllNodes=function(_h0Q1){if(!_h0Q1){_h0Q1=this._hZP1;}var nl=_h0Q1.selectNodes( "descendant-or-self::treeNode[@expandable='true' and @expanded='false' and @htmlId]" );var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){this.F_ExpandNode(nl.item(i));}};C_TreeView.prototype.F_CollapseAllNodes=function(_h0Q1){if(!_h0Q1){_h0Q1=this._hZP1;}var nl=_h0Q1.selectNodes( "descendant-or-self::treeNode[@expandable='true' and @expanded='true' and @htmlId]" );var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){this.F_CollapseNode(nl.item(i));}};C_TreeView.prototype.F_CollapseNode=function(_h0Q1){this._hM71(this._hKE2.getElementById(_h0Q1.getAttribute("htmlId")));};C_TreeView.prototype.F_SelectNode=function(_h0Q1,_hLC2,_hF31){var _h512=_h0Q1.getAttribute("htmlId");this._hFJ1(_h0Q1, _h512?this._hKE2.getElementById(_h512):null, false, _hLC2, _hF31);};C_TreeView.prototype.F_SelectNodes=function(_hEJ1,_hF31){this.F_ClearSelections();for(var i=0;i<_hEJ1.length;i++){this.F_SelectNode(_hEJ1[i], i>0, _hF31);}};C_TreeView.prototype.F_UpdateNode=function(_h0Q1){var _h512=_h0Q1.getAttribute("htmlId");if(_h512){this._hGJ1(this._hKE2.getElementById(_h512), _h0Q1);}};C_TreeView.prototype.F_EndAsyncLoad=function(_h0J1){if(this._hEO){var _h0Q1=this._hMC;this._hEO=false;this._hMC=null;if(_h0Q1){var _hF12=this._hKE2.getElementById(_h0Q1.getAttribute("htmlId"));this._hNH(_h0Q1);if(_h0J1){_h0Q1.setAttribute( "expanded", "true" );this._h46=true;this._hK51(_h0Q1);this._h46=false;this._h38(_h0Q1);}else{this._hM71(_hF12);}if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){ var _hDV=this._h56(_hF12);if(_hDV){_hDV.removeAttribute("aria-label");}}}else{this._h46=true;this._hK51(this._hZP1);this._h46=false;this._h0E();this._hNC();}if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_TreeView_OnAfterExpandNode){G_HAL.M_oTestListener.F_TreeView_OnAfterExpandNode(this, _h0Q1, true);}}};C_TreeView.prototype.F_Draw=function(){if(this._hEO){G_Debug.F_Alert( "Missing call to C_TreeView.F_EndAsyncLoad" );return;}this._hK51(this._hZP1);this._h0E();this._hNC();if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_TreeView_OnAfterTreeDraw){G_HAL.M_oTestListener.F_TreeView_OnAfterTreeDraw(this);}};C_TreeView.prototype.F_DrawNode=function(_h0Q1){this._hL7(_h0Q1);this._hNH(_h0Q1);this.F_Clear(_h0Q1);var _hF12=this._hKE2.getElementById(_h0Q1.getAttribute("htmlId"));_hF12.lastChild.style.display="none";_h0Q1.setAttribute( "populated", "false" );if ((_h0Q1.getAttribute( "expandable" )=="true" ) &&( _h0Q1.getAttribute( "expanded" )=="true" ) ){this._h66(_h0Q1);}this._hGJ1(_hF12, _h0Q1);};C_TreeView.prototype._hK51=function(_h0Q1,_hUP1){this._hNH(_h0Q1);U_XML.F_RemoveAttribute( _h0Q1, ".//treeNode", "htmlId" );U_XML.F_RemoveAttribute( _h0Q1, ".//treeNode", "populated" );if(_h0Q1.getAttribute( "populated" ) != "true" ){this._h66(_h0Q1);}if(!this._hEO){_h0Q1.setAttribute( "populated", "true" );var nl=_h0Q1.selectNodes("treeNode");var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){this._h2W1(_h0Q1, nl.item(i), _hUP1);}}var _h512=_h0Q1.getAttribute("htmlId");if(_h512){var _hF12=this._hKE2.getElementById(_h512);if(_hF12){this._hGJ1(_hF12, _h0Q1);}}};C_TreeView.prototype._h66=function(_h0Q1){if(this._h46||this._h132||( _h0Q1.getAttribute( "static" )=="true" ) ){return;}if((_h0Q1.nodeName=="treeNode")&&this._hXN1&&this._hXN1.F_TreeView_OnPopulateChildren){if(this._hXN1.F_TreeView_OnPopulateChildren(this, _h0Q1)){this._hEV(_h0Q1);}}};C_TreeView.prototype.F_ShowHTML=function(_h192){var _hYA2=( this._h5C1.getAttribute( "role" )=="tree" )?"treeitem":"gridcell";this._h5C1.innerHTML=G_HAL.M_oLibraries["hal"]["enableAccessibility"] ?'<div style="padding:3px; color:gray" tabIndex="0" role="' + _hYA2 + '">' + _h192 + '</div>':'<div style="padding:3px; color:gray">' + _h192 + '</div>';};C_TreeView.prototype.F_ShowMessage=function(_hBC2){C_TreeView.F_ShowMessage(this._h5C1, _hBC2);};C_TreeView.F_ShowMessage=function(_h4C1,_hBC2){var _hYA2=( _h4C1.getAttribute( "role" )=="tree" )?"treeitem":"gridcell";_h4C1.innerHTML=G_HAL.M_oLibraries["hal"]["enableAccessibility"] ?'<div style="padding:3px; color:gray" tabIndex="0" role="' + _hYA2 + '">' + _hBC2.F_HTMLEncode() + '</div>':'<div style="padding:3px; color:gray">' + _hBC2.F_HTMLEncode() + '</div>';};C_TreeView.prototype.F_StartAsyncLoad=function(){if(!this._hEO){this._hEV();}};C_TreeView.prototype._hEV=function(_h0Q1){this._hMC=_h0Q1;this._hEO=true;var _h7E1=null;if(_h0Q1){var _h8E1=_h0Q1.getAttribute("htmlId");if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_TreeView_OnStartAsyncLoadExpandNode){G_HAL.M_oTestListener.F_TreeView_OnStartAsyncLoadExpandNode(_h8E1);}var _hF12=this._hKE2.getElementById(_h8E1);_h7E1=_hF12.lastChild;_h7E1.style.display="block";var _hO72=_hF12._hO72;for(var _h0B2=0;_h0B2<_hO72+1;_h0B2++){var _h332=_h7E1.appendChild(this._h6C1.cloneNode(true));this._h911(_h332, _h0Q1, _hO72, _h0B2);}_h7E1.appendChild(this._h6C1.cloneNode(true)).src=this._hFI1+"tv_L.gif";if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){var _hDV=this._h56(_hF12);if(_hDV){_hDV.setAttribute("aria-label", this._hK91.F_GetString("IDS_HAL_AC_INSTRUCTION_LOADING"));}}}else{this._hNH();_h7E1=this._h5C1.appendChild(this._hLC.cloneNode(true));_h7E1.style.display="block";}var _hIL1=_h7E1.appendChild(this._h6C1.cloneNode(true));_hIL1.style.height="16px";_hIL1.style.width="16px";_hIL1.src=this._hFI1+"tv_loading.gif";var _h1O1=_h7E1.appendChild(this._hMH.cloneNode(true));var _hJL1=this._hZP1.getAttribute("idsLoading");if(_hJL1){G_HAL.F_VerifyDependencies("G_ResManager");_h1O1.innerText=this._hK91.F_GetString(_hJL1);}else{var s=window["G_ResManager"]?G_ResManager.F_GetOptionalString( "IDS_HAL_TV_LOADING" ):null;_h1O1.innerText=(s===null)?"...":s;}_h1O1.className=this._h5E1;};C_TreeView.prototype._h2W1=function(_hH12,_h0Q1,_hFZ){if(_hFZ){G_Debug.F_Assert(_hH12.getAttribute("htmlId")==_hFZ.uniqueID);_hFZ=_hFZ.lastChild;}if(!_hFZ){var _hBO=_hH12?_hH12.getAttribute( "htmlId" ):"";_hFZ=_hBO?this._hKE2.getElementById(_hBO).lastChild:this._h5C1;}var _hO72=this._hFV(_h0Q1);var _hF12=_hFZ.appendChild(this._h6E1.cloneNode(true));_hF12.setAttribute( "_h8C1", "true" );_hF12.nNode=_h0Q1;_hF12._hO72=_hO72;_h0Q1.setAttribute("htmlId", _hF12.uniqueID);for(var i=0;i<_hO72;i++){_hF12.appendChild(this._h6C1.cloneNode(true));}var _hWR1=_hF12.appendChild(this._h6C1.cloneNode(true));_hWR1.setAttribute( "_hXR1", "true" );_hWR1.style.cursor="pointer";var _hAV1=_hF12.appendChild(this._hOL.cloneNode(true));_hAV1.setAttribute( "_hPX1", "true" );if(this._h2E1){if(_h0Q1.getAttribute( "hideCheckbox" ) != "true" ){_hAV1.style.display="";}}var _hH71=_h0Q1.getAttribute("smallSvgIcon");if(_hH71){var _hVN=_hF12.appendChild(document.createElement("span"));_hVN.innerHTML=U_DOM.F_CreateSvgString(_h0Q1, _hH71);_hVN.setAttribute("_hG12", "true");_hVN.setAttribute("class", "clsTreeViewSvgIcon");}else{_hF12.appendChild( this._h7O.cloneNode(true)).setAttribute( "_hG12", "true" );}_hF12.appendChild( this._hPL.cloneNode( true)).setAttribute( "_hOX1", "true" );_hF12.appendChild( this._hMH.cloneNode( true)).setAttribute( "_h0W1", "true" );_hF12.appendChild( this._hLC.cloneNode( true)).setAttribute( "_h9E1", "true" );if(_h0Q1.getAttribute( "expanded" )=="true" ){this._hHL1(_hF12);}else{this._hM71(_hF12);}};C_TreeView.prototype._hFV=function(_h0Q1){for(var _hO72=-1;_h0Q1;_hO72++, _h0Q1=_h0Q1.parentNode){if(_h0Q1.nodeName=="treeView"){return _hO72;}}};C_TreeView.prototype._hAE1=function(_h0Q1,_hN71){while((--_hN71)>0){_h0Q1=_h0Q1.parentNode;}return _h0Q1;};C_TreeView.prototype._hFJ1=function(_h0Q1,_hF12,_h4W1,_hLC2,_hF31){if(_h4W1||_hLC2){if(!this._hER){this.F_ClearSelections();}this._hL91( _h0Q1, _hLC2||( _h0Q1.getAttribute( "selected" ) != "true" ) );}else{if(_h0Q1.getAttribute( "selected" )=="true" ){var _hOC=(_h0Q1.getAttribute("forceSelection")=="true");if(!this._hER&&!this._hQN&&!_hOC){return;}}this.F_ClearSelections();this._hL91(_h0Q1, true);}this._hGJ1(_hF12?_hF12:this._hKE2.getElementById(_h0Q1.getAttribute("htmlId")), _h0Q1);if(_hF31!=false){this._hCO(_h0Q1);}};C_TreeView.prototype._hCO=function(_h0Q1,_hQ31){if(this._hXN1&&this._hXN1.F_TreeView_OnNodeClick){this._hXN1.F_TreeView_OnNodeClick(this, _h0Q1, _hQ31);}};C_TreeView.prototype.F_EnsureVisible=function(_h0Q1,_hP){this.F_ExpandNode(_h0Q1.parentNode);var _hF12=this._hKE2.getElementById(_h0Q1.getAttribute("htmlId"));var _hK7=_hP?_hP:this._h5C1;var _hHZ=0;for(var el=_hF12;el;el=el.offsetParent){if(el==_hK7){_hHZ+= parseInt(el.currentStyle.paddingTop);break;}else if(el.contains(_hK7)){_hHZ+= parseInt(el.currentStyle.paddingTop);_hHZ-= U_DOM.F_GetRelativeOffset(_hK7, el).top;break;}else{_hHZ+= U_DOM.F_GetOffsetTop(el);}}var _h2A=24;var _hPC=_hK7.scrollTop;var _h76=_hK7.offsetHeight;if((_hPC>0)&&((_hHZ-4)<_hPC)){_hK7.scrollTop=_hHZ-4;}else if((_hHZ+20 + _h2A)>(_hPC+_h76)){_hK7.scrollTop=_hHZ+20+_h2A-_h76-parseInt(_hK7.currentStyle.paddingBottom);}};C_TreeView._hUJ=function(e){if(C_TreeView.s_oMouseUpTreeView){C_TreeView.s_oMouseUpTreeView._h59(e);}G_CaptureManager.F_StopCapture();};C_TreeView._hA7=function(e){e.stopPropagation();if(C_TreeView.s_aPotentialDragNodes){if(G_DragDrop.F_ExceedsDragSize(C_TreeView.s_iPotentialDragNodeX-e.clientX, C_TreeView.s_iPotentialDragNodeY-e.clientY)){var _hYP1=C_TreeView.s_oDragTreeView;if(_hYP1&&_hYP1._hXN1.F_TreeView_OnDragStart){_hYP1._hXN1.F_TreeView_OnDragStart(_hYP1, C_TreeView.s_aPotentialDragNodes, _hYP1._hVJ, e);}C_TreeView.s_oDragTreeView=null;C_TreeView.s_aPotentialDragNodes=null;}}};C_TreeView.prototype._hA11=function(el){el=U_DOM.F_GetElementNotInShadowDom(el);return(el.nodeName=="svg")?el.parentNode:el;};C_TreeView.prototype._hP91=function(e){if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_TestListener_TreeViewOnMouseDown){G_HAL.M_oTestListener.F_TestListener_TreeViewOnMouseDown(e, this);}if(this._hEO){return;}if(this._hVR1){this._h5C1.focus();}var _h692=this._hA11(e.target);if(_h692.getAttribute("_hXR1")){this._h2F(_h692.parentNode);}else if(_h692.getAttribute("_hPX1")){var _h0Q1=_h692.parentNode.nNode;if(_h0Q1.getAttribute( "staticCheckbox" )=="true" ){return;}if(this._hXN1&&this._hXN1.F_TreeView_OnNodeCheck){if(this._hXN1.F_TreeView_OnNodeCheck(this, _h0Q1)===false){return;}}var _hBV1=_h0Q1.getAttribute( "checked" ) != "true";_h0Q1.setAttribute( "checked", _hBV1?"true":"false" );this._hGJ1(_h692.parentNode, _h0Q1);var nl=_h0Q1.selectNodes( "ancestor::treeNode[(not(@checked) or @checked='false') and not(@hideCheckbox='true')]" );var _hBZ1=nl.length;for(var i=0;i<_hBZ1;i++){this.F_UpdateNode(nl.item(i));}}else if(_h692.getAttribute( "_hG12" )||_h692.getAttribute( "_hOX1" )||_h692.getAttribute( "_h0W1" ) ){var nNode=_h692.parentNode.nNode;var _h0O1=( nNode.getAttribute( "selected" )=="true" );var _hOC=(nNode.getAttribute("forceSelection")=="true");if(this._hER&&e.shiftKey){var a=this.F_GetSelectedNodes();this.F_ClearSelections();this._hOB(a[0], nNode);this._hL91(nNode, true);}else if(_h0O1&&!this._hQN&&!_hOC){if(this._hER){C_TreeView.s_oMouseUpTreeView=this;this._hB9=_h692.parentNode;}}else{if(e.ctrlKey){if(!this._hER){this.F_ClearSelections();}this._hL91(nNode, !_h0O1);}else{this.F_ClearSelections();this._hL91(nNode, true);}this._hCO(nNode, e.button);}this._hGJ1(_h692.parentNode, nNode);C_TreeView.s_aPotentialDragNodes=this.F_GetSelectedNodes();var _hMP1={};_hMP1[G_BrowserInfo.M_bIsPointerEnabled?"onpointerup":"onmouseup"]=C_TreeView._hUJ.bind(C_TreeView);_hMP1["onStopCapture"]=C_TreeView._hSY.bind(C_TreeView);if(window["G_DragDrop"]){_hMP1[G_BrowserInfo.M_bIsPointerEnabled?"onpointermove":"onmousemove"]=C_TreeView._hA7.bind(C_TreeView);}G_CaptureManager.F_StartCapture(_hMP1);this._hVJ=e.button;C_TreeView.s_oDragTreeView=this;C_TreeView.s_iPotentialDragNodeX=e.clientX;C_TreeView.s_iPotentialDragNodeY=e.clientY;}};C_TreeView._hSY=function(){C_TreeView._hT3();C_TreeView.s_aPotentialDragNodes=null;C_TreeView.s_oDragTreeView=null;};C_TreeView.prototype._hOB=function(_hJZ,_hBC1){if(!_hJZ||!_hBC1||(_hJZ.parentNode!=_hBC1.parentNode)){return;}for(var n=_hJZ; n; n=U_XML.F_GetNextSiblingElement(n)){if(n==_hBC1){for(var n=_hJZ; n; n=U_XML.F_GetNextSiblingElement(n)){this._hL91(n, true);this.F_UpdateNode(n);this._hCO(n, NaN);if(n==_hBC1){return;}}}}for(var n=_hJZ; n; n=U_XML.F_GetPreviousSiblingElement(n)){if(n==_hBC1){for(var n=_hJZ; n; n=U_XML.F_GetPreviousSiblingElement(n)){this._hL91(n, true);this.F_UpdateNode(n);this._hCO(n, NaN);if(n==_hBC1){return;}}}}};C_TreeView._hT3=function(){if(C_TreeView.s_oMouseUpTreeView){C_TreeView.s_oMouseUpTreeView._hB9=null;C_TreeView.s_oMouseUpTreeView=null;}};C_TreeView.prototype._h59=function(e){var nNode=this._hB9.nNode;if(e.ctrlKey){this._hL91( nNode, nNode.getAttribute( "selected" ) != "true" );}else{if(e.button==U_DOM.K_iLeftMouseButton){this.F_ClearSelections();this._hL91(nNode, true);}}this._hCO(nNode, e.button);this._hGJ1(this._hB9, nNode);};C_TreeView.prototype._hDJ1=function(e){if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener.F_TestListener_TreeViewOnDblClick){G_HAL.M_oTestListener.F_TestListener_TreeViewOnDblClick(e, this);}if(this._hEO||e.shiftKey||e.ctrlKey){return;}var _h692=this._hA11(e.target);if(_h692.getAttribute( "_hXR1" )||_h692.getAttribute( "_hG12" )||_h692.getAttribute( "_hOX1" )||_h692.getAttribute( "_h0W1" ) ){if(!_h692.getAttribute("_hXR1")){this._h2F(_h692.parentNode);}if(!_h692.getAttribute("_hXR1")&&this._hXN1&&this._hXN1.F_TreeView_OnNodeDblClick){setTimeout(this._hXN1.F_TreeView_OnNodeDblClick.bind(this._hXN1, this, _h692.parentNode.nNode), 0);}}};C_TreeView.prototype._hO91=function(e){var _h692=this._hA11(e.target);if(_h692.getAttribute( "_hG12" )||_h692.getAttribute( "_hOX1" )||_h692.getAttribute( "_h0W1" ) ){var _hF12=_h692.parentNode;var _h0Q1=_hF12.nNode;var _hS02=_h0Q1.getAttribute("classPrefix");var _hBE1=( _h0Q1.getAttribute( "forceHover" )=="true" );var _hY52="";if ((_h0Q1.getAttribute( "selected" )=="true" )&&!( this._h3E1||_hBE1 ) ){_hY52=(_hS02?_hS02+"_selected":this._hY41);}else{_hY52=(_hS02?_hS02+"_hover":this._hIP1);}_hF12.lastChild.previousSibling.className=_hY52;}else if(_h692.getAttribute( "_hXR1" )&&_h692.getAttribute( "title" ) ){_h692.className="clsTreeViewExpand_hover";}};C_TreeView.prototype._hRG1=function(e){var _h692=this._hA11(e.target);if(_h692.getAttribute( "_hG12" )||_h692.getAttribute( "_hOX1" )||_h692.getAttribute( "_h0W1" ) ){var _hF12=_h692.parentNode;var _h0Q1=_hF12.nNode;var _hS02=_h0Q1.getAttribute("classPrefix");_hF12.lastChild.previousSibling.className=( _h0Q1.getAttribute( "selected" )=="true" )?( _hS02?_hS02 + "_selected":this._hY41 ):( _hS02?_hS02 + "_normal":this._hII1 );}else if(_h692.getAttribute( "_hXR1" )&&_h692.getAttribute( "title" ) ){_h692.className="clsTreeViewExpand_normal";}};C_TreeView.prototype._h2F=function(_hF12){if(_hF12.nNode.getAttribute( "expanded" )=="true" ){this._hM71(_hF12);}else{this._hHL1(_hF12);}};C_TreeView.prototype._hHL1=function(_hF12){var _h0Q1=_hF12.nNode;var _h86=false;if(_h0Q1.getAttribute( "expandable" )=="true" ){_h86=( _h0Q1.getAttribute( "expanded" )=="false" );_h0Q1.setAttribute( "expanded", "true" );if(_h0Q1.getAttribute( "populated" ) != "true" ){this._hK51(_h0Q1, _hF12);}}this._hGJ1(_hF12, _h0Q1);if(_h86){this._h38(_h0Q1);}};C_TreeView.prototype._h38=function(_h0Q1){if(!this._h36||this._hEO){return;}var _h3F=_h0Q1.selectSingleNode("treeNode[last()]");if(_h3F){this.F_EnsureVisible(_h3F);}this.F_EnsureVisible(_h0Q1);};C_TreeView.prototype._hM71=function(_hF12){var _h0Q1=_hF12.nNode;_h0Q1.setAttribute( "expanded", "false" );_hF12.lastChild.style.display="none";if(this._hL7(_h0Q1)>0){this._hFJ1(_h0Q1, _hF12);}this._hGJ1(_hF12, _h0Q1);};C_TreeView.prototype._hL91=function(_h0Q1,b){if(!this._hHY){return;}if(b){_h0Q1.setAttribute( "selected", "true" );_h0Q1.setAttribute("selectedCounter", this._hRJ++);}else{_h0Q1.removeAttribute("selected");_h0Q1.removeAttribute("selectedCounter");}};C_TreeView.prototype._h911=function(_h332,_h0Q1,_hO72,_h0B2){_h332.src=this._hFI1 +(this._hAE1( _h0Q1, _hO72-_h0B2+1 ).selectSingleNode( "following-sibling::treeNode" )?"tv_I.gif":"tv_white.gif" );if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){_h332.alt="";}};C_TreeView.prototype._hYP=function(_hWR1,_h0Q1){var _hFD2=( _h0Q1.parentNode.nodeName=="treeView" )&&( _h0Q1.selectSingleNode( "preceding-sibling::treeNode[1]" )==null );var _hO71=_h0Q1.selectSingleNode("following-sibling::treeNode")!=null;var _hKC2=this._hFI1;var _hGV="";var _hC02="pointer";if(_h0Q1.getAttribute( "expandable" )=="true" ){var _hP71=_h0Q1.selectSingleNode("treeNode")!=null;var _hKL1=( _h0Q1.getAttribute( "populated" )=="true" );if((_hKL1||this._h132)&&!_hP71){_hKC2 +=(_hO71?( _hFD2?"tv_T_top.gif":"tv_T.gif" ):( _hFD2?"tv_L_top.gif":"tv_L.gif" ) );_hC02="default";}else if(_h0Q1.getAttribute( "expanded" )=="true" ){_hKC2 +=(_hO71?( _hFD2?"tv_Tminus_top.gif":"tv_Tminus.gif" ):( _hFD2?"tv_Lminus_top.gif":"tv_Lminus.gif" ) );_hGV=this._hJK;}else{_hKC2 +=(_hO71?( _hFD2?"tv_Tplus_top.gif":"tv_Tplus.gif" ):( _hFD2?"tv_Lplus_top.gif":"tv_Lplus.gif" ) );_hGV=this._hCU;}}else{_hKC2 +=(_hO71?( _hFD2?"tv_T_top.gif":"tv_T.gif" ):( _hFD2?"tv_L_top.gif":"tv_L.gif" ) );_hC02="default";}if(this._h0B1){_hKC2=( _hKC2.indexOf( "_top.gif" )==-1 )?_hKC2.replace( "minus", "" ):( this._hFI1 + "tv_white.gif" );_hC02="default";}_hWR1.src=_hKC2;_hWR1.title=(this._h811&&_hGV&&!this._h0B1)?_hGV:"";if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){_hWR1.alt=( _h0Q1.getAttribute( "expanded" )=="true" )?"-":"+";}if(_hWR1.style.cursor!=_hC02){_hWR1.style.cursor=_hC02;}if(!this._h0B1&&_hGV){_hWR1.className="clsTreeViewExpand_normal";}};C_TreeView.prototype._hHV=function(_hAV1,_h0Q1){if(this._h2E1){var _hBV1=( _h0Q1.getAttribute( "checked" )=="true" );var _hKC2;if(_h0Q1.getAttribute( "staticCheckbox" )=="true" ){_hKC2=this._hFI1+(_hBV1?"tv_checkbox_checked_static.gif":"tv_checkbox_static.gif");}else{_hKC2=this._hFI1+(_hBV1?"tv_checkbox_checked.gif":"tv_checkbox.gif");}if(this._hB4){if(!_hBV1&&_h0Q1.selectSingleNode(".//treeNode[@checked='true']")){_hKC2=this._hFI1+"tv_checkbox_descendent_checked.gif";}}if(_hAV1.src!=_hKC2){_hAV1.src=_hKC2;}}};C_TreeView.prototype._hB11=function(_hAZ1,_h0Q1){var _hGD2;if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){var _hOH=_h0Q1.getAttribute("idsExtraAriaLabel");var _hBG1=_h0Q1.getAttribute("idsTooltip");var _hEU1=_h0Q1.getAttribute("idsLabel");if(_hOH){_hGD2=G_ResManager.F_GetOptionalString(_hOH)||"";}else if(_hBG1){_hGD2=G_ResManager.F_GetOptionalString(_hBG1)||""; }else if(_hEU1){_hGD2=G_ResManager.F_GetOptionalString(_hEU1)||""; }else{_hGD2=_h0Q1.getAttribute( "label" )||"";}}if ( this._hEO||((_h0Q1.getAttribute( "expanded" )=="true" )&&_h0Q1.selectSingleNode( "treeNode" ) ) ){var _hGZ=_h0Q1.getAttribute("expandedSmallIcon");if(_hGZ){_hAZ1.src=G_HAL.F_GetImageURL(_hGZ);if(_hGD2){_hAZ1.setAttribute("alt", _hGD2);}return;}}var _h292=_h0Q1.getAttribute("smallIcon");var _hH71=_h0Q1.getAttribute("smallSvgIcon");if(_h292){_hAZ1.src=G_HAL.F_GetImageURL(_h292);if(_hGD2){_hAZ1.setAttribute("alt", _hGD2);}}else if(_hH71){return;}else{_hAZ1.style.display="none";}};C_TreeView.prototype._hIV=function(_hQX1,_h0Q1){var _hZP=_h0Q1.getAttribute("stateSmallIcon");if(_hZP){_hQX1.src=G_HAL.F_GetImageURL(_hZP);_hQX1.style.display="";}else{_hQX1.style.display="none";}};C_TreeView.prototype._hCE1=function(_h1O1,_h0Q1){var _h0O1=( _h0Q1.getAttribute( "selected" )=="true" );var _hS02=_h0Q1.getAttribute("classPrefix");_h1O1.className=_h0O1?( _hS02?_hS02+"_selected":this._hY41 ):( _hS02?_hS02 + "_normal":this._hII1 );var _hEU1=_h0Q1.getAttribute("idsLabel");if(_hEU1){G_HAL.F_VerifyDependencies("G_ResManager");this._hJV(this._hK91.F_GetString(_hEU1), _h1O1);}else{var _h052=_h0Q1.getAttribute("label");if(_h052){this._hJV(_h052, _h1O1);}}if(this._h811){var _hAZ1=_h1O1.previousSibling.previousSibling;var _hBG1=_h0Q1.getAttribute("idsTooltip");if(_hBG1){G_HAL.F_VerifyDependencies("G_ResManager");var _h3U1=this._hK91.F_GetString(_hBG1);_hAZ1.title=_h3U1;_h1O1.title=_h3U1;}else{var _h3U1=_h0Q1.getAttribute("tooltip");if(_h3U1){_hAZ1.title=_h3U1;_h1O1.title=_h3U1;}}}};C_TreeView.prototype._hJV=function(_h052,_h1O1){if(G_BrowserInfo.M_bIsIE){_h1O1.innerText=_h052;}else{var _h1B2=_h1O1.selectSingleNode("text()");if(_h1B2){_h1B2.nodeValue=_h052;}else{_h1O1.innerText=_h052;}}};C_TreeView.prototype._hGJ1=function(_hF12,_h0Q1){var img=_hF12.firstChild;var _hO72=_hF12._hO72;for(var _h0B2=0;_h0B2<_hO72;_h0B2++){this._h911(img, _h0Q1, _hO72, _h0B2);img=img.nextSibling;}this._hYP(img, _h0Q1);img=img.nextSibling;this._hHV(img, _h0Q1);img=img.nextSibling;this._hB11(img, _h0Q1);img=img.nextSibling;this._hIV(img, _h0Q1);var _h1O1=img.nextSibling;this._hCE1(_h1O1, _h0Q1);var _hQQ1=((_h0Q1.getAttribute( "expanded" )=="true" )&&_h0Q1.selectSingleNode( "treeNode" ) );_h1O1.nextSibling.style.display=(_hQQ1||this._hEO)?"block":"none";this._hX2(_hF12, _h0Q1);};C_TreeView.F_GetCaretsHtml=function(){return '<img id="idTreeViewDropCaret" src="' + G_HAL.M_sPath + 'hal/images/tv_dropcaret.gif"/>';};C_TreeView.prototype._hHD=function(){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}this._h5C1.setAttribute( "role", "tree" );if(!this._h5C1.getAttribute("tabIndex")){this._h5C1.setAttribute( "tabIndex", "-1" );}this._hMH.setAttribute( "role", "treeitem" );this._hMH.setAttribute( "tabIndex", "-1" );if(!this._hZP1.getAttribute("selectOptionOnFocus")){this._hZP1.setAttribute( "selectOptionOnFocus", "noSelect" );}};C_TreeView.prototype._h56=function(_hC11){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}if(_hC11){var nl=_hC11.getElementsByTagName("SPAN");for(var i=0;i<nl.length;i++){var _hZE2=nl.item(i);if(_hZE2.getAttribute( "role" )=="treeitem" ){return _hZE2;}} }return null;};C_TreeView.prototype._hNC=function(){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}var _h3A=this._hZP1.selectSingleNode("treeNode/@htmlId");if(_h3A){var _hC11=this._hKE2.getElementById(_h3A.value);var _hH62=this._h56(_hC11);if(_hH62){_hH62.setAttribute( "tabIndex", "0" );}}};C_TreeView.prototype._hH=function(_hLC2){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}if(!this._hMG){this._hMG=this._h412.bind(this);}if(_hLC2){U_Accessibility.F_AddFocusAndBlurEventListener(this._h5C1, this._hMG, null);this._h5C1.onkeydown=this._h4O1.bind(this);}else{U_Accessibility.F_RemoveFocusAndBlurEventListener(this._h5C1, this._hMG, null);this._h5C1.onkeydown=null;}};C_TreeView.prototype._h412=function(e){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]||e.target.getAttribute( "role" ) != "treeitem" ){return;}var _hLL1=e.target;var _h0Q1=_hLL1.parentNode.nNode;if(_h0Q1){if(this._hZP1.getAttribute( "selectOptionOnFocus" ) != "noSelect" ){this.F_SelectNode( _h0Q1, false,(this._hZP1.getAttribute( "selectOptionOnFocus" )=="selectAndClick" ) );}if(!_hLL1.getAttribute("aria-label")){var _hSI1=_hLL1.innerText;if(_h0Q1.getAttribute("sAriaLabel")){_hSI1 += " " + _h0Q1.getAttribute( "sAriaLabel" );}else if(_h0Q1.getAttribute("idsAriaLabel")){_hSI1 += " " + G_ResManager.F_GetString( _h0Q1.getAttribute( "idsAriaLabel" ) );}var _hOH=_h0Q1.getAttribute("idsExtraAriaLabel");if(_hOH){_hSI1 += " " + G_ResManager.F_GetString( _hOH );}if(this._h2E1&&_h0Q1.getAttribute( "hideCheckbox" ) != "true" ){_hSI1 += " " + G_ResManager.F_GetString( "IDS_HAL_AC_INSTRUCTION_TREE_ITEM_CHECK" );}else{_hSI1 += " " + G_ResManager.F_GetString( "IDS_HAL_AC_INSTRUCTION_TREE_ITEM" );}_hLL1.setAttribute("aria-label", _hSI1);}if(this._hLB1){this._hLB1.setAttribute( "tabIndex", "-1" );}_hLL1.setAttribute( "tabIndex", "0" );this._hLB1=_hLL1;}};C_TreeView.prototype._h96=function(_hDV){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}var _hD11=_hDV.parentNode;var _h0Q1=this._hZP1.selectSingleNode( ".//treeNode[@htmlId='" + _hD11.id + "']" );var _hE11;if(_h0Q1.getAttribute( "expanded" )=="true"&&_h0Q1.hasChildNodes() ){_hE11=_h0Q1.selectSingleNode("treeNode");}else{while(!_hE11&&_h0Q1){_hE11=_h0Q1.selectSingleNode("following-sibling::treeNode");_h0Q1=_h0Q1.parentNode;}}if(_hE11){_hD11=this._hKE2.getElementById(_hE11.getAttribute("htmlId"));return this._h56(_hD11);}return null;};C_TreeView.prototype._h32=function(_hDV){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}var _hD11=_hDV.parentNode;var _h0Q1=this._hZP1.selectSingleNode( ".//treeNode[@htmlId='" + _hD11.id + "']" );var _hPH=_h0Q1.selectSingleNode("preceding-sibling::treeNode[1]");if(!_hPH){_hPH=_h0Q1.parentNode;}else{while(_hPH.getAttribute( "expanded" )=="true"&&_hPH.hasChildNodes() ){_hPH=_hPH.selectSingleNode("treeNode[last()]");}}if(_hPH){_hD11=this._hKE2.getElementById(_hPH.getAttribute("htmlId"));return this._h56(_hD11);}return null;};C_TreeView.prototype.F_GetFirstVisibleTreeItem=function(){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}var _hKV=this._hZP1.selectSingleNode("./treeNode");if(_hKV){var _hD11=this._hKE2.getElementById(_hKV.getAttribute("htmlId"));return this._h56(_hD11);}return null;};C_TreeView.prototype._hA6=function(){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}var _hF11=this._hZP1.selectSingleNode("./treeNode[last()]");if(_hF11){var _hD11=this._hKE2.getElementById(_hF11.getAttribute("htmlId"));return this._h56(_hD11);}return null;};C_TreeView.prototype._h4O1=function(e){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]||!e.target||e.target.getAttribute( "role" ) != this._hMH.getAttribute( "role" )||e.target.nodeName != this._hMH.nodeName ){return;}var _hDV=e.target;switch(e.keyCode){case U_DOM.K_iKeyArrowDown:var _hML1=this._h96(_hDV);if(_hML1){_hML1.focus();}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyArrowUp:var _hLV=this._h32(_hDV);if(_hLV){_hLV.focus();}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyHome:var _hDE1=this.F_GetFirstVisibleTreeItem();if(_hDE1){_hDE1.focus();}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyEnd:var _hNL1=this._hA6();if(_hNL1){_hNL1.focus();}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyArrowRight:var _hD11=_hDV.parentNode;var _h0Q1=this._hZP1.selectSingleNode( ".//treeNode[@htmlId='" + _hD11.id + "']" );if(_h0Q1.getAttribute( "expanded" ) != "true"&&_h0Q1.getAttribute( "expandable" )=="true" ){this.F_ExpandNode(_h0Q1);}else if(_h0Q1.getAttribute( "expanded" )=="true"&&_h0Q1.hasChildNodes() ){var _hP72=_h0Q1.selectSingleNode("treeNode");var _hD11=this._hKE2.getElementById(_hP72.getAttribute("htmlId"));var _hH62=this._h56(_hD11);_hH62.focus();}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyArrowLeft:var _hD11=_hDV.parentNode;var _h0Q1=this._hZP1.selectSingleNode( ".//treeNode[@htmlId='" + _hD11.id + "']" );if(_h0Q1.getAttribute( "expanded" )=="true"&&_h0Q1.hasChildNodes() ){this.F_CollapseNode(_h0Q1);}else if(_h0Q1.parentNode){var _hD11=this._hKE2.getElementById(_h0Q1.parentNode.getAttribute("htmlId"));var _hH62=this._h56(_hD11);_hH62.focus();}U_DOM.F_CancelEvent(e);break;case U_DOM.K_iKeyEnter:U_DOM.F_CancelEvent(e);var _hAV1=_hDV.previousSibling.previousSibling.previousSibling;var _hYR1=(_hAV1.style.display=="none"?_hDV:_hAV1);U_Accessibility.F_SimulateMouseClick(_hYR1, U_DOM.K_iLeftMouseButton, e.ctrlKey, e.shiftKey);setTimeout(this._hDJ1.bind(this, e));break;case U_DOM.K_iKeySpace:U_DOM.F_CancelEvent(e);var _hAV1=_hDV.previousSibling.previousSibling.previousSibling;var _hYR1=(_hAV1.style.display=="none"?_hDV:_hAV1);U_Accessibility.F_SimulateMouseClick(_hYR1, U_DOM.K_iLeftMouseButton, e.ctrlKey, e.shiftKey);break;}};C_TreeView.prototype._h0E=function(){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}this._hLB1=null;};C_TreeView.prototype._hX2=function(_hC11,_h0Q1){if(!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){return;}var _hDV=this._h56(_hC11);var _hQQ1=( _h0Q1.getAttribute( "expanded" )=="true"&&_h0Q1.hasChildNodes() );U_Accessibility.F_SetAriaStateAndProperty(_hDV, "aria-expanded", _hQQ1);var _hBV1=( _h0Q1.getAttribute( "checked" )=="true" );U_Accessibility.F_SetAriaStateAndProperty(_hDV, "aria-checked", _hBV1);var _h0O1=( _h0Q1.getAttribute( "selected" )=="true" );U_Accessibility.F_SetAriaStateAndProperty(_hDV, "aria-selected", _h0O1);};C_TreeView.prototype.F_GetElementById=function(_hJE2){return this._hKE2.getElementById(_hJE2);};C_TreeView.prototype.F_GetTreeItemSpanFromDiv=function(_hC11){var nl=_hC11.getElementsByTagName("SPAN");return(nl.length>0)?nl.item(0):null;};
|