HxG_5.prototype.JSFDataTable=function () { this.type=hX_5.CMP_datatable; this.adjustColumns=false; this.percentageColumns=hX_5._E; this.initialWidth=null; this.monitorSet=null; this.monitorTimer=null; this.attributeTable=[]; this.attributeTable ['adjust-columns']=['adjustColumns', hX_5.ARG_IS_TRUE, true, null, null]; this.setAttribute(arguments); } HxG_5.prototype.JSFDataTable.prototype.onPageLoad=function () { this.percentageColumns=hX_5._E; var i, _T='T', _F='F', hasP=false; var table2=hX_5.getElementById(this.DOMobj.id + "head2"); if (table2==null) table2=hX_5.getElementById(this.DOMobj.id + "head3"); if (table2) { for (i=0; i0) { this.percentageColumns=this.percentageColumns+_T; hasP=true; } else this.percentageColumns=this.percentageColumns+_F; } if (!hasP) this.percentageColumns=hX_5._E if (hX_5.brw.isNavOrMoz() && this.DOMobj.parentNode.tagName!=undefined && this.DOMobj.parentNode.tagName==hX_5._DIV && this.DOMobj.parentNode.style.overflowX!=undefined && this.DOMobj.parentNode.style.overflowX==hX_5._E) this.DOMobj.parentNode.style.overflowX=hX_5._HI; this.redraw(); return true; } HxG_5.prototype.JSFDataTable.prototype.redraw=function (resizeOnly) { if (this.adjustColumns) this.adjustColumnWidths(); return true; } HxG_5.prototype.JSFDataTable.prototype.adjustColumnWidths=function() { var width=hX_5.getScrollbarWidth(); var table1=hX_5.getElementById(this.DOMobj.id + "head1"); var table2=hX_5.getElementById(this.DOMobj.id + "head2"); var table3=hX_5.getElementById(this.DOMobj.id + "foot1"); var table4=hX_5.getElementById(this.DOMobj.id + "foot2"); var i,currRow,lastCell,lastDiv,t1_width=t2_width=t3_width=t4_width=0; if(table1) { t1_width=hX_5.g.getRendWidth(table1); for(i=0; i0) { this.monitorSet=(table2)?table2:((table1)?table1:((table3)?table3:((table4)?table4:null))); if (this.monitorSet!=null) { hX_5.i.attachResizeMonitor(this.monitorSet, this.dispatchMonitorResize, true); } } } } if(this.percentageColumns != hX_5._E) { if(table2 == null) table2=table3; if(table2 != null) { var tr=(this.DOMobj.tBodies!=undefined && this.DOMobj.tBodies.length>0)?this.DOMobj.tBodies[0]:this.DOMobj; tr=(tr && tr.rows.length>0)?tr.rows[0]:null; var th=(table2 && table2.rows.length>0)?table2.rows[0]:null; var y, borderLeft, borderRight, paddingLeft, paddingRight, newWidth, _T='T'; for(y=0; th!=null && tr!=null && y 0) paddingLeft=paddingLeft.substr(0,paddingLeft.length-2); else paddingLeft=hX_5.toPixels(tr.cells[y],paddingLeft); paddingRight=hX_5.g.getP(tr.cells[y], hX_5._PADR); if (paddingRight.indexOf("px") > 0) paddingRight=paddingRight.substr(0,paddingRight.length-2); else paddingRight=hX_5.toPixels(tr.cells[y],paddingRight); if(borderLeft!=null) newWidth=newWidth - borderLeft; if(borderRight!=null) newWidth=newWidth - borderRight; if(paddingLeft!=null) newWidth=newWidth - paddingLeft; if(paddingRight!=null) newWidth=newWidth - paddingRight; tr.cells[y].width=newWidth; tr.cells[y].style.width=newWidth + hX_5._PX; } } } if (this.monitorSet==null && this.initialWidth.indexOf(hX_5._PCT)>0) { this.monitorSet=table2; hX_5.i.attachResizeMonitor(this.monitorSet, this.dispatchMonitorResize, true); } } } } HxG_5.prototype.JSFDataTable.prototype.uirelease=function (free) { if (this.monitorTimer) hX_5.i.killTimerTimed(this.monitorTimer); this.monitorTimer=null; if (free!=null) hX_5.uirelease(true); return true; } HxG_5.prototype.JSFDataTable.prototype.destroy=function () { if (this.monitorSet) hX_5.i.removeResizeMonitor(this.monitorSet); return true; } HxG_5.prototype.JSFDataTable.prototype.setValue=function (value, notify, returns) { var r=false; return r; } HxG_5.prototype.JSFDataTable.prototype.getValue=function(cast) { return null; } HxG_5.prototype.JSFDataTable.prototype.setAttribute=function(a) { hX_5.parseArg (this.attributeTable, this, a); if (this.HTMLrendered) this.redraw(); return true; } HxG_5.prototype.JSFDataTable.prototype.getAttribute=function (attribute) { return (hX_5.getArg(this.attributeTable, this, attribute)); } HxG_5.prototype.JSFDataTable.prototype.dispatchMonitorResize=function (evt) { evt=(evt) ? evt : ((event) ? event: null); if (evt) { if (hX_5.brw.isIE()) { var obj, src=((this.nodeType == hX_5.ELEMENT_NODE || this.nodeType == hX_5.DOCUMENT_NODE) ? this : this.parentNode); if (src) { obj=src.id; if (obj.lastIndexOf("head1")>0) obj=obj.substr(0,obj.length-5); else if (obj.lastIndexOf("head2")>0) obj=obj.substr(0,obj.length-5); else if (obj.lastIndexOf("foot1")>0) obj=obj.substr(0,obj.length-5); else if (obj.lastIndexOf("foot2")>0) obj=obj.substr(0,obj.length-5); obj=hX_5.getComponentById(obj); if (hX_5.brw.isIE()) { if (obj.monitorTimer!=null) hX_5.i.killTimerTimed(obj.monitorTimer); obj.monitorTimer=hX_5.i.startObjTimerTimed(obj, "resize", 10); } } } else hX_5.redraw(); } } HxG_5.prototype.JSFDataTable.prototype.dispatchTimer=function (item, action) { this.monitorTimer=null; this.redraw(); } HxG_5.prototype.getParentIdByType=function(id,type) { var parent=hX_5.getElementById(id); parent=parent.parentNode; while (parent != null) { if(parent.nodeName==type){ break; } parent=parent.parentNode; } if (parent==null) { return null; } if (parent.id==null || parent.id=="") { parent.id=type + "_parentof_"+ id; } return parent.id; } HxG_5.prototype.getParentOfType=function(obj,type) { var parent=obj.parentNode; while(parent!=null){ if(parent.nodeName==type) { return parent; } parent=parent.parentNode; } return null; } HxG_5.prototype.JSFBehaviorRowAction=function () { this.type="tablerowaction"; this.hiddenInputId=""; this.inputValue=""; this.colClass=null; this.actionId=""; this.url=""; this.inputObj=null; this.formObj=null; this.trObj=null; this.attributeTable=new Array(); this.attributeTable ['input-id']=['hiddenInputId',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['input-value']=['inputValue',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['action-id']=['actionId',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['url']=['url',hX_5.ARG_TO_NAN,false,null,null]; this.setAttribute(arguments); } HxG_5.prototype.JSFBehaviorRowAction.prototype=new hX_5.JSFBehavior(); HxG_5.prototype.JSFBehaviorRowAction.prototype.setAttributeCode=function() { if(this.actionId){ this.inputObj=hX_5.getElementById(this.actionId); this.trObj=hX_5.getParentOfType(this.inputObj,hX_5._TR); hX_5.addBehavior(hX_5.getParentIdByType(this.actionId,hX_5._TR),"onclick",new hX_5.JSFBehaviorGeneric("function: return hX_5.JSFBehaviorRowActionCheck(event);", "action:goto", "target:url('"+this.url+"')")); } else { this.inputObj=hX_5.getElementById(this.hiddenInputId); this.formObj=hX_5.getParentOfType(this.inputObj, hX_5._FRM); this.trObj=hX_5.getParentOfType(this.inputObj,hX_5._TR); } this.trObj.style.cursor="pointer"; return true; } HxG_5.prototype.JSFBehaviorRowAction.prototype.dispatchBehavior=function(thisObj, evt) { if (this.DOMobj != null && this.inputObj != null && this.formObj != null) { if (hX_5.JSFBehaviorRowActionCheck(evt)) { this.inputObj.disabled=false; this.inputObj.value=this.inputValue; this.formObj.submit(); this.inputObj.disabled=true; } } return; } HxG_5.prototype.JSFBehaviorRowActionCheck=function (evt) { evt=(evt) ? evt : ((event) ? event: null); var r=true, tgt; if (evt) { tgt=hX_5.evtGetTarget(evt); while (r && tgt!=null && tgt.tagName!=undefined) { if (tgt.tagName == hX_5._TAB || tgt.tagName == hX_5._TD || tgt.tagName == hX_5._TH || tgt.tagName == hX_5._TR) { tgt=null; } else { if (tgt.tagName == hX_5._ANC) r=!(tgt.onclick!=null || tgt.onmousedown!=null || (tgt.href!=null && tgt.href!=hX_5._E && tgt.href!=hX_5._LB)); tgt=tgt.parentNode; } } } return r; } HxG_5.prototype.JSFBehaviorRowCategory=function () { this.type="tablerowcategory"; this.catId=""; this.expImgSrc=""; this.colImgSrc=""; this.firstRowNum=""; this.lastRowNum=""; this.componentId=""; this.initImg=""; this.expImg=null; this.colImg=null; this.attributeTable=new Array(); this.attributeTable ['cat-id']=['catId',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['twistie-exp-img']=['expImgSrc',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['twistie-col-img']=['colImgSrc',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['first-row-num']=['firstRowNum',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['last-row-num']=['lastRowNum',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['component-id']=['componentId',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['init-img']=['initImg',hX_5.ARG_TO_NAN,false,null,null]; this.setAttribute(arguments); } HxG_5.prototype.JSFBehaviorRowCategory.prototype=new hX_5.JSFBehavior(); HxG_5.prototype.JSFBehaviorRowCategory.prototype.IMAGE_ARRAY=new Array(); HxG_5.prototype.JSFBehaviorRowCategory.prototype.setAttributeCode=function() { if(!this.expImgSrc){ this.expImgSrc=hX_5.currentResource().baseImgPath + 'datagrid_category_expanded_v3_0.gif'; } if(!this.colImgSrc){ this.colImgSrc=hX_5.currentResource().baseImgPath + 'datagrid_category_collapsed_v3_0.gif'; } for(var i=0;i < this.IMAGE_ARRAY.length;i=i+2) { if(this.IMAGE_ARRAY[i] == this.expImgSrc){ this.expImg=this.IMAGE_ARRAY[i+1]; } if(this.IMAGE_ARRAY[i] == this.colImgSrc){ this.colImg=this.IMAGE_ARRAY[i+1]; } } if(this.expImg==null){ this.expImg=new Image(); this.expImg.src=this.expImgSrc; this.IMAGE_ARRAY[this.IMAGE_ARRAY.length]=this.expImgSrc; this.IMAGE_ARRAY[this.IMAGE_ARRAY.length]=this.expImg; } if(this.colImg==null){ this.colImg=new Image(); this.colImg.src=this.colImgSrc; this.IMAGE_ARRAY[this.IMAGE_ARRAY.length]=this.colImgSrc; this.IMAGE_ARRAY[this.IMAGE_ARRAY.length]=this.colImg; } if(this.initImg){ var twistie=hX_5.getElementById(this.catId+'img'); if(this.initImg == 'exp'){ twistie.src=this.expImg.src; } else { twistie.src=this.colImg.src; } } return true; } HxG_5.prototype.JSFBehaviorRowCategory.prototype.setEventCode=function() { hX_5.bodyLoadRedrawB=true; return true; } HxG_5.prototype.JSFBehaviorRowCategory.prototype.dispatchBehavior=function(thisObj, evt) { var hideId=this.componentId + "_hide_"; this.processRows(this.catId); for(var cat_hide_rows=0;cat_hide_rows <= this.lastRowNum;cat_hide_rows++) { if((hX_5.getElementById(hideId+cat_hide_rows+''))!=null) { hX_5.getElementById(hideId+cat_hide_rows+'').parentNode.style.backgroundColor='red'; hX_5.getElementById(hideId+cat_hide_rows+'').parentNode.style.display='none'; } } hX_5.redraw(); return; } HxG_5.prototype.JSFBehaviorRowCategory.prototype.processRows=function(currentRow) { var rowNum=0,row=null,cell=null,twistieId=currentRow+'img',cellId=""; var twistie=hX_5.getElementById(twistieId); var collapsed=false; if (twistie.src == this.colImg.src){ collapsed=true; twistie.src=this.expImg.src; }else{ twistie.src=this.colImg.src; } var u=0; while(true) { cellId=currentRow+rowNum; if ((cell=hX_5.getElementById(cellId))!=null){ row=cell.parentNode; this.changeRowState(row, collapsed, false); } else if ((cell=hX_5.getElementById(cellId + '_e'))!=null){ row=cell.parentNode; this.changeRowState(row, collapsed, true); } else { break; } rowNum++; } return; } HxG_5.prototype.JSFBehaviorRowCategory.prototype.changeRowState=function(row, collapsed, subCategoryRow) { if(collapsed == true){ var children=row.childNodes; var isHiddenRow=false; for (var i=0; i < children.length; i++){ var cell=children[i]; this.restoreStateOfSubCategories(cell); var cellId=cell.id; if (cellId != null){ if (cellId.indexOf("_hide_") > 0){ isHiddenRow=true; break; } } } if (isHiddenRow == false && subCategoryRow == false){ row.style.display=''; } } else { row.style.display='none'; } } HxG_5.prototype.JSFBehaviorRowCategory.prototype.restoreStateOfSubCategories=function(cell) { if (cell != null && cell.tagName == "TD"){ var cellChildren=cell.childNodes; for (var j=0; j < cellChildren.length; j++){ var cellChild=cellChildren[j]; if (cellChild.tagName == HxG_5.prototype._BTN){ var buttonId=cellChild.id; var buttonCategoryId=buttonId.substring(0, buttonId.indexOf("button")); var twistie=hX_5.getElementById(buttonCategoryId+"img"); if (twistie.src == this.expImg.src){ var subCellId; var rowNum=0; while(true) { subCellId=buttonCategoryId+rowNum; if ((subCell=hX_5.getElementById(subCellId))!=null){ subCell.parentNode.style.display=''; }else{ break; } rowNum++; } } } } } } HxG_5.prototype.JSFBehaviorRowEditShowHide=function () { this.type="tableroweditshowhide"; this.divId=""; this.show=""; this.divObj=null; this.trObj=null; this.cloneObj=null; this.attributeTable=new Array(); this.attributeTable ['div-id']=['divId',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['show']=['show',hX_5.ARG_TO_NAN,false,null,null]; this.setAttribute(arguments); } HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype=new hX_5.JSFBehavior(); HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.setAttributeCode=function() { this.divObj=hX_5.getElementById(this.divId); this.trObj=hX_5.getParentOfType(this.divObj,hX_5._TR); return true; } HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.setEventCode=function() { this.cloneObj=this.divObj.cloneNode(true); } HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.destroy=function() { delete this.cloneObj; return true; } HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.dispatchBehavior=function(thisObj, evt) { if(this.divObj==null) { alert("RUNTIME ERROR: can't find element "+this.spanId); return; } if(!this.divObj.style) { return; } if(HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_SHOWN!=null) { HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_SHOWN.style.visibility="hidden"; } this.setVisible(this.show); HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_SHOWN=this.divObj; } HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.LAST_SHOWN=null; HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.setVisible=function(bVisible) { if(bVisible=="false") { this.divObj.style.visibility=hX_5._HI; this.restoreState(this.cloneObj, this.divObj); } else { this.divObj.style.visibility=hX_5._VS; this.setPosition(); } } HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.restoreState=function(objFrom, objTo) { if(objFrom.nodeName != objTo.nodeName) { return; } if(objFrom.childNodes.length != objTo.childNodes.length) { return; } if(objFrom.value) { objTo.value=objFrom.value; } for(var i=0; i0 && spanW>0 && ((spanL+spanW) > (pageL+pageW))) spanL=(pageL+pageW)-spanW; var spanT=(rowT + (rowH/2)) - (spanH/2); if (pageH>0 && spanH>0 && ((spanT+spanH) > (pageT+pageH))) spanT=(pageT+pageH)-spanH; if(spanL<0) spanL=0; if(spanT<0) spanT=0; var pY=(this.divObj.offsetParent)?hX_5.g.getAbsPosTop(this.divObj.offsetParent):0; var pX=(this.divObj.offsetParent)?hX_5.g.getAbsPosLeft(this.divObj.offsetParent):0; this.divObj.style.left=(spanL-pX) + hX_5._PX; this.divObj.style.top=(spanT-pY) + hX_5._PX; this.divObj.style.visibility=hX_5._VS; } HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.getX=function(obj) { var curleft=0; if (obj.offsetParent) { while (obj.offsetParent) { curleft+=obj.offsetLeft obj=obj.offsetParent; } } else if (obj.x) curleft+=obj.x; return curleft; } HxG_5.prototype.JSFBehaviorRowEditShowHide.prototype.getY=function(obj) { var curtop=0; if (obj.offsetParent) { while (obj.offsetParent) { curtop+=obj.offsetTop obj=obj.offsetParent; } } else if (obj.y) curtop+=obj.y; return curtop; } HxG_5.prototype.JSFBehaviorRowEditSave=function () { this.type="tableroweditsave"; this.divId=""; this.tableId=""; this.hiddenId=""; this.divObj=null; this.tableObj=null; this.formObj=null; this.hiddenObj=null; this.attributeTable=new Array(); this.attributeTable ['div-id']=['divId',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['table-id']=['tableId',hX_5.ARG_TO_NAN,false,null,null]; this.attributeTable ['hidden-id']=['hiddenId',hX_5.ARG_TO_NAN,false,null,null]; this.setAttribute(arguments); } HxG_5.prototype.JSFBehaviorRowEditSave.prototype=new hX_5.JSFBehavior(); HxG_5.prototype.JSFBehaviorRowEditSave.prototype.setAttributeCode=function() { this.divObj=hX_5.getElementById(this.divId); this.tableObj=hX_5.getElementById(this.tableId); this.formObj=hX_5.getParentOfType(this.tableObj,hX_5._FRM); this.hiddenObj=hX_5.getElementById(this.hiddenId); return true; } HxG_5.prototype.JSFBehaviorRowEditSave.prototype.dispatchBehavior=function(thisObj, evt) { if(this.formObj==null){ return; } this.hiddenObj.value="clicked"; this.formObj.submit(); } HxG_5.prototype.JSFWebPagerSubmit=function(strId, nIndex, strFormId) { if(strId==null) return; if(nIndex==null) return; if(strFormId==null) return; var objField=null; var objForm=null; var cur=null; if(document.getElementById) { objField=document.getElementById(strId); objForm=document.getElementById(strFormId); } if((objField==null)||(objForm==null)) { if((!document.forms[strFormId])||(!document.forms[strFormId].strId)) { return; } objField=document.forms[strFormId].strId; objForm=document.forms[strFormId]; } if(objField != null && objForm != null) { cur=objField.value; objField.value=nIndex; hX_5.i.fireEvent(objForm, "onSubmit") objForm.submit(); objField.value=cur; } } HxG_5.prototype.HxSelection=function(bSelected) { this.bSelected=bSelected; this.arrSelectionListeners=new Array(); } HxG_5.prototype.HxSelection.prototype.setSelected=function (bSelected) { if(this.bSelected==bSelected) { return; } this.bSelected=bSelected; this.fireSelectionListeners(); } HxG_5.prototype.HxSelection.prototype.isSelected=function () { return this.bSelected; } HxG_5.prototype.HxSelection.prototype.addSelectionListener=function (objListener) { if(!objListener) { alert("RUNTIME ERROR: null SelectionListener added to HxSelection"); } if(!objListener.selectionChanged) { alert("RUNTIME ERROR: SelectionListener does not proide selectionChanged method"); } this.arrSelectionListeners[this.arrSelectionListeners.length]=objListener; } HxG_5.prototype.HxSelection.prototype.fireSelectionListeners=function () { var len=this.arrSelectionListeners.length; for(var i=0; i= this.styleList.length) { this.index=0; } return this.styleList[this.index++]; } HxG_5.prototype.HxCheckImageListener=function(strImgId, strUnselectedUrl, strSelectedUrl, strUnselected, strSelected) { if(!hX_5.getElementById) { return; } this.objImg=hX_5.getElementById(strImgId); if(this.objImg==null) { alert("RUNTIME ERROR: cannot find item to set background on: "+strImgId); } this.strUnselectedUrl=strUnselectedUrl; this.strSelectedUrl=strSelectedUrl; this.strUnselected=strUnselected; this.strSelected=strSelected; } HxG_5.prototype.HxCheckImageListener.prototype.selectionChanged=function (objHxSelection) { if(objHxSelection.isSelected()) { this.objImg.src=this.strSelectedUrl; this.objImg.alt=this.strSelected; this.objImg.title=this.strSelected; } else { this.objImg.src=this.strUnselectedUrl; this.objImg.alt=this.strUnselected; this.objImg.title=this.strUnselected; } } HxG_5.prototype.HxCheckCellListener=function(strSpanId, strInputId, objGroup, objHxSelection){ if(!hX_5.getElementById) { return; } this.objTd=hX_5.getElementById(strSpanId); if(!this.objTd) { alert("RUNTIME ERROR: SPAN element "+strSpanId+" cannot be found"); return; } this.objTd=this.getParentOfTypeCell(this.objTd); if(!this.objTd) { alert("RUNTIME ERROR: TD element cannot be found"); return; } this.objInput=hX_5.getElementById(strInputId); if(!this.objInput) { alert("RUNTIME ERROR: INPUT element "+strInputId+" cannot be found"); return; } this.objGroup=objGroup; this.objHxSelection=objHxSelection; this.bindToDom(); this.objGroup.addMember(this); } HxG_5.prototype.HxCheckCellListener.prototype.bindToDom=function() { var thisObj=this; this.objTd.onmousedown=function (evt) { if(!evt) evt=window.event; thisObj.onMouseDown(evt); return false; } this.objTd.onclick=function (evt) { return false; } this.objTd.onkeypress=function (evt) { if(!evt) evt=window.event; thisObj.onKey(evt); } } HxG_5.prototype.HxCheckCellListener.prototype.onMouseDown=function(evt) { this.objHxSelection.setSelected(!this.objHxSelection.isSelected()); this.setSelected(this.objHxSelection.isSelected()); this.objGroup.fireMouseDown(evt, this.objHxSelection.isSelected()); } HxG_5.prototype.HxCheckCellListener.prototype.onKey=function(evt) { var nKey=evt.which | evt.keyCode; if(nKey!=32) { return; } this.objHxSelection.setSelected(!this.objHxSelection.isSelected()); this.setSelected(this.objHxSelection.isSelected()); } HxG_5.prototype.HxCheckCellListener.prototype.setSelected=function(bSelected) { if(bSelected && this.objGroup.isRadio){ for(x in this.objGroup.arrayMembers){ this.objGroup.arrayMembers[x].objHxSelection.setSelected(false); this.objGroup.arrayMembers[x].objInput.value=false; } } this.objHxSelection.setSelected(bSelected); this.objInput.value=bSelected; } HxG_5.prototype.HxCheckCellListener.prototype.isSelected=function() { return this.objHxSelection.isSelected(); } HxG_5.prototype.HxCheckCellListener.prototype.isInElementBoundary=function(pt) { var y=hX_5.g.getAbsPosTop(this.objTd), x=hX_5.g.getAbsPosLeft(this.objTd); if(pt.Xy || pt.X>x) return false; return true; } HxG_5.prototype.HxCheckCellListener.prototype.getParentOfType=function(node, strType) { if((node == null) || (strType==null)) { return null; } var parent=node.parentNode; while(parent!=null) { if(parent.nodeName==strType) { return parent; } parent=parent.parentNode; } return null; } HxG_5.prototype.HxCheckCellListener.prototype.getParentOfTypeCell=function(node) { if(node == null) { return null; } var parent=node.parentNode; while(parent!=null) { if(parent.nodeName==hX_5._TD ||parent.nodeName==hX_5._TH) { return parent; } parent=parent.parentNode; } return null; } HxG_5.prototype.HxCheckCellGroup=function(radio) { this.arrayMembers=new Array(); this.bSelected=true; this.isRadio=false; if(radio){ this.isRadio=true; } if(!hX_5.getElementById) { return; } } HxG_5.prototype.HxCheckCellGroup.prototype.GROUP=null; HxG_5.prototype.HxCheckCellGroup.prototype.addMember=function (objHxCheckCellListener) { this.arrayMembers[this.arrayMembers.length]=objHxCheckCellListener; } HxG_5.prototype.HxCheckCellGroup.prototype.isSelected=function() { return this.bSelected; } HxG_5.prototype.HxCheckCellGroup.prototype.setSelected=function(bSelected) { this.bSelected=bSelected; } HxG_5.prototype.HxCheckCellGroup.prototype.fireMouseDown=function(evt, bSelected) { this.setSelected(bSelected); hX_5.HxCheckCellGroup.prototype.GROUP=this; this.registerWindowListeners(evt); } HxG_5.prototype.HxCheckCellGroup.prototype.registerWindowListeners=function(evt) { if(document.attachEvent) { document.attachEvent("onmousemove", HxG_5.prototype.HxCheckCellGroup.prototype.onMouseEnterStatic); document.attachEvent("onmouseup", HxG_5.prototype.HxCheckCellGroup.prototype.onMouseUpStatic); document.attachEvent("onselectstart", HxG_5.prototype.HxCheckCellGroup.prototype.onSelectStartStatic); window.event.cancelBubble=true; window.event.returnValue=false; } else if(document.addEventListener) { document.addEventListener("mousemove", HxG_5.prototype.HxCheckCellGroup.prototype.onMouseEnterStatic, true); document.addEventListener("mouseup", HxG_5.prototype.HxCheckCellGroup.prototype.onMouseUpStatic, true); evt.preventDefault(); } } HxG_5.prototype.HxCheckCellGroup.prototype.onSelectStartStatic=function(evt) { return false; } HxG_5.prototype.HxCheckCellGroup.prototype.onMouseEnterStatic=function(evt) { if(!evt) evt=window.event; hX_5.HxCheckCellGroup.prototype.GROUP.onMouseEnter(evt); } HxG_5.prototype.HxCheckCellGroup.prototype.onMouseEnter=function(evt) { var len=this.arrayMembers.length; for(var i=0; i= objElement.childNodes.length) { return null; } return objElement.childNodes[nIdx]; } HxG_5.prototype.HxFocusChanger.prototype.getIndexInParent=function(objElement) { var objParent=objElement.parentNode; for(var i=0; i0); } HxG_5.prototype.HxDomIterator.prototype.next=function() { var obj=this.popFromStack(); if(obj==null) { return null; } if(obj.nextSibling) { this.pushToStack(obj.nextSibling); } if(obj.firstChild) { this.pushToStack(obj.firstChild); } return obj; } HxG_5.prototype.HxFocusAdder=function(strTableId, nPrev, nNext) { if(!hX_5.getElementById) { return; } var objTable=hX_5.getElementById(strTableId); if(objTable==null) { return; } var i, iterator, element, arrElements=objTable.getElementsByTagName(hX_5._TD); var y, iterator2, element2, arrElements2=objTable.getElementsByTagName(hX_5._TH); for(i=0; i