var $AdfDhtmlSelectOneListboxPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlSelectOneListbasePeer$$, "AdfDhtmlSelectOneListboxPeer");
$goog$exportSymbol$$("AdfDhtmlSelectOneListboxPeer", $AdfDhtmlSelectOneListboxPeer$$);
$AdfDhtmlSelectOneListboxPeer$$.$InitSubclass$ = function $$AdfDhtmlSelectOneListboxPeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfUIEditableValue.SUBMITTED_VALUE, AdfUISelectOne.$SELECT_ITEMS$, AdfRichSelectOneListbox.LABEL);
  $AdfObject$$.$ensureClassInitialization$(AdfRichSelectOneListbox);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichSelectOneListbox.LABEL);
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$BLUR_EVENT_TYPE$);
  this.$_DISABLED_STYLE_CLASS$ = "p_AFDisabled";
  this.$_SELECTED_STYLE_CLASS$ = "p_AFSelected";
  this.$LIST_HOLDER_ID$ = "listHolder";
  this.$_TITLES_POPULATED_EXPANDO$ = "_adfTP";
};
$goog$exportSymbol$$("AdfDhtmlSelectOneListboxPeer.InitSubclass", $AdfDhtmlSelectOneListboxPeer$$.$InitSubclass$);
$AdfDhtmlSelectOneListboxPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$InitDomElement$$($component$$2118$$, $domElement$$520$$) {
  $AdfDhtmlSelectOneListboxPeer$$.$superclass$.$InitDomElement$.call(this, $component$$2118$$, $domElement$$520$$);
  $JSCompiler_StaticMethods__scrollToSelection$$(this, $component$$2118$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$InitDomElement$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$BindToComponent$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$BindToComponent$$($component$$2119$$, $domElement$$521$$) {
  $AdfDhtmlSelectOneListboxPeer$$.$superclass$.$BindToComponent$.call(this, $component$$2119$$, $domElement$$521$$);
  var $domNode$$97_subid$$9$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$2119$$.$getClientId$(), $AdfDhtmlSelectOneListboxPeer$$.$LIST_HOLDER_ID$), $agent$$593$$ = $AdfAgent$$.$AGENT$;
  if (($domNode$$97_subid$$9$$ = $agent$$593$$.getElementById($domNode$$97_subid$$9$$)) && !$domNode$$97_subid$$9$$.getAttribute($AdfDhtmlSelectOneListboxPeer$$.$_TITLES_POPULATED_EXPANDO$)) {
    for (var $itmElements$$ = this.$GetItemElements$($component$$2119$$), $rowCount$$17$$ = $itmElements$$.length, $itmElement$$ = null, $isIE7$$1$$ = $agent$$593$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && 7 == Math.floor($agent$$593$$.$getVersion$()), $i$$551$$ = 0;$i$$551$$ < $rowCount$$17$$;$i$$551$$++) {
      $itmElement$$ = $itmElements$$[$i$$551$$], null != $itmElement$$.title && "" != $itmElement$$.title || $itmElement$$.setAttribute("title", $itmElement$$.innerHTML), $isIE7$$1$$ && $agent$$593$$.$disableUserSelect$($itmElement$$);
    }
    $domNode$$97_subid$$9$$.setAttribute($AdfDhtmlSelectOneListboxPeer$$.$_TITLES_POPULATED_EXPANDO$, !0);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.BindToComponent", {$BindToComponent$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$BindToComponent$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$HandleComponentClick$$($componentEvent$$467_newValue$$inline_3989$$) {
  $AdfDhtmlSelectOneListboxPeer$$.$superclass$.$HandleComponentClick$.call(this, $componentEvent$$467_newValue$$inline_3989$$);
  var $component$$2120$$ = $componentEvent$$467_newValue$$inline_3989$$.getSource(), $target$$188$$ = $componentEvent$$467_newValue$$inline_3989$$.$getNativeEventTarget$();
  if ("LABEL" == $AdfAgent$$.$AGENT$.$getNodeName$($target$$188$$)) {
    this.focus($component$$2120$$);
  } else {
    if (this.$IsItemEnabled$($target$$188$$)) {
      var $newValue$$153$$ = $target$$188$$.getAttribute($AdfDhtmlSelectOneListbasePeer$$.$_ITEM_VALUE_EXPANDO$), $domElement$$522$$ = this.$getDomElement$(), $oldSelectElement$$3$$ = $JSCompiler_StaticMethods__getSelectedItemElement$$(this, $component$$2120$$, $domElement$$522$$);
      null != $oldSelectElement$$3$$ && $componentEvent$$467_newValue$$inline_3989$$.$getNativeEvent$().ctrlKey && $oldSelectElement$$3$$ == $target$$188$$ && ($newValue$$153$$ = "");
      $componentEvent$$467_newValue$$inline_3989$$ = "" + $newValue$$153$$;
      this.$SetDisplayValue$($component$$2120$$, $domElement$$522$$, $componentEvent$$467_newValue$$inline_3989$$);
      this.$Validate$($component$$2120$$, $componentEvent$$467_newValue$$inline_3989$$);
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$HandleComponentMouseDown$$($componentEvent$$468$$) {
  $componentEvent$$468$$.$getNativeEvent$().ctrlKey && $componentEvent$$468$$.cancel();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$HandleComponentKeyDown$$($componentEvent$$469$$) {
  var $evt$$159_newValue$$154_selectElement$$2$$ = $componentEvent$$469$$.$getNativeEvent$(), $keyCode$$102$$ = $AdfAgent$$.$AGENT$.$getKeyCode$($evt$$159_newValue$$154_selectElement$$2$$), $component$$2121$$ = $componentEvent$$469$$.getSource(), $domElement$$523$$ = this.$getDomElement$(), $oldSelectElement$$4$$ = $JSCompiler_StaticMethods__getSelectedItemElement$$(this, $component$$2121$$, $domElement$$523$$);
  $componentEvent$$469$$.$getNativeEventTarget$();
  switch($keyCode$$102$$) {
    case $AdfKeyStroke$$.$SPACE_KEY$:
      $evt$$159_newValue$$154_selectElement$$2$$.ctrlKey && (this.$SetDisplayValue$($component$$2121$$, $domElement$$523$$, ""), this.$Validate$($component$$2121$$, ""));
      $componentEvent$$469$$.cancel();
      break;
    case $AdfKeyStroke$$.$ENTER_KEY$:
      this.$ValidateIfStashedOldValue$($component$$2121$$, $domElement$$523$$);
      break;
    case $AdfKeyStroke$$.$ARROWUP_KEY$:
    ;
    case $AdfKeyStroke$$.$ARROWDOWN_KEY$:
      ($evt$$159_newValue$$154_selectElement$$2$$ = $keyCode$$102$$ == $AdfKeyStroke$$.$ARROWUP_KEY$ ? this.$GetPreviousEnabledItem$($oldSelectElement$$4$$) : this.$GetNextEnabledItem$($oldSelectElement$$4$$)) || ($evt$$159_newValue$$154_selectElement$$2$$ = this.$GetFirstEnabledItem$($component$$2121$$)), $evt$$159_newValue$$154_selectElement$$2$$ && (this.$StashOldValue$($component$$2121$$, $domElement$$523$$), $evt$$159_newValue$$154_selectElement$$2$$ = $evt$$159_newValue$$154_selectElement$$2$$.getAttribute($AdfDhtmlSelectOneListbasePeer$$.$_ITEM_VALUE_EXPANDO$), 
      this.$SetDisplayValue$($component$$2121$$, $domElement$$523$$, $evt$$159_newValue$$154_selectElement$$2$$)), $componentEvent$$469$$.cancel();
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$HandleComponentBlur$$($component$$2122_componentEvent$$470$$) {
  $component$$2122_componentEvent$$470$$ = $component$$2122_componentEvent$$470$$.getSource();
  var $domElement$$524$$ = this.$getDomElement$();
  this.$ValidateIfStashedOldValue$($component$$2122_componentEvent$$470$$, $domElement$$524$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$SetDisplayValue$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$SetDisplayValue$$($component$$2123$$, $domElement$$525_oldSelectElement$$5$$, $newValue$$155$$) {
  var $domNode$$98$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$2123$$, $domElement$$525_oldSelectElement$$5$$);
  $AdfAssert$$.$assertString$($newValue$$155$$);
  if (!$component$$2123$$.getReadOnly()) {
    var $newSelectedItem$$2$$ = this.$FindItemElementWithValue$($component$$2123$$, $newValue$$155$$);
    $domElement$$525_oldSelectElement$$5$$ = $JSCompiler_StaticMethods__getSelectedItemElement$$(this, $component$$2123$$, $domElement$$525_oldSelectElement$$5$$);
    this.$SelectItemElement$($component$$2123$$, $newSelectedItem$$2$$, $domElement$$525_oldSelectElement$$5$$);
    $domNode$$98$$.value = $newValue$$155$$;
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.SetDisplayValue", {$SetDisplayValue$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$SetDisplayValue$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$GetNoteWindowAlignmentNode$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$GetNoteWindowAlignmentNode$$($alignSubId_clientId$$433_component$$2124$$) {
  $alignSubId_clientId$$433_component$$2124$$ = $alignSubId_clientId$$433_component$$2124$$.$getClientId$();
  $alignSubId_clientId$$433_component$$2124$$ = $AdfRichUIPeer$$.$CreateSubId$($alignSubId_clientId$$433_component$$2124$$, $AdfDhtmlSelectOneListboxPeer$$.$LIST_HOLDER_ID$);
  return $AdfAgent$$.$AGENT$.getElementById($alignSubId_clientId$$433_component$$2124$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.GetNoteWindowAlignmentNode", {$GetNoteWindowAlignmentNode$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$GetNoteWindowAlignmentNode$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$GetItemElementsParent$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$GetItemElementsParent$$($clientId$$434_component$$2125$$) {
  $clientId$$434_component$$2125$$ = $clientId$$434_component$$2125$$.$getClientId$();
  return $AdfAgent$$.$AGENT$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$434_component$$2125$$, $AdfDhtmlSelectOneListboxPeer$$.$LIST_HOLDER_ID$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.GetItemElementsParent", {$GetItemElementsParent$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$GetItemElementsParent$});
function $JSCompiler_StaticMethods__getSelectedItemElement$$($JSCompiler_StaticMethods__getSelectedItemElement$self$$, $component$$2126$$, $curValue$$6_domElement$$526$$) {
  $curValue$$6_domElement$$526$$ = $JSCompiler_StaticMethods__getSelectedItemElement$self$$.$GetSubmittedValue$($component$$2126$$, $curValue$$6_domElement$$526$$);
  return $JSCompiler_StaticMethods__getSelectedItemElement$self$$.$FindItemElementWithValue$($component$$2126$$, $curValue$$6_domElement$$526$$);
}
$AdfDhtmlSelectOneListboxPeer$$.prototype.$GetInlineEditor$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$GetInlineEditor$$() {
  return $AdfDhtmlSimpleLabelEditor$$.$getInlineEditor$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.GetInlineEditor", {$GetInlineEditor$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$GetInlineEditor$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$needsResizeNotify$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$needsResizeNotify$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$ResizeNotify$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$ResizeNotify$$() {
  var $component$$2129$$ = this.$getComponent$();
  $JSCompiler_StaticMethods__scrollToSelection$$(this, $component$$2129$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$ResizeNotify$});
function $JSCompiler_StaticMethods__scrollToSelection$$($JSCompiler_StaticMethods__scrollToSelection$self$$, $component$$2130$$) {
  var $domNode$$99_subid$$10$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$2130$$.$getClientId$(), $AdfDhtmlSelectOneListboxPeer$$.$LIST_HOLDER_ID$);
  if ($domNode$$99_subid$$10$$ = $AdfAgent$$.$AGENT$.getElementById($domNode$$99_subid$$10$$)) {
    var $domElement$$528_selectElement$$3$$ = $JSCompiler_StaticMethods__scrollToSelection$self$$.$getDomElement$(), $domElement$$528_selectElement$$3$$ = $JSCompiler_StaticMethods__getSelectedItemElement$$($JSCompiler_StaticMethods__scrollToSelection$self$$, $component$$2130$$, $domElement$$528_selectElement$$3$$);
    null != $domElement$$528_selectElement$$3$$ && $AdfDomUtils$$.setScrollTop($domNode$$99_subid$$10$$, $domElement$$528_selectElement$$3$$.offsetTop);
  }
}
;