var $AdfDhtmlGoMenuItemPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlGoMenuItemPeer", $JSCompiler_alias_FALSE$$);
$goog$exportSymbol$$("AdfDhtmlGoMenuItemPeer", $AdfDhtmlGoMenuItemPeer$$);
$AdfDhtmlGoMenuItemPeer$$.$InitSubclass$ = function $$AdfDhtmlGoMenuItemPeer$$$$InitSubclass$$() {
  $AdfObject$$.$ensureClassInitialization$(AdfRichGoMenuItem);
  $AdfObject$$.$ensureClassInitialization$($AdfMenuUtils$$);
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$MOUSE_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_UP_EVENT_TYPE$, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$FOCUS_EVENT_TYPE$, $AdfUIInputEvent$$.$BLUR_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_UP_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$);
  $AdfAgent$$.$AGENT$.$getCapabilities$()[$AdfAgent$$.$CAP_TOUCH_SCREEN$] == $AdfAgent$$.$CAP_TOUCH_SCREEN_NONE$ && $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$MOUSE_IN_EVENT_TYPE$, $AdfUIInputEvent$$.$MOUSE_OUT_EVENT_TYPE$);
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichGoMenuItem.DISABLED, AdfRichGoMenuItem.VISIBLE);
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichGoMenuItem.TEXT)
};
$goog$exportSymbol$$("AdfDhtmlGoMenuItemPeer.InitSubclass", $AdfDhtmlGoMenuItemPeer$$.$InitSubclass$);
$AdfDhtmlGoMenuItemPeer$$.prototype.Init = function $$AdfDhtmlGoMenuItemPeer$$$$Init$($component$$773$$) {
  $component$$773$$.getParent();
  $AdfDhtmlGoMenuItemPeer$$.$superclass$.Init.call(this, $component$$773$$);
  this.$_spaceKeyDown$ = this.$_enterKeyDown$ = $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.Init", {Init:$AdfDhtmlGoMenuItemPeer$$.prototype.Init});
$AdfDhtmlGoMenuItemPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlGoMenuItemPeer$$$$$InitDomElement$$($component$$774$$, $domElement$$201$$) {
  $AdfDhtmlGoMenuItemPeer$$.$superclass$.$InitDomElement$.call(this, $component$$774$$, $domElement$$201$$);
  var $keystroke$$5$$ = $component$$774$$.getAccelerator();
  $keystroke$$5$$ != $JSCompiler_alias_NULL$$ && $AdfRichUIPeer$$.$registerKeyStroke$($component$$774$$, $keystroke$$5$$, this.$_execute$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlGoMenuItemPeer$$.prototype.$InitDomElement$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlGoMenuItemPeer$$$$$ComponentRemoved$$($component$$775$$) {
  var $keystroke$$6$$ = $component$$775$$.getAccelerator();
  $keystroke$$6$$ != $JSCompiler_alias_NULL$$ && $AdfRichUIPeer$$.$unregisterKeyStroke$($component$$775$$, $keystroke$$6$$);
  $AdfDhtmlGoMenuItemPeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$775$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlGoMenuItemPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$GetComponentText$ = function $$AdfDhtmlGoMenuItemPeer$$$$$GetComponentText$$($component$$776$$, $domElement$$202$$) {
  var $parent$$34_text$$32_textElement$$5$$ = $component$$776$$.getParent();
  if($parent$$34_text$$32_textElement$$5$$ = window.AdfRichMenu && $parent$$34_text$$32_textElement$$5$$ instanceof AdfRichMenu ? $AdfDomUtils$$.$getChildElements$($domElement$$202$$)[1] : $AdfDomUtils$$.$getFirstDescendentElement$($domElement$$202$$, "a")) {
    return $parent$$34_text$$32_textElement$$5$$ = $AdfAgent$$.$AGENT$.$getTextContent$($parent$$34_text$$32_textElement$$5$$), "" == $parent$$34_text$$32_textElement$$5$$ ? $JSCompiler_alias_NULL$$ : $parent$$34_text$$32_textElement$$5$$
  }
  $AdfAssert$$.assert($JSCompiler_alias_FALSE$$, "Unable to find the element containing the text")
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.GetComponentText", {$GetComponentText$:$AdfDhtmlGoMenuItemPeer$$.prototype.$GetComponentText$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlGoMenuItemPeer$$$$$HandleComponentKeyUp$$($componentEvent$$144_parent$$35$$) {
  var $cancelEvent$$2_evt$$87$$ = $componentEvent$$144_parent$$35$$.$getNativeEvent$();
  if(!$cancelEvent$$2_evt$$87$$.ctrlKey) {
    switch($AdfAgent$$.$AGENT$.$getKeyCode$($cancelEvent$$2_evt$$87$$)) {
      case $AdfKeyStroke$$.$ENTER_KEY$:
        this.$_enterKeyDown$ && this.$_execute$();
        this.$_enterKeyDown$ = $JSCompiler_alias_FALSE$$;
        $cancelEvent$$2_evt$$87$$ = $JSCompiler_alias_TRUE$$;
        break;
      case $AdfKeyStroke$$.$SPACE_KEY$:
        this.$_spaceKeyDown$ && this.$_execute$();
        this.$_spaceKeyDown$ = $JSCompiler_alias_FALSE$$;
        $cancelEvent$$2_evt$$87$$ = $JSCompiler_alias_TRUE$$;
        break;
      default:
        return
    }
    $cancelEvent$$2_evt$$87$$ && $componentEvent$$144_parent$$35$$.cancel();
    ($componentEvent$$144_parent$$35$$ = this.$getComponent$().getParent()) && $componentEvent$$144_parent$$35$$ instanceof AdfRichMenu && $componentEvent$$144_parent$$35$$.$getPeer$().$updateScrollIconsState$()
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlGoMenuItemPeer$$$$$HandleComponentKeyDown$$($componentEvent$$145$$) {
  if(!$componentEvent$$145$$.$isCanceled$() && !this.$_isDisabled$()) {
    var $keyCode$$44$$ = $componentEvent$$145$$.$getKeyCode$();
    $keyCode$$44$$ == $AdfKeyStroke$$.$ENTER_KEY$ ? (this.$_enterKeyDown$ = $JSCompiler_alias_TRUE$$, $componentEvent$$145$$.cancel(), $componentEvent$$145$$.$stopBubbling$()) : $keyCode$$44$$ == $AdfKeyStroke$$.$SPACE_KEY$ && (this.$_spaceKeyDown$ = $JSCompiler_alias_TRUE$$, $componentEvent$$145$$.cancel(), $componentEvent$$145$$.$stopBubbling$())
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlGoMenuItemPeer$$$$$HandleComponentFocus$$($componentEvent$$146_rootElement$$34$$) {
  if(!this.$_isDisabled$()) {
    $componentEvent$$146_rootElement$$34$$.cancel();
    $componentEvent$$146_rootElement$$34$$ = this.$getDomElement$();
    $AdfDhtmlMenuPeer$$.$cancelShowing$();
    var $component$$778$$ = this.$getComponent$();
    $AdfMenuUtils$$.$isInMenu$($component$$778$$) ? $AdfDomUtils$$.$addCSSClassName$($componentEvent$$146_rootElement$$34$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$) : ($AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && $AdfMenuUtils$$.$closeAllMenus$($JSCompiler_alias_FALSE$$), $AdfMenuUtils$$.$highlightRootMenuItem$($componentEvent$$146_rootElement$$34$$))
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlGoMenuItemPeer$$$$$HandleComponentMouseDown$$($componentEvent$$147_rootElement$$35$$) {
  !this.$_isDisabled$() && $componentEvent$$147_rootElement$$35$$.$isLeftButtonPressed$() && ($componentEvent$$147_rootElement$$35$$ = this.$getDomElement$(), $AdfDomUtils$$.$addCSSClassName$($componentEvent$$147_rootElement$$35$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentMouseUp$ = function $$AdfDhtmlGoMenuItemPeer$$$$$HandleComponentMouseUp$$($componentEvent$$148_rootElement$$36$$) {
  !this.$_isDisabled$() && $componentEvent$$148_rootElement$$36$$.$isLeftButtonPressed$() && ($componentEvent$$148_rootElement$$36$$ = this.$getDomElement$(), $AdfDomUtils$$.$removeCSSClassName$($componentEvent$$148_rootElement$$36$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentMouseUp", {$HandleComponentMouseUp$:$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentMouseUp$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlGoMenuItemPeer$$$$$HandleComponentMouseOver$$($componentEvent$$149_rootElement$$37$$) {
  var $component$$779$$ = this.$getComponent$();
  if(this.$_isDisabled$()) {
    $AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && $AdfMenuUtils$$.$isOnMenuBar$($component$$779$$) && $AdfMenuUtils$$.$closeAllMenus$($JSCompiler_alias_FALSE$$)
  }else {
    $componentEvent$$149_rootElement$$37$$.cancel();
    $componentEvent$$149_rootElement$$37$$ = this.$getDomElement$();
    var $alreadyHaveFocus$$1$$ = $AdfFocusUtils$$.$containsFocus$($componentEvent$$149_rootElement$$37$$);
    $AdfMenuUtils$$.$isInMenu$($component$$779$$) ? ($AdfDomUtils$$.$addCSSClassName$($componentEvent$$149_rootElement$$37$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$), $AdfMenuUtils$$.$dismiss$($componentEvent$$149_rootElement$$37$$, $JSCompiler_alias_FALSE$$), $alreadyHaveFocus$$1$$ || this.focus($component$$779$$)) : $AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && !$alreadyHaveFocus$$1$$ ? this.focus($component$$779$$) : $AdfMenuUtils$$.$highlightRootMenuItem$($componentEvent$$149_rootElement$$37$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentMouseOut$ = function $$AdfDhtmlGoMenuItemPeer$$$$$HandleComponentMouseOut$$($component$$780_componentEvent$$150_rootElement$$38$$) {
  $component$$780_componentEvent$$150_rootElement$$38$$.cancel();
  $AdfMenuUtils$$.$unhighlightRootMenuItem$();
  this.$_isDisabled$() || ($component$$780_componentEvent$$150_rootElement$$38$$ = this.$getComponent$(), $AdfMenuUtils$$.$isInMenu$($component$$780_componentEvent$$150_rootElement$$38$$) && this.$_deselectElement$(), $component$$780_componentEvent$$150_rootElement$$38$$ = this.$getDomElement$(), $AdfDomUtils$$.$removeCSSClassName$($component$$780_componentEvent$$150_rootElement$$38$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentMouseOut", {$HandleComponentMouseOut$:$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentMouseOut$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlGoMenuItemPeer$$$$$HandleComponentBlur$$() {
  this.$_deselectElement$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlGoMenuItemPeer$$$$$HandleComponentClick$$($componentEvent$$152$$) {
  !this.$_isDisabled$() && $componentEvent$$152$$.$isLeftButtonPressed$() && this.$_execute$();
  $componentEvent$$152$$.cancel()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlGoMenuItemPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$ComponentDisabledChanged$ = function $$AdfDhtmlGoMenuItemPeer$$$$$ComponentDisabledChanged$$($component$$781$$, $domElement$$203$$, $newValue$$57$$) {
  $AdfMenuUtils$$.$menuItemDisabledChanged$($component$$781$$, $domElement$$203$$, $newValue$$57$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.ComponentDisabledChanged", {$ComponentDisabledChanged$:$AdfDhtmlGoMenuItemPeer$$.prototype.$ComponentDisabledChanged$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$ComponentVisibleChanged$ = function $$AdfDhtmlGoMenuItemPeer$$$$$ComponentVisibleChanged$$($component$$782$$, $domElement$$204$$, $newValue$$58$$, $oldValue$$47$$) {
  $AdfDhtmlGoMenuItemPeer$$.$superclass$.$ComponentVisibleChanged$.call(this, $component$$782$$, $domElement$$204$$, $newValue$$58$$, $oldValue$$47$$);
  $AdfMenuUtils$$.$menuItemVisibleChanged$($component$$782$$, $domElement$$204$$, $newValue$$58$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.ComponentVisibleChanged", {$ComponentVisibleChanged$:$AdfDhtmlGoMenuItemPeer$$.prototype.$ComponentVisibleChanged$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$__preferredSizeChangeNotify$ = function $$AdfDhtmlGoMenuItemPeer$$$$$__preferredSizeChangeNotify$$($component$$783_parent$$36$$) {
  this.bind($component$$783_parent$$36$$);
  $component$$783_parent$$36$$ = this.$getComponentParent$($component$$783_parent$$36$$);
  var $parentPeer$$10$$ = $component$$783_parent$$36$$ != $JSCompiler_alias_NULL$$ ? $component$$783_parent$$36$$.$getPeer$() : $JSCompiler_alias_NULL$$;
  $parentPeer$$10$$ && $parentPeer$$10$$.$__preferredSizeChangeNotify$ && $parentPeer$$10$$.$__preferredSizeChangeNotify$($component$$783_parent$$36$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlGoMenuItemPeer.prototype.__preferredSizeChangeNotify", {$__preferredSizeChangeNotify$:$AdfDhtmlGoMenuItemPeer$$.prototype.$__preferredSizeChangeNotify$});
$AdfDhtmlGoMenuItemPeer$$.prototype.$_execute$ = function $$AdfDhtmlGoMenuItemPeer$$$$$_execute$$() {
  if(!this.$_isDisabled$()) {
    $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to goMenuItem execute");
    $AdfMenuUtils$$.$setMenuBarAutoOpenMode$($JSCompiler_alias_FALSE$$);
    var $component$$784_targetFrame$$ = this.$getComponent$(), $destination$$1_inMenu$$1_targetAttrs$$1$$ = $AdfMenuUtils$$.$getContextMenuItemTargetAttrs$($component$$784_targetFrame$$);
    $destination$$1_inMenu$$1_targetAttrs$$1$$ != $JSCompiler_alias_NULL$$ && $AdfMenuUtils$$.$setContextMenuItemTargetAttrs$($component$$784_targetFrame$$, $destination$$1_inMenu$$1_targetAttrs$$1$$);
    $destination$$1_inMenu$$1_targetAttrs$$1$$ = $component$$784_targetFrame$$.getDestination();
    if($destination$$1_inMenu$$1_targetAttrs$$1$$ == $JSCompiler_alias_NULL$$) {
      $destination$$1_inMenu$$1_targetAttrs$$1$$ = $AdfMenuUtils$$.$isInMenu$($component$$784_targetFrame$$), $AdfMenuUtils$$.$closeAllMenus$($destination$$1_inMenu$$1_targetAttrs$$1$$)
    }else {
      var $component$$784_targetFrame$$ = $component$$784_targetFrame$$.getTargetFrame(), $agent$$228$$ = $AdfAgent$$.$AGENT$;
      $component$$784_targetFrame$$ != $JSCompiler_alias_NULL$$ && "_blank" == $component$$784_targetFrame$$.toLowerCase() && $agent$$228$$.$getPlatform$() == $AdfAgent$$.$IE_PLATFORM$ && 8 > $agent$$228$$.$getVersion$() ? ($AdfMenuUtils$$.$closeAllMenus$($JSCompiler_alias_FALSE$$), $AdfPage$$.$PAGE$.$__handleNavigation$($destination$$1_inMenu$$1_targetAttrs$$1$$, $component$$784_targetFrame$$)) : ($AdfPage$$.$PAGE$.$__handleNavigation$($destination$$1_inMenu$$1_targetAttrs$$1$$, $component$$784_targetFrame$$), 
      $AdfMenuUtils$$.$closeAllMenus$($JSCompiler_alias_FALSE$$))
    }
  }
};
$AdfDhtmlGoMenuItemPeer$$.prototype.$_deselectElement$ = function $$AdfDhtmlGoMenuItemPeer$$$$$_deselectElement$$() {
  var $rootElement$$39$$ = this.$getDomElement$();
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$39$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$)
};
$AdfDhtmlGoMenuItemPeer$$.prototype.$_isDisabled$ = function $$AdfDhtmlGoMenuItemPeer$$$$$_isDisabled$$() {
  var $rootElement$$40$$ = this.$getDomElement$();
  return $rootElement$$40$$.disabled || $AdfDomUtils$$.$containsCSSClassName$($rootElement$$40$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$)
};
