var $AdfDhtmlInputTextPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlInputBasePeer$$, "AdfDhtmlInputTextPeer");
$goog$exportSymbol$$("AdfDhtmlInputTextPeer", $AdfDhtmlInputTextPeer$$);
$AdfDhtmlInputTextPeer$$.$InitSubclass$ = function $$AdfDhtmlInputTextPeer$$$$InitSubclass$$() {
  $AdfObject$$.$ensureClassInitialization$(AdfRichInputText);
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichInputText.LABEL);
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_UP_EVENT_TYPE$);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichInputText.LABEL);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichInputText.READ_ONLY);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichInputText.CONTENT_STYLE)
};
$goog$exportSymbol$$("AdfDhtmlInputTextPeer.InitSubclass", $AdfDhtmlInputTextPeer$$.$InitSubclass$);
$AdfDhtmlInputTextPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlInputTextPeer$$$$$InitDomElement$$($component$$1004$$, $domElement$$269$$) {
  $AdfDhtmlInputTextPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1004$$, $domElement$$269$$);
  var $agent$$283$$ = $AdfAgent$$.$AGENT$, $domNode$$40$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1004$$);
  $agent$$283$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && 9 > $agent$$283$$.$getVersion$() ? $AdfAgent$$.$AGENT$.$addBubbleEventListener$($domNode$$40$$, "propertychange", this.$createCallback$(this.$_handleInput$)) : $AdfAgent$$.$AGENT$.$addBubbleEventListener$($domNode$$40$$, "input", this.$createCallback$(this.$_handleInput$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlInputTextPeer$$.prototype.$InitDomElement$});
