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 this.$GetEditedDomElement$() != $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfRichPlainTextEditor.prototype.PreEdit", {$PreEdit$:$AdfRichPlainTextEditor$$.prototype.$PreEdit$});
$AdfRichPlainTextEditor$$.prototype.$getEditedProperty$ = $JSCompiler_get$$("$_propertyName$");
$AdfObject$$.$exportPrototypeSymbol$("AdfRichPlainTextEditor.prototype.getEditedProperty", {$getEditedProperty$:$AdfRichPlainTextEditor$$.prototype.$getEditedProperty$});
$AdfRichPlainTextEditor$$.prototype.$startEdit$ = function $$AdfRichPlainTextEditor$$$$$startEdit$$($component$$92$$, $event$$44$$) {
  $AdfRichPlainTextEditor$$.$superclass$.$startEdit$.call(this, $component$$92$$, $event$$44$$);
  var $body$$2_listener$$51_theDocument$$1$$ = this.$GetEditedPeer$().$getDomDocument$(), $textArea$$ = $body$$2_listener$$51_theDocument$$1$$.createElement("input");
  $textArea$$.type = "text";
  var $agent$$4$$ = $AdfAgent$$.$AGENT$, $editedDomElement_propValue$$4$$ = $component$$92$$.$getProperty$(this.$_propertyName$);
  $textArea$$.value = $editedDomElement_propValue$$4$$;
  $component$$92$$.$_orgininalEditValue$ = $editedDomElement_propValue$$4$$;
  $editedDomElement_propValue$$4$$ = this.$GetEditedDomElement$();
  $agent$$4$$.$copyStyle$($editedDomElement_propValue$$4$$, $textArea$$);
  var $textAreaStyle$$ = $textArea$$.style;
  $textAreaStyle$$.position = "absolute";
  $textAreaStyle$$.MozBoxSizing && ($textAreaStyle$$.MozBoxSizing = $JSCompiler_alias_NULL$$);
  $textAreaStyle$$.zIndex = 1;
  $AdfRichPlainTextEditor$$.$_textArea$ = $textArea$$;
  $AdfRichPlainTextEditor$$.$_extraWidth$ = "left" == $textAreaStyle$$.textAlign ? 20 : 0;
  $body$$2_listener$$51_theDocument$$1$$ = $body$$2_listener$$51_theDocument$$1$$.body;
  $body$$2_listener$$51_theDocument$$1$$.insertBefore($textArea$$, $body$$2_listener$$51_theDocument$$1$$.firstChild);
  $JSCompiler_StaticMethods__updateTextAreaPosition$$($textArea$$, $editedDomElement_propValue$$4$$);
  $editedDomElement_propValue$$4$$.style.visibility = "hidden";
  $AdfFocusUtils$$.$focusElementDelayed$($textArea$$, 1);
  $body$$2_listener$$51_theDocument$$1$$ = $AdfRichPlainTextEditor$$.$_commitEditStub$;
  $agent$$4$$.$addBubbleEventListener$($textArea$$, "keyup", $body$$2_listener$$51_theDocument$$1$$);
  $agent$$4$$.$addBubbleEventListener$($textArea$$, "keypress", $body$$2_listener$$51_theDocument$$1$$);
  $component$$92$$.addEventListener("propertyChange", this.$_syncFromPropertyChange$, this);
  $agent$$4$$.$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, $JSCompiler_alias_TRUE$$);
  var $component$$inline_297_textArea$$inline_298$$ = this.$getEditedComponent$();
  $component$$inline_297_textArea$$inline_298$$.$_orgininalEditValue$ = $JSCompiler_alias_NULL$$;
  $component$$inline_297_textArea$$inline_298$$.removeEventListener("propertyChange", this.$_syncFromPropertyChange$, this);
  var $component$$inline_297_textArea$$inline_298$$ = $AdfRichPlainTextEditor$$.$_textArea$, $agent$$inline_299_editedDomElement$$inline_301$$ = $AdfAgent$$.$AGENT$, $listener$$inline_300$$ = $AdfRichPlainTextEditor$$.$_commitEditStub$;
  $agent$$inline_299_editedDomElement$$inline_301$$.$removeBubbleEventListener$($component$$inline_297_textArea$$inline_298$$, "keypress", $listener$$inline_300$$);
  $agent$$inline_299_editedDomElement$$inline_301$$.$removeBubbleEventListener$($component$$inline_297_textArea$$inline_298$$, "keyup", $listener$$inline_300$$);
  $agent$$inline_299_editedDomElement$$inline_301$$.$removeEventBubbles$($component$$inline_297_textArea$$inline_298$$, $AdfRichPlainTextEditor$$.$_handleEditorEventStub$);
  $agent$$inline_299_editedDomElement$$inline_301$$ = this.$GetEditedDomElement$();
  $agent$$inline_299_editedDomElement$$inline_301$$.ownerDocument.body.removeChild($component$$inline_297_textArea$$inline_298$$);
  $agent$$inline_299_editedDomElement$$inline_301$$.style.visibility = "visible";
  $AdfRichPlainTextEditor$$.$_textArea$ = $JSCompiler_alias_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$();
  $editedComponent_inlineEditor$$ != $JSCompiler_alias_NULL$$ && ($editedComponent_inlineEditor$$ = $editedComponent_inlineEditor$$.$getPeer$().$getInlineEditor$($editedComponent_inlineEditor$$), $editedComponent_inlineEditor$$ != $JSCompiler_alias_NULL$$ && ($AdfAssert$$.$assertPrototype$($editedComponent_inlineEditor$$, $AdfRichPlainTextEditor$$), $editedComponent_inlineEditor$$.$getEditedComponent$().setProperty($editedComponent_inlineEditor$$.$_propertyName$, $AdfRichPlainTextEditor$$.$_textArea$.value, 
  $JSCompiler_alias_TRUE$$)))
};
$AdfRichPlainTextEditor$$.$_handleEditorEventStub$ = function $$AdfRichPlainTextEditor$$$$_handleEditorEventStub$$($event$$46_event$$inline_306$$) {
  $event$$46_event$$inline_306$$ = $event$$46_event$$inline_306$$ ? $event$$46_event$$inline_306$$ : window.event;
  var $component$$inline_307_editedComponent$$1_inlineEditor$$1$$ = $AdfPage$$.$PAGE$.$getEditedComponent$();
  if($component$$inline_307_editedComponent$$1_inlineEditor$$1$$ != $JSCompiler_alias_NULL$$ && ($component$$inline_307_editedComponent$$1_inlineEditor$$1$$ = $component$$inline_307_editedComponent$$1_inlineEditor$$1$$.$getPeer$().$getInlineEditor$($component$$inline_307_editedComponent$$1_inlineEditor$$1$$), $component$$inline_307_editedComponent$$1_inlineEditor$$1$$ != $JSCompiler_alias_NULL$$)) {
    if($AdfAssert$$.$assertPrototype$($component$$inline_307_editedComponent$$1_inlineEditor$$1$$, $AdfRichPlainTextEditor$$), "blur" == $event$$46_event$$inline_306$$.type) {
      $AdfPage$$.$PAGE$.$setEditedComponent$($JSCompiler_alias_NULL$$, $event$$46_event$$inline_306$$)
    }else {
      if("keyup" == $event$$46_event$$inline_306$$.type) {
        switch($AdfAgent$$.$AGENT$.$getKeyCode$($event$$46_event$$inline_306$$)) {
          case $AdfKeyStroke$$.$ESC_KEY$:
            $component$$inline_307_editedComponent$$1_inlineEditor$$1$$ = $component$$inline_307_editedComponent$$1_inlineEditor$$1$$.$getEditedComponent$();
            $AdfRichPlainTextEditor$$.$_textArea$.value = $component$$inline_307_editedComponent$$1_inlineEditor$$1$$.$_orgininalEditValue$;
            $AdfPage$$.$PAGE$.$setEditedComponent$($JSCompiler_alias_NULL$$, $event$$46_event$$inline_306$$);
            break;
          case $AdfKeyStroke$$.$ENTER_KEY$:
            ($event$$46_event$$inline_306$$.altKey || !$event$$46_event$$inline_306$$.ctrlKey && !$event$$46_event$$inline_306$$.shiftKey) && $AdfPage$$.$PAGE$.$setEditedComponent$($JSCompiler_alias_NULL$$, $event$$46_event$$inline_306$$);
            break;
          case $AdfKeyStroke$$.$TAB_KEY$:
            $AdfPage$$.$PAGE$.$setEditedComponent$($JSCompiler_alias_NULL$$, $event$$46_event$$inline_306$$)
        }
      }
    }
  }
};
$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$();
    $newValue$$13_propertyChange$$ == $JSCompiler_alias_NULL$$ && ($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$$6$$ = $AdfAgent$$.$AGENT$, $bounds$$ = $agent$$6$$.$getElementPageBounds$($editedDomElement$$3$$), $leftPos$$ = $bounds$$.left;
  $textAreaStyle$$1$$.top = $bounds$$.top + "px";
  $textAreaStyle$$1$$.left = $leftPos$$ + "px";
  $agent$$6$$.$setOuterWidth$($textArea$$3$$, $editedDomElement$$3$$.offsetWidth + $AdfRichPlainTextEditor$$.$_extraWidth$);
  $agent$$6$$.$setOuterHeight$($textArea$$3$$, $editedDomElement$$3$$.offsetHeight)
}
;