function $AdfRichPlainTextEditor$$($propertyName$$25$$) {
  this.Init($propertyName$$25$$);
}
$goog$exportSymbol$$("AdfRichPlainTextEditor", $AdfRichPlainTextEditor$$);
$AdfObject$$.$createSubclass$($AdfRichPlainTextEditor$$, $AdfRichInlineEditor$$);
$AdfRichPlainTextEditor$$.$_extraWidth$ = 0;
$AdfRichPlainTextEditor$$.prototype.Init = function $$AdfRichPlainTextEditor$$$$Init$($propertyName$$26$$) {
  $AdfAssert$$.$assertString$($propertyName$$26$$);
  $AdfRichPlainTextEditor$$.$superclass$.Init.call(this);
  this.$_propertyName$ = $propertyName$$26$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfRichPlainTextEditor.prototype.Init", {Init:$AdfRichPlainTextEditor$$.prototype.Init});
$AdfRichPlainTextEditor$$.prototype.$PreEdit$ = function $$AdfRichPlainTextEditor$$$$$PreEdit$$() {
  return null != this.$GetEditedDomElement$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfRichPlainTextEditor.prototype.PreEdit", {$PreEdit$:$AdfRichPlainTextEditor$$.prototype.$PreEdit$});
$AdfRichPlainTextEditor$$.prototype.$getEditedProperty$ = function $$AdfRichPlainTextEditor$$$$$getEditedProperty$$() {
  return this.$_propertyName$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfRichPlainTextEditor.prototype.getEditedProperty", {$getEditedProperty$:$AdfRichPlainTextEditor$$.prototype.$getEditedProperty$});
$AdfRichPlainTextEditor$$.prototype.$startEdit$ = function $$AdfRichPlainTextEditor$$$$$startEdit$$($component$$96$$, $event$$47$$) {
  $AdfRichPlainTextEditor$$.$superclass$.$startEdit$.call(this, $component$$96$$, $event$$47$$);
  var $body$$2_listener$$64_theDocument$$1$$ = this.$GetEditedPeer$().$getDomDocument$(), $textArea$$ = $body$$2_listener$$64_theDocument$$1$$.createElement("input");
  $textArea$$.type = "text";
  var $agent$$7$$ = $AdfAgent$$.$AGENT$, $editedDomElement_propValue$$4$$ = $component$$96$$.$getProperty$(this.$_propertyName$);
  $textArea$$.value = $editedDomElement_propValue$$4$$;
  $component$$96$$.$_orgininalEditValue$ = $editedDomElement_propValue$$4$$;
  $editedDomElement_propValue$$4$$ = this.$GetEditedDomElement$();
  $agent$$7$$.$copyStyle$($editedDomElement_propValue$$4$$, $textArea$$);
  var $textAreaStyle$$ = $textArea$$.style;
  $textAreaStyle$$.position = "absolute";
  $textAreaStyle$$.MozBoxSizing && ($textAreaStyle$$.MozBoxSizing = null);
  $textAreaStyle$$.zIndex = 1;
  $AdfRichPlainTextEditor$$.$_textArea$ = $textArea$$;
  $AdfRichPlainTextEditor$$.$_extraWidth$ = "left" == $textAreaStyle$$.textAlign ? 20 : 0;
  $body$$2_listener$$64_theDocument$$1$$ = $body$$2_listener$$64_theDocument$$1$$.body;
  $body$$2_listener$$64_theDocument$$1$$.insertBefore($textArea$$, $body$$2_listener$$64_theDocument$$1$$.firstChild);
  $JSCompiler_StaticMethods__updateTextAreaPosition$$($textArea$$, $editedDomElement_propValue$$4$$);
  $editedDomElement_propValue$$4$$.style.visibility = "hidden";
  $AdfFocusUtils$$.$focusElementDelayed$($textArea$$, 1);
  $body$$2_listener$$64_theDocument$$1$$ = $AdfRichPlainTextEditor$$.$_commitEditStub$;
  $agent$$7$$.$addBubbleEventListener$($textArea$$, "keyup", $body$$2_listener$$64_theDocument$$1$$);
  $agent$$7$$.$addBubbleEventListener$($textArea$$, "keypress", $body$$2_listener$$64_theDocument$$1$$);
  $component$$96$$.addEventListener("propertyChange", this.$_syncFromPropertyChange$, this);
  $agent$$7$$.$addEventBubbles$($textArea$$, $AdfRichPlainTextEditor$$.$_handleEditorEventStub$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfRichPlainTextEditor.prototype.startEdit", {$startEdit$:$AdfRichPlainTextEditor$$.prototype.$startEdit$});
$AdfRichPlainTextEditor$$.prototype.$stopEdit$ = function $$AdfRichPlainTextEditor$$$$$stopEdit$$() {
  this.$getEditedComponent$().setProperty(this.$_propertyName$, $AdfRichPlainTextEditor$$.$_textArea$.value, !0);
  var $component$$inline_355_textArea$$inline_356$$ = this.$getEditedComponent$();
  $component$$inline_355_textArea$$inline_356$$.$_orgininalEditValue$ = null;
  $component$$inline_355_textArea$$inline_356$$.removeEventListener("propertyChange", this.$_syncFromPropertyChange$, this);
  var $component$$inline_355_textArea$$inline_356$$ = $AdfRichPlainTextEditor$$.$_textArea$, $agent$$inline_357_editedDomElement$$inline_359$$ = $AdfAgent$$.$AGENT$, $listener$$inline_358$$ = $AdfRichPlainTextEditor$$.$_commitEditStub$;
  $agent$$inline_357_editedDomElement$$inline_359$$.$removeBubbleEventListener$($component$$inline_355_textArea$$inline_356$$, "keypress", $listener$$inline_358$$);
  $agent$$inline_357_editedDomElement$$inline_359$$.$removeBubbleEventListener$($component$$inline_355_textArea$$inline_356$$, "keyup", $listener$$inline_358$$);
  $agent$$inline_357_editedDomElement$$inline_359$$.$removeEventBubbles$($component$$inline_355_textArea$$inline_356$$, $AdfRichPlainTextEditor$$.$_handleEditorEventStub$);
  $agent$$inline_357_editedDomElement$$inline_359$$ = this.$GetEditedDomElement$();
  $agent$$inline_357_editedDomElement$$inline_359$$.ownerDocument.body.removeChild($component$$inline_355_textArea$$inline_356$$);
  $agent$$inline_357_editedDomElement$$inline_359$$.style.visibility = "visible";
  $AdfRichPlainTextEditor$$.$_textArea$ = null;
  $AdfRichPlainTextEditor$$.$_extraWidth$ = 0;
  $AdfRichPlainTextEditor$$.$superclass$.$stopEdit$.call(this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfRichPlainTextEditor.prototype.stopEdit", {$stopEdit$:$AdfRichPlainTextEditor$$.prototype.$stopEdit$});
$AdfRichPlainTextEditor$$.prototype.$GetEditedDomElement$ = function $$AdfRichPlainTextEditor$$$$$GetEditedDomElement$$() {
  return this.$GetEditedPeer$().$getDomElement$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfRichPlainTextEditor.prototype.GetEditedDomElement", {$GetEditedDomElement$:$AdfRichPlainTextEditor$$.prototype.$GetEditedDomElement$});
$AdfRichPlainTextEditor$$.$_commitEditStub$ = function $$AdfRichPlainTextEditor$$$$_commitEditStub$$() {
  var $editedComponent_inlineEditor$$ = $AdfPage$$.$PAGE$.$getEditedComponent$();
  null != $editedComponent_inlineEditor$$ && ($editedComponent_inlineEditor$$ = $editedComponent_inlineEditor$$.$getPeer$().$getInlineEditor$($editedComponent_inlineEditor$$), null != $editedComponent_inlineEditor$$ && ($AdfAssert$$.$assertPrototype$($editedComponent_inlineEditor$$, $AdfRichPlainTextEditor$$), $editedComponent_inlineEditor$$.$getEditedComponent$().setProperty($editedComponent_inlineEditor$$.$_propertyName$, $AdfRichPlainTextEditor$$.$_textArea$.value, !0)));
};
$AdfRichPlainTextEditor$$.$_handleEditorEventStub$ = function $$AdfRichPlainTextEditor$$$$_handleEditorEventStub$$($event$$49_event$$inline_364$$) {
  $event$$49_event$$inline_364$$ = $event$$49_event$$inline_364$$ ? $event$$49_event$$inline_364$$ : window.event;
  var $component$$inline_365_editedComponent$$1_inlineEditor$$1$$ = $AdfPage$$.$PAGE$.$getEditedComponent$();
  if (null != $component$$inline_365_editedComponent$$1_inlineEditor$$1$$ && ($component$$inline_365_editedComponent$$1_inlineEditor$$1$$ = $component$$inline_365_editedComponent$$1_inlineEditor$$1$$.$getPeer$().$getInlineEditor$($component$$inline_365_editedComponent$$1_inlineEditor$$1$$), null != $component$$inline_365_editedComponent$$1_inlineEditor$$1$$)) {
    if ($AdfAssert$$.$assertPrototype$($component$$inline_365_editedComponent$$1_inlineEditor$$1$$, $AdfRichPlainTextEditor$$), "blur" == $event$$49_event$$inline_364$$.type) {
      $AdfPage$$.$PAGE$.$setEditedComponent$(null, $event$$49_event$$inline_364$$);
    } else {
      if ("keyup" == $event$$49_event$$inline_364$$.type) {
        switch($AdfAgent$$.$AGENT$.$getKeyCode$($event$$49_event$$inline_364$$)) {
          case $AdfKeyStroke$$.$ESC_KEY$:
            $component$$inline_365_editedComponent$$1_inlineEditor$$1$$ = $component$$inline_365_editedComponent$$1_inlineEditor$$1$$.$getEditedComponent$();
            $AdfRichPlainTextEditor$$.$_textArea$.value = $component$$inline_365_editedComponent$$1_inlineEditor$$1$$.$_orgininalEditValue$;
            $AdfPage$$.$PAGE$.$setEditedComponent$(null, $event$$49_event$$inline_364$$);
            break;
          case $AdfKeyStroke$$.$ENTER_KEY$:
            ($event$$49_event$$inline_364$$.altKey || !$event$$49_event$$inline_364$$.ctrlKey && !$event$$49_event$$inline_364$$.shiftKey) && $AdfPage$$.$PAGE$.$setEditedComponent$(null, $event$$49_event$$inline_364$$);
            break;
          case $AdfKeyStroke$$.$TAB_KEY$:
            $AdfPage$$.$PAGE$.$setEditedComponent$(null, $event$$49_event$$inline_364$$);
        }
      }
    }
  }
};
$AdfRichPlainTextEditor$$.prototype.$_syncFromPropertyChange$ = function $$AdfRichPlainTextEditor$$$$$_syncFromPropertyChange$$($newValue$$13_propertyChange$$) {
  if ($newValue$$13_propertyChange$$.$getPropertyName$() == this.$_propertyName$) {
    var $textArea$$2$$ = $AdfRichPlainTextEditor$$.$_textArea$, $editedDomElement$$2$$ = this.$GetEditedDomElement$();
    $JSCompiler_StaticMethods__updateTextAreaPosition$$($textArea$$2$$, $editedDomElement$$2$$);
    $newValue$$13_propertyChange$$ = $newValue$$13_propertyChange$$.$getNewValue$();
    null == $newValue$$13_propertyChange$$ && ($newValue$$13_propertyChange$$ = "");
    $textArea$$2$$.value != $newValue$$13_propertyChange$$ && ($textArea$$2$$.value = $newValue$$13_propertyChange$$);
  }
};
function $JSCompiler_StaticMethods__updateTextAreaPosition$$($textArea$$3$$, $editedDomElement$$3$$) {
  var $textAreaStyle$$1$$ = $textArea$$3$$.style, $agent$$9$$ = $AdfAgent$$.$AGENT$, $bounds$$ = $agent$$9$$.$getElementPageBounds$($editedDomElement$$3$$), $leftPos$$ = $bounds$$.left;
  $textAreaStyle$$1$$.top = $bounds$$.top + "px";
  $textAreaStyle$$1$$.left = $leftPos$$ + "px";
  $agent$$9$$.$setOuterWidth$($textArea$$3$$, $editedDomElement$$3$$.offsetWidth + $AdfRichPlainTextEditor$$.$_extraWidth$);
  $agent$$9$$.$setOuterHeight$($textArea$$3$$, $editedDomElement$$3$$.offsetHeight);
}
;