$AdfDhtmlInputTextPeer$$.prototype.$replaceTextSelection$ = function $$AdfDhtmlInputTextPeer$$$$$replaceTextSelection$$($value$$145$$) {
  var $component$$1005$$ = this.$getComponent$();
  if(this.$WasSubmitted$($component$$1005$$)) {
    var $domNode$$41$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1005$$);
    $AdfEditingAgent$$.$getInstance$().$insertHtmlAtSelection$($domNode$$41$$, $value$$145$$);
    this.$RunValidation$($component$$1005$$, $domNode$$41$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.replaceTextSelection", {$replaceTextSelection$:$AdfDhtmlInputTextPeer$$.prototype.$replaceTextSelection$});
$AdfDhtmlInputTextPeer$$.prototype.$needsResizeNotify$ = function $$AdfDhtmlInputTextPeer$$$$$needsResizeNotify$$($component$$1006$$) {
  var $agent$$284_ver$$ = $AdfAgent$$.$AGENT$, $isIE$$7$$ = $agent$$284_ver$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$, $agent$$284_ver$$ = $agent$$284_ver$$.$getVersion$();
  return $isIE$$7$$ && 8 > $agent$$284_ver$$ && $AdfDomUtils$$.$containsCSSClassName$($AdfRichUIPeer$$.$getDomNodeForComponent$($component$$1006$$), "p_AFStretched")
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlInputTextPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlInputTextPeer$$.prototype.$resizeNotify$ = function $$AdfDhtmlInputTextPeer$$$$$resizeNotify$$($component$$1007_domNode$$42$$, $agent$$285_oldWidth$$12$$, $oldHeight$$14$$, $newWidth$$14$$, $newHeight$$16$$) {
  $agent$$285_oldWidth$$12$$ = $AdfAgent$$.$AGENT$;
  $component$$1007_domNode$$42$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1007_domNode$$42$$);
  $agent$$285_oldWidth$$12$$.$setOuterWidth$($component$$1007_domNode$$42$$, $newWidth$$14$$);
  $agent$$285_oldWidth$$12$$.$setOuterHeight$($component$$1007_domNode$$42$$, $newHeight$$16$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.resizeNotify", {$resizeNotify$:$AdfDhtmlInputTextPeer$$.prototype.$resizeNotify$});
$AdfDhtmlInputTextPeer$$.prototype.$SetDisplayValue$ = function $$AdfDhtmlInputTextPeer$$$$$SetDisplayValue$$($component$$1008$$, $domElement$$270_domNode$$43$$, $newValue$$88$$) {
  $AdfAssert$$.$assertString$($newValue$$88$$);
  $domElement$$270_domNode$$43$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1008$$);
  $component$$1008$$.getReadOnly() ? (1 < $component$$1008$$.getRows() || this.$IsSecret$($component$$1008$$) != $JSCompiler_alias_TRUE$$) && $AdfAgent$$.$AGENT$.$setTextContent$($domElement$$270_domNode$$43$$, $newValue$$88$$) : (!(1 < $component$$1008$$.getRows()) && !this.$IsSecret$($component$$1008$$) && ($domElement$$270_domNode$$43$$.title = $newValue$$88$$), $domElement$$270_domNode$$43$$.value = $newValue$$88$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.SetDisplayValue", {$SetDisplayValue$:$AdfDhtmlInputTextPeer$$.prototype.$SetDisplayValue$});
$AdfDhtmlInputTextPeer$$.prototype.$IsSecret$ = function $$AdfDhtmlInputTextPeer$$$$$IsSecret$$($component$$1009$$) {
  return"password" == $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1009$$).type ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.IsSecret", {$IsSecret$:$AdfDhtmlInputTextPeer$$.prototype.$IsSecret$});
$AdfDhtmlInputTextPeer$$.prototype.$HandleComponentKeyPress$ = function $$AdfDhtmlInputTextPeer$$$$$HandleComponentKeyPress$$($componentEvent$$210$$) {
  this.$StopArrowKeyBubbling$($componentEvent$$210$$);
  if($componentEvent$$210$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $component$$1010_evtKeyCode$$ = this.$getComponent$(), $targetNode$$31$$ = $componentEvent$$210$$.$getNativeEventTarget$(), $evt$$93_shouldCancel$$ = $componentEvent$$210$$.$getNativeEvent$(), $evtCharCode_keyCode$$54$$ = $AdfAgent$$.$AGENT$.$getKeyCode$($evt$$93_shouldCancel$$);
    if("TEXTAREA" == $targetNode$$31$$.tagName) {
      if($JSCompiler_StaticMethods__checkLength$$($component$$1010_evtKeyCode$$, $targetNode$$31$$) && ($component$$1010_evtKeyCode$$ = $evt$$93_shouldCancel$$.keyCode, $evtCharCode_keyCode$$54$$ = $evt$$93_shouldCancel$$.charCode, (0 == $component$$1010_evtKeyCode$$ || 13 == $component$$1010_evtKeyCode$$ || $evtCharCode_keyCode$$54$$ == $JSCompiler_alias_VOID$$ || $component$$1010_evtKeyCode$$ == $evtCharCode_keyCode$$54$$) && !$evt$$93_shouldCancel$$.ctrlKey)) {
        $evt$$93_shouldCancel$$ = $JSCompiler_alias_TRUE$$, $targetNode$$31$$.selectionStart != $JSCompiler_alias_NULL$$ ? $evt$$93_shouldCancel$$ = $targetNode$$31$$.selectionStart == $targetNode$$31$$.selectionEnd : document.selection && ($evt$$93_shouldCancel$$ = "" == document.selection.createRange().text), $evt$$93_shouldCancel$$ && $componentEvent$$210$$.cancel()
      }
    }else {
      $evtCharCode_keyCode$$54$$ == $AdfKeyStroke$$.$ENTER_KEY$ && this.$RunValidation$($component$$1010_evtKeyCode$$, $targetNode$$31$$)
    }
    this.$_nodeLength$ = $targetNode$$31$$.value ? $targetNode$$31$$.value.length : 0
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyPress", {$HandleComponentKeyPress$:$AdfDhtmlInputTextPeer$$.prototype.$HandleComponentKeyPress$});
$AdfDhtmlInputTextPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlInputTextPeer$$$$$HandleComponentKeyUp$$($componentEvent$$211$$) {
  if($componentEvent$$211$$.$getEventPhase$() == $AdfBaseEvent$$.$AT_TARGET_PHASE$) {
    var $keyCode$$55$$ = $AdfAgent$$.$AGENT$.$getKeyCode$($componentEvent$$211$$.$getNativeEvent$()), $component$$1011$$ = this.$getComponent$(), $targetNode$$32$$ = $componentEvent$$211$$.$getNativeEventTarget$();
    9 != $keyCode$$55$$ && this.$AutoTab$($component$$1011$$, $targetNode$$32$$);
    delete this.$_nodeLength$;
    $JSCompiler_StaticMethods__checkLength$$($component$$1011$$, $targetNode$$32$$)
  }
  $AdfDhtmlInputTextPeer$$.$superclass$.$HandleComponentKeyUp$.call(this, $componentEvent$$211$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlInputTextPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlInputTextPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlInputTextPeer$$$$$HandleComponentKeyDown$$($componentEvent$$212$$) {
  this.$StopArrowKeyBubbling$($componentEvent$$212$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlInputTextPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlInputTextPeer$$.prototype.$_handleInput$ = function $$AdfDhtmlInputTextPeer$$$$$_handleInput$$() {
  var $component$$1012$$ = this.$getComponent$();
  if($component$$1012$$) {
    var $domNode$$45$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1012$$);
    $JSCompiler_StaticMethods__checkLength$$($component$$1012$$, $domNode$$45$$)
  }
};
$AdfDhtmlInputTextPeer$$.prototype.$AutoTab$ = function $$AdfDhtmlInputTextPeer$$$$$AutoTab$$($component$$1013$$, $node$$78$$) {
  if($component$$1013$$.getAutoTab && $component$$1013$$.getAutoTab() && ($AdfAgent$$.$AGENT$.$getCapabilities$()[$AdfAgent$$.$CAP_TOUCH_SCREEN$] == $AdfAgent$$.$CAP_TOUCH_SCREEN_NONE$ || $AdfAgent$$.$guessOS$() == $AdfAgent$$.$ANDROID_OS$)) {
    var $maximumLength$$1$$ = $component$$1013$$.getMaximumLength();
    if(!(1 > $maximumLength$$1$$)) {
      var $nodeLength$$1$$ = $node$$78$$.value ? $node$$78$$.value.length : 0;
      $nodeLength$$1$$ >= $maximumLength$$1$$ && $nodeLength$$1$$ > this.$_nodeLength$ && $AdfFocusUtils$$.$focusNextTabStop$($node$$78$$)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.AutoTab", {$AutoTab$:$AdfDhtmlInputTextPeer$$.prototype.$AutoTab$});
$AdfDhtmlInputTextPeer$$.prototype.$GetInlineEditor$ = function $$AdfDhtmlInputTextPeer$$$$$GetInlineEditor$$() {
  return $AdfDhtmlSimpleLabelEditor$$.$getInlineEditor$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.GetInlineEditor", {$GetInlineEditor$:$AdfDhtmlInputTextPeer$$.prototype.$GetInlineEditor$});
$AdfDhtmlInputTextPeer$$.prototype.$ComponentReadOnlyChanged$ = function $$AdfDhtmlInputTextPeer$$$$$ComponentReadOnlyChanged$$($component$$1014_contentNode$$41$$, $domElement$$271$$, $attrs$$8_newValue$$89$$) {
  if($attrs$$8_newValue$$89$$) {
    if("SPAN" == $domElement$$271$$.tagName) {
      if($AdfDomUtils$$.$containsCSSClassName$($domElement$$271$$, "p_AFClickToEdit") && $AdfDomUtils$$.$removeCSSClassName$($domElement$$271$$, "p_AFClickToEdit"), $AdfDomUtils$$.$addCSSClassName$($domElement$$271$$, "p_AFReadOnly"), $component$$1014_contentNode$$41$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1014_contentNode$$41$$), "INPUT" == $component$$1014_contentNode$$41$$.tagName) {
        var $inputNode_spanNode$$ = document.createElement("span");
        $inputNode_spanNode$$.appendChild(document.createTextNode($component$$1014_contentNode$$41$$.value));
        $attrs$$8_newValue$$89$$ = $component$$1014_contentNode$$41$$.attributes;
        for(var $i$$243$$ = 0;$i$$243$$ < $attrs$$8_newValue$$89$$.length;$i$$243$$++) {
          var $name$$81$$ = $attrs$$8_newValue$$89$$[$i$$243$$].name;
          "type" != $name$$81$$ && "value" != $name$$81$$ && $inputNode_spanNode$$.setAttribute($name$$81$$, $attrs$$8_newValue$$89$$[$i$$243$$].value)
        }
        $domElement$$271$$.replaceChild($inputNode_spanNode$$, $component$$1014_contentNode$$41$$)
      }
    }else {
      return $JSCompiler_alias_FALSE$$
    }
  }else {
    if("SPAN" == $domElement$$271$$.tagName) {
      if($AdfDomUtils$$.$containsCSSClassName$($domElement$$271$$, "p_AFReadOnly") && $AdfDomUtils$$.$removeCSSClassName$($domElement$$271$$, "p_AFReadOnly"), $AdfDomUtils$$.$addCSSClassName$($domElement$$271$$, "p_AFClickToEdit"), $component$$1014_contentNode$$41$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1014_contentNode$$41$$), "SPAN" == $component$$1014_contentNode$$41$$.tagName) {
        $inputNode_spanNode$$ = document.createElement("input");
        $attrs$$8_newValue$$89$$ = $component$$1014_contentNode$$41$$.attributes;
        for($i$$243$$ = 0;$i$$243$$ < $attrs$$8_newValue$$89$$.length;$i$$243$$++) {
          $inputNode_spanNode$$.setAttribute($attrs$$8_newValue$$89$$[$i$$243$$].name, $attrs$$8_newValue$$89$$[$i$$243$$].value)
        }
        $inputNode_spanNode$$.setAttribute("type", "text");
        $component$$1014_contentNode$$41$$.firstChild && $component$$1014_contentNode$$41$$.firstChild.nodeValue && $inputNode_spanNode$$.setAttribute("value", $component$$1014_contentNode$$41$$.firstChild.nodeValue);
        $inputNode_spanNode$$.setAttribute("name", $domElement$$271$$.id);
        $domElement$$271$$.replaceChild($inputNode_spanNode$$, $component$$1014_contentNode$$41$$)
      }
    }else {
      return $JSCompiler_alias_FALSE$$
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.ComponentReadOnlyChanged", {$ComponentReadOnlyChanged$:$AdfDhtmlInputTextPeer$$.prototype.$ComponentReadOnlyChanged$});
$AdfDhtmlInputTextPeer$$.prototype.$ComponentContentStyleChanged$ = function $$AdfDhtmlInputTextPeer$$$$$ComponentContentStyleChanged$$($component$$1015_contentNode$$42$$, $domElement$$272$$, $newValue$$90$$) {
  $component$$1015_contentNode$$42$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$1015_contentNode$$42$$);
  if($component$$1015_contentNode$$42$$ != $JSCompiler_alias_NULL$$) {
    $component$$1015_contentNode$$42$$.style.cssText = $newValue$$90$$
  }else {
    return $JSCompiler_alias_FALSE$$
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlInputTextPeer.prototype.ComponentContentStyleChanged", {$ComponentContentStyleChanged$:$AdfDhtmlInputTextPeer$$.prototype.$ComponentContentStyleChanged$});
function $JSCompiler_StaticMethods__checkLength$$($component$$1016$$, $node$$79$$) {
  if($component$$1016$$ && $component$$1016$$.getMaximumLength) {
    var $maximumLength$$2$$ = $component$$1016$$.getMaximumLength();
    if(1 > $maximumLength$$2$$) {
      return $JSCompiler_alias_FALSE$$
    }
    var $nodeLength$$2$$ = $node$$79$$.value ? $node$$79$$.value.length : 0;
    if($nodeLength$$2$$ >= $maximumLength$$2$$) {
      return $nodeLength$$2$$ > $maximumLength$$2$$ && ($node$$79$$.value = $node$$79$$.value.substr(0, $maximumLength$$2$$)), $JSCompiler_alias_TRUE$$
    }
  }
  return $JSCompiler_alias_FALSE$$
}
;