$AdfDhtmlTrainButtonBarPeer$$.prototype.$GetSubIdDomElement$ = function $$AdfDhtmlTrainButtonBarPeer$$$$$GetSubIdDomElement$$($subElementId$$69_subId$$68$$) {
  $AdfAssert$$.$assertNonEmptyString$($subElementId$$69_subId$$68$$);
  this.$getDomElement$();
  for (var $component$$2472_nextButtonIndex$$ = this.$getComponent$(), $buttonLocator_navigationLayout$$ = $component$$2472_nextButtonIndex$$.getNavigationLayout(), $childComponents_startIndex$$29$$ = $component$$2472_nextButtonIndex$$.$getDescendantComponents$(), $prevButtonIndex$$ = $component$$2472_nextButtonIndex$$ = -1, $childElement$$41_peer$$228$$, $i$$765$$ = 0;$i$$765$$ < $buttonLocator_navigationLayout$$.length;$i$$765$$++) {
    "nextButton" == $buttonLocator_navigationLayout$$[$i$$765$$] && ($component$$2472_nextButtonIndex$$ = $i$$765$$), "prevButton" == $buttonLocator_navigationLayout$$[$i$$765$$] && ($prevButtonIndex$$ = $i$$765$$), "auto" == $buttonLocator_navigationLayout$$[$i$$765$$] && ($component$$2472_nextButtonIndex$$ = 1, $prevButtonIndex$$ = 0);
  }
  $prevButtonIndex$$ > $component$$2472_nextButtonIndex$$ && -1 != $prevButtonIndex$$ && -1 != $component$$2472_nextButtonIndex$$ ? ($component$$2472_nextButtonIndex$$ = 0, $prevButtonIndex$$ = 1) : $prevButtonIndex$$ < $component$$2472_nextButtonIndex$$ && -1 != $prevButtonIndex$$ && -1 != $component$$2472_nextButtonIndex$$ ? ($component$$2472_nextButtonIndex$$ = 1, $prevButtonIndex$$ = 0) : -1 < $prevButtonIndex$$ && -1 == $component$$2472_nextButtonIndex$$ ? ($prevButtonIndex$$ = 0, $component$$2472_nextButtonIndex$$ = 
  -1) : -1 < $component$$2472_nextButtonIndex$$ && -1 == $prevButtonIndex$$ && ($prevButtonIndex$$ = -1, $component$$2472_nextButtonIndex$$ = 0);
  if ("back_button" == $subElementId$$69_subId$$68$$ && -1 != $prevButtonIndex$$) {
    return $childElement$$41_peer$$228$$ = $AdfRichUIPeer$$.$getDomElementForComponent$($childComponents_startIndex$$29$$[$prevButtonIndex$$]);
  }
  if ("next_button" == $subElementId$$69_subId$$68$$ && -1 != $component$$2472_nextButtonIndex$$) {
    return $childElement$$41_peer$$228$$ = $AdfRichUIPeer$$.$getDomElementForComponent$($childComponents_startIndex$$29$$[$component$$2472_nextButtonIndex$$]);
  }
  $childComponents_startIndex$$29$$ = $subElementId$$69_subId$$68$$.indexOf("#");
  if (-1 < $childComponents_startIndex$$29$$) {
    $buttonLocator_navigationLayout$$ = $subElementId$$69_subId$$68$$.substring(0, $childComponents_startIndex$$29$$);
    $subElementId$$69_subId$$68$$ = $subElementId$$69_subId$$68$$.substring($childComponents_startIndex$$29$$ + 1);
    var $buttonElementId$$;
    "back_button" == $buttonLocator_navigationLayout$$ && -1 != $prevButtonIndex$$ ? $buttonElementId$$ = $childElement$$41_peer$$228$$.id : "next_button" == $buttonLocator_navigationLayout$$ && -1 != $component$$2472_nextButtonIndex$$ && ($buttonElementId$$ = $childElement$$41_peer$$228$$.id);
    if ($buttonElementId$$) {
      return $component$$2472_nextButtonIndex$$ = $AdfPage$$.$PAGE$.$findComponent$($buttonElementId$$), $childElement$$41_peer$$228$$ = $component$$2472_nextButtonIndex$$.$getPeer$(), $childElement$$41_peer$$228$$.bind($component$$2472_nextButtonIndex$$), $childElement$$41_peer$$228$$.$GetSubIdDomElement$($subElementId$$69_subId$$68$$);
    }
  }
  return null;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTrainButtonBarPeer.prototype.GetSubIdDomElement", {$GetSubIdDomElement$:$AdfDhtmlTrainButtonBarPeer$$.prototype.$GetSubIdDomElement$});
$AdfDhtmlTrainButtonBarPeer$$.prototype.$GetBestMatchSubId$ = function $$AdfDhtmlTrainButtonBarPeer$$$$$GetBestMatchSubId$$($buttonSubId_domElement$$700$$) {
  this.$getDomElement$();
  for (var $childComponents$$1_component$$2473$$ = this.$getComponent$(), $navigationLayout$$1_subId$$69$$ = $childComponents$$1_component$$2473$$.getNavigationLayout(), $navigationLayout$$1_subId$$69$$ = $childComponents$$1_component$$2473$$.getNavigationLayout(), $childComponents$$1_component$$2473$$ = $childComponents$$1_component$$2473$$.$getDescendantComponents$(), $nextButtonIndex$$1$$ = -1, $prevButtonIndex$$1$$ = -1, $i$$766$$ = 0;$i$$766$$ < $navigationLayout$$1_subId$$69$$.length;$i$$766$$++) {
    "nextButton" == $navigationLayout$$1_subId$$69$$[$i$$766$$] && ($nextButtonIndex$$1$$ = $i$$766$$), "prevButton" == $navigationLayout$$1_subId$$69$$[$i$$766$$] && ($prevButtonIndex$$1$$ = $i$$766$$), "auto" == $navigationLayout$$1_subId$$69$$[$i$$766$$] && ($nextButtonIndex$$1$$ = 1, $prevButtonIndex$$1$$ = 0);
  }
  $prevButtonIndex$$1$$ > $nextButtonIndex$$1$$ && -1 != $prevButtonIndex$$1$$ && -1 != $nextButtonIndex$$1$$ ? ($nextButtonIndex$$1$$ = 0, $prevButtonIndex$$1$$ = 1) : $prevButtonIndex$$1$$ < $nextButtonIndex$$1$$ && -1 != $prevButtonIndex$$1$$ && -1 != $nextButtonIndex$$1$$ ? ($nextButtonIndex$$1$$ = 1, $prevButtonIndex$$1$$ = 0) : -1 < $prevButtonIndex$$1$$ && -1 == $nextButtonIndex$$1$$ ? ($prevButtonIndex$$1$$ = 0, $nextButtonIndex$$1$$ = -1) : -1 < $nextButtonIndex$$1$$ && -1 == $prevButtonIndex$$1$$ && 
  ($prevButtonIndex$$1$$ = -1, $nextButtonIndex$$1$$ = 0);
  if ($buttonSubId_domElement$$700$$ == $AdfRichUIPeer$$.$getDomElementForComponent$($childComponents$$1_component$$2473$$[$prevButtonIndex$$1$$]) && -1 != $prevButtonIndex$$1$$) {
    return $AdfRichUIPeer$$.$getDomElementForComponent$($childComponents$$1_component$$2473$$[$prevButtonIndex$$1$$]), "back_button";
  }
  if ($buttonSubId_domElement$$700$$ == $AdfRichUIPeer$$.$getDomElementForComponent$($childComponents$$1_component$$2473$$[$nextButtonIndex$$1$$]) && -1 != $nextButtonIndex$$1$$) {
    return $AdfRichUIPeer$$.$getDomElementForComponent$($childComponents$$1_component$$2473$$[$nextButtonIndex$$1$$]), "next_button";
  }
  var $buttonComponentId_peer$$229$$, $navigationLayout$$1_subId$$69$$ = null;
  -1 != $prevButtonIndex$$1$$ && $AdfDomUtils$$.$isAncestor$(void 0, $buttonSubId_domElement$$700$$) ? ($buttonComponentId_peer$$229$$ = $childComponents$$1_component$$2473$$[$prevButtonIndex$$1$$].id, $navigationLayout$$1_subId$$69$$ = "back_button") : -1 != $nextButtonIndex$$1$$ && $AdfDomUtils$$.$isAncestor$(void 0, $buttonSubId_domElement$$700$$) && ($buttonComponentId_peer$$229$$ = $childComponents$$1_component$$2473$$[$nextButtonIndex$$1$$].id, $navigationLayout$$1_subId$$69$$ = "next_button");
  $buttonComponentId_peer$$229$$ && ($childComponents$$1_component$$2473$$ = $AdfPage$$.$PAGE$.$findComponent$($buttonComponentId_peer$$229$$), $buttonComponentId_peer$$229$$ = $childComponents$$1_component$$2473$$.$getPeer$(), $buttonComponentId_peer$$229$$.bind($childComponents$$1_component$$2473$$), ($buttonSubId_domElement$$700$$ = $buttonComponentId_peer$$229$$.$GetBestMatchSubId$($buttonSubId_domElement$$700$$)) && ($navigationLayout$$1_subId$$69$$ = $navigationLayout$$1_subId$$69$$ + "#" + 
  $buttonSubId_domElement$$700$$));
  return $navigationLayout$$1_subId$$69$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTrainButtonBarPeer.prototype.GetBestMatchSubId", {$GetBestMatchSubId$:$AdfDhtmlTrainButtonBarPeer$$.prototype.$GetBestMatchSubId$});
