var $AdfDhtmlTablePeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlTableBasePeer$$, "AdfDhtmlTablePeer", $JSCompiler_alias_FALSE$$);
$goog$exportSymbol$$("AdfDhtmlTablePeer", $AdfDhtmlTablePeer$$);
$AdfDhtmlTablePeer$$.$InitSubclass$ = function $$AdfDhtmlTablePeer$$$$InitSubclass$$() {
  $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"
};
$goog$exportSymbol$$("AdfDhtmlTablePeer.InitSubclass", $AdfDhtmlTablePeer$$.$InitSubclass$);
$AdfDhtmlTablePeer$$.prototype.$__getColumnResizeMargin$ = $JSCompiler_returnArg$$(3);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTablePeer.prototype.__getColumnResizeMargin", {$__getColumnResizeMargin$:$AdfDhtmlTablePeer$$.prototype.$__getColumnResizeMargin$});
$AdfDhtmlTablePeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlTablePeer$$$$$HandleComponentMouseOver$$($componentEvent$$416_siId$$1_sortedType$$4_th$$25$$) {
  if(!this.$_resizedTH$ && !this.$_reorderTH$) {
    var $agent$$648_row$$114_siElem$$6$$ = $AdfAgent$$.$AGENT$, $attrs$$55_supportsHover$$1_target$$194$$ = $componentEvent$$416_siId$$1_sortedType$$4_th$$25$$.$getNativeEventTarget$();
    if(this.$_scrollbarBehavior$ == $AdfDhtmlTableBasePeer$$.$_SCROLLBAR_BEHAVIOR_AUTOHIDE$ && this.$_scrollbarHidden$) {
      var $tagName$$8_vscroller$$1$$, $hscroller$$1$$;
      $JSCompiler_StaticMethods__hasSingleScroller$$(this) && !this.$_isPaged$ ? ($tagName$$8_vscroller$$1$$ = this.$GetScroller$(), $hscroller$$1$$ = this.$GetScroller$()) : ($tagName$$8_vscroller$$1$$ = this.$GetScroller$()[$AdfDhtmlTableBasePeer$$.$_VSCROLLER$], $hscroller$$1$$ = this.$GetScroller$()[$AdfDhtmlTableBasePeer$$.$_HSCROLLER$]);
      if($hscroller$$1$$ != $JSCompiler_alias_NULL$$ && $hscroller$$1$$ != $JSCompiler_alias_NULL$$) {
        var $databody$$2_scrollerBarWidth$$1$$ = $tagName$$8_vscroller$$1$$.offsetWidth - $tagName$$8_vscroller$$1$$.clientWidth, $colFooter$$4_scrollerBarHeight$$1$$ = $hscroller$$1$$.offsetHeight - $hscroller$$1$$.clientHeight, $bottomLoadMore$$3_container$$34$$ = this.$getDomElement$(), $databodyWrapper_databodyWrapperStyle$$ = $agent$$648_row$$114_siElem$$6$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($bottomLoadMore$$3_container$$34$$.id, $AdfDhtmlTableBasePeer$$.$_DATAWRAPPER$));
        if($databodyWrapper_databodyWrapperStyle$$) {
          $databodyWrapper_databodyWrapperStyle$$ = $databodyWrapper_databodyWrapperStyle$$.style;
          $databodyWrapper_databodyWrapperStyle$$.width = $bottomLoadMore$$3_container$$34$$.offsetWidth - $databody$$2_scrollerBarWidth$$1$$ - this.$_cachedScrollerWidthAddl$ + "px";
          $databodyWrapper_databodyWrapperStyle$$.height = $bottomLoadMore$$3_container$$34$$.offsetHeight - this.$_cachedCHHeight$ - this.$_cachedCFHeight$ - this.$_cachedNBHeight$ - $colFooter$$4_scrollerBarHeight$$1$$ - this.$_cachedScrollerHeightAddl$ + "px";
          if($colFooter$$4_scrollerBarHeight$$1$$ = $JSCompiler_StaticMethods__getColumnFooter$$(this)) {
            $colFooter$$4_scrollerBarHeight$$1$$.style.width = $bottomLoadMore$$3_container$$34$$.offsetWidth - $databody$$2_scrollerBarWidth$$1$$ - this.$_cachedScrollerWidthAddl$ + "px"
          }
          $databody$$2_scrollerBarWidth$$1$$ = this.$GetDataBody$();
          this.$_isBottomLoadMoreDisplayed$ ? ($bottomLoadMore$$3_container$$34$$ = $JSCompiler_StaticMethods__getLoadMore$$(this, $JSCompiler_alias_FALSE$$), $databody$$2_scrollerBarWidth$$1$$.style.top = parseInt(this.$_hShiftLoadMoreDataBody$) + parseInt(this.$_hShiftDataBody$) + "px", $bottomLoadMore$$3_container$$34$$.style.top = parseInt(this.$_hShiftLoadMoreDataBody$) + parseInt(this.$_hShiftDataBody$) + "px", $bottomLoadMore$$3_container$$34$$.style.width = this.$_loadMoreAdjWidth$) : this.$_isTopLoadMoreDisplayed$ ? 
          $JSCompiler_StaticMethods__getLoadMore$$(this, $JSCompiler_alias_TRUE$$).style.width = this.$_loadMoreAdjWidth$ : $databody$$2_scrollerBarWidth$$1$$.style.top = this.$_hShiftDataBody$;
          $tagName$$8_vscroller$$1$$.style.visibility = "";
          $hscroller$$1$$.style.visibility = "";
          this.$_scrollbarHidden$ = $JSCompiler_alias_FALSE$$
        }
      }
    }
    if($attrs$$55_supportsHover$$1_target$$194$$ != $JSCompiler_alias_NULL$$ && ($tagName$$8_vscroller$$1$$ = $attrs$$55_supportsHover$$1_target$$194$$.tagName, ("TD" == $tagName$$8_vscroller$$1$$ || "TH" == $tagName$$8_vscroller$$1$$) && ($attrs$$55_supportsHover$$1_target$$194$$.noWrap && !$attrs$$55_supportsHover$$1_target$$194$$.title) && this.$ApplyTooltipTitle$($attrs$$55_supportsHover$$1_target$$194$$), this.$SetCursorToText$(document, $attrs$$55_supportsHover$$1_target$$194$$, $tagName$$8_vscroller$$1$$), 
    this.$_hoverHighlightRow$ && ($attrs$$55_supportsHover$$1_target$$194$$ = this.$GetRowKeyAndRow$($attrs$$55_supportsHover$$1_target$$194$$, this.$getDomElement$()), $attrs$$55_supportsHover$$1_target$$194$$ != $JSCompiler_alias_NULL$$))) {
      $agent$$648_row$$114_siElem$$6$$ = $attrs$$55_supportsHover$$1_target$$194$$[1];
      $AdfDomUtils$$.$containsCSSClassName$($agent$$648_row$$114_siElem$$6$$, $AdfDhtmlTableBasePeer$$.$_SELECTED_CLASS$) || $AdfDomUtils$$.$addCSSClassName$($agent$$648_row$$114_siElem$$6$$, $AdfDhtmlTableBasePeer$$.$_HIGHLIGHTED_CLASS$);
      return
    }
    if(!this.$_headerless$ && ($componentEvent$$416_siId$$1_sortedType$$4_th$$25$$ = $JSCompiler_StaticMethods__getParentTH$$(this, $componentEvent$$416_siId$$1_sortedType$$4_th$$25$$.$getNativeEvent$())) && 2 > $componentEvent$$416_siId$$1_sortedType$$4_th$$25$$.colSpan) {
      $componentEvent$$416_siId$$1_sortedType$$4_th$$25$$ = $AdfRichUIPeer$$.$CreateSubId$($componentEvent$$416_siId$$1_sortedType$$4_th$$25$$.id, $AdfDhtmlTableBasePeer$$.$__SORT_INDICATOR$), $agent$$648_row$$114_siElem$$6$$ = $agent$$648_row$$114_siElem$$6$$.getElementById($componentEvent$$416_siId$$1_sortedType$$4_th$$25$$), $agent$$648_row$$114_siElem$$6$$ != $JSCompiler_alias_NULL$$ && ($componentEvent$$416_siId$$1_sortedType$$4_th$$25$$ = $agent$$648_row$$114_siElem$$6$$.getAttribute($AdfDhtmlTableBasePeer$$.$_SORTED_TYPE$), 
      $attrs$$55_supportsHover$$1_target$$194$$ = $agent$$648_row$$114_siElem$$6$$.getAttribute($AdfDhtmlTableBasePeer$$.$_SUPPORTS_HOVER$), $componentEvent$$416_siId$$1_sortedType$$4_th$$25$$ == $JSCompiler_alias_NULL$$ && $attrs$$55_supportsHover$$1_target$$194$$ && ($agent$$648_row$$114_siElem$$6$$.style.visibility = ""))
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTablePeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlTablePeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlTablePeer$$.prototype.$SetCursorToText$ = function $$AdfDhtmlTablePeer$$$$$SetCursorToText$$($document$$18$$, $currNode$$8_target$$195$$, $laf$$95_newSpan_tagName$$9$$) {
  var $dragSource$$20$$ = this.$getComponent$().$getDragSource$();
  if(("TD" == $laf$$95_newSpan_tagName$$9$$ || "SPAN" == $laf$$95_newSpan_tagName$$9$$ || "NOBR" == $laf$$95_newSpan_tagName$$9$$) && $currNode$$8_target$$195$$.getAttribute($AdfDhtmlTableBasePeer$$.$_ROW_HEADER$) == $JSCompiler_alias_NULL$$ && $dragSource$$20$$ != $JSCompiler_alias_NULL$$) {
    if($laf$$95_newSpan_tagName$$9$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), onlyTextNode = $JSCompiler_StaticMethods__getOnlyTextNode$$($currNode$$8_target$$195$$)) {
      if(($currNode$$8_target$$195$$ = onlyTextNode.parentNode) && "SPAN" == $currNode$$8_target$$195$$.nodeName && $currNode$$8_target$$195$$.parentNode && "A" != $currNode$$8_target$$195$$.parentNode.nodeName) {
        $AdfDhtmlTableBasePeer$$.$SetCursor$($currNode$$8_target$$195$$, "text"), $dragSource$$20$$ && $currNode$$8_target$$195$$.setAttribute($AdfDhtmlTableBasePeer$$.$_CELL_TEXT_KEY$, "on")
      }else {
        if($currNode$$8_target$$195$$ && "TD" == $currNode$$8_target$$195$$.nodeName && ($AdfDomUtils$$.$containsCSSClassName$($currNode$$8_target$$195$$, $laf$$95_newSpan_tagName$$9$$.getStyleClass($AdfDhtmlTablePeer$$.$_COLUMN_DATA_CELL_CLASS$)) || $AdfDomUtils$$.$containsCSSClassName$($currNode$$8_target$$195$$, $laf$$95_newSpan_tagName$$9$$.getStyleClass($AdfDhtmlTablePeer$$.$_COLUMN_BANDED_DATA_CELL_CLASS$))) || "NOBR" == $currNode$$8_target$$195$$.nodeName) {
          $laf$$95_newSpan_tagName$$9$$ = $document$$18$$.createElement("span"), $laf$$95_newSpan_tagName$$9$$.appendChild($document$$18$$.createTextNode(onlyTextNode.nodeValue)), $AdfDhtmlTableBasePeer$$.$SetCursor$($laf$$95_newSpan_tagName$$9$$, "text"), $dragSource$$20$$ && $laf$$95_newSpan_tagName$$9$$.setAttribute($AdfDhtmlTableBasePeer$$.$_CELL_TEXT_KEY$, "on"), $currNode$$8_target$$195$$.replaceChild($laf$$95_newSpan_tagName$$9$$, onlyTextNode) == $JSCompiler_alias_NULL$$ && $AdfLogger$$.$LOGGER$.fine("unable to replace child textnode '", 
          onlyTextNode.nodeValue, "' with a span element '", $laf$$95_newSpan_tagName$$9$$, "for the current node ", $currNode$$8_target$$195$$)
        }
      }
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTablePeer.prototype.SetCursorToText", {$SetCursorToText$:$AdfDhtmlTablePeer$$.prototype.$SetCursorToText$});
$AdfDhtmlTablePeer$$.prototype.$HandleComponentMouseOut$ = function $$AdfDhtmlTablePeer$$$$$HandleComponentMouseOut$$($componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$) {
  if(!this.$_resizedTH$ && !this.$_reorderTH$) {
    var $agent$$649_siElem$$inline_4309$$ = $AdfAgent$$.$AGENT$;
    if(this.$_scrollbarBehavior$ == $AdfDhtmlTableBasePeer$$.$_SCROLLBAR_BEHAVIOR_AUTOHIDE$) {
      var $container$$35_databody$$3$$ = this.$getDomElement$(), $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$ = $agent$$649_siElem$$inline_4309$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($container$$35_databody$$3$$.id, $AdfDhtmlTableBasePeer$$.$_DATAWRAPPER$));
      if($bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$) {
        var $childEvent$$ = $JSCompiler_alias_FALSE$$, $clientX$$7$$ = $componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$.$getNativeEvent$().clientX, $clientY$$6$$ = $componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$.$getNativeEvent$().clientY, $attrs$$56_supportsHover$$inline_4311_vscroller$$2$$, $hscroller$$2$$;
        $JSCompiler_StaticMethods__hasSingleScroller$$(this) && !this.$_isPaged$ ? ($attrs$$56_supportsHover$$inline_4311_vscroller$$2$$ = this.$GetScroller$(), $hscroller$$2$$ = this.$GetScroller$()) : ($attrs$$56_supportsHover$$inline_4311_vscroller$$2$$ = this.$GetScroller$()[$AdfDhtmlTableBasePeer$$.$_VSCROLLER$], $hscroller$$2$$ = this.$GetScroller$()[$AdfDhtmlTableBasePeer$$.$_HSCROLLER$]);
        if($hscroller$$2$$ != $JSCompiler_alias_NULL$$ && $hscroller$$2$$ != $JSCompiler_alias_NULL$$ && !this.$_scrollbarHidden$) {
          var $scrollerBarWidth$$2$$ = $attrs$$56_supportsHover$$inline_4311_vscroller$$2$$.offsetWidth - $attrs$$56_supportsHover$$inline_4311_vscroller$$2$$.clientWidth, $scrollerBarHeight$$2$$ = $hscroller$$2$$.offsetHeight - $hscroller$$2$$.clientHeight, $boundingRect$$20$$ = $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$.getBoundingClientRect();
          $clientX$$7$$ > $boundingRect$$20$$.left + 1 && ($clientX$$7$$ < $boundingRect$$20$$.right - $scrollerBarWidth$$2$$ - 1 && $clientY$$6$$ > $boundingRect$$20$$.top + 1 && $clientY$$6$$ < $boundingRect$$20$$.bottom - $scrollerBarHeight$$2$$ - 1) && ($childEvent$$ = $JSCompiler_alias_TRUE$$);
          if(!$childEvent$$) {
            $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$ = $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$.style;
            $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$.width = $container$$35_databody$$3$$.offsetWidth + "px";
            $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$.height = $container$$35_databody$$3$$.offsetHeight - this.$_cachedCHHeight$ - this.$_cachedCFHeight$ - this.$_cachedNBHeight$ + "px";
            if($bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$ = $JSCompiler_StaticMethods__getColumnFooter$$(this)) {
              $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$.style.width = $container$$35_databody$$3$$.offsetWidth + "px"
            }
            $container$$35_databody$$3$$ = this.$GetDataBody$();
            this.$_isBottomLoadMoreDisplayed$ ? ($bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$ = $JSCompiler_StaticMethods__getLoadMore$$(this, $JSCompiler_alias_FALSE$$), $container$$35_databody$$3$$.style.top = this.$_hShiftLoadMoreDataBody$, $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$.style.top = this.$_hShiftLoadMoreDataBody$, $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$.style.width = this.$_loadMoreFullWidth$) : 
            this.$_isTopLoadMoreDisplayed$ ? $JSCompiler_StaticMethods__getLoadMore$$(this, $JSCompiler_alias_TRUE$$).style.width = this.$_loadMoreFullWidth$ : $container$$35_databody$$3$$.style.top = "0px";
            $attrs$$56_supportsHover$$inline_4311_vscroller$$2$$.style.visibility = "hidden";
            $hscroller$$2$$.style.visibility = "hidden";
            this.$_scrollbarHidden$ = $JSCompiler_alias_TRUE$$
          }
        }
      }
    }
    if(this.$_hoverHighlightRow$ && ($attrs$$56_supportsHover$$inline_4311_vscroller$$2$$ = this.$GetRowKeyAndRow$($componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$.$getNativeEventTarget$(), this.$getDomElement$()), $attrs$$56_supportsHover$$inline_4311_vscroller$$2$$ != $JSCompiler_alias_NULL$$)) {
      $AdfDomUtils$$.$removeCSSClassName$($attrs$$56_supportsHover$$inline_4311_vscroller$$2$$[1], $AdfDhtmlTableBasePeer$$.$_HIGHLIGHTED_CLASS$);
      return
    }
    if(!this.$_headerless$ && ($componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$ = $JSCompiler_StaticMethods__getParentTH$$(this, $componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$.$getNativeEvent$())) && 2 > $componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$.colSpan && $componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$ && 2 > $componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$.colSpan) {
      $componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$ = $AdfRichUIPeer$$.$CreateSubId$($componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$.id, $AdfDhtmlTableBasePeer$$.$__SORT_INDICATOR$), $agent$$649_siElem$$inline_4309$$ = $agent$$649_siElem$$inline_4309$$.getElementById($componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$), $agent$$649_siElem$$inline_4309$$ != $JSCompiler_alias_NULL$$ && ($componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$ = 
      $agent$$649_siElem$$inline_4309$$.getAttribute($AdfDhtmlTableBasePeer$$.$_SORTED_TYPE$), $attrs$$56_supportsHover$$inline_4311_vscroller$$2$$ = $agent$$649_siElem$$inline_4309$$.getAttribute($AdfDhtmlTableBasePeer$$.$_SUPPORTS_HOVER$), $componentEvent$$417_siId$$inline_4308_sortedType$$inline_4310_th$$26$$ == $JSCompiler_alias_NULL$$ && $attrs$$56_supportsHover$$inline_4311_vscroller$$2$$ && ($agent$$649_siElem$$inline_4309$$.style.visibility = "hidden"))
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTablePeer.prototype.HandleComponentMouseOut", {$HandleComponentMouseOut$:$AdfDhtmlTablePeer$$.prototype.$HandleComponentMouseOut$});
$AdfDhtmlTablePeer$$.prototype.$HandleComponentTouchStart$ = function $$AdfDhtmlTablePeer$$$$$HandleComponentTouchStart$$($componentEvent$$418_target$$196$$) {
  if(1 == $componentEvent$$418_target$$196$$.$getTouchCount$()) {
    if(this.$__isOwnComponentEvent$($componentEvent$$418_target$$196$$)) {
      var $headerAction$$7$$ = this.$__getColumnHeaderMouseAction$($componentEvent$$418_target$$196$$.$getNativeEvent$());
      "resize" == ($headerAction$$7$$ ? $headerAction$$7$$.type : $JSCompiler_alias_NULL$$) && $AdfDhtmlTablePeer$$.$superclass$.$__handleColumnResizing$.call(this, $componentEvent$$418_target$$196$$)
    }
    $componentEvent$$418_target$$196$$ = $componentEvent$$418_target$$196$$.$getNativeEventTarget$();
    this.$ApplyTooltipTitle$($componentEvent$$418_target$$196$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTablePeer.prototype.HandleComponentTouchStart", {$HandleComponentTouchStart$:$AdfDhtmlTablePeer$$.prototype.$HandleComponentTouchStart$});
