$AdfDhtmlTrainButtonBarPeer$$.prototype.$GetSubIdDomElement$ = function $$AdfDhtmlTrainButtonBarPeer$$$$$GetSubIdDomElement$$($subElementId$$69_subId$$68$$) {
  $AdfAssert$$.$assertNonEmptyString$($subElementId$$69_subId$$68$$);
  this.$getDomElement$();
  for (var $component$$2475_nextButtonIndex$$ = this.$getComponent$(), $buttonLocator_navigationLayout$$ = $component$$2475_nextButtonIndex$$.getNavigationLayout(), $childComponents_startIndex$$29$$ = $component$$2475_nextButtonIndex$$.$getDescendantComponents$(), $prevButtonIndex$$ = $component$$2475_nextButtonIndex$$ = -1, $childElement$$41_peer$$228$$, $i$$768$$ = 0;$i$$768$$ < $buttonLocator_navigationLayout$$.length;$i$$768$$++) {
    "nextButton" == $buttonLocator_navigationLayout$$[$i$$768$$] && ($component$$2475_nextButtonIndex$$ = $i$$768$$), "prevButton" == $buttonLocator_navigationLayout$$[$i$$768$$] && ($prevButtonIndex$$ = $i$$768$$), "auto" == $buttonLocator_navigationLayout$$[$i$$768$$] && ($component$$2475_nextButtonIndex$$ = 1, $prevButtonIndex$$ = 0);
  }
  $prevButtonIndex$$ > $component$$2475_nextButtonIndex$$ && -1 != $prevButtonIndex$$ && -1 != $component$$2475_nextButtonIndex$$ ? ($component$$2475_nextButtonIndex$$ = 0, $prevButtonIndex$$ = 1) : $prevButtonIndex$$ < $component$$2475_nextButtonIndex$$ && -1 != $prevButtonIndex$$ && -1 != $component$$2475_nextButtonIndex$$ ? ($component$$2475_nextButtonIndex$$ = 1, $prevButtonIndex$$ = 0) : -1 < $prevButtonIndex$$ && -1 == $component$$2475_nextButtonIndex$$ ? ($prevButtonIndex$$ = 0, $component$$2475_nextButtonIndex$$ = 
  -1) : -1 < $component$$2475_nextButtonIndex$$ && -1 == $prevButtonIndex$$ && ($prevButtonIndex$$ = -1, $component$$2475_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$$2475_nextButtonIndex$$) {
    return $childElement$$41_peer$$228$$ = $AdfRichUIPeer$$.$getDomElementForComponent$($childComponents_startIndex$$29$$[$component$$2475_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$$2475_nextButtonIndex$$ && ($buttonElementId$$ = $childElement$$41_peer$$228$$.id);
    if ($buttonElementId$$) {
      return $component$$2475_nextButtonIndex$$ = $AdfPage$$.$PAGE$.$findComponent$($buttonElementId$$), $childElement$$41_peer$$228$$ = $component$$2475_nextButtonIndex$$.$getPeer$(), $childElement$$41_peer$$228$$.bind($component$$2475_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$$2476$$ = this.$getComponent$(), $navigationLayout$$1_subId$$69$$ = $childComponents$$1_component$$2476$$.getNavigationLayout(), $navigationLayout$$1_subId$$69$$ = $childComponents$$1_component$$2476$$.getNavigationLayout(), $childComponents$$1_component$$2476$$ = $childComponents$$1_component$$2476$$.$getDescendantComponents$(), $nextButtonIndex$$1$$ = -1, $prevButtonIndex$$1$$ = -1, $i$$769$$ = 0;$i$$769$$ < $navigationLayout$$1_subId$$69$$.length;$i$$769$$++) {
    "nextButton" == $navigationLayout$$1_subId$$69$$[$i$$769$$] && ($nextButtonIndex$$1$$ = $i$$769$$), "prevButton" == $navigationLayout$$1_subId$$69$$[$i$$769$$] && ($prevButtonIndex$$1$$ = $i$$769$$), "auto" == $navigationLayout$$1_subId$$69$$[$i$$769$$] && ($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$$2476$$[$prevButtonIndex$$1$$]) && -1 != $prevButtonIndex$$1$$) {
    return $AdfRichUIPeer$$.$getDomElementForComponent$($childComponents$$1_component$$2476$$[$prevButtonIndex$$1$$]), "back_button";
  }
  if ($buttonSubId_domElement$$700$$ == $AdfRichUIPeer$$.$getDomElementForComponent$($childComponents$$1_component$$2476$$[$nextButtonIndex$$1$$]) && -1 != $nextButtonIndex$$1$$) {
    return $AdfRichUIPeer$$.$getDomElementForComponent$($childComponents$$1_component$$2476$$[$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$$2476$$[$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$$2476$$[$nextButtonIndex$$1$$].id, $navigationLayout$$1_subId$$69$$ = "next_button");
  $buttonComponentId_peer$$229$$ && ($childComponents$$1_component$$2476$$ = $AdfPage$$.$PAGE$.$findComponent$($buttonComponentId_peer$$229$$), $buttonComponentId_peer$$229$$ = $childComponents$$1_component$$2476$$.$getPeer$(), $buttonComponentId_peer$$229$$.bind($childComponents$$1_component$$2476$$), ($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$});
