var $AdfDhtmlPanelLabelAndMessagePeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlPanelLabelAndMessagePeer");
$goog$exportSymbol$$("AdfDhtmlPanelLabelAndMessagePeer", $AdfDhtmlPanelLabelAndMessagePeer$$);
$AdfDhtmlPanelLabelAndMessagePeer$$.$InitSubclass$ = function $$AdfDhtmlPanelLabelAndMessagePeer$$$$InitSubclass$$() {
  this.$_CONTENT_ID$ = "content";
  $AdfDhtmlPanelLabelAndMessagePeer$$.$_FOCUSABLE_ELEMENTS$ = {INPUT:!0, SELECT:!0, TEXTAREA:!0};
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichPanelLabelAndMessage.LABEL);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichPanelLabelAndMessage.LABEL, AdfRichPanelLabelAndMessage.SHOW_REQUIRED);
};
$goog$exportSymbol$$("AdfDhtmlPanelLabelAndMessagePeer.InitSubclass", $AdfDhtmlPanelLabelAndMessagePeer$$.$InitSubclass$);
$AdfDhtmlPanelLabelAndMessagePeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlPanelLabelAndMessagePeer$$$$$InitDomElement$$($component$$1769$$, $domElement$$392$$) {
  $AdfDhtmlPanelLabelAndMessagePeer$$.$superclass$.$InitDomElement$.call(this, $component$$1769$$, $domElement$$392$$);
  var $label$$inline_3503$$ = this.$_getLabelElement$($component$$1769$$, $domElement$$392$$);
  if (null != $label$$inline_3503$$) {
    var $forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$ = $label$$inline_3503$$.htmlFor;
    if ($forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$ && (forObject = $AdfAgent$$.$AGENT$.getElementById($forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$), null == forObject || !$AdfDhtmlPanelLabelAndMessagePeer$$.$_FOCUSABLE_ELEMENTS$[forObject.tagName])) {
      var $indexOfContent$$inline_3505_rippedDomElement$$inline_3507$$ = $forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$.length - 9;
      if (0 < $indexOfContent$$inline_3505_rippedDomElement$$inline_3507$$ && ($forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$ = $forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$.substring(0, $indexOfContent$$inline_3505_rippedDomElement$$inline_3507$$), $indexOfContent$$inline_3505_rippedDomElement$$inline_3507$$ = $AdfAgent$$.$AGENT$.getElementById($forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$), null != $indexOfContent$$inline_3505_rippedDomElement$$inline_3507$$)) {
        if ($AdfDhtmlPanelLabelAndMessagePeer$$.$_FOCUSABLE_ELEMENTS$[$indexOfContent$$inline_3505_rippedDomElement$$inline_3507$$.tagName]) {
          $label$$inline_3503$$.htmlFor = $forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$;
        } else {
          for ($forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$ = $indexOfContent$$inline_3505_rippedDomElement$$inline_3507$$.childNodes, i = 0;i < $forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$.length;i++) {
            if ($AdfDhtmlPanelLabelAndMessagePeer$$.$_FOCUSABLE_ELEMENTS$[$forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$[i].tagName]) {
              $label$$inline_3503$$.htmlFor = $forValue$$inline_3504_nodes$$inline_3508_rippedForValue$$inline_3506$$[i].id;
              break;
            }
          }
        }
      }
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelLabelAndMessagePeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlPanelLabelAndMessagePeer$$.prototype.$InitDomElement$});
$AdfDhtmlPanelLabelAndMessagePeer$$.prototype.$GetInlineEditor$ = function $$AdfDhtmlPanelLabelAndMessagePeer$$$$$GetInlineEditor$$() {
  return $AdfDhtmlSimpleLabelEditor$$.$getInlineEditor$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelLabelAndMessagePeer.prototype.GetInlineEditor", {$GetInlineEditor$:$AdfDhtmlPanelLabelAndMessagePeer$$.prototype.$GetInlineEditor$});
$AdfDhtmlPanelLabelAndMessagePeer$$.prototype.$GetComponentLabel$ = function $$AdfDhtmlPanelLabelAndMessagePeer$$$$$GetComponentLabel$$($component$$1770$$, $domElement$$393$$) {
  var $labelElement$$5$$ = this.$_getLabelElement$($component$$1770$$, $domElement$$393$$);
  return null != $labelElement$$5$$ ? $AdfAgent$$.$AGENT$.$getTextContent$($labelElement$$5$$) : null;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelLabelAndMessagePeer.prototype.GetComponentLabel", {$GetComponentLabel$:$AdfDhtmlPanelLabelAndMessagePeer$$.prototype.$GetComponentLabel$});
$AdfDhtmlPanelLabelAndMessagePeer$$.prototype.$_getLabelElement$ = function $$AdfDhtmlPanelLabelAndMessagePeer$$$$$_getLabelElement$$($component$$1771$$, $domElement$$394$$) {
  var $forAttrValue_forSubId$$ = $component$$1771$$.getFor(), $labelElem$$3$$ = null;
  $forAttrValue_forSubId$$ && ($forAttrValue_forSubId$$ = $AdfRichUIPeer$$.$CreateSubId$($forAttrValue_forSubId$$, $AdfDhtmlPanelLabelAndMessagePeer$$.$_CONTENT_ID$), $labelElem$$3$$ = $AdfDomUtils$$.$getChildElementByAttributeValue$($domElement$$394$$, "for", $forAttrValue_forSubId$$, "LABEL"));
  return $labelElem$$3$$;
};
