var $AdfDhtmlCommandMenuItemPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlCommandMenuItemPeer");
$goog$exportSymbol$$("AdfDhtmlCommandMenuItemPeer", $AdfDhtmlCommandMenuItemPeer$$);
$AdfDhtmlCommandMenuItemPeer$$.$InitSubclass$ = function $$AdfDhtmlCommandMenuItemPeer$$$$InitSubclass$$() {
  $AdfObject$$.$ensureClassInitialization$(AdfRichCommandMenuItem);
  $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, AdfRichCommandMenuItem.DISABLED, AdfRichCommandMenuItem.SELECTED, AdfRichCommandMenuItem.VISIBLE);
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichCommandMenuItem.TEXT);
  this.$_AFR_GROUPID$ = "_afrGrp";
  this.$_BUSY$ = "_busy"
};
$goog$exportSymbol$$("AdfDhtmlCommandMenuItemPeer.InitSubclass", $AdfDhtmlCommandMenuItemPeer$$.$InitSubclass$);
$AdfDhtmlCommandMenuItemPeer$$.prototype.Init = function $$AdfDhtmlCommandMenuItemPeer$$$$Init$($component$$600$$) {
  $component$$600$$.getParent();
  $AdfDhtmlCommandMenuItemPeer$$.$superclass$.Init.call(this, $component$$600$$);
  this.$_spaceKeyDown$ = this.$_enterKeyDown$ = $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.Init", {Init:$AdfDhtmlCommandMenuItemPeer$$.prototype.Init});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$InitDomElement$$($component$$601$$, $domElement$$125$$) {
  $AdfDhtmlCommandMenuItemPeer$$.$superclass$.$InitDomElement$.call(this, $component$$601$$, $domElement$$125$$);
  var $keystroke$$3$$ = $component$$601$$.getAccelerator();
  $keystroke$$3$$ != $JSCompiler_alias_NULL$$ && $AdfRichUIPeer$$.$registerKeyStroke$($component$$601$$, $keystroke$$3$$, this.$_execute$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$InitDomElement$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$ComponentRemoved$$($component$$602$$) {
  var $keystroke$$4$$ = $component$$602$$.getAccelerator();
  $keystroke$$4$$ != $JSCompiler_alias_NULL$$ && $AdfRichUIPeer$$.$unregisterKeyStroke$($component$$602$$, $keystroke$$4$$);
  $AdfDhtmlCommandMenuItemPeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$602$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$GetAccessibleName$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$GetAccessibleName$$() {
  return this.$getComponent$().getText()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.GetAccessibleName", {$GetAccessibleName$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$GetAccessibleName$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$GetComponentText$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$GetComponentText$$($component$$604$$, $domElement$$126$$) {
  var $parent$$24_text$$24_textElement$$2$$ = $component$$604$$.getParent();
  if($parent$$24_text$$24_textElement$$2$$ = window.AdfRichMenu && $parent$$24_text$$24_textElement$$2$$ instanceof AdfRichMenu ? $AdfDomUtils$$.$getChildElements$($domElement$$126$$)[1] : $AdfDomUtils$$.$getFirstDescendentElement$($domElement$$126$$, "a")) {
    if("antonym" == $component$$604$$.getType() && ($parent$$24_text$$24_textElement$$2$$ = $AdfDomUtils$$.$getFirstChildElement$($parent$$24_text$$24_textElement$$2$$)), $parent$$24_text$$24_textElement$$2$$) {
      return $parent$$24_text$$24_textElement$$2$$ = $AdfAgent$$.$AGENT$.$getTextContent$($parent$$24_text$$24_textElement$$2$$), "" == $parent$$24_text$$24_textElement$$2$$ ? $JSCompiler_alias_NULL$$ : $parent$$24_text$$24_textElement$$2$$
    }
  }
  $AdfAssert$$.assert($JSCompiler_alias_FALSE$$, "Unable to find the element containing the text")
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.GetComponentText", {$GetComponentText$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$GetComponentText$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentKeyUp$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$HandleComponentKeyUp$$($componentEvent$$94_parent$$25$$) {
  var $component$$605_evt$$83$$ = $componentEvent$$94_parent$$25$$.$getNativeEvent$();
  if(!$component$$605_evt$$83$$.ctrlKey) {
    var $cancelEvent_keyCode$$37$$ = $AdfAgent$$.$AGENT$.$getKeyCode$($component$$605_evt$$83$$), $component$$605_evt$$83$$ = this.$getComponent$(), $isBusy$$11$$ = $component$$605_evt$$83$$.$getProperty$($AdfDhtmlCommandMenuItemPeer$$.$_BUSY$);
    switch($cancelEvent_keyCode$$37$$) {
      case $AdfKeyStroke$$.$ENTER_KEY$:
        this.$_enterKeyDown$ && !$isBusy$$11$$ && this.$_execute$();
        this.$_enterKeyDown$ = $JSCompiler_alias_FALSE$$;
        $cancelEvent_keyCode$$37$$ = $JSCompiler_alias_TRUE$$;
        break;
      case $AdfKeyStroke$$.$SPACE_KEY$:
        this.$_spaceKeyDown$ && !$isBusy$$11$$ && this.$_execute$();
        this.$_spaceKeyDown$ = $JSCompiler_alias_FALSE$$;
        $cancelEvent_keyCode$$37$$ = $JSCompiler_alias_TRUE$$;
        break;
      default:
        return
    }
    $cancelEvent_keyCode$$37$$ && $componentEvent$$94_parent$$25$$.cancel();
    ($componentEvent$$94_parent$$25$$ = $component$$605_evt$$83$$.getParent()) && $componentEvent$$94_parent$$25$$ instanceof AdfRichMenu && $componentEvent$$94_parent$$25$$.$getPeer$().$updateScrollIconsState$()
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.HandleComponentKeyUp", {$HandleComponentKeyUp$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentKeyUp$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$HandleComponentKeyDown$$($componentEvent$$95$$) {
  if(!$componentEvent$$95$$.$isCanceled$() && !this.$_isDisabled$()) {
    var $keyCode$$38$$ = $componentEvent$$95$$.$getKeyCode$();
    $keyCode$$38$$ == $AdfKeyStroke$$.$ENTER_KEY$ ? (this.$_enterKeyDown$ = $JSCompiler_alias_TRUE$$, $componentEvent$$95$$.cancel(), $componentEvent$$95$$.$stopBubbling$()) : $keyCode$$38$$ == $AdfKeyStroke$$.$SPACE_KEY$ && (this.$_spaceKeyDown$ = $JSCompiler_alias_TRUE$$, $componentEvent$$95$$.cancel(), $componentEvent$$95$$.$stopBubbling$())
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$HandleComponentFocus$$($componentEvent$$96_rootElement$$24$$) {
  if(!this.$_isDisabled$()) {
    $componentEvent$$96_rootElement$$24$$.cancel();
    $componentEvent$$96_rootElement$$24$$ = this.$getDomElement$();
    $AdfDhtmlMenuPeer$$.$cancelShowing$();
    var $component$$606$$ = this.$getComponent$();
    $AdfMenuUtils$$.$isInMenu$($component$$606$$) ? $AdfDomUtils$$.$addCSSClassName$($componentEvent$$96_rootElement$$24$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$) : ($AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && $AdfMenuUtils$$.$closeAllMenus$($JSCompiler_alias_FALSE$$), $AdfMenuUtils$$.$highlightRootMenuItem$($componentEvent$$96_rootElement$$24$$))
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentMouseDown$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$HandleComponentMouseDown$$($componentEvent$$97_rootElement$$25$$) {
  !this.$_isDisabled$() && $componentEvent$$97_rootElement$$25$$.$isLeftButtonPressed$() && ($componentEvent$$97_rootElement$$25$$ = this.$getDomElement$(), $AdfDomUtils$$.$addCSSClassName$($componentEvent$$97_rootElement$$25$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.HandleComponentMouseDown", {$HandleComponentMouseDown$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentMouseDown$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentMouseUp$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$HandleComponentMouseUp$$($componentEvent$$98_rootElement$$26$$) {
  !this.$_isDisabled$() && $componentEvent$$98_rootElement$$26$$.$isLeftButtonPressed$() && ($componentEvent$$98_rootElement$$26$$ = this.$getDomElement$(), $AdfDomUtils$$.$removeCSSClassName$($componentEvent$$98_rootElement$$26$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.HandleComponentMouseUp", {$HandleComponentMouseUp$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentMouseUp$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentMouseOver$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$HandleComponentMouseOver$$($componentEvent$$99_rootElement$$27$$) {
  var $component$$607$$ = this.$getComponent$();
  if(this.$_isDisabled$()) {
    $AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && $AdfMenuUtils$$.$isOnMenuBar$($component$$607$$) && $AdfMenuUtils$$.$closeAllMenus$($JSCompiler_alias_FALSE$$)
  }else {
    $componentEvent$$99_rootElement$$27$$.cancel();
    $componentEvent$$99_rootElement$$27$$ = this.$getDomElement$();
    var $alreadyHaveFocus$$ = $AdfFocusUtils$$.$containsFocus$($componentEvent$$99_rootElement$$27$$);
    $AdfMenuUtils$$.$isInMenu$($component$$607$$) ? ($AdfDomUtils$$.$addCSSClassName$($componentEvent$$99_rootElement$$27$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$), $AdfMenuUtils$$.$dismiss$($componentEvent$$99_rootElement$$27$$, $JSCompiler_alias_FALSE$$), $alreadyHaveFocus$$ || this.focus($component$$607$$)) : $AdfMenuUtils$$.$isMenuBarAutoOpenMode$() && !$alreadyHaveFocus$$ ? this.focus($component$$607$$) : $AdfMenuUtils$$.$highlightRootMenuItem$($componentEvent$$99_rootElement$$27$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.HandleComponentMouseOver", {$HandleComponentMouseOver$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentMouseOver$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentMouseOut$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$HandleComponentMouseOut$$($component$$608_componentEvent$$100_rootElement$$28$$) {
  $component$$608_componentEvent$$100_rootElement$$28$$.cancel();
  $AdfMenuUtils$$.$unhighlightRootMenuItem$();
  this.$_isDisabled$() || ($component$$608_componentEvent$$100_rootElement$$28$$ = this.$getComponent$(), $AdfMenuUtils$$.$isInMenu$($component$$608_componentEvent$$100_rootElement$$28$$) && this.$_deselectElement$(), $component$$608_componentEvent$$100_rootElement$$28$$ = this.$getDomElement$(), $AdfDomUtils$$.$removeCSSClassName$($component$$608_componentEvent$$100_rootElement$$28$$, $AdfMenuUtils$$.$DEPRESSED_STYLE_CLASS$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.HandleComponentMouseOut", {$HandleComponentMouseOut$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentMouseOut$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$HandleComponentBlur$$() {
  this.$_deselectElement$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$HandleComponentClick$$($componentEvent$$102$$) {
  var $isBusy$$12$$ = this.$getComponent$().$getProperty$($AdfDhtmlCommandMenuItemPeer$$.$_BUSY$);
  $componentEvent$$102$$.$isLeftButtonPressed$() && (!this.$_isDisabled$() && !$isBusy$$12$$) && this.$_execute$();
  $componentEvent$$102$$.cancel()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$ComponentDisabledChanged$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$ComponentDisabledChanged$$($component$$610$$, $domElement$$127$$, $newValue$$45$$) {
  $AdfMenuUtils$$.$menuItemDisabledChanged$($component$$610$$, $domElement$$127$$, $newValue$$45$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.ComponentDisabledChanged", {$ComponentDisabledChanged$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$ComponentDisabledChanged$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$ComponentSelectedChanged$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$ComponentSelectedChanged$$($component$$611$$, $domElement$$128$$, $newValue$$46$$) {
  var $type$$138$$ = $component$$611$$.getType();
  if("check" == $type$$138$$ || "radio" == $type$$138$$) {
    ($AdfMenuUtils$$.$isInMenu$($component$$611$$) ? $domElement$$128$$ : $AdfDomUtils$$.$getFirstChildElement$($domElement$$128$$)).setAttribute("aria-checked", $newValue$$46$$ ? "true" : "false")
  }
  $newValue$$46$$ ? ($AdfDomUtils$$.$addCSSClassName$($domElement$$128$$, $AdfMenuUtils$$.$SELECTED_STYLE_CLASS$), "radio" == $type$$138$$ && this.$_toggleRadioGroupItems$()) : $AdfDomUtils$$.$removeCSSClassName$($domElement$$128$$, $AdfMenuUtils$$.$SELECTED_STYLE_CLASS$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.ComponentSelectedChanged", {$ComponentSelectedChanged$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$ComponentSelectedChanged$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$ComponentVisibleChanged$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$ComponentVisibleChanged$$($component$$612$$, $domElement$$129$$, $newValue$$47$$, $oldValue$$34$$) {
  $AdfDhtmlCommandMenuItemPeer$$.$superclass$.$ComponentVisibleChanged$.call(this, $component$$612$$, $domElement$$129$$, $newValue$$47$$, $oldValue$$34$$);
  $AdfMenuUtils$$.$menuItemVisibleChanged$($component$$612$$, $domElement$$129$$, $newValue$$47$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.ComponentVisibleChanged", {$ComponentVisibleChanged$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$ComponentVisibleChanged$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$SetBusy$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$SetBusy$$($isBusy$$13$$) {
  var $component$$613$$ = this.$getComponent$(), $domElement$$130$$ = this.$getDomElement$(), $actionForm$$4_isMultipart$$1$$ = $AdfDomUtils$$.$getFormElement$($domElement$$130$$);
  $actionForm$$4_isMultipart$$1$$ && ($actionForm$$4_isMultipart$$1$$ = $AdfDomUtils$$.$isMultiPartForm$($actionForm$$4_isMultipart$$1$$), !$component$$613$$.getDisabled() && (!$actionForm$$4_isMultipart$$1$$ && !$AdfPage$$.$PAGE$.$isAttachmentMode$()) && ($AdfDomUtils$$.$addOrRemoveCSSClassName$($isBusy$$13$$, $domElement$$130$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$), $component$$613$$.setProperty($AdfDhtmlCommandMenuItemPeer$$.$_BUSY$, $isBusy$$13$$, $JSCompiler_alias_FALSE$$, $AdfUIComponent$$.$PROPAGATE_NEVER$)))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.SetBusy", {$SetBusy$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$SetBusy$});
$AdfDhtmlCommandMenuItemPeer$$.prototype.$__preferredSizeChangeNotify$ = function $$AdfDhtmlCommandMenuItemPeer$$$$$__preferredSizeChangeNotify$$($component$$614_parent$$26$$) {
  this.bind($component$$614_parent$$26$$);
  $component$$614_parent$$26$$ = this.$getComponentParent$($component$$614_parent$$26$$);
  var $parentPeer$$5$$ = $component$$614_parent$$26$$ != $JSCompiler_alias_NULL$$ ? $component$$614_parent$$26$$.$getPeer$() : $JSCompiler_alias_NULL$$;
  $parentPeer$$5$$ && $parentPeer$$5$$.$__preferredSizeChangeNotify$ && $parentPeer$$5$$.$__preferredSizeChangeNotify$($component$$614_parent$$26$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlCommandMenuItemPeer.prototype.__preferredSizeChangeNotify", {$__preferredSizeChangeNotify$:$AdfDhtmlCommandMenuItemPeer$$.prototype.$__preferredSizeChangeNotify$});
$JSCompiler_prototypeAlias$$ = $AdfDhtmlCommandMenuItemPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_execute$ = function $$JSCompiler_prototypeAlias$$$$_execute$$() {
  if(!this.$_isDisabled$()) {
    $AdfLogger$$.$LOGGER$.finest("menuBar auto open mode, set to OFF due to commandMenuItem execute");
    $AdfMenuUtils$$.$setMenuBarAutoOpenMode$($JSCompiler_alias_FALSE$$);
    for(var $component$$615$$ = this.$getComponent$(), $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ = $component$$615$$.getParent();$actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ instanceof AdfRichMenu;) {
      $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ = $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$.getParent()
    }
    $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ instanceof AdfRichPopup ? ($AdfMenuUtils$$.$closeAllMenus$($JSCompiler_alias_FALSE$$), $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$.$getPeer$().$hide$($actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$)) : ($actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ = $AdfMenuUtils$$.$isInMenu$($component$$615$$), $AdfMenuUtils$$.$closeAllMenus$($actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$));
    $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ = $AdfMenuUtils$$.$getContextMenuItemTargetAttrs$($component$$615$$);
    $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ != $JSCompiler_alias_NULL$$ && $AdfMenuUtils$$.$setContextMenuItemTargetAttrs$($component$$615$$, $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$);
    $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ = new $AdfActionEvent$$($component$$615$$);
    $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$.$queue$($component$$615$$.getPartialSubmit());
    $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$.$isCanceled$() || ($actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ = $component$$615$$.getType(), "check" == $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ || "antonym" == $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ ? $component$$615$$.setSelected(!$component$$615$$.getSelected()) : "radio" == $actionEvent$$3_inMenu_parent$$27_targetAttrs_type$$139$$ && this.$_toggleRadioGroupItems$())
  }
};
$JSCompiler_prototypeAlias$$.$_toggleRadioGroupItems$ = function $$JSCompiler_prototypeAlias$$$$_toggleRadioGroupItems$$() {
  var $component$$616$$ = this.$getComponent$(), $currentGroupId$$1_domElement$$131$$ = this.$getDomElement$(), $currentGroupId$$1_domElement$$131$$ = this.$_getGroupId$($currentGroupId$$1_domElement$$131$$);
  if($currentGroupId$$1_domElement$$131$$ == $JSCompiler_alias_NULL$$) {
    $AdfLogger$$.$LOGGER$.warning("Unexpected to have commandMenuItem without a group Id."), $component$$616$$.setSelected(!$component$$616$$.getSelected())
  }else {
    if($AdfMenuUtils$$.$isInMenu$($component$$616$$)) {
      for(var $component$$inline_1594_component$$inline_1604$$ = this.$getComponent$(), $menuBar$$inline_1605_menuBarItems$$inline_1606_menuItems$$inline_1595$$ = this.$getDomElement$().parentNode.childNodes, $i$$inline_1596_i$$inline_1607$$ = 0;$i$$inline_1596_i$$inline_1607$$ < $menuBar$$inline_1605_menuBarItems$$inline_1606_menuItems$$inline_1595$$.length;$i$$inline_1596_i$$inline_1607$$++) {
        var $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$ = $menuBar$$inline_1605_menuBarItems$$inline_1606_menuItems$$inline_1595$$[$i$$inline_1596_i$$inline_1607$$], $groupId$$inline_1598_groupId$$inline_1611_menuItemElement$$inline_1610_menuItemPeer$$inline_1609$$ = this.$_getGroupId$($id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$);
        if($currentGroupId$$1_domElement$$131$$ == $groupId$$inline_1598_groupId$$inline_1611_menuItemElement$$inline_1610_menuItemPeer$$inline_1609$$ && ($id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$ = $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$.id)) {
          $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$ = $AdfPage$$.$PAGE$.$findComponent$($id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$), $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$ != $component$$inline_1594_component$$inline_1604$$ && ($id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$.getType && "radio" == $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$.getType()) && 
          $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$.setSelected($JSCompiler_alias_FALSE$$)
        }
      }
    }else {
      if($AdfMenuUtils$$.$isOnMenuBar$($component$$616$$)) {
        $component$$inline_1594_component$$inline_1604$$ = this.$getComponent$();
        $menuBar$$inline_1605_menuBarItems$$inline_1606_menuItems$$inline_1595$$ = $component$$inline_1594_component$$inline_1604$$.getParent();
        $menuBar$$inline_1605_menuBarItems$$inline_1606_menuItems$$inline_1595$$ = $menuBar$$inline_1605_menuBarItems$$inline_1606_menuItems$$inline_1595$$.$getPeer$().$getDescendantComponents$($menuBar$$inline_1605_menuBarItems$$inline_1606_menuItems$$inline_1595$$);
        for($i$$inline_1596_i$$inline_1607$$ = 0;$i$$inline_1596_i$$inline_1607$$ < $menuBar$$inline_1605_menuBarItems$$inline_1606_menuItems$$inline_1595$$.length;$i$$inline_1596_i$$inline_1607$$++) {
          $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$ = $menuBar$$inline_1605_menuBarItems$$inline_1606_menuItems$$inline_1595$$[$i$$inline_1596_i$$inline_1607$$], $groupId$$inline_1598_groupId$$inline_1611_menuItemElement$$inline_1610_menuItemPeer$$inline_1609$$ = $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$.$getPeer$(), $groupId$$inline_1598_groupId$$inline_1611_menuItemElement$$inline_1610_menuItemPeer$$inline_1609$$ != 
          $JSCompiler_alias_NULL$$ && ($groupId$$inline_1598_groupId$$inline_1611_menuItemElement$$inline_1610_menuItemPeer$$inline_1609$$ = $groupId$$inline_1598_groupId$$inline_1611_menuItemElement$$inline_1610_menuItemPeer$$inline_1609$$.$getDomElement$(), $groupId$$inline_1598_groupId$$inline_1611_menuItemElement$$inline_1610_menuItemPeer$$inline_1609$$ = this.$_getGroupId$($groupId$$inline_1598_groupId$$inline_1611_menuItemElement$$inline_1610_menuItemPeer$$inline_1609$$), $currentGroupId$$1_domElement$$131$$ == 
          $groupId$$inline_1598_groupId$$inline_1611_menuItemElement$$inline_1610_menuItemPeer$$inline_1609$$ && $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$ != $component$$inline_1594_component$$inline_1604$$ && ($id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$.getType && "radio" == $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$.getType()) && $id$$inline_1599_menuBarItem$$inline_1608_menuItem$$inline_1597_sibling$$inline_1600$$.setSelected($JSCompiler_alias_FALSE$$))
        }
      }
    }
    $component$$616$$.setSelected($JSCompiler_alias_TRUE$$)
  }
};
$JSCompiler_prototypeAlias$$.$_getGroupId$ = function $$JSCompiler_prototypeAlias$$$$_getGroupId$$($domElement$$133$$) {
  return $domElement$$133$$.getAttribute ? $domElement$$133$$.getAttribute($AdfDhtmlCommandMenuItemPeer$$.$_AFR_GROUPID$) : $JSCompiler_alias_NULL$$
};
$JSCompiler_prototypeAlias$$.$_deselectElement$ = function $$JSCompiler_prototypeAlias$$$$_deselectElement$$() {
  var $rootElement$$29$$ = this.$getDomElement$();
  $AdfDomUtils$$.$removeCSSClassName$($rootElement$$29$$, $AdfMenuUtils$$.$HIGHLIGHTED_STYLE_CLASS$)
};
$JSCompiler_prototypeAlias$$.$_isDisabled$ = function $$JSCompiler_prototypeAlias$$$$_isDisabled$$() {
  var $rootElement$$30$$ = this.$getDomElement$();
  return $rootElement$$30$$.disabled || $AdfDomUtils$$.$containsCSSClassName$($rootElement$$30$$, $AdfRichUIPeer$$.$DISABLED_STYLECLASS$)
};
