var $AdfDhtmlPanelLabelAndMessagePeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlPanelLabelAndMessagePeer");
$goog$exportSymbol$$("AdfDhtmlPanelLabelAndMessagePeer", $AdfDhtmlPanelLabelAndMessagePeer$$);
$AdfDhtmlPanelLabelAndMessagePeer$$.$InitSubclass$ = function $$AdfDhtmlPanelLabelAndMessagePeer$$$$InitSubclass$$() {
  this.$_CONTENT_ID$ = "content";
  $AdfDhtmlPanelLabelAndMessagePeer$$.$_FOCUSABLE_ELEMENTS$ = {INPUT:$JSCompiler_alias_TRUE$$, SELECT:$JSCompiler_alias_TRUE$$, TEXTAREA:$JSCompiler_alias_TRUE$$};
  $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$$1285$$, $domElement$$339$$) {
  $AdfDhtmlPanelLabelAndMessagePeer$$.$superclass$.$InitDomElement$.call(this, $component$$1285$$, $domElement$$339$$);
  var $label$$inline_3092$$ = this.$_getLabelElement$($component$$1285$$, $domElement$$339$$);
  if($label$$inline_3092$$ != $JSCompiler_alias_NULL$$) {
    var $forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$ = $label$$inline_3092$$.htmlFor;
    if($forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$ && (forObject = $AdfAgent$$.$AGENT$.getElementById($forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$), forObject == $JSCompiler_alias_NULL$$ || !$AdfDhtmlPanelLabelAndMessagePeer$$.$_FOCUSABLE_ELEMENTS$[forObject.tagName])) {
      var $indexOfContent$$inline_3094_rippedDomElement$$inline_3096$$ = $forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$.length - 9;
      if(0 < $indexOfContent$$inline_3094_rippedDomElement$$inline_3096$$ && ($forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$ = $forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$.substring(0, $indexOfContent$$inline_3094_rippedDomElement$$inline_3096$$), $indexOfContent$$inline_3094_rippedDomElement$$inline_3096$$ = $AdfAgent$$.$AGENT$.getElementById($forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$), $indexOfContent$$inline_3094_rippedDomElement$$inline_3096$$ != 
      $JSCompiler_alias_NULL$$)) {
        if($AdfDhtmlPanelLabelAndMessagePeer$$.$_FOCUSABLE_ELEMENTS$[$indexOfContent$$inline_3094_rippedDomElement$$inline_3096$$.tagName]) {
          $label$$inline_3092$$.htmlFor = $forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$
        }else {
          $forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$ = $indexOfContent$$inline_3094_rippedDomElement$$inline_3096$$.childNodes;
          for(i = 0;i < $forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$.length;i++) {
            if($AdfDhtmlPanelLabelAndMessagePeer$$.$_FOCUSABLE_ELEMENTS$[$forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$[i].tagName]) {
              $label$$inline_3092$$.htmlFor = $forValue$$inline_3093_nodes$$inline_3097_rippedForValue$$inline_3095$$[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$$1286$$, $domElement$$340$$) {
  var $labelElement$$4$$ = this.$_getLabelElement$($component$$1286$$, $domElement$$340$$);
  return $labelElement$$4$$ != $JSCompiler_alias_NULL$$ ? $AdfAgent$$.$AGENT$.$getTextContent$($labelElement$$4$$) : $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelLabelAndMessagePeer.prototype.GetComponentLabel", {$GetComponentLabel$:$AdfDhtmlPanelLabelAndMessagePeer$$.prototype.$GetComponentLabel$});
$AdfDhtmlPanelLabelAndMessagePeer$$.prototype.$_getLabelElement$ = function $$AdfDhtmlPanelLabelAndMessagePeer$$$$$_getLabelElement$$($component$$1287$$, $domElement$$341$$) {
  var $forAttrValue_forSubId$$ = $component$$1287$$.getFor(), $labelElem$$1$$ = $JSCompiler_alias_NULL$$;
  $forAttrValue_forSubId$$ && ($forAttrValue_forSubId$$ = $AdfRichUIPeer$$.$CreateSubId$($forAttrValue_forSubId$$, $AdfDhtmlPanelLabelAndMessagePeer$$.$_CONTENT_ID$), $labelElem$$1$$ = $AdfDomUtils$$.$getChildElementByAttributeValue$($domElement$$341$$, "for", $forAttrValue_forSubId$$, "LABEL"));
  return $labelElem$$1$$
};
