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$$2121$$, $domElement$$520$$) {
  $AdfDhtmlSelectOneListboxPeer$$.$superclass$.$InitDomElement$.call(this, $component$$2121$$, $domElement$$520$$);
  $JSCompiler_StaticMethods__scrollToSelection$$(this, $component$$2121$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$InitDomElement$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$BindToComponent$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$BindToComponent$$($component$$2122$$, $domElement$$521$$) {
  $AdfDhtmlSelectOneListboxPeer$$.$superclass$.$BindToComponent$.call(this, $component$$2122$$, $domElement$$521$$);
  var $domNode$$99_subid$$9$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$2122$$.$getClientId$(), $AdfDhtmlSelectOneListboxPeer$$.$LIST_HOLDER_ID$), $agent$$593$$ = $AdfAgent$$.$AGENT$;
  if (($domNode$$99_subid$$9$$ = $agent$$593$$.getElementById($domNode$$99_subid$$9$$)) && !$domNode$$99_subid$$9$$.getAttribute($AdfDhtmlSelectOneListboxPeer$$.$_TITLES_POPULATED_EXPANDO$)) {
    for (var $itmElements$$ = this.$GetItemElements$($component$$2122$$), $rowCount$$17$$ = $itmElements$$.length, $itmElement$$ = null, $isIE7$$1$$ = $agent$$593$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && 7 == Math.floor($agent$$593$$.$getVersion$()), $i$$554$$ = 0;$i$$554$$ < $rowCount$$17$$;$i$$554$$++) {
      $itmElement$$ = $itmElements$$[$i$$554$$], null != $itmElement$$.title && "" != $itmElement$$.title || $itmElement$$.setAttribute("title", $itmElement$$.innerHTML), $isIE7$$1$$ && $agent$$593$$.$disableUserSelect$($itmElement$$);
    }
    $domNode$$99_subid$$9$$.setAttribute($AdfDhtmlSelectOneListboxPeer$$.$_TITLES_POPULATED_EXPANDO$, !0);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.BindToComponent", {$BindToComponent$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$BindToComponent$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$HandleComponentClick$$($componentEvent$$469_newValue$$inline_3994$$) {
  $AdfDhtmlSelectOneListboxPeer$$.$superclass$.$HandleComponentClick$.call(this, $componentEvent$$469_newValue$$inline_3994$$);
  var $component$$2123$$ = $componentEvent$$469_newValue$$inline_3994$$.getSource(), $target$$188$$ = $componentEvent$$469_newValue$$inline_3994$$.$getNativeEventTarget$();
  if ("LABEL" == $AdfAgent$$.$AGENT$.$getNodeName$($target$$188$$)) {
    this.focus($component$$2123$$);
  } 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$$2123$$, $domElement$$522$$);
      null != $oldSelectElement$$3$$ && $componentEvent$$469_newValue$$inline_3994$$.$getNativeEvent$().ctrlKey && $oldSelectElement$$3$$ == $target$$188$$ && ($newValue$$153$$ = "");
      $componentEvent$$469_newValue$$inline_3994$$ = "" + $newValue$$153$$;
      this.$SetDisplayValue$($component$$2123$$, $domElement$$522$$, $componentEvent$$469_newValue$$inline_3994$$);
      this.$Validate$($component$$2123$$, $componentEvent$$469_newValue$$inline_3994$$);
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$HandleComponentMouseDown$$($componentEvent$$470$$) {
  $componentEvent$$470$$.$getNativeEvent$().ctrlKey && $componentEvent$$470$$.cancel();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$HandleComponentKeyDown$$($componentEvent$$471$$) {
  var $evt$$159_newValue$$154_selectElement$$2$$ = $componentEvent$$471$$.$getNativeEvent$(), $keyCode$$102$$ = $AdfAgent$$.$AGENT$.$getKeyCode$($evt$$159_newValue$$154_selectElement$$2$$), $component$$2124$$ = $componentEvent$$471$$.getSource(), $domElement$$523$$ = this.$getDomElement$(), $oldSelectElement$$4$$ = $JSCompiler_StaticMethods__getSelectedItemElement$$(this, $component$$2124$$, $domElement$$523$$);
  $componentEvent$$471$$.$getNativeEventTarget$();
  switch($keyCode$$102$$) {
    case $AdfKeyStroke$$.$SPACE_KEY$:
      $evt$$159_newValue$$154_selectElement$$2$$.ctrlKey && (this.$SetDisplayValue$($component$$2124$$, $domElement$$523$$, ""), this.$Validate$($component$$2124$$, ""));
      $componentEvent$$471$$.cancel();
      break;
    case $AdfKeyStroke$$.$ENTER_KEY$:
      this.$ValidateIfStashedOldValue$($component$$2124$$, $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$$2124$$)), $evt$$159_newValue$$154_selectElement$$2$$ && (this.$StashOldValue$($component$$2124$$, $domElement$$523$$), $evt$$159_newValue$$154_selectElement$$2$$ = $evt$$159_newValue$$154_selectElement$$2$$.getAttribute($AdfDhtmlSelectOneListbasePeer$$.$_ITEM_VALUE_EXPANDO$), 
      this.$SetDisplayValue$($component$$2124$$, $domElement$$523$$, $evt$$159_newValue$$154_selectElement$$2$$)), $componentEvent$$471$$.cancel();
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$HandleComponentBlur$$($component$$2125_componentEvent$$472$$) {
  $component$$2125_componentEvent$$472$$ = $component$$2125_componentEvent$$472$$.getSource();
  var $domElement$$524$$ = this.$getDomElement$();
  this.$ValidateIfStashedOldValue$($component$$2125_componentEvent$$472$$, $domElement$$524$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$SetDisplayValue$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$SetDisplayValue$$($component$$2126$$, $domElement$$525_oldSelectElement$$5$$, $newValue$$155$$) {
  var $domNode$$100$$ = $AdfDhtmlEditableValuePeer$$.$getContentNode$($component$$2126$$, $domElement$$525_oldSelectElement$$5$$);
  $AdfAssert$$.$assertString$($newValue$$155$$);
  if (!$component$$2126$$.getReadOnly()) {
    var $newSelectedItem$$2$$ = this.$FindItemElementWithValue$($component$$2126$$, $newValue$$155$$);
    $domElement$$525_oldSelectElement$$5$$ = $JSCompiler_StaticMethods__getSelectedItemElement$$(this, $component$$2126$$, $domElement$$525_oldSelectElement$$5$$);
    this.$SelectItemElement$($component$$2126$$, $newSelectedItem$$2$$, $domElement$$525_oldSelectElement$$5$$);
    $domNode$$100$$.value = $newValue$$155$$;
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.SetDisplayValue", {$SetDisplayValue$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$SetDisplayValue$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$GetNoteWindowAlignmentNode$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$GetNoteWindowAlignmentNode$$($alignSubId_clientId$$433_component$$2127$$) {
  $alignSubId_clientId$$433_component$$2127$$ = $alignSubId_clientId$$433_component$$2127$$.$getClientId$();
  $alignSubId_clientId$$433_component$$2127$$ = $AdfRichUIPeer$$.$CreateSubId$($alignSubId_clientId$$433_component$$2127$$, $AdfDhtmlSelectOneListboxPeer$$.$LIST_HOLDER_ID$);
  return $AdfAgent$$.$AGENT$.getElementById($alignSubId_clientId$$433_component$$2127$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.GetNoteWindowAlignmentNode", {$GetNoteWindowAlignmentNode$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$GetNoteWindowAlignmentNode$});
$AdfDhtmlSelectOneListboxPeer$$.prototype.$GetItemElementsParent$ = function $$AdfDhtmlSelectOneListboxPeer$$$$$GetItemElementsParent$$($clientId$$434_component$$2128$$) {
  $clientId$$434_component$$2128$$ = $clientId$$434_component$$2128$$.$getClientId$();
  return $AdfAgent$$.$AGENT$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$434_component$$2128$$, $AdfDhtmlSelectOneListboxPeer$$.$LIST_HOLDER_ID$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.GetItemElementsParent", {$GetItemElementsParent$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$GetItemElementsParent$});
function $JSCompiler_StaticMethods__getSelectedItemElement$$($JSCompiler_StaticMethods__getSelectedItemElement$self$$, $component$$2129$$, $curValue$$6_domElement$$526$$) {
  $curValue$$6_domElement$$526$$ = $JSCompiler_StaticMethods__getSelectedItemElement$self$$.$GetSubmittedValue$($component$$2129$$, $curValue$$6_domElement$$526$$);
  return $JSCompiler_StaticMethods__getSelectedItemElement$self$$.$FindItemElementWithValue$($component$$2129$$, $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$$2132$$ = this.$getComponent$();
  $JSCompiler_StaticMethods__scrollToSelection$$(this, $component$$2132$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlSelectOneListboxPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlSelectOneListboxPeer$$.prototype.$ResizeNotify$});
function $JSCompiler_StaticMethods__scrollToSelection$$($JSCompiler_StaticMethods__scrollToSelection$self$$, $component$$2133$$) {
  var $domNode$$101_subid$$10$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$2133$$.$getClientId$(), $AdfDhtmlSelectOneListboxPeer$$.$LIST_HOLDER_ID$);
  if ($domNode$$101_subid$$10$$ = $AdfAgent$$.$AGENT$.getElementById($domNode$$101_subid$$10$$)) {
    var $domElement$$528_selectElement$$3$$ = $JSCompiler_StaticMethods__scrollToSelection$self$$.$getDomElement$(), $domElement$$528_selectElement$$3$$ = $JSCompiler_StaticMethods__getSelectedItemElement$$($JSCompiler_StaticMethods__scrollToSelection$self$$, $component$$2133$$, $domElement$$528_selectElement$$3$$);
    null != $domElement$$528_selectElement$$3$$ && $AdfDomUtils$$.setScrollTop($domNode$$101_subid$$10$$, $domElement$$528_selectElement$$3$$.offsetTop);
  }
}
;