var $AdfDhtmlTreePeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlTreeTablePeer$$, "AdfDhtmlTreePeer", $JSCompiler_alias_FALSE$$);
$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$$57$$ = {}, $lastRowKey$$5$$ = this.$GetLastRowKey$();
  if($lastRowKey$$5$$) {
    var $row$$119$$ = this.$FindRowByKey$($lastRowKey$$5$$);
    $row$$119$$ && ($attrs$$57$$.$row$ = $row$$119$$.$tr$, $attrs$$57$$.$rowKey$ = $lastRowKey$$5$$)
  }else {
    $attrs$$57$$ = this.$GetFirstVisibleRowKeyAndRow$()
  }
  $attrs$$57$$.$row$ && $attrs$$57$$.$rowKey$ ? (this.$UpdateFocusManager$($AdfDhtmlTableBasePeer$$.$_TABLE_BODY_FOCUS_TYPE$, $attrs$$57$$.$rowKey$, $attrs$$57$$.$row$), $JSCompiler_StaticMethods__unclipRow$$(this, $attrs$$57$$.$row$)) : $AdfDhtmlTreePeer$$.$superclass$.$HandleHeaderlessFocus$.call(this)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.HandleHeaderlessFocus", {$HandleHeaderlessFocus$:$AdfDhtmlTreePeer$$.prototype.$HandleHeaderlessFocus$});
$AdfDhtmlTreePeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlTreePeer$$$$$HandleComponentMouseOver$$($componentEvent$$429$$) {
  var $agent$$657$$ = $AdfAgent$$.$AGENT$, $target$$198$$ = $componentEvent$$429$$.$getNativeEventTarget$();
  if($target$$198$$ != $JSCompiler_alias_NULL$$) {
    for(var $isNodeTextWrapper$$ = $JSCompiler_alias_FALSE$$, $domElement$$501$$ = this.$getDomElement$();$target$$198$$ != $JSCompiler_alias_NULL$$ && 1 == $target$$198$$.nodeType && $target$$198$$ != $domElement$$501$$;) {
      if($target$$198$$.getAttribute($AdfDhtmlTreePeer$$.$_TREE_NODE_TEXT_ATTRIBUTE$) != $JSCompiler_alias_NULL$$) {
        $isNodeTextWrapper$$ = $JSCompiler_alias_TRUE$$;
        break
      }
      if($target$$198$$.getAttribute($AdfDhtmlTableBasePeer$$.$_ROW_KEY$) != $JSCompiler_alias_NULL$$) {
        break
      }
      $target$$198$$ = $target$$198$$.parentNode
    }
    if($isNodeTextWrapper$$ && $agent$$657$$.$isClipped$($target$$198$$)) {
      $AdfDhtmlTooltipManager$$.$getInstance$().$showRollOverLabel$($target$$198$$);
      return
    }
  }
  $AdfDhtmlTreePeer$$.$superclass$.$HandleComponentMouseOver$.call(this, $componentEvent$$429$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlTreePeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlTreePeer$$.prototype.$SetCursorToText$ = $JSCompiler_emptyFn$$();
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.SetCursorToText", {$SetCursorToText$:$AdfDhtmlTreePeer$$.prototype.$SetCursorToText$});
$AdfDhtmlTreePeer$$.prototype.$isDragAvailable$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.isDragAvailable", {$isDragAvailable$:$AdfDhtmlTreePeer$$.prototype.$isDragAvailable$});
$AdfDhtmlTreePeer$$.prototype.$SupportsFocusRowNavigation$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.SupportsFocusRowNavigation", {$SupportsFocusRowNavigation$:$AdfDhtmlTreePeer$$.prototype.$SupportsFocusRowNavigation$});
$AdfDhtmlTreePeer$$.prototype.$AllowCellNavigation$ = $JSCompiler_returnArg$$($JSCompiler_alias_FALSE$$);
$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$$120$$) {
  return $AdfDomUtils$$.$getLastChildElement$($AdfDomUtils$$.$getFirstChildElement$($AdfDomUtils$$.$getFirstChildElement$($row$$120$$)))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.ResolveContextMenuAlignElement", {$ResolveContextMenuAlignElement$:$AdfDhtmlTreePeer$$.prototype.$ResolveContextMenuAlignElement$});
$AdfDhtmlTreePeer$$.prototype.$BlockInserted$ = function $$AdfDhtmlTreePeer$$$$$BlockInserted$$() {
  var $newWidth$$68_pcPeer$$4$$ = $JSCompiler_StaticMethods__getMaxBlockWidth$$(this);
  $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$$(this, $newWidth$$68_pcPeer$$4$$);
  ($newWidth$$68_pcPeer$$4$$ = this.$GetPanelCollectionPeer$()) && $newWidth$$68_pcPeer$$4$$.$updateRowSelectionContext$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.BlockInserted", {$BlockInserted$:$AdfDhtmlTreePeer$$.prototype.$BlockInserted$});
$AdfDhtmlTreePeer$$.prototype.$BlockDeleted$ = function $$AdfDhtmlTreePeer$$$$$BlockDeleted$$() {
  var $newWidth$$69_pcPeer$$5$$ = $JSCompiler_StaticMethods__getMaxBlockWidth$$(this);
  $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$$(this, $newWidth$$69_pcPeer$$5$$);
  ($newWidth$$69_pcPeer$$5$$ = this.$GetPanelCollectionPeer$()) && $newWidth$$69_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$$51$$) {
  var $dataBody$$142$$ = $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$self$$.$GetDataBody$(), $outer$$4_scroller$$39$$ = $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$self$$.$GetScroller$();
  $AdfDhtmlTableBasePeer$$.$FindFirstChildByTagName$($outer$$4_scroller$$39$$, "DIV").style.width = $width$$51$$ + "px";
  $outer$$4_scroller$$39$$ = $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$self$$.$getDomElement$();
  $JSCompiler_StaticMethods__adjustHorizontalScrollerRange$self$$.$SizeDataBody$($dataBody$$142$$, $outer$$4_scroller$$39$$.clientWidth, $outer$$4_scroller$$39$$.clientHeight)
}
function $JSCompiler_StaticMethods__getMaxBlockWidth$$($JSCompiler_StaticMethods__getMaxBlockWidth$self_blocks$$20$$) {
  $JSCompiler_StaticMethods__getMaxBlockWidth$self_blocks$$20$$ = $JSCompiler_StaticMethods__getMaxBlockWidth$self_blocks$$20$$.$GetDataBody$().childNodes;
  for(var $width$$52$$ = 0, $i$$555$$ = 0;$i$$555$$ < $JSCompiler_StaticMethods__getMaxBlockWidth$self_blocks$$20$$.length;$i$$555$$++) {
    $width$$52$$ = Math.max($JSCompiler_StaticMethods__getMaxBlockWidth$self_blocks$$20$$[$i$$555$$].offsetWidth, $width$$52$$)
  }
  return $width$$52$$
}
$AdfDhtmlTreePeer$$.prototype.$stretchLastColumn$ = $JSCompiler_emptyFn$$();
$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$ = $JSCompiler_returnArg$$($JSCompiler_alias_FALSE$$);
$AdfDhtmlTreePeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlTreePeer$$$$$ComponentRemoved$$($component$$1712$$) {
  $AdfDhtmlTooltipManager$$.$getInstance$().$hideRollOverLabel$();
  $AdfDhtmlTreePeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$1712$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlTreePeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlTreePeer$$.prototype.$GetActiveDataAnnouncementKey$ = function $$AdfDhtmlTreePeer$$$$$GetActiveDataAnnouncementKey$$($type$$157$$) {
  return $AdfDhtmlTreePeer$$.$msgMap$[$type$$157$$] || "AFActiveDataTreeRowInsert"
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetActiveDataAnnouncementKey", {$GetActiveDataAnnouncementKey$:$AdfDhtmlTreePeer$$.prototype.$GetActiveDataAnnouncementKey$});
$AdfDhtmlTreePeer$$.prototype.$GetColHeaderText$ = $JSCompiler_returnArg$$("");
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetColHeaderText", {$GetColHeaderText$:$AdfDhtmlTreePeer$$.prototype.$GetColHeaderText$});
$AdfDhtmlTreePeer$$.prototype.$GetUpdatedActiveValues$ = function $$AdfDhtmlTreePeer$$$$$GetUpdatedActiveValues$$($newValue$$150_td$$10$$, $type$$158$$, $oldValue$$106$$) {
  var $laf$$98_text$$44$$ = "";
  if("update" !== $type$$158$$) {
    return $laf$$98_text$$44$$
  }
  var $table$$66$$ = this.$getDomElement$();
  if(!$table$$66$$ || !this.$IsValidAnnouncement$($table$$66$$, $AdfAgent$$.$AGENT$, $type$$158$$)) {
    return $laf$$98_text$$44$$
  }
  var $parent$$67$$;
  try {
    var $row$$inline_4395$$ = this.$GetRowKeyAndRow$($newValue$$150_td$$10$$, $table$$66$$)[1];
    $parent$$67$$ = this.$GetParentRowNodeText$($row$$inline_4395$$)
  }catch($err$$inline_4396$$) {
    $AdfLogger$$.$LOGGER$.fine("Exception while trying to get the text for the parent row of the active row" + $err$$inline_4396$$), $parent$$67$$ = ""
  }
  $newValue$$150_td$$10$$ = $newValue$$150_td$$10$$.textContent;
  $laf$$98_text$$44$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$();
  "" == $parent$$67$$ ? ($laf$$98_text$$44$$ = $laf$$98_text$$44$$.$getTranslatedString$("AFActiveDataTreeRowUpdate3"), $laf$$98_text$$44$$ = TrFastMessageFormatUtils.format($laf$$98_text$$44$$, $oldValue$$106$$, $newValue$$150_td$$10$$)) : ($laf$$98_text$$44$$ = $laf$$98_text$$44$$.$getTranslatedString$("AFActiveDataTreeRowUpdate2"), $laf$$98_text$$44$$ = TrFastMessageFormatUtils.format($laf$$98_text$$44$$, $parent$$67$$, $oldValue$$106$$, $newValue$$150_td$$10$$));
  return $laf$$98_text$$44$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetUpdatedActiveValues", {$GetUpdatedActiveValues$:$AdfDhtmlTreePeer$$.prototype.$GetUpdatedActiveValues$});
$AdfDhtmlTreePeer$$.prototype.$GetParentRowNodeText$ = function $$AdfDhtmlTreePeer$$$$$GetParentRowNodeText$$($row$$122$$) {
  try {
    var $ancestorPath$$ = $row$$122$$.getAttribute($AdfDhtmlTreeTablePeer$$.$_CLIENT_ANCESTOR_PATH$);
    return $JSCompiler_StaticMethods__findParentRowByAncestorPath$$(this, $ancestorPath$$).textContent
  }catch($err$$7$$) {
    return $AdfLogger$$.$LOGGER$.fine("Exception while trying to get the text for the parent row of the active row" + $err$$7$$), ""
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetParentRowNodeText", {$GetParentRowNodeText$:$AdfDhtmlTreePeer$$.prototype.$GetParentRowNodeText$});
$AdfDhtmlTreePeer$$.prototype.$GetRowText$ = function $$AdfDhtmlTreePeer$$$$$GetRowText$$($rowKey$$131$$) {
  var $text$$45$$ = "";
  try {
    var $tr$$13$$ = this.$FindRowByKey$($rowKey$$131$$).$tr$, $text$$45$$ = $tr$$13$$.textContent.trim(), $parent$$68$$ = this.$GetParentRowNodeText$($tr$$13$$);
    if("" !== $parent$$68$$) {
      var $parentMsg$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$().$getTranslatedString$("AFActiveDataTreeTableParent"), $text$$45$$ = TrFastMessageFormatUtils.format($parentMsg$$, $parent$$68$$, $text$$45$$)
    }
    return $text$$45$$
  }catch($err$$8$$) {
    return $AdfLogger$$.$LOGGER$.fine("Exception while trying to get the node text for the active data row" + $err$$8$$), $text$$45$$
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTreePeer.prototype.GetRowText", {$GetRowText$:$AdfDhtmlTreePeer$$.prototype.$GetRowText$});
$AdfDhtmlTreePeer$$.$msgMap$ = {update:"AFActiveDataTreeRowUpdate", remove:"AFActiveDataTreeRowDelete"};
$goog$exportSymbol$$("AdfDhtmlTreePeer.msgMap", $AdfDhtmlTreePeer$$.$msgMap$);
