var $AdfDhtmlTablePeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlTableBasePeer$$, "AdfDhtmlTablePeer", !1);
$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$ = function $$AdfDhtmlTablePeer$$$$$__getColumnResizeMargin$$() {
  return 3;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTablePeer.prototype.__getColumnResizeMargin", {$__getColumnResizeMargin$:$AdfDhtmlTablePeer$$.prototype.$__getColumnResizeMargin$});
$AdfDhtmlTablePeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlTablePeer$$$$$HandleComponentMouseOver$$($componentEvent$$495_siId$$1_sortedType$$4_th$$25$$) {
  if (!this.$_resizedTH$ && !this.$_reorderTH$) {
    var $agent$$732_row$$125_siElem$$6$$ = $AdfAgent$$.$AGENT$, $attrs$$54_supportsHover$$1_target$$210$$ = $componentEvent$$495_siId$$1_sortedType$$4_th$$25$$.$getNativeEventTarget$();
    if (this.$_scrollbarBehavior$ == $AdfDhtmlTableBasePeer$$.$_SCROLLBAR_BEHAVIOR_AUTOHIDE$ && this.$_scrollbarHidden$) {
      var $tagName$$10_vscroller$$1$$, $hscroller$$2$$;
      $JSCompiler_StaticMethods__hasSingleScroller$$(this) && !this.$_isPaged$ ? ($tagName$$10_vscroller$$1$$ = this.$GetScroller$(), $hscroller$$2$$ = this.$GetScroller$()) : ($tagName$$10_vscroller$$1$$ = this.$GetScroller$()[$AdfDhtmlTableBasePeer$$.$_VSCROLLER$], $hscroller$$2$$ = this.$GetScroller$()[$AdfDhtmlTableBasePeer$$.$_HSCROLLER$]);
      if (null != $hscroller$$2$$ && null != $hscroller$$2$$) {
        var $databody$$2_scrollerBarWidth$$1$$ = $tagName$$10_vscroller$$1$$.offsetWidth - $tagName$$10_vscroller$$1$$.clientWidth, $colFooter$$4_scrollerBarHeight$$1$$ = $hscroller$$2$$.offsetHeight - $hscroller$$2$$.clientHeight, $bottomLoadMore$$3_container$$64$$ = this.$getDomElement$(), $databodyWrapper_databodyWrapperStyle$$ = $agent$$732_row$$125_siElem$$6$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($bottomLoadMore$$3_container$$64$$.id, $AdfDhtmlTableBasePeer$$.$_DATAWRAPPER$));
        if ($databodyWrapper_databodyWrapperStyle$$) {
          $databodyWrapper_databodyWrapperStyle$$ = $databodyWrapper_databodyWrapperStyle$$.style;
          $databodyWrapper_databodyWrapperStyle$$.width = $bottomLoadMore$$3_container$$64$$.offsetWidth - $databody$$2_scrollerBarWidth$$1$$ - this.$_cachedScrollerWidthAddl$ + "px";
          $databodyWrapper_databodyWrapperStyle$$.height = $bottomLoadMore$$3_container$$64$$.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$$64$$.offsetWidth - $databody$$2_scrollerBarWidth$$1$$ - this.$_cachedScrollerWidthAddl$ + "px";
          }
          $databody$$2_scrollerBarWidth$$1$$ = this.$GetDataBody$();
          this.$_isBottomLoadMoreDisplayed$ ? ($bottomLoadMore$$3_container$$64$$ = $JSCompiler_StaticMethods__getLoadMore$$(this, !1), $databody$$2_scrollerBarWidth$$1$$.style.top = parseInt(this.$_hShiftLoadMoreDataBody$) + parseInt(this.$_hShiftDataBody$) + "px", $bottomLoadMore$$3_container$$64$$.style.top = parseInt(this.$_hShiftLoadMoreDataBody$) + parseInt(this.$_hShiftDataBody$) + "px", $bottomLoadMore$$3_container$$64$$.style.width = this.$_loadMoreAdjWidth$) : this.$_isTopLoadMoreDisplayed$ ? 
          $JSCompiler_StaticMethods__getLoadMore$$(this, !0).style.width = this.$_loadMoreAdjWidth$ : $databody$$2_scrollerBarWidth$$1$$.style.top = this.$_hShiftDataBody$;
          $tagName$$10_vscroller$$1$$.style.visibility = "";
          $hscroller$$2$$.style.visibility = "";
          this.$_scrollbarHidden$ = !1;
        }
      }
    }
    if (null != $attrs$$54_supportsHover$$1_target$$210$$ && ($tagName$$10_vscroller$$1$$ = $attrs$$54_supportsHover$$1_target$$210$$.tagName, "TD" != $tagName$$10_vscroller$$1$$ && "TH" != $tagName$$10_vscroller$$1$$ || !$attrs$$54_supportsHover$$1_target$$210$$.noWrap || $attrs$$54_supportsHover$$1_target$$210$$.title || this.$ApplyTooltipTitle$($attrs$$54_supportsHover$$1_target$$210$$), this.$SetCursorToText$(document, $attrs$$54_supportsHover$$1_target$$210$$, $tagName$$10_vscroller$$1$$), this.$_hoverHighlightRow$ && 
    ($attrs$$54_supportsHover$$1_target$$210$$ = this.$GetRowKeyAndRow$($attrs$$54_supportsHover$$1_target$$210$$, this.$getDomElement$()), null != $attrs$$54_supportsHover$$1_target$$210$$))) {
      $agent$$732_row$$125_siElem$$6$$ = $attrs$$54_supportsHover$$1_target$$210$$[1];
      $AdfDomUtils$$.$containsCSSClassName$($agent$$732_row$$125_siElem$$6$$, $AdfDhtmlTableBasePeer$$.$_SELECTED_CLASS$) || $AdfDomUtils$$.$addCSSClassName$($agent$$732_row$$125_siElem$$6$$, $AdfDhtmlTableBasePeer$$.$_HIGHLIGHTED_CLASS$);
      return;
    }
    this.$_headerless$ || ($componentEvent$$495_siId$$1_sortedType$$4_th$$25$$ = $JSCompiler_StaticMethods__getParentTH$$(this, $componentEvent$$495_siId$$1_sortedType$$4_th$$25$$.$getNativeEvent$())) && 2 > $componentEvent$$495_siId$$1_sortedType$$4_th$$25$$.colSpan && ($componentEvent$$495_siId$$1_sortedType$$4_th$$25$$ = $AdfRichUIPeer$$.$CreateSubId$($componentEvent$$495_siId$$1_sortedType$$4_th$$25$$.id, $AdfDhtmlTableBasePeer$$.$__SORT_INDICATOR$), $agent$$732_row$$125_siElem$$6$$ = $agent$$732_row$$125_siElem$$6$$.getElementById($componentEvent$$495_siId$$1_sortedType$$4_th$$25$$), 
    null != $agent$$732_row$$125_siElem$$6$$ && ($componentEvent$$495_siId$$1_sortedType$$4_th$$25$$ = $agent$$732_row$$125_siElem$$6$$.getAttribute($AdfDhtmlTableBasePeer$$.$_SORTED_TYPE$), $attrs$$54_supportsHover$$1_target$$210$$ = $agent$$732_row$$125_siElem$$6$$.getAttribute($AdfDhtmlTableBasePeer$$.$_SUPPORTS_HOVER$), null == $componentEvent$$495_siId$$1_sortedType$$4_th$$25$$ && $attrs$$54_supportsHover$$1_target$$210$$ && ($agent$$732_row$$125_siElem$$6$$.style.visibility = "")));
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTablePeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlTablePeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlTablePeer$$.prototype.$SetCursorToText$ = function $$AdfDhtmlTablePeer$$$$$SetCursorToText$$($document$$20$$, $currNode$$8_target$$211$$, $laf$$130_newSpan_tagName$$11$$) {
  var $dragSource$$20$$ = this.$getComponent$().$getDragSource$();
  if (("TD" == $laf$$130_newSpan_tagName$$11$$ || "SPAN" == $laf$$130_newSpan_tagName$$11$$ || "NOBR" == $laf$$130_newSpan_tagName$$11$$) && null == $currNode$$8_target$$211$$.getAttribute($AdfDhtmlTableBasePeer$$.$_ROW_HEADER$) && null != $dragSource$$20$$ && ($laf$$130_newSpan_tagName$$11$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), onlyTextNode = $JSCompiler_StaticMethods__getOnlyTextNode$$($currNode$$8_target$$211$$))) {
    if (($currNode$$8_target$$211$$ = onlyTextNode.parentNode) && "SPAN" == $currNode$$8_target$$211$$.nodeName && $currNode$$8_target$$211$$.parentNode && "A" != $currNode$$8_target$$211$$.parentNode.nodeName) {
      $AdfDhtmlTableBasePeer$$.$SetCursor$($currNode$$8_target$$211$$, "text"), $dragSource$$20$$ && $currNode$$8_target$$211$$.setAttribute($AdfDhtmlTableBasePeer$$.$_CELL_TEXT_KEY$, "on");
    } else {
      if ($currNode$$8_target$$211$$ && "TD" == $currNode$$8_target$$211$$.nodeName && ($AdfDomUtils$$.$containsCSSClassName$($currNode$$8_target$$211$$, $laf$$130_newSpan_tagName$$11$$.getStyleClass($AdfDhtmlTablePeer$$.$_COLUMN_DATA_CELL_CLASS$)) || $AdfDomUtils$$.$containsCSSClassName$($currNode$$8_target$$211$$, $laf$$130_newSpan_tagName$$11$$.getStyleClass($AdfDhtmlTablePeer$$.$_COLUMN_BANDED_DATA_CELL_CLASS$))) || "NOBR" == $currNode$$8_target$$211$$.nodeName) {
        $laf$$130_newSpan_tagName$$11$$ = $document$$20$$.createElement("span"), $laf$$130_newSpan_tagName$$11$$.appendChild($document$$20$$.createTextNode(onlyTextNode.nodeValue)), $AdfDhtmlTableBasePeer$$.$SetCursor$($laf$$130_newSpan_tagName$$11$$, "text"), $dragSource$$20$$ && $laf$$130_newSpan_tagName$$11$$.setAttribute($AdfDhtmlTableBasePeer$$.$_CELL_TEXT_KEY$, "on"), null == $currNode$$8_target$$211$$.replaceChild($laf$$130_newSpan_tagName$$11$$, onlyTextNode) && $AdfLogger$$.$LOGGER$.fine("unable to replace child textnode '", 
        onlyTextNode.nodeValue, "' with a span element '", $laf$$130_newSpan_tagName$$11$$, "for the current node ", $currNode$$8_target$$211$$);
      }
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTablePeer.prototype.SetCursorToText", {$SetCursorToText$:$AdfDhtmlTablePeer$$.prototype.$SetCursorToText$});
$AdfDhtmlTablePeer$$.prototype.$HandleComponentMouseOut$ = function $$AdfDhtmlTablePeer$$$$$HandleComponentMouseOut$$($componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$) {
  if (!this.$_resizedTH$ && !this.$_reorderTH$) {
    var $agent$$733_siElem$$inline_4826$$ = $AdfAgent$$.$AGENT$;
    if (this.$_scrollbarBehavior$ == $AdfDhtmlTableBasePeer$$.$_SCROLLBAR_BEHAVIOR_AUTOHIDE$) {
      var $container$$65_databody$$3$$ = this.$getDomElement$(), $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$ = $agent$$733_siElem$$inline_4826$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($container$$65_databody$$3$$.id, $AdfDhtmlTableBasePeer$$.$_DATAWRAPPER$));
      if ($bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$) {
        var $childEvent$$ = !1, $clientX$$7$$ = $componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$.$getNativeEvent$().clientX, $clientY$$6$$ = $componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$.$getNativeEvent$().clientY, $attrs$$55_supportsHover$$inline_4828_vscroller$$2$$, $hscroller$$3$$;
        $JSCompiler_StaticMethods__hasSingleScroller$$(this) && !this.$_isPaged$ ? ($attrs$$55_supportsHover$$inline_4828_vscroller$$2$$ = this.$GetScroller$(), $hscroller$$3$$ = this.$GetScroller$()) : ($attrs$$55_supportsHover$$inline_4828_vscroller$$2$$ = this.$GetScroller$()[$AdfDhtmlTableBasePeer$$.$_VSCROLLER$], $hscroller$$3$$ = this.$GetScroller$()[$AdfDhtmlTableBasePeer$$.$_HSCROLLER$]);
        if (null != $hscroller$$3$$ && null != $hscroller$$3$$ && !this.$_scrollbarHidden$) {
          var $scrollerBarWidth$$2$$ = $attrs$$55_supportsHover$$inline_4828_vscroller$$2$$.offsetWidth - $attrs$$55_supportsHover$$inline_4828_vscroller$$2$$.clientWidth, $scrollerBarHeight$$2$$ = $hscroller$$3$$.offsetHeight - $hscroller$$3$$.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$$ = !0);
          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$$65_databody$$3$$.offsetWidth + "px";
            $bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$.height = $container$$65_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$$65_databody$$3$$.offsetWidth + "px";
            }
            $container$$65_databody$$3$$ = this.$GetDataBody$();
            this.$_isBottomLoadMoreDisplayed$ ? ($bottomLoadMore$$4_colFooter$$5_databodyWrapper$$1_databodyWrapperStyle$$1$$ = $JSCompiler_StaticMethods__getLoadMore$$(this, !1), $container$$65_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, !0).style.width = this.$_loadMoreFullWidth$ : $container$$65_databody$$3$$.style.top = "0px";
            $attrs$$55_supportsHover$$inline_4828_vscroller$$2$$.style.visibility = "hidden";
            $hscroller$$3$$.style.visibility = "hidden";
            this.$_scrollbarHidden$ = !0;
          }
        }
      }
    }
    if (this.$_hoverHighlightRow$ && ($attrs$$55_supportsHover$$inline_4828_vscroller$$2$$ = this.$GetRowKeyAndRow$($componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$.$getNativeEventTarget$(), this.$getDomElement$()), null != $attrs$$55_supportsHover$$inline_4828_vscroller$$2$$)) {
      $AdfDomUtils$$.$removeCSSClassName$($attrs$$55_supportsHover$$inline_4828_vscroller$$2$$[1], $AdfDhtmlTableBasePeer$$.$_HIGHLIGHTED_CLASS$);
      return;
    }
    this.$_headerless$ || ($componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$ = $JSCompiler_StaticMethods__getParentTH$$(this, $componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$.$getNativeEvent$())) && 2 > $componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$.colSpan && $componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$ && 2 > $componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$.colSpan && ($componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$ = 
    $AdfRichUIPeer$$.$CreateSubId$($componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$.id, $AdfDhtmlTableBasePeer$$.$__SORT_INDICATOR$), $agent$$733_siElem$$inline_4826$$ = $agent$$733_siElem$$inline_4826$$.getElementById($componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$), null != $agent$$733_siElem$$inline_4826$$ && ($componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$ = $agent$$733_siElem$$inline_4826$$.getAttribute($AdfDhtmlTableBasePeer$$.$_SORTED_TYPE$), 
    $attrs$$55_supportsHover$$inline_4828_vscroller$$2$$ = $agent$$733_siElem$$inline_4826$$.getAttribute($AdfDhtmlTableBasePeer$$.$_SUPPORTS_HOVER$), null == $componentEvent$$496_siId$$inline_4825_sortedType$$inline_4827_th$$26$$ && $attrs$$55_supportsHover$$inline_4828_vscroller$$2$$ && ($agent$$733_siElem$$inline_4826$$.style.visibility = "hidden")));
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTablePeer.prototype.HandleComponentMouseOut", {$HandleComponentMouseOut$:$AdfDhtmlTablePeer$$.prototype.$HandleComponentMouseOut$});
$AdfDhtmlTablePeer$$.prototype.$HandleComponentTouchStart$ = function $$AdfDhtmlTablePeer$$$$$HandleComponentTouchStart$$($componentEvent$$497_target$$212$$) {
  if (1 == $componentEvent$$497_target$$212$$.$getTouchCount$()) {
    if (this.$__isOwnComponentEvent$($componentEvent$$497_target$$212$$)) {
      var $headerAction$$7$$ = this.$__getColumnHeaderMouseAction$($componentEvent$$497_target$$212$$.$getNativeEvent$());
      "resize" == ($headerAction$$7$$ ? $headerAction$$7$$.type : null) && $AdfDhtmlTablePeer$$.$superclass$.$__handleColumnResizing$.call(this, $componentEvent$$497_target$$212$$);
    }
    $componentEvent$$497_target$$212$$ = $componentEvent$$497_target$$212$$.$getNativeEventTarget$();
    this.$ApplyTooltipTitle$($componentEvent$$497_target$$212$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTablePeer.prototype.HandleComponentTouchStart", {$HandleComponentTouchStart$:$AdfDhtmlTablePeer$$.prototype.$HandleComponentTouchStart$});
