var $AdfDhtmlTreePeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlTreeTablePeer$$, "AdfDhtmlTreePeer", !1);
$goog$exportSymbol$$("AdfDhtmlTreePeer", $AdfDhtmlTreePeer$$);
$AdfDhtmlTreePeer$$.$InitSubclass$ = function $$AdfDhtmlTreePeer$$$$InitSubclass$$() {
  this.$_TREE_NODE_TEXT_ATTRIBUTE$ = "_afrNdTxt";
  this.$_TREE_ICON_EXPANDED$ = "af|tree::expanded-icon";
  this.$_TREE_ICON_COLLAPSED$ = "af|tree::collapsed-icon";
  this.$_TREE_ICON_ANIM$ = "af|tree::node-anim-icon";
  this.$_TREE_ICON_LEAF$ = "af|tree::leaf-icon";
  this.$_TREE_ICON_STYLE_EXPANDED$ = "af|tree::expanded-icon-style";
  this.$_TREE_ICON_STYLE_COLLAPSED$ = "af|tree::collapsed-icon-style";
  this.$_TREE_ICON_STYLE_ANIM$ = "af|tree::node-anim-icon-style";
  this.$_TREE_ICON_STYLE_LEAF$ = "af|tree::leaf-icon-style";
  this.$_TREE_ICON_STYLE_SELECTOR$ = "af|tree::selector-icon-style";
};
$goog$exportSymbol$$("AdfDhtmlTreePeer.InitSubclass", $AdfDhtmlTreePeer$$.$InitSubclass$);
$AdfDhtmlTreePeer$$.prototype.$HandleHeaderlessFocus$ = function $$AdfDhtmlTreePeer$$$$$HandleHeaderlessFocus$$() {
  var $attrs$$56$$ = {}, $lastRowKey$$5$$ = this.$GetLastRowKey$();
  if ($lastRowKey$$5$$) {
    var $row$$130$$ = this.$FindRowByKey$($lastRowKey$$5$$);
    $row$$130$$ && ($attrs$$56$$.$row$ = $row$$130$$.$tr$, $attrs$$56$$.$rowKey$ = $lastRowKey$$5$$);
  } else {
    $attrs$$56$$ = this.$GetFirstVisibleRowKeyAndRow$();
  }
  $attrs$$56$$.$row$ && $attrs$$56$$.$rowKey$ ? (this.$UpdateFocusManager$($AdfDhtmlTableBasePeer$$.$_TABLE_BODY_FOCUS_TYPE$, $attrs$$56$$.$rowKey$, $attrs$$56$$.$row$), $JSCompiler_StaticMethods__unclipRow$$(this, $attrs$$56$$.$row$)) : $AdfDhtmlTreePeer$$.$superclass$.$HandleHeaderlessFocus$.call(this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.HandleHeaderlessFocus", {$HandleHeaderlessFocus$:$AdfDhtmlTreePeer$$.prototype.$HandleHeaderlessFocus$});
$AdfDhtmlTreePeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlTreePeer$$$$$HandleComponentMouseOver$$($componentEvent$$510$$) {
  var $agent$$742$$ = $AdfAgent$$.$AGENT$, $target$$214$$ = $componentEvent$$510$$.$getNativeEventTarget$();
  if (null != $target$$214$$) {
    for (var $isNodeTextWrapper$$ = !1, $domElement$$575$$ = this.$getDomElement$();null != $target$$214$$ && 1 == $target$$214$$.nodeType && $target$$214$$ != $domElement$$575$$;) {
      if (null != $target$$214$$.getAttribute($AdfDhtmlTreePeer$$.$_TREE_NODE_TEXT_ATTRIBUTE$)) {
        $isNodeTextWrapper$$ = !0;
        break;
      }
      if (null != $target$$214$$.getAttribute($AdfDhtmlTableBasePeer$$.$_ROW_KEY$)) {
        break;
      }
      $target$$214$$ = $target$$214$$.parentNode;
    }
    if ($isNodeTextWrapper$$ && $agent$$742$$.$isClipped$($target$$214$$)) {
      $AdfDhtmlTooltipManager$$.$getInstance$().$showRollOverLabel$($target$$214$$);
      return;
    }
  }
  $AdfDhtmlTreePeer$$.$superclass$.$HandleComponentMouseOver$.call(this, $componentEvent$$510$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlTreePeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlTreePeer$$.prototype.$SetCursorToText$ = function $$AdfDhtmlTreePeer$$$$$SetCursorToText$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.SetCursorToText", {$SetCursorToText$:$AdfDhtmlTreePeer$$.prototype.$SetCursorToText$});
$AdfDhtmlTreePeer$$.prototype.$isDragAvailable$ = function $$AdfDhtmlTreePeer$$$$$isDragAvailable$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.isDragAvailable", {$isDragAvailable$:$AdfDhtmlTreePeer$$.prototype.$isDragAvailable$});
$AdfDhtmlTreePeer$$.prototype.$SupportsFocusRowNavigation$ = function $$AdfDhtmlTreePeer$$$$$SupportsFocusRowNavigation$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.SupportsFocusRowNavigation", {$SupportsFocusRowNavigation$:$AdfDhtmlTreePeer$$.prototype.$SupportsFocusRowNavigation$});
$AdfDhtmlTreePeer$$.prototype.$AllowCellNavigation$ = function $$AdfDhtmlTreePeer$$$$$AllowCellNavigation$$() {
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.AllowCellNavigation", {$AllowCellNavigation$:$AdfDhtmlTreePeer$$.prototype.$AllowCellNavigation$});
$AdfDhtmlTreePeer$$.prototype.$GetKeyboardContextMenuAlignHint$ = function $$AdfDhtmlTreePeer$$$$$GetKeyboardContextMenuAlignHint$$() {
  return AdfRichPopup.$ALIGN_END_BEFORE$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetKeyboardContextMenuAlignHint", {$GetKeyboardContextMenuAlignHint$:$AdfDhtmlTreePeer$$.prototype.$GetKeyboardContextMenuAlignHint$});
$AdfDhtmlTreePeer$$.prototype.$ResolveContextMenuAlignElement$ = function $$AdfDhtmlTreePeer$$$$$ResolveContextMenuAlignElement$$($row$$131$$) {
  return $AdfDomUtils$$.$getLastChildElement$($AdfDomUtils$$.$getFirstChildElement$($AdfDomUtils$$.$getFirstChildElement$($row$$131$$)));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.ResolveContextMenuAlignElement", {$ResolveContextMenuAlignElement$:$AdfDhtmlTreePeer$$.prototype.$ResolveContextMenuAlignElement$});
$AdfDhtmlTreePeer$$.prototype.$BlockInserted$ = function $$AdfDhtmlTreePeer$$$$$BlockInserted$$() {
  var $newWidth$$74_pcPeer$$4$$ = $JSCompiler_StaticMethods__getMaxBlockWidth$$(this);
  $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$$(this, $newWidth$$74_pcPeer$$4$$);
  ($newWidth$$74_pcPeer$$4$$ = this.$GetPanelCollectionPeer$()) && $newWidth$$74_pcPeer$$4$$.$updateRowSelectionContext$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.BlockInserted", {$BlockInserted$:$AdfDhtmlTreePeer$$.prototype.$BlockInserted$});
$AdfDhtmlTreePeer$$.prototype.$BlockDeleted$ = function $$AdfDhtmlTreePeer$$$$$BlockDeleted$$() {
  var $newWidth$$75_pcPeer$$5$$ = $JSCompiler_StaticMethods__getMaxBlockWidth$$(this);
  $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$$(this, $newWidth$$75_pcPeer$$5$$);
  ($newWidth$$75_pcPeer$$5$$ = this.$GetPanelCollectionPeer$()) && $newWidth$$75_pcPeer$$5$$.$updateRowSelectionContext$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.BlockDeleted", {$BlockDeleted$:$AdfDhtmlTreePeer$$.prototype.$BlockDeleted$});
$AdfDhtmlTreePeer$$.prototype.$GetDisclosureAnimationDuration$ = function $$AdfDhtmlTreePeer$$$$$GetDisclosureAnimationDuration$$() {
  return parseInt($AdfPage$$.$PAGE$.$getLookAndFeel$().$getSkinProperty$("af|tree-tr-node-disclosure-animation-duration"));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetDisclosureAnimationDuration", {$GetDisclosureAnimationDuration$:$AdfDhtmlTreePeer$$.prototype.$GetDisclosureAnimationDuration$});
function $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$$($JSCompiler_StaticMethods__adjustHorizontalScrollerRange$self$$, $width$$52$$) {
  var $dataBody$$145$$ = $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$self$$.$GetDataBody$(), $outer$$5_scroller$$39$$ = $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$self$$.$GetScroller$();
  $AdfDhtmlTableBasePeer$$.$FindFirstChildByTagName$($outer$$5_scroller$$39$$, "DIV").style.width = $width$$52$$ + "px";
  $outer$$5_scroller$$39$$ = $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$self$$.$getDomElement$();
  $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$self$$.$SizeDataBody$($dataBody$$145$$, $outer$$5_scroller$$39$$.clientWidth, $outer$$5_scroller$$39$$.clientHeight);
}
function $JSCompiler_StaticMethods__getMaxBlockWidth$$($JSCompiler_StaticMethods__getMaxBlockWidth$self_blocks$$19$$) {
  $JSCompiler_StaticMethods__getMaxBlockWidth$self_blocks$$19$$ = $JSCompiler_StaticMethods__getMaxBlockWidth$self_blocks$$19$$.$GetDataBody$().childNodes;
  for (var $width$$53$$ = 0, $i$$673$$ = 0;$i$$673$$ < $JSCompiler_StaticMethods__getMaxBlockWidth$self_blocks$$19$$.length;$i$$673$$++) {
    $width$$53$$ = Math.max($JSCompiler_StaticMethods__getMaxBlockWidth$self_blocks$$19$$[$i$$673$$].offsetWidth, $width$$53$$);
  }
  return $width$$53$$;
}
$AdfDhtmlTreePeer$$.prototype.$stretchLastColumn$ = function $$AdfDhtmlTreePeer$$$$$stretchLastColumn$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.stretchLastColumn", {$stretchLastColumn$:$AdfDhtmlTreePeer$$.prototype.$stretchLastColumn$});
$AdfDhtmlTreePeer$$.prototype.$GetIconNames$ = function $$AdfDhtmlTreePeer$$$$$GetIconNames$$() {
  var $iconNames$$ = {};
  $iconNames$$.$expanded$ = $AdfDhtmlTreePeer$$.$_TREE_ICON_EXPANDED$;
  $iconNames$$.collapsed = $AdfDhtmlTreePeer$$.$_TREE_ICON_COLLAPSED$;
  $iconNames$$.$anim$ = $AdfDhtmlTreePeer$$.$_TREE_ICON_ANIM$;
  $iconNames$$.$leaf$ = $AdfDhtmlTreePeer$$.$_TREE_ICON_LEAF$;
  return $iconNames$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetIconNames", {$GetIconNames$:$AdfDhtmlTreePeer$$.prototype.$GetIconNames$});
$AdfDhtmlTreePeer$$.prototype.$GetIconStyleNames$ = function $$AdfDhtmlTreePeer$$$$$GetIconStyleNames$$() {
  var $iconNames$$1$$ = {};
  $iconNames$$1$$.$expanded$ = $AdfDhtmlTreePeer$$.$_TREE_ICON_STYLE_EXPANDED$;
  $iconNames$$1$$.collapsed = $AdfDhtmlTreePeer$$.$_TREE_ICON_STYLE_COLLAPSED$;
  $iconNames$$1$$.$anim$ = $AdfDhtmlTreePeer$$.$_TREE_ICON_STYLE_ANIM$;
  $iconNames$$1$$.$leaf$ = $AdfDhtmlTreePeer$$.$_TREE_ICON_STYLE_LEAF$;
  $iconNames$$1$$.$selector$ = $AdfDhtmlTreePeer$$.$_TREE_ICON_STYLE_SELECTOR$;
  return $iconNames$$1$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetIconStyleNames", {$GetIconStyleNames$:$AdfDhtmlTreePeer$$.prototype.$GetIconStyleNames$});
$AdfDhtmlTreePeer$$.prototype.$_processColGroup$ = function $$AdfDhtmlTreePeer$$$$$_processColGroup$$() {
  return !1;
};
$AdfDhtmlTreePeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlTreePeer$$$$$ComponentRemoved$$($component$$2277$$) {
  $AdfDhtmlTooltipManager$$.$getInstance$().$hideRollOverLabel$();
  $AdfDhtmlTreePeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$2277$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlTreePeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlTreePeer$$.prototype.$GetActiveDataAnnouncementKey$ = function $$AdfDhtmlTreePeer$$$$$GetActiveDataAnnouncementKey$$($type$$192$$) {
  return $AdfDhtmlTreePeer$$.$msgMap$[$type$$192$$] || "AFActiveDataTreeRowInsert";
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetActiveDataAnnouncementKey", {$GetActiveDataAnnouncementKey$:$AdfDhtmlTreePeer$$.prototype.$GetActiveDataAnnouncementKey$});
$AdfDhtmlTreePeer$$.prototype.$GetColHeaderText$ = function $$AdfDhtmlTreePeer$$$$$GetColHeaderText$$() {
  return "";
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetColHeaderText", {$GetColHeaderText$:$AdfDhtmlTreePeer$$.prototype.$GetColHeaderText$});
$AdfDhtmlTreePeer$$.prototype.$GetUpdatedActiveValues$ = function $$AdfDhtmlTreePeer$$$$$GetUpdatedActiveValues$$($newValue$$174_td$$11$$, $type$$193$$, $oldValue$$109$$) {
  var $laf$$138_text$$46$$ = "";
  if ("update" !== $type$$193$$) {
    return $laf$$138_text$$46$$;
  }
  var $table$$69$$ = this.$getDomElement$();
  if (!$table$$69$$ || !this.$IsValidAnnouncement$($table$$69$$, $AdfAgent$$.$AGENT$, $type$$193$$)) {
    return $laf$$138_text$$46$$;
  }
  var $parent$$71$$;
  try {
    var $row$$inline_4912$$ = this.$GetRowKeyAndRow$($newValue$$174_td$$11$$, $table$$69$$)[1];
    $parent$$71$$ = this.$GetParentRowNodeText$($row$$inline_4912$$);
  } catch ($err$$inline_4913$$) {
    $AdfLogger$$.$LOGGER$.fine("Exception while trying to get the text for the parent row of the active row" + $err$$inline_4913$$), $parent$$71$$ = "";
  }
  $newValue$$174_td$$11$$ = $newValue$$174_td$$11$$.textContent;
  $laf$$138_text$$46$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
  "" == $parent$$71$$ ? ($laf$$138_text$$46$$ = $laf$$138_text$$46$$.$getTranslatedString$("AFActiveDataTreeRowUpdate3"), $laf$$138_text$$46$$ = TrFastMessageFormatUtils.format($laf$$138_text$$46$$, $oldValue$$109$$, $newValue$$174_td$$11$$)) : ($laf$$138_text$$46$$ = $laf$$138_text$$46$$.$getTranslatedString$("AFActiveDataTreeRowUpdate2"), $laf$$138_text$$46$$ = TrFastMessageFormatUtils.format($laf$$138_text$$46$$, $parent$$71$$, $oldValue$$109$$, $newValue$$174_td$$11$$));
  return $laf$$138_text$$46$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetUpdatedActiveValues", {$GetUpdatedActiveValues$:$AdfDhtmlTreePeer$$.prototype.$GetUpdatedActiveValues$});
$AdfDhtmlTreePeer$$.prototype.$GetParentRowNodeText$ = function $$AdfDhtmlTreePeer$$$$$GetParentRowNodeText$$($row$$133$$) {
  try {
    var $ancestorPath$$ = $row$$133$$.getAttribute($AdfDhtmlTreeTablePeer$$.$_CLIENT_ANCESTOR_PATH$);
    return $JSCompiler_StaticMethods__findParentRowByAncestorPath$$(this, $ancestorPath$$).textContent;
  } catch ($err$$9$$) {
    return $AdfLogger$$.$LOGGER$.fine("Exception while trying to get the text for the parent row of the active row" + $err$$9$$), "";
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetParentRowNodeText", {$GetParentRowNodeText$:$AdfDhtmlTreePeer$$.prototype.$GetParentRowNodeText$});
$AdfDhtmlTreePeer$$.prototype.$GetRowText$ = function $$AdfDhtmlTreePeer$$$$$GetRowText$$($rowKey$$130$$) {
  var $text$$47$$ = "";
  try {
    var $tr$$16$$ = this.$FindRowByKey$($rowKey$$130$$).$tr$, $text$$47$$ = $tr$$16$$.textContent.trim(), $parent$$72$$ = this.$GetParentRowNodeText$($tr$$16$$);
    if ("" !== $parent$$72$$) {
      var $parentMsg$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$().$getTranslatedString$("AFActiveDataTreeTableParent"), $text$$47$$ = TrFastMessageFormatUtils.format($parentMsg$$, $parent$$72$$, $text$$47$$)
    }
    return $text$$47$$;
  } catch ($err$$10$$) {
    return $AdfLogger$$.$LOGGER$.fine("Exception while trying to get the node text for the active data row" + $err$$10$$), $text$$47$$;
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetRowText", {$GetRowText$:$AdfDhtmlTreePeer$$.prototype.$GetRowText$});
$AdfDhtmlTreePeer$$.$msgMap$ = {update:"AFActiveDataTreeRowUpdate", remove:"AFActiveDataTreeRowDelete"};
$goog$exportSymbol$$("AdfDhtmlTreePeer.msgMap", $AdfDhtmlTreePeer$$.$msgMap$);
