AdfRichUIPeer.createPeerClass(AdfDhtmlTableBasePeer,"AdfDhtmlTablePeer",!1);AdfDhtmlTablePeer.InitSubclass=function(){AdfRichUIPeer.addComponentEventHandlers(this,AdfComponentTouchEvent.TOUCH_START_EVENT_TYPE);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.MOUSE_IN_EVENT_TYPE,AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE);this._COLUMN_DATA_CELL_CLASS="af|column::data-cell";this._COLUMN_BANDED_DATA_CELL_CLASS="af|column::banded-data-cell"};AdfDhtmlTablePeer.prototype.__getColumnResizeMargin=function(){return 3};
AdfDhtmlTablePeer.prototype.HandleComponentMouseOver=function(a){if(!this._resizedTH&&!this._reorderTH){var b=AdfAgent.AGENT,d=a.getNativeEventTarget();if(this._scrollbarBehavior==AdfDhtmlTableBasePeer._SCROLLBAR_BEHAVIOR_AUTOHIDE&&this._scrollbarHidden){var e,f;this._hasSingleScroller()&&!this._isPaged?(e=this.GetScroller(),f=this.GetScroller()):(e=this.GetScroller()[AdfDhtmlTableBasePeer._VSCROLLER],f=this.GetScroller()[AdfDhtmlTableBasePeer._HSCROLLER]);if(null!=f&&null!=f){var g=e.offsetWidth-
e.clientWidth,h=f.offsetHeight-f.clientHeight,k=this.getDomElement(),l=b.getElementById(AdfRichUIPeer.CreateSubId(k.id,AdfDhtmlTableBasePeer._DATAWRAPPER));if(l){l=l.style;l.width=k.offsetWidth-g-this._cachedScrollerWidthAddl+"px";l.height=k.offsetHeight-this._cachedCHHeight-this._cachedCFHeight-this._cachedNBHeight-h-this._cachedScrollerHeightAddl+"px";if(h=this._getColumnFooter())h.style.width=k.offsetWidth-g-this._cachedScrollerWidthAddl+"px";g=this.GetDataBody();this._isBottomLoadMoreDisplayed?
(k=this._getLoadMore(!1),g.style.top=parseInt(this._hShiftLoadMoreDataBody)+parseInt(this._hShiftDataBody)+"px",k.style.top=parseInt(this._hShiftLoadMoreDataBody)+parseInt(this._hShiftDataBody)+"px",k.style.width=this._loadMoreAdjWidth):this._isTopLoadMoreDisplayed?this._getLoadMore(!0).style.width=this._loadMoreAdjWidth:g.style.top=this._hShiftDataBody;e.style.visibility="";f.style.visibility="";this._scrollbarHidden=!1}}}if(null!=d&&(e=d.tagName,("TD"==e||"TH"==e)&&(d.noWrap&&!d.title)&&this.ApplyTooltipTitle(d),
this.SetCursorToText(document,d,e),this._hoverHighlightRow&&(d=this.GetRowKeyAndRow(d,this.getDomElement()),null!=d))){b=d[1];AdfDomUtils.containsCSSClassName(b,AdfDhtmlTableBasePeer._SELECTED_CLASS)||AdfDomUtils.addCSSClassName(b,AdfDhtmlTableBasePeer._HIGHLIGHTED_CLASS);return}if(!this._headerless&&(a=this._getParentTH(a.getNativeEvent()))&&2>a.colSpan)a=AdfRichUIPeer.CreateSubId(a.id,AdfDhtmlTableBasePeer.__SORT_INDICATOR),b=b.getElementById(a),null!=b&&(a=b.getAttribute(AdfDhtmlTableBasePeer._SORTED_TYPE),
d=b.getAttribute(AdfDhtmlTableBasePeer._SUPPORTS_HOVER),null==a&&d&&(b.style.visibility=""))}};
AdfDhtmlTablePeer.prototype.SetCursorToText=function(a,b,d){var e=this.getComponent().getDragSource();if(("TD"==d||"SPAN"==d||"NOBR"==d)&&null==b.getAttribute(AdfDhtmlTableBasePeer._ROW_HEADER)&&null!=e)if(d=AdfPage.PAGE.getLookAndFeel(),onlyTextNode=this._getOnlyTextNode(b))if((b=onlyTextNode.parentNode)&&"SPAN"==b.nodeName&&b.parentNode&&"A"!=b.parentNode.nodeName)AdfDhtmlTableBasePeer.SetCursor(b,"text"),e&&b.setAttribute(AdfDhtmlTableBasePeer._CELL_TEXT_KEY,"on");else if(b&&"TD"==b.nodeName&&
(AdfDomUtils.containsCSSClassName(b,d.getStyleClass(AdfDhtmlTablePeer._COLUMN_DATA_CELL_CLASS))||AdfDomUtils.containsCSSClassName(b,d.getStyleClass(AdfDhtmlTablePeer._COLUMN_BANDED_DATA_CELL_CLASS)))||"NOBR"==b.nodeName)d=a.createElement("span"),d.appendChild(a.createTextNode(onlyTextNode.nodeValue)),AdfDhtmlTableBasePeer.SetCursor(d,"text"),e&&d.setAttribute(AdfDhtmlTableBasePeer._CELL_TEXT_KEY,"on"),null==b.replaceChild(d,onlyTextNode)&&AdfLogger.LOGGER.fine("unable to replace child textnode '",
onlyTextNode.nodeValue,"' with a span element '",d,"for the current node ",b)};
AdfDhtmlTablePeer.prototype.HandleComponentMouseOut=function(a){if(!this._resizedTH&&!this._reorderTH){var b=AdfAgent.AGENT;if(this._scrollbarBehavior==AdfDhtmlTableBasePeer._SCROLLBAR_BEHAVIOR_AUTOHIDE){var d=this.getDomElement(),e=b.getElementById(AdfRichUIPeer.CreateSubId(d.id,AdfDhtmlTableBasePeer._DATAWRAPPER));if(e){var f=!1,g=a.getNativeEvent().clientX,h=a.getNativeEvent().clientY,k,l;this._hasSingleScroller()&&!this._isPaged?(k=this.GetScroller(),l=this.GetScroller()):(k=this.GetScroller()[AdfDhtmlTableBasePeer._VSCROLLER],
l=this.GetScroller()[AdfDhtmlTableBasePeer._HSCROLLER]);if(null!=l&&null!=l&&!this._scrollbarHidden){var m=k.offsetWidth-k.clientWidth,n=l.offsetHeight-l.clientHeight,p=e.getBoundingClientRect();g>p.left+1&&(g<p.right-m-1&&h>p.top+1&&h<p.bottom-n-1)&&(f=!0);if(!f){e=e.style;e.width=d.offsetWidth+"px";e.height=d.offsetHeight-this._cachedCHHeight-this._cachedCFHeight-this._cachedNBHeight+"px";if(e=this._getColumnFooter())e.style.width=d.offsetWidth+"px";d=this.GetDataBody();this._isBottomLoadMoreDisplayed?
(e=this._getLoadMore(!1),d.style.top=this._hShiftLoadMoreDataBody,e.style.top=this._hShiftLoadMoreDataBody,e.style.width=this._loadMoreFullWidth):this._isTopLoadMoreDisplayed?this._getLoadMore(!0).style.width=this._loadMoreFullWidth:d.style.top="0px";k.style.visibility="hidden";l.style.visibility="hidden";this._scrollbarHidden=!0}}}}if(this._hoverHighlightRow&&(k=this.GetRowKeyAndRow(a.getNativeEventTarget(),this.getDomElement()),null!=k)){AdfDomUtils.removeCSSClassName(k[1],AdfDhtmlTableBasePeer._HIGHLIGHTED_CLASS);
return}this._headerless||(a=this._getParentTH(a.getNativeEvent()))&&2>a.colSpan&&this._hideColumnSortableIndicator(b,a)}};AdfDhtmlTablePeer.prototype.HandleComponentTouchStart=function(a){if(1==a.getTouchCount()){if(this.__isOwnComponentEvent(a)){var b=this.__getColumnHeaderMouseAction(a.getNativeEvent());"resize"==(b?b.type:null)&&AdfDhtmlTablePeer.superclass.__handleColumnResizing.call(this,a)}a=a.getNativeEventTarget();this.ApplyTooltipTitle(a)}};