var $AdfDhtmlDecorativeBoxPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlDecorativeBoxPeer", $JSCompiler_alias_FALSE$$);
$goog$exportSymbol$$("AdfDhtmlDecorativeBoxPeer", $AdfDhtmlDecorativeBoxPeer$$);
$AdfDhtmlDecorativeBoxPeer$$.prototype.$needsChildVisibilityChanges$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.needsChildVisibilityChanges", {$needsChildVisibilityChanges$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$needsChildVisibilityChanges$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$needsResizeNotify$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$BindToComponent$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$BindToComponent$$($component$$682$$, $domElement$$164$$) {
  $AdfDhtmlDecorativeBoxPeer$$.$superclass$.$BindToComponent$.call(this, $component$$682$$, $domElement$$164$$);
  var $clientId$$143$$ = $component$$682$$.$getClientId$(), $agent$$211$$ = $AdfAgent$$.$AGENT$;
  this.$_topLeftElement$ = $agent$$211$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$143$$, "tl"));
  this.$_topElement$ = $agent$$211$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$143$$, "t"));
  this.$_topInnerElement$ = $agent$$211$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$143$$, "t-i"));
  this.$_topRightElement$ = $agent$$211$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$143$$, "tr"));
  this.$_leftElement$ = $agent$$211$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$143$$, "l"));
  this.$_centerElement$ = $agent$$211$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$143$$, "c"));
  this.$_rightElement$ = $agent$$211$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$143$$, "r"));
  if(this.$_isFlowLayout$ = $AdfDomUtils$$.$containsCSSClassName$($domElement$$164$$, "p_AFFlow")) {
    this.$_topWrapperElement$ = $AdfDomUtils$$.$getFirstChildElement$($domElement$$164$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.BindToComponent", {$BindToComponent$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$BindToComponent$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$UnbindFromComponent$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$UnbindFromComponent$$() {
  $AdfDhtmlDecorativeBoxPeer$$.$superclass$.$UnbindFromComponent$.call(this);
  this.$_rightElement$ = this.$_centerElement$ = this.$_leftElement$ = this.$_topRightElement$ = this.$_topInnerElement$ = this.$_topElement$ = this.$_topLeftElement$ = $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.UnbindFromComponent", {$UnbindFromComponent$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$UnbindFromComponent$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$ResizeNotify$ = $JSCompiler_emptyFn$$();
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$ResizeNotify$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$DomReplaceNotify$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$DomReplaceNotify$$($domNode$$23$$) {
  if($domNode$$23$$.parentNode != this.$_topInnerElement$) {
    return $domNode$$23$$
  }
  var $agent$$212$$ = $AdfAgent$$.$AGENT$, $needsResizeNotify$$ = $JSCompiler_alias_FALSE$$, $parentVisible$$ = $AdfDomUtils$$.$isVisible$(this.$_topInnerElement$), $childVisible$$2$$ = $AdfDomUtils$$.$isVisible$($domNode$$23$$);
  $childVisible$$2$$ != $parentVisible$$ && ($AdfDomUtils$$.setVisible(this.$_topInnerElement$, $childVisible$$2$$), this.$_repositionPanes$(), $needsResizeNotify$$ = $JSCompiler_alias_TRUE$$);
  $agent$$212$$.$prepareStretchedChild$($domNode$$23$$, "0px");
  return!$needsResizeNotify$$ ? ($agent$$212$$.$resizeStretchedChild$($domNode$$23$$, "0px"), $domNode$$23$$) : this.$getDomElement$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.DomReplaceNotify", {$DomReplaceNotify$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$DomReplaceNotify$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$ChildVisibilityChanged$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$ChildVisibilityChanged$$($childComponent$$7$$, $childDomElement$$4$$, $childVisible$$3$$) {
  if($childDomElement$$4$$.parentNode != this.$_topInnerElement$) {
    return $JSCompiler_alias_FALSE$$
  }
  $AdfDomUtils$$.setVisible(this.$_topInnerElement$, $childVisible$$3$$);
  this.$_repositionPanes$();
  $AdfDomUtils$$.setVisible($childDomElement$$4$$, $childVisible$$3$$);
  $AdfPage$$.$PAGE$.$doResizeNotify$(this.$getComponent$());
  return $JSCompiler_alias_TRUE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.ChildVisibilityChanged", {$ChildVisibilityChanged$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$ChildVisibilityChanged$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$_repositionPanes$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$_repositionPanes$$() {
  var $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$;
  if(this.$_topInnerElement$ && $AdfDomUtils$$.$isVisible$(this.$_topInnerElement$)) {
    $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$ = this.$getComponent$().getTopHeight()
  }else {
    a: {
      var $element$$inline_1627_val$$inline_1632$$ = this.$_topElement$;
      $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$ = this.$getComponent$().getTheme();
      var $laf$$inline_1630$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $rtl$$inline_1631$$ = $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$();
      switch($element$$inline_1627_val$$inline_1632$$) {
        case this.$_topLeftElement$:
          area = $rtl$$inline_1631$$ ? "top-end" : "top-start";
          break;
        case this.$_topElement$:
        ;
        case this.$_topInnerElement$:
          area = "top";
          break;
        case this.$_topRightElement$:
          area = $rtl$$inline_1631$$ ? "top-start" : "top-end";
          break;
        default:
          $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$ = $JSCompiler_alias_NULL$$;
          break a
      }
      $element$$inline_1627_val$$inline_1632$$ = $JSCompiler_alias_NULL$$;
      $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$ != $JSCompiler_alias_NULL$$ && ($element$$inline_1627_val$$inline_1632$$ = $laf$$inline_1630$$.$getSkinProperty$("af|decorativeBox::" + area + "[theme\x3d'" + $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$ + "']-tr-height"));
      $element$$inline_1627_val$$inline_1632$$ == $JSCompiler_alias_NULL$$ && ($element$$inline_1627_val$$inline_1632$$ = $laf$$inline_1630$$.$getSkinProperty$("af|decorativeBox::" + area + "-tr-height"));
      $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$ = $element$$inline_1627_val$$inline_1632$$
    }
  }
  this.$_topLeftElement$ && (this.$_topLeftElement$.style.height = $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$);
  this.$_topElement$ && (this.$_topElement$.style.height = $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$);
  this.$_topRightElement$ && (this.$_topRightElement$.style.height = $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$);
  if(this.$_isFlowLayout$) {
    if(this.$_topElement$.parentNode.style.height = $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$, this.$_isFlowLayout$ ? this.$_topInnerElement$ && this.$_topInnerElement$.parentNode == this.$_topWrapperElement$ : this.$_topInnerElement$ && this.$_topInnerElement$.parentNode == this.$getDomElement$()) {
      this.$_topWrapperElement$.style.height = $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$
    }
  }else {
    this.$_leftElement$ && (this.$_leftElement$.style.top = $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$), this.$_centerElement$ && (this.$_centerElement$.style.top = $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$), this.$_rightElement$ && (this.$_rightElement$.style.top = $JSCompiler_temp$$9_th$$1_theme$$inline_1629$$)
  }
};
$AdfDhtmlDecorativeBoxPeer$$.prototype.$getContainerId$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$getContainerId$$() {
  return"simple" == $AdfPage$$.$PAGE$.$getLookAndFeel$().$getSkinProperty$("BORDER_STYLE") ? $AdfRichUIPeer$$.$createSubId$(this.$getComponent$().$getClientId$(), "c") : this.$getComponent$().$getClientId$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.getContainerId", {$getContainerId$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$getContainerId$});
