<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxPopupMenu"></a>mxPopupMenu</h1><divclass=CBody><p>Event handler that pans and creates popupmenus. To use the left mousebutton for panning without interfering with cell moving and resizing, use <isUseLeftButton> and <isIgnoreCell>. For grid size steps while panning, use <useGrid>. This handler is built-into <mxGraph.panningHandler> and enabled using <ahref="../view/mxGraph-js.html#mxGraph.setPanning"class=LFunctionid=link26onMouseOver="ShowTip(event, 'tt24', 'link26')"onMouseOut="HideTip('tt24')">mxGraph.setPanning</a>.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxPopupMenu">mxPopupMenu</a></td><tdclass=SDescription>Event handler that pans and creates popupmenus. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxPopupMenu.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.mxPopupMenu">mxPopupMenu</a></td><tdclass=SDescription>Constructs an event handler that creates a popupmenu. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxPopupMenu.Events">Events</a></td><tdclass=SDescription></td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.mxEvent.SHOW">mxEvent.SHOW</a></td><tdclass=SDescription>Fires after the menu has been shown in <ahref="#mxPopupMenu.popup"class=LFunctionid=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">popup</a>.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxPopupMenu.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.submenuImage"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">submenuImage</a></td><tdclass=SDescription>URL of the image to be used for the submenu icon.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenu.zIndex"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">zIndex</a></td><tdclass=SDescription>Specifies the zIndex for the popupmenu and its shadow. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.factoryMethod"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">factoryMethod</a></td><tdclass=SDescription>Function that is used to create the popup menu. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenu.useLeftButtonForPopup"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">useLeftButtonForPopup</a></td><tdclass=SDescription>Specifies if popupmenus should be activated by clicking the left mouse button. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.enabled"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">enabled</a></td><tdclass=SDescription>Specifies if events are handled. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenu.itemCount"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">itemCount</a></td><tdclass=SDescription>Contains the number of times <ahref="#mxPopupMenu.addItem"class=LFunctionid=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">addItem</a> has been called for a new menu.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.autoExpand"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">autoExpand</a></td><tdclass=SDescription>Specifies if submenus should be expanded on mouseover. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenu.smartSeparators"id=link10onMouseOver="ShowTip(event,'tt10',
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.mxPopupMenu"></a>mxPopupMenu</h3><divclass=CBody><p>Constructs an event handler that creates a popupmenu. The event handler is not installed anywhere in this ctor.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.mxEvent.SHOW"></a>mxEvent.SHOW</h3><divclass=CBody><p>Fires after the menu has been shown in <ahref="#mxPopupMenu.popup"class=LFunctionid=link27onMouseOver="ShowTip(event, 'tt1', 'link27')"onMouseOut="HideTip('tt1')">popup</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.submenuImage"></a>submenuImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.submenuImage</td></tr></table></blockquote><p>URL of the image to be used for the submenu icon.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.zIndex"></a>zIndex</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.zIndex</td></tr></table></blockquote><p>Specifies the zIndex for the popupmenu and its shadow. Default is 1006.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.factoryMethod"></a>factoryMethod</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.factoryMethod</td></tr></table></blockquote><p>Function that is used to create the popup menu. The function takes the current panning handler, the <ahref="../model/mxCell-js.html#mxCell"class=LClassid=link28onMouseOver="ShowTip(event, 'tt25', 'link28')"onMouseOut="HideTip('tt25')">mxCell</a> under the mouse and the mouse event that triggered the call as arguments.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.useLeftButtonForPopup"></a>useLeftButtonForPopup</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.useLeftButtonForPopup</td></tr></table></blockquote><p>Specifies if popupmenus should be activated by clicking the left mouse button. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.enabled"></a>enabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.enabled</td></tr></table></blockquote><p>Specifies if events are handled. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.itemCount"></a>itemCount</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.itemCount</td></tr></table></blockquote><p>Contains the number of times <ahref="#mxPopupMenu.addItem"class=LFunctionid=link29onMouseOver="ShowTip(event, 'tt8', 'link29')"onMouseOut="HideTip('tt8')">addItem</a> has been called for a new menu.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.autoExpand"></a>autoExpand</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.autoExpand</td></tr></table></blockquote><p>Specifies if submenus should be expanded on mouseover. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.smartSeparators"></a>smartSeparators</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.smartSeparators</td></tr></table></blockquote><p>Specifies if separators should only be added if a menu item follows them. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.labels"></a>labels</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.labels</td></tr></table></blockquote><p>Specifies if any labels should be visible. Default is true.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.init"></a>init</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.init = function()</td></tr></table></blockquote><p>Initializes the shapes required for this vertex handler.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.isEnabled"></a>isEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.isEnabled = function()</td></tr></table></blockquote><p>Returns true if events are handled. This implementation returns <ahref="#mxPopupMenu.enabled"class=LVariableid=link30onMouseOver="ShowTip(event, 'tt6', 'link30')"onMouseOut="HideTip('tt6')">enabled</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.setEnabled"></a>setEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.setEnabled = function(</td><tdclass=PParameternowrap>enabled</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Enables or disables event handling. This implementation updates <ahref="#mxPopupMenu.enabled"class=LVariableid=link31onMouseOver="ShowTip(event, 'tt6', 'link31')"onMouseOut="HideTip('tt6')">enabled</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.isPopupTrigger"></a>isPopupTrigger</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.isPopupTrigger = function(</td><tdclass=PParameternowrap>me</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given event is a popupmenu trigger for the optional given cell.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>me</td><tdclass=CDLDescription><ahref="mxMouseEvent-js.html#mxMouseEvent"class=LClassid=link32onMouseOver="ShowTip(event, 'tt26', 'link32')"onMouseOut="HideTip('tt26')">mxMouseEvent</a> that represents the mouse event.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.addItem"></a>addItem</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.addItem = function(</td><tdclass=PParameternowrap>title,</td></tr><tr><td></td><tdclass=PParameternowrap>image,</td></tr><tr><td></td><tdclass=PParameternowrap>funct,</td></tr><tr><td></td><tdclass=PParameternowrap>parent,</td></tr><tr><td></td><tdclass=PParameternowrap>iconCls,</td></tr><tr><td></td><tdclass=PParameternowrap>enabled</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds the given item to the given parent item. If no parent item is specified then the item is added to the top-level menu. The return value may be used as the parent argument, ie. as a submenu item. The return value is the table row that represents the item.</p><h4class=CHeading>Paramters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>title</td><tdclass=CDLDescription>String that represents the title of the menu item.</td></tr><tr><tdclass=CDLEntry>image</td><tdclass=CDLDescription>Optional URL for the image icon.</td></tr><tr><tdclass=CDLEntry>funct</td><tdclass=CDLDescription>Function associated that takes a mouseup or touchend event.</td></tr><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription>Optional item returned by <ahref="#mxPopupMenu.addItem"class=LFunctionid=link33onMouseOver="ShowTip(event, 'tt8', 'link33')"onMouseOut="HideTip('tt8')">addItem</a>.</td></tr><tr><tdclass=CDLEntry>iconCls</td><tdclass=CDLDescription>Optional string that represents the CSS class for the image icon. IconsCls is ignored if image is given.</td></tr><tr><tdclass=CDLEntry>enabled</td><tdclass=CDLDescription>Optional boolean indicating if the item is enabled. Default is true.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.createSubmenu"></a>createSubmenu</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.createSubmenu = function(</td><tdclass=PParameternowrap>parent</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates the nodes required to add submenu items inside the given parent item. This is called in <ahref="#mxPopupMenu.addItem"class=LFunctionid=link34onMouseOver="ShowTip(event, 'tt8', 'link34')"onMouseOut="HideTip('tt8')">addItem</a> if a parent item is used for the first time. This adds various DOM nodes and a <ahref="#mxPopupMenu.submenuImage"class=LVariableid=link35onMouseOver="ShowTip(event, 'tt2', 'link35')"onMouseOut="HideTip('tt2')">submenuImage</a> to the parent.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription>An item returned by <ahref="#mxPopupMenu.addItem"class=LFunctionid=link36onMouseOver="ShowTip(event, 'tt8', 'link36')"onMouseOut="HideTip('tt8')">addItem</a>.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.showSubmenu"></a>showSubmenu</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.showSubmenu = function(</td><tdclass=PParameternowrap>parent,</td></tr><tr><td></td><tdclass=PParameternowrap>row</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Shows the submenu inside the given parent row.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.addSeparator"></a>addSeparator</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.addSeparator = function(</td><tdclass=PParameternowrap>parent,</td></tr><tr><td></td><tdclass=PParameternowrap>force</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a horizontal separator in the given parent item or the top-level menu if no parent is specified.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription>Optional item returned by <ahref="#mxPopupMenu.addItem"class=LFunctionid=link37onMouseOver="ShowTip(event, 'tt8', 'link37')"onMouseOut="HideTip('tt8')">addItem</a>.</td></tr><tr><tdclass=CDLEntry>force</td><tdclass=CDLDescription>Optional boolean to ignore <ahref="#mxPopupMenu.smartSeparators"class=LVariableid=link38onMouseOver="ShowTip(event, 'tt10', 'link38')"onMouseOut="HideTip('tt10')">smartSeparators</a>. Default is false.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.popup"></a>popup</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.popup = function(</td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>cell,</td></tr><tr><td></td><tdclass=PParameternowrap>evt</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Shows the popup menu for the given event and cell.</p><h4class=CHeading>Example</h4><blockquote><preclass="prettyprint">graph.panningHandler.popup = function(x, y, cell, evt)
{
mxUtils.alert('Hello, World!');
}</pre></blockquote></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.isMenuShowing"></a>isMenuShowing</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.isMenuShowing = function()</td></tr></table></blockquote><p>Returns true if the menu is showing.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.showMenu"></a>showMenu</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.showMenu = function()</td></tr></table></blockquote><p>Shows the menu.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.hideMenu"></a>hideMenu</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.hideMenu = function()</td></tr></table></blockquote><p>Removes the menu and all submenus.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.hideSubmenu"></a>hideSubmenu</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.hideSubmenu = function(</td><tdclass=PParameternowrap>parent</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes all submenus inside the given parent.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription>An item returned by <ahref="#mxPopupMenu.addItem"class=LFunctionid=link39onMouseOver="ShowTip(event, 'tt8', 'link39')"onMouseOut="HideTip('tt8')">addItem</a>.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.destroy"></a>destroy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.destroy = function()</td></tr></table></blockquote><p>Destroys the handler and all its resources and DOM nodes.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.popup = function(</td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>cell,</td></tr><tr><td></td><tdclass=PParameternowrap>evt</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Shows the popup menu for the given event and cell.</div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.submenuImage</td></tr></table></blockquote>URL of the image to be used for the submenu icon.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.zIndex</td></tr></table></blockquote>Specifies the zIndex for the popupmenu and its shadow. </div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.factoryMethod</td></tr></table></blockquote>Function that is used to create the popup menu. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.useLeftButtonForPopup</td></tr></table></blockquote>Specifies if popupmenus should be activated by clicking the left mouse button. </div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.enabled</td></tr></table></blockquote>Specifies if events are handled. </div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.itemCount</td></tr></table></blockquote>Contains the number of times addItem has been called for a new menu.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.addItem = function(</td><tdclass=PParameternowrap>title,</td></tr><tr><td></td><tdclass=PParameternowrap>image,</td></tr><tr><td></td><tdclass=PParameternowrap>funct,</td></tr><tr><td></td><tdclass=PParameternowrap>parent,</td></tr><tr><td></td><tdclass=PParameternowrap>iconCls,</td></tr><tr><td></td><tdclass=PParameternowrap>enabled</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Adds the given item to the given parent item. </div></div><divclass=CToolTipid="tt9"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.autoExpand</td></tr></table></blockquote>Specifies if submenus should be expanded on mouseover. </div></div><divclass=CToolTipid="tt10"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.smartSeparators</td></tr></table></blockquote>Specifies if separators should only be added if a menu item follows them. </div></div><divclass=CToolTipid="tt11"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.labels</td></tr></table></blockquote>Specifies if any labels should be visible. </div></div><divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.init = function()</td></tr></table></blockquote>Initializes the shapes required for