Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-backports > by-pkgid > afb4c294e8f553dc8d6909c852dc1564 > files > 865

java-1.8.0-openjfx-1.8.0.76-1.b04.1.1.mga5.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_77) on Wed Apr 06 14:51:51 UTC 2016 -->
<title>MenuItem (JavaFX 8)</title>
<meta name="date" content="2016-04-06">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="MenuItem (JavaFX 8)";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/MenuItem.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">JavaFX&nbsp;8</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../javafx/scene/control/MenuButton.html" title="class in javafx.scene.control"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../javafx/scene/control/MultipleSelectionModel.html" title="class in javafx.scene.control"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?javafx/scene/control/MenuItem.html" target="_top">Frames</a></li>
<li><a href="MenuItem.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">javafx.scene.control</div>
<h2 title="Class MenuItem" class="title">Class MenuItem</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>javafx.scene.control.MenuItem</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a>, <a href="../../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../javafx/scene/control/CheckMenuItem.html" title="class in javafx.scene.control">CheckMenuItem</a>, <a href="../../../javafx/scene/control/CustomMenuItem.html" title="class in javafx.scene.control">CustomMenuItem</a>, <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control">Menu</a>, <a href="../../../javafx/scene/control/RadioMenuItem.html" title="class in javafx.scene.control">RadioMenuItem</a></dd>
</dl>
<hr>
<br>
<pre>@IDProperty(value="id")
public class <span class="typeNameLabel">MenuItem</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a>, <a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a></pre>
<div class="block"><p>
 MenuItem is intended to be used in conjunction with <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> to provide
 options to users. MenuItem serves as the base class for the bulk of JavaFX menus
 API.
 It has a display <a href="../../../javafx/scene/control/MenuItem.html#getText--"><code>text</code></a> property, as well as an optional <a href="../../../javafx/scene/control/MenuItem.html#getGraphic--"><code>graphic</code></a> node
 that can be set on it.
 The <a href="../../../javafx/scene/control/MenuItem.html#getAccelerator--"><code>accelerator</code></a> property enables accessing the
 associated action in one keystroke. Also, as with the <a href="../../../javafx/scene/control/Button.html" title="class in javafx.scene.control"><code>Button</code></a> control,
 by using the <a href="../../../javafx/scene/control/MenuItem.html#setOnAction-javafx.event.EventHandler-"><code>setOnAction(javafx.event.EventHandler&lt;javafx.event.ActionEvent&gt;)</code></a> method, you can have an instance of MenuItem
 perform any action you wish.
 <p>
 <b>Note:</b> Whilst any size of graphic can be inserted into a MenuItem, the most
 commonly used size in most applications is 16x16 pixels. This is
 the recommended graphic dimension to use if you're using the default style provided by
 JavaFX.
 <p>
 To create a MenuItem is simple:
<pre><code>
MenuItem menuItem = new MenuItem("Open");
menuItem.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
    &#064;Override public void handle(ActionEvent e) {
        System.out.println("Opening Database Connection...");
    }
});
menuItem.setGraphic(new ImageView(new Image("flower.png")));
</code></pre>
 <p>
 Refer to the <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> page to learn how to insert MenuItem into a menu
 instance. Briefly however, you can insert the MenuItem from the previous
 example into a Menu as such:
<pre><code>
final Menu menu = new Menu("File");
menu.getItems().add(menuItem);
</code></pre></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>JavaFX 2.0</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== PROPERTY SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="property.summary">
<!--   -->
</a>
<h3>Property Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Property Summary table, listing properties, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Type</th>
<th class="colLast" scope="col">Property and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/scene/input/KeyCombination.html" title="class in javafx.scene.input">KeyCombination</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#acceleratorProperty">accelerator</a></span></code>
<div class="block">The accelerator property enables accessing the associated action in one keystroke.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#disableProperty">disable</a></span></code>
<div class="block">Sets the individual disabled state of this MenuItem.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#graphicProperty">graphic</a></span></code>
<div class="block">An optional graphic for the <code>MenuItem</code>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#idProperty">id</a></span></code>
<div class="block">The id of this MenuItem.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#mnemonicParsingProperty">mnemonicParsing</a></span></code>
<div class="block">MnemonicParsing property to enable/disable text parsing.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#onActionProperty">onAction</a></span></code>
<div class="block">The action, which is invoked whenever the MenuItem is fired.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#onMenuValidationProperty">onMenuValidation</a></span></code>
<div class="block">The event handler that is associated with invocation of an accelerator for a MenuItem.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a>&lt;<a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control">Menu</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#parentMenuProperty">parentMenu</a></span></code>
<div class="block">This is the <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> in which this <code>MenuItem</code> exists.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a>&lt;<a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control">ContextMenu</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#parentPopupProperty">parentPopup</a></span></code>
<div class="block">This is the <a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control"><code>ContextMenu</code></a> in which this <code>MenuItem</code> exists.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#styleProperty">style</a></span></code>
<div class="block">A string representation of the CSS style associated with this specific MenuItem.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#textProperty">text</a></span></code>
<div class="block">The text to display in the <code>MenuItem</code>.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#visibleProperty">visible</a></span></code>
<div class="block">Specifies whether this MenuItem should be rendered as part of the scene graph.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a>&lt;<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#MENU_VALIDATION_EVENT">MENU_VALIDATION_EVENT</a></span></code>
<div class="block">Called when a accelerator for the Menuitem is invoked</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#MenuItem--">MenuItem</a></span>()</code>
<div class="block">Constructs a MenuItem with no display text.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#MenuItem-java.lang.String-">MenuItem</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;text)</code>
<div class="block">Constructs a MenuItem and sets the display text with the specified text</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#MenuItem-java.lang.String-javafx.scene.Node-">MenuItem</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;text,
        <a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a>&nbsp;graphic)</code>
<div class="block">Constructor s MenuItem and sets the display text with the specified text
 and sets the graphic <a href="../../../javafx/scene/Node.html" title="class in javafx.scene"><code>Node</code></a> to the given node.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/scene/input/KeyCombination.html" title="class in javafx.scene.input">KeyCombination</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#acceleratorProperty--">acceleratorProperty</a></span>()</code>
<div class="block">The accelerator property enables accessing the associated action in one keystroke.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>&lt;E extends <a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#addEventHandler-javafx.event.EventType-javafx.event.EventHandler-">addEventHandler</a></span>(<a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a>&lt;E&gt;&nbsp;eventType,
               <a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;E&gt;&nbsp;eventHandler)</code>
<div class="block">Registers an event handler to this MenuItem.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/event/EventDispatchChain.html" title="interface in javafx.event">EventDispatchChain</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#buildEventDispatchChain-javafx.event.EventDispatchChain-">buildEventDispatchChain</a></span>(<a href="../../../javafx/event/EventDispatchChain.html" title="interface in javafx.event">EventDispatchChain</a>&nbsp;tail)</code>
<div class="block">Construct an event dispatch chain for this target.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#disableProperty--">disableProperty</a></span>()</code>
<div class="block">Sets the individual disabled state of this MenuItem.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#fire--">fire</a></span>()</code>
<div class="block">Fires a new ActionEvent.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/scene/input/KeyCombination.html" title="class in javafx.scene.input">KeyCombination</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getAccelerator--">getAccelerator</a></span>()</code>
<div class="block">Gets the value of the property accelerator.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../javafx/css/CssMetaData.html" title="class in javafx.css">CssMetaData</a>&lt;? extends <a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a>,?&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getCssMetaData--">getCssMetaData</a></span>()</code>
<div class="block">The CssMetaData of this Styleable.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getGraphic--">getGraphic</a></span>()</code>
<div class="block">Gets the value of the property graphic.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getId--">getId</a></span>()</code>
<div class="block">Gets the value of the property id.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getOnAction--">getOnAction</a></span>()</code>
<div class="block">Gets the value of the property onAction.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getOnMenuValidation--">getOnMenuValidation</a></span>()</code>
<div class="block">Gets the value of the property onMenuValidation.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control">Menu</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getParentMenu--">getParentMenu</a></span>()</code>
<div class="block">Gets the value of the property parentMenu.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control">ContextMenu</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getParentPopup--">getParentPopup</a></span>()</code>
<div class="block">Gets the value of the property parentPopup.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/collections/ObservableMap.html" title="interface in javafx.collections">ObservableMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getProperties--">getProperties</a></span>()</code>
<div class="block">Returns an observable map of properties on this menu item for use primarily
 by application developers.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/collections/ObservableSet.html" title="interface in javafx.collections">ObservableSet</a>&lt;<a href="../../../javafx/css/PseudoClass.html" title="class in javafx.css">PseudoClass</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getPseudoClassStates--">getPseudoClassStates</a></span>()</code>
<div class="block">Return the pseudo-class state of this Styleable.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getStyle--">getStyle</a></span>()</code>
<div class="block">Gets the value of the property style.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getStyleableParent--">getStyleableParent</a></span>()</code>
<div class="block">Return the parent of this Styleable, or null if there is no parent.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/collections/ObservableList.html" title="interface in javafx.collections">ObservableList</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getStyleClass--">getStyleClass</a></span>()</code>
<div class="block">*
 Public API                                                              *
                                                                         *</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getText--">getText</a></span>()</code>
<div class="block">Gets the value of the property text.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getTypeSelector--">getTypeSelector</a></span>()</code>
<div class="block">The type of this <code>Styleable</code> that is to be used in selector matching.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#getUserData--">getUserData</a></span>()</code>
<div class="block">Returns a previously set Object property, or null if no such property
 has been set using the <a href="../../../javafx/scene/control/MenuItem.html#setUserData-java.lang.Object-"><code>setUserData(java.lang.Object)</code></a> method.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#graphicProperty--">graphicProperty</a></span>()</code>
<div class="block">An optional graphic for the <code>MenuItem</code>.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#idProperty--">idProperty</a></span>()</code>
<div class="block">The id of this MenuItem.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#isDisable--">isDisable</a></span>()</code>
<div class="block">Gets the value of the property disable.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#isMnemonicParsing--">isMnemonicParsing</a></span>()</code>
<div class="block">Gets the value of the property mnemonicParsing.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#isVisible--">isVisible</a></span>()</code>
<div class="block">Gets the value of the property visible.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#mnemonicParsingProperty--">mnemonicParsingProperty</a></span>()</code>
<div class="block">MnemonicParsing property to enable/disable text parsing.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#onActionProperty--">onActionProperty</a></span>()</code>
<div class="block">The action, which is invoked whenever the MenuItem is fired.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#onMenuValidationProperty--">onMenuValidationProperty</a></span>()</code>
<div class="block">The event handler that is associated with invocation of an accelerator for a MenuItem.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a>&lt;<a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control">Menu</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#parentMenuProperty--">parentMenuProperty</a></span>()</code>
<div class="block">This is the <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> in which this <code>MenuItem</code> exists.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a>&lt;<a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control">ContextMenu</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#parentPopupProperty--">parentPopupProperty</a></span>()</code>
<div class="block">This is the <a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control"><code>ContextMenu</code></a> in which this <code>MenuItem</code> exists.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>&lt;E extends <a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#removeEventHandler-javafx.event.EventType-javafx.event.EventHandler-">removeEventHandler</a></span>(<a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a>&lt;E&gt;&nbsp;eventType,
                  <a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;E&gt;&nbsp;eventHandler)</code>
<div class="block">Unregisters a previously registered event handler from this MenuItem.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setAccelerator-javafx.scene.input.KeyCombination-">setAccelerator</a></span>(<a href="../../../javafx/scene/input/KeyCombination.html" title="class in javafx.scene.input">KeyCombination</a>&nbsp;value)</code>
<div class="block">Sets the value of the property accelerator.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setDisable-boolean-">setDisable</a></span>(boolean&nbsp;value)</code>
<div class="block">Sets the value of the property disable.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setGraphic-javafx.scene.Node-">setGraphic</a></span>(<a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a>&nbsp;value)</code>
<div class="block">Sets the value of the property graphic.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setId-java.lang.String-">setId</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</code>
<div class="block">Sets the value of the property id.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setMnemonicParsing-boolean-">setMnemonicParsing</a></span>(boolean&nbsp;value)</code>
<div class="block">Sets the value of the property mnemonicParsing.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setOnAction-javafx.event.EventHandler-">setOnAction</a></span>(<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>&gt;&nbsp;value)</code>
<div class="block">Sets the value of the property onAction.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setOnMenuValidation-javafx.event.EventHandler-">setOnMenuValidation</a></span>(<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;&nbsp;value)</code>
<div class="block">Sets the value of the property onMenuValidation.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setParentMenu-javafx.scene.control.Menu-">setParentMenu</a></span>(<a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control">Menu</a>&nbsp;value)</code>
<div class="block">Sets the value of the property parentMenu.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setParentPopup-javafx.scene.control.ContextMenu-">setParentPopup</a></span>(<a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control">ContextMenu</a>&nbsp;value)</code>
<div class="block">Sets the value of the property parentPopup.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setStyle-java.lang.String-">setStyle</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</code>
<div class="block">Sets the value of the property style.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setText-java.lang.String-">setText</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</code>
<div class="block">Sets the value of the property text.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setUserData-java.lang.Object-">setUserData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value)</code>
<div class="block">Convenience method for setting a single Object property that can be
 retrieved at a later date.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#setVisible-boolean-">setVisible</a></span>(boolean&nbsp;value)</code>
<div class="block">Sets the value of the property visible.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#styleProperty--">styleProperty</a></span>()</code>
<div class="block">A string representation of the CSS style associated with this specific MenuItem.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#textProperty--">textProperty</a></span>()</code>
<div class="block">The text to display in the <code>MenuItem</code>.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/MenuItem.html#visibleProperty--">visibleProperty</a></span>()</code>
<div class="block">Specifies whether this MenuItem should be rendered as part of the scene graph.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ PROPERTY DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="property.detail">
<!--   -->
</a>
<h3>Property Detail</h3>
<a name="idProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>id</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a> idProperty</pre>
<div class="block">The id of this MenuItem. This simple string identifier is useful for finding
 a specific MenuItem within the scene graph.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getId--"><code>getId()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setId-java.lang.String-"><code>setId(String)</code></a></dd>
</dl>
</li>
</ul>
<a name="styleProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>style</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a> styleProperty</pre>
<div class="block">A string representation of the CSS style associated with this specific MenuItem.
 This is analogous to the "style" attribute of an HTML element. Note that,
 like the HTML style attribute, this variable contains style properties and
 values and not the selector portion of a style rule.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getStyle--"><code>getStyle()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setStyle-java.lang.String-"><code>setStyle(String)</code></a></dd>
</dl>
</li>
</ul>
<a name="parentMenuProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parentMenu</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a>&lt;<a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control">Menu</a>&gt; parentMenuProperty</pre>
<div class="block">This is the <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> in which this <code>MenuItem</code> exists. It is
 possible for an instance of this class to not have a <code>parentMenu</code> -
 this means that this instance is either:
 <ul>
 <li>Not yet associated with its <code>parentMenu</code>.
 <li>A 'root' <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> (i.e. it is a context menu, attached directly to a
 <a href="../../../javafx/scene/control/MenuBar.html" title="class in javafx.scene.control"><code>MenuBar</code></a>, <a href="../../../javafx/scene/control/MenuButton.html" title="class in javafx.scene.control"><code>MenuButton</code></a>, or any of the other controls that use
 <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> internally.
 </ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getParentMenu--"><code>getParentMenu()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setParentMenu-javafx.scene.control.Menu-"><code>setParentMenu(Menu)</code></a></dd>
</dl>
</li>
</ul>
<a name="parentPopupProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parentPopup</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a>&lt;<a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control">ContextMenu</a>&gt; parentPopupProperty</pre>
<div class="block">This is the <a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control"><code>ContextMenu</code></a> in which this <code>MenuItem</code> exists.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getParentPopup--"><code>getParentPopup()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setParentPopup-javafx.scene.control.ContextMenu-"><code>setParentPopup(ContextMenu)</code></a></dd>
</dl>
</li>
</ul>
<a name="textProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>text</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a> textProperty</pre>
<div class="block">The text to display in the <code>MenuItem</code>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getText--"><code>getText()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setText-java.lang.String-"><code>setText(String)</code></a></dd>
</dl>
</li>
</ul>
<a name="graphicProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>graphic</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a>&gt; graphicProperty</pre>
<div class="block">An optional graphic for the <code>MenuItem</code>. This will normally be
 an <a href="../../../javafx/scene/image/ImageView.html" title="class in javafx.scene.image"><code>ImageView</code></a> node, but there is no requirement for this to be
 the case.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getGraphic--"><code>getGraphic()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setGraphic-javafx.scene.Node-"><code>setGraphic(Node)</code></a></dd>
</dl>
</li>
</ul>
<a name="onActionProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onAction</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>&gt;&gt; onActionProperty</pre>
<div class="block">The action, which is invoked whenever the MenuItem is fired. This
 may be due to the user clicking on the button with the mouse, or by
 a touch event, or by a key press, or if the developer programatically
 invokes the <a href="../../../javafx/scene/control/MenuItem.html#fire--"><code>fire()</code></a> method.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getOnAction--"><code>getOnAction()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setOnAction-javafx.event.EventHandler-"><code>setOnAction(EventHandler)</code></a></dd>
</dl>
</li>
</ul>
<a name="onMenuValidationProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onMenuValidation</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;&gt; onMenuValidationProperty</pre>
<div class="block">The event handler that is associated with invocation of an accelerator for a MenuItem. This
 can happen when a key sequence for an accelerator is pressed. The event handler is also
 invoked when onShowing event handler is called.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>JavaFX 2.2</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getOnMenuValidation--"><code>getOnMenuValidation()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setOnMenuValidation-javafx.event.EventHandler-"><code>setOnMenuValidation(EventHandler)</code></a></dd>
</dl>
</li>
</ul>
<a name="disableProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>disable</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a> disableProperty</pre>
<div class="block">Sets the individual disabled state of this MenuItem.
 Setting disable to true will cause this MenuItem to become disabled.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#isDisable--"><code>isDisable()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setDisable-boolean-"><code>setDisable(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="visibleProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>visible</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a> visibleProperty</pre>
<div class="block">Specifies whether this MenuItem should be rendered as part of the scene graph.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#isVisible--"><code>isVisible()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setVisible-boolean-"><code>setVisible(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="acceleratorProperty">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>accelerator</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/scene/input/KeyCombination.html" title="class in javafx.scene.input">KeyCombination</a>&gt; acceleratorProperty</pre>
<div class="block">The accelerator property enables accessing the associated action in one keystroke.
 It is a convenience offered to perform quickly a given action.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getAccelerator--"><code>getAccelerator()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setAccelerator-javafx.scene.input.KeyCombination-"><code>setAccelerator(KeyCombination)</code></a></dd>
</dl>
</li>
</ul>
<a name="mnemonicParsingProperty">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>mnemonicParsing</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a> mnemonicParsingProperty</pre>
<div class="block">MnemonicParsing property to enable/disable text parsing.
 If this is set to true, then the MenuItem text will be
 parsed to see if it contains the mnemonic parsing character '_'.
 When a mnemonic is detected the key combination will
 be determined based on the succeeding character, and the mnemonic
 added.

 <p>
 The default value for MenuItem is true.
 </p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#isMnemonicParsing--"><code>isMnemonicParsing()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setMnemonicParsing-boolean-"><code>setMnemonicParsing(boolean)</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="MENU_VALIDATION_EVENT">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>MENU_VALIDATION_EVENT</h4>
<pre>public static final&nbsp;<a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a>&lt;<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt; MENU_VALIDATION_EVENT</pre>
<div class="block"><p>Called when a accelerator for the Menuitem is invoked</p></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>JavaFX 2.2</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="MenuItem--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MenuItem</h4>
<pre>public&nbsp;MenuItem()</pre>
<div class="block">Constructs a MenuItem with no display text.</div>
</li>
</ul>
<a name="MenuItem-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MenuItem</h4>
<pre>public&nbsp;MenuItem(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;text)</pre>
<div class="block">Constructs a MenuItem and sets the display text with the specified text</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#setText-java.lang.String-"><code>setText(java.lang.String)</code></a></dd>
</dl>
</li>
</ul>
<a name="MenuItem-java.lang.String-javafx.scene.Node-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>MenuItem</h4>
<pre>public&nbsp;MenuItem(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;text,
                <a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a>&nbsp;graphic)</pre>
<div class="block">Constructor s MenuItem and sets the display text with the specified text
 and sets the graphic <a href="../../../javafx/scene/Node.html" title="class in javafx.scene"><code>Node</code></a> to the given node.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#setText-java.lang.String-"><code>setText(java.lang.String)</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setGraphic-javafx.scene.Node-"><code>setGraphic(javafx.scene.Node)</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="setId-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setId</h4>
<pre>public final&nbsp;void&nbsp;setId(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</pre>
<div class="block">Sets the value of the property id.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>The id of this MenuItem. This simple string identifier is useful for finding
 a specific MenuItem within the scene graph.</dd>
</dl>
</li>
</ul>
<a name="getId--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getId</h4>
<pre>public final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getId()</pre>
<div class="block">Gets the value of the property id.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../javafx/css/Styleable.html#getId--">getId</a></code>&nbsp;in interface&nbsp;<code><a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a></code></dd>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>The id of this MenuItem. This simple string identifier is useful for finding
 a specific MenuItem within the scene graph.</dd>
</dl>
</li>
</ul>
<a name="idProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>idProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a>&nbsp;idProperty()</pre>
<div class="block">The id of this MenuItem. This simple string identifier is useful for finding
 a specific MenuItem within the scene graph.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getId--"><code>getId()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setId-java.lang.String-"><code>setId(String)</code></a></dd>
</dl>
</li>
</ul>
<a name="setStyle-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStyle</h4>
<pre>public final&nbsp;void&nbsp;setStyle(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</pre>
<div class="block">Sets the value of the property style.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>A string representation of the CSS style associated with this specific MenuItem.
 This is analogous to the "style" attribute of an HTML element. Note that,
 like the HTML style attribute, this variable contains style properties and
 values and not the selector portion of a style rule.</dd>
</dl>
</li>
</ul>
<a name="getStyle--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStyle</h4>
<pre>public final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getStyle()</pre>
<div class="block">Gets the value of the property style.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../javafx/css/Styleable.html#getStyle--">getStyle</a></code>&nbsp;in interface&nbsp;<code><a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a></code></dd>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>A string representation of the CSS style associated with this specific MenuItem.
 This is analogous to the "style" attribute of an HTML element. Note that,
 like the HTML style attribute, this variable contains style properties and
 values and not the selector portion of a style rule.</dd>
</dl>
</li>
</ul>
<a name="styleProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>styleProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a>&nbsp;styleProperty()</pre>
<div class="block">A string representation of the CSS style associated with this specific MenuItem.
 This is analogous to the "style" attribute of an HTML element. Note that,
 like the HTML style attribute, this variable contains style properties and
 values and not the selector portion of a style rule.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getStyle--"><code>getStyle()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setStyle-java.lang.String-"><code>setStyle(String)</code></a></dd>
</dl>
</li>
</ul>
<a name="setParentMenu-javafx.scene.control.Menu-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setParentMenu</h4>
<pre>protected final&nbsp;void&nbsp;setParentMenu(<a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control">Menu</a>&nbsp;value)</pre>
<div class="block">Sets the value of the property parentMenu.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>This is the <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> in which this <code>MenuItem</code> exists. It is
 possible for an instance of this class to not have a <code>parentMenu</code> -
 this means that this instance is either:
 <ul>
 <li>Not yet associated with its <code>parentMenu</code>.
 <li>A 'root' <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> (i.e. it is a context menu, attached directly to a
 <a href="../../../javafx/scene/control/MenuBar.html" title="class in javafx.scene.control"><code>MenuBar</code></a>, <a href="../../../javafx/scene/control/MenuButton.html" title="class in javafx.scene.control"><code>MenuButton</code></a>, or any of the other controls that use
 <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> internally.
 </ul></dd>
</dl>
</li>
</ul>
<a name="getParentMenu--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParentMenu</h4>
<pre>public final&nbsp;<a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control">Menu</a>&nbsp;getParentMenu()</pre>
<div class="block">Gets the value of the property parentMenu.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>This is the <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> in which this <code>MenuItem</code> exists. It is
 possible for an instance of this class to not have a <code>parentMenu</code> -
 this means that this instance is either:
 <ul>
 <li>Not yet associated with its <code>parentMenu</code>.
 <li>A 'root' <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> (i.e. it is a context menu, attached directly to a
 <a href="../../../javafx/scene/control/MenuBar.html" title="class in javafx.scene.control"><code>MenuBar</code></a>, <a href="../../../javafx/scene/control/MenuButton.html" title="class in javafx.scene.control"><code>MenuButton</code></a>, or any of the other controls that use
 <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> internally.
 </ul></dd>
</dl>
</li>
</ul>
<a name="parentMenuProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parentMenuProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a>&lt;<a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control">Menu</a>&gt;&nbsp;parentMenuProperty()</pre>
<div class="block">This is the <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> in which this <code>MenuItem</code> exists. It is
 possible for an instance of this class to not have a <code>parentMenu</code> -
 this means that this instance is either:
 <ul>
 <li>Not yet associated with its <code>parentMenu</code>.
 <li>A 'root' <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> (i.e. it is a context menu, attached directly to a
 <a href="../../../javafx/scene/control/MenuBar.html" title="class in javafx.scene.control"><code>MenuBar</code></a>, <a href="../../../javafx/scene/control/MenuButton.html" title="class in javafx.scene.control"><code>MenuButton</code></a>, or any of the other controls that use
 <a href="../../../javafx/scene/control/Menu.html" title="class in javafx.scene.control"><code>Menu</code></a> internally.
 </ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getParentMenu--"><code>getParentMenu()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setParentMenu-javafx.scene.control.Menu-"><code>setParentMenu(Menu)</code></a></dd>
</dl>
</li>
</ul>
<a name="setParentPopup-javafx.scene.control.ContextMenu-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setParentPopup</h4>
<pre>protected final&nbsp;void&nbsp;setParentPopup(<a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control">ContextMenu</a>&nbsp;value)</pre>
<div class="block">Sets the value of the property parentPopup.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>This is the <a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control"><code>ContextMenu</code></a> in which this <code>MenuItem</code> exists.</dd>
</dl>
</li>
</ul>
<a name="getParentPopup--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParentPopup</h4>
<pre>public final&nbsp;<a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control">ContextMenu</a>&nbsp;getParentPopup()</pre>
<div class="block">Gets the value of the property parentPopup.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>This is the <a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control"><code>ContextMenu</code></a> in which this <code>MenuItem</code> exists.</dd>
</dl>
</li>
</ul>
<a name="parentPopupProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parentPopupProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a>&lt;<a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control">ContextMenu</a>&gt;&nbsp;parentPopupProperty()</pre>
<div class="block">This is the <a href="../../../javafx/scene/control/ContextMenu.html" title="class in javafx.scene.control"><code>ContextMenu</code></a> in which this <code>MenuItem</code> exists.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getParentPopup--"><code>getParentPopup()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setParentPopup-javafx.scene.control.ContextMenu-"><code>setParentPopup(ContextMenu)</code></a></dd>
</dl>
</li>
</ul>
<a name="setText-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setText</h4>
<pre>public final&nbsp;void&nbsp;setText(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</pre>
<div class="block">Sets the value of the property text.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>The text to display in the <code>MenuItem</code>.</dd>
</dl>
</li>
</ul>
<a name="getText--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getText</h4>
<pre>public final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getText()</pre>
<div class="block">Gets the value of the property text.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>The text to display in the <code>MenuItem</code>.</dd>
</dl>
</li>
</ul>
<a name="textProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>textProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/StringProperty.html" title="class in javafx.beans.property">StringProperty</a>&nbsp;textProperty()</pre>
<div class="block">The text to display in the <code>MenuItem</code>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getText--"><code>getText()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setText-java.lang.String-"><code>setText(String)</code></a></dd>
</dl>
</li>
</ul>
<a name="setGraphic-javafx.scene.Node-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setGraphic</h4>
<pre>public final&nbsp;void&nbsp;setGraphic(<a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a>&nbsp;value)</pre>
<div class="block">Sets the value of the property graphic.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>An optional graphic for the <code>MenuItem</code>. This will normally be
 an <a href="../../../javafx/scene/image/ImageView.html" title="class in javafx.scene.image"><code>ImageView</code></a> node, but there is no requirement for this to be
 the case.</dd>
</dl>
</li>
</ul>
<a name="getGraphic--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGraphic</h4>
<pre>public final&nbsp;<a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a>&nbsp;getGraphic()</pre>
<div class="block">Gets the value of the property graphic.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>An optional graphic for the <code>MenuItem</code>. This will normally be
 an <a href="../../../javafx/scene/image/ImageView.html" title="class in javafx.scene.image"><code>ImageView</code></a> node, but there is no requirement for this to be
 the case.</dd>
</dl>
</li>
</ul>
<a name="graphicProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>graphicProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a>&gt;&nbsp;graphicProperty()</pre>
<div class="block">An optional graphic for the <code>MenuItem</code>. This will normally be
 an <a href="../../../javafx/scene/image/ImageView.html" title="class in javafx.scene.image"><code>ImageView</code></a> node, but there is no requirement for this to be
 the case.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getGraphic--"><code>getGraphic()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setGraphic-javafx.scene.Node-"><code>setGraphic(Node)</code></a></dd>
</dl>
</li>
</ul>
<a name="setOnAction-javafx.event.EventHandler-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOnAction</h4>
<pre>public final&nbsp;void&nbsp;setOnAction(<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>&gt;&nbsp;value)</pre>
<div class="block">Sets the value of the property onAction.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>The action, which is invoked whenever the MenuItem is fired. This
 may be due to the user clicking on the button with the mouse, or by
 a touch event, or by a key press, or if the developer programatically
 invokes the <a href="../../../javafx/scene/control/MenuItem.html#fire--"><code>fire()</code></a> method.</dd>
</dl>
</li>
</ul>
<a name="getOnAction--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOnAction</h4>
<pre>public final&nbsp;<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>&gt;&nbsp;getOnAction()</pre>
<div class="block">Gets the value of the property onAction.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>The action, which is invoked whenever the MenuItem is fired. This
 may be due to the user clicking on the button with the mouse, or by
 a touch event, or by a key press, or if the developer programatically
 invokes the <a href="../../../javafx/scene/control/MenuItem.html#fire--"><code>fire()</code></a> method.</dd>
</dl>
</li>
</ul>
<a name="onActionProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onActionProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>&gt;&gt;&nbsp;onActionProperty()</pre>
<div class="block">The action, which is invoked whenever the MenuItem is fired. This
 may be due to the user clicking on the button with the mouse, or by
 a touch event, or by a key press, or if the developer programatically
 invokes the <a href="../../../javafx/scene/control/MenuItem.html#fire--"><code>fire()</code></a> method.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getOnAction--"><code>getOnAction()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setOnAction-javafx.event.EventHandler-"><code>setOnAction(EventHandler)</code></a></dd>
</dl>
</li>
</ul>
<a name="setOnMenuValidation-javafx.event.EventHandler-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOnMenuValidation</h4>
<pre>public final&nbsp;void&nbsp;setOnMenuValidation(<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;&nbsp;value)</pre>
<div class="block">Sets the value of the property onMenuValidation.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>The event handler that is associated with invocation of an accelerator for a MenuItem. This
 can happen when a key sequence for an accelerator is pressed. The event handler is also
 invoked when onShowing event handler is called.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>JavaFX 2.2</dd>
</dl>
</li>
</ul>
<a name="getOnMenuValidation--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOnMenuValidation</h4>
<pre>public final&nbsp;<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;&nbsp;getOnMenuValidation()</pre>
<div class="block">Gets the value of the property onMenuValidation.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>The event handler that is associated with invocation of an accelerator for a MenuItem. This
 can happen when a key sequence for an accelerator is pressed. The event handler is also
 invoked when onShowing event handler is called.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>JavaFX 2.2</dd>
</dl>
</li>
</ul>
<a name="onMenuValidationProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onMenuValidationProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;<a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;&gt;&nbsp;onMenuValidationProperty()</pre>
<div class="block">The event handler that is associated with invocation of an accelerator for a MenuItem. This
 can happen when a key sequence for an accelerator is pressed. The event handler is also
 invoked when onShowing event handler is called.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>JavaFX 2.2</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getOnMenuValidation--"><code>getOnMenuValidation()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setOnMenuValidation-javafx.event.EventHandler-"><code>setOnMenuValidation(EventHandler)</code></a></dd>
</dl>
</li>
</ul>
<a name="setDisable-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDisable</h4>
<pre>public final&nbsp;void&nbsp;setDisable(boolean&nbsp;value)</pre>
<div class="block">Sets the value of the property disable.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>Sets the individual disabled state of this MenuItem.
 Setting disable to true will cause this MenuItem to become disabled.</dd>
</dl>
</li>
</ul>
<a name="isDisable--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDisable</h4>
<pre>public final&nbsp;boolean&nbsp;isDisable()</pre>
<div class="block">Gets the value of the property disable.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>Sets the individual disabled state of this MenuItem.
 Setting disable to true will cause this MenuItem to become disabled.</dd>
</dl>
</li>
</ul>
<a name="disableProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>disableProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a>&nbsp;disableProperty()</pre>
<div class="block">Sets the individual disabled state of this MenuItem.
 Setting disable to true will cause this MenuItem to become disabled.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#isDisable--"><code>isDisable()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setDisable-boolean-"><code>setDisable(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="setVisible-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVisible</h4>
<pre>public final&nbsp;void&nbsp;setVisible(boolean&nbsp;value)</pre>
<div class="block">Sets the value of the property visible.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>Specifies whether this MenuItem should be rendered as part of the scene graph.</dd>
</dl>
</li>
</ul>
<a name="isVisible--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isVisible</h4>
<pre>public final&nbsp;boolean&nbsp;isVisible()</pre>
<div class="block">Gets the value of the property visible.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>Specifies whether this MenuItem should be rendered as part of the scene graph.</dd>
</dl>
</li>
</ul>
<a name="visibleProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>visibleProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a>&nbsp;visibleProperty()</pre>
<div class="block">Specifies whether this MenuItem should be rendered as part of the scene graph.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#isVisible--"><code>isVisible()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setVisible-boolean-"><code>setVisible(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="setAccelerator-javafx.scene.input.KeyCombination-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAccelerator</h4>
<pre>public final&nbsp;void&nbsp;setAccelerator(<a href="../../../javafx/scene/input/KeyCombination.html" title="class in javafx.scene.input">KeyCombination</a>&nbsp;value)</pre>
<div class="block">Sets the value of the property accelerator.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>The accelerator property enables accessing the associated action in one keystroke.
 It is a convenience offered to perform quickly a given action.</dd>
</dl>
</li>
</ul>
<a name="getAccelerator--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAccelerator</h4>
<pre>public final&nbsp;<a href="../../../javafx/scene/input/KeyCombination.html" title="class in javafx.scene.input">KeyCombination</a>&nbsp;getAccelerator()</pre>
<div class="block">Gets the value of the property accelerator.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>The accelerator property enables accessing the associated action in one keystroke.
 It is a convenience offered to perform quickly a given action.</dd>
</dl>
</li>
</ul>
<a name="acceleratorProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>acceleratorProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a>&lt;<a href="../../../javafx/scene/input/KeyCombination.html" title="class in javafx.scene.input">KeyCombination</a>&gt;&nbsp;acceleratorProperty()</pre>
<div class="block">The accelerator property enables accessing the associated action in one keystroke.
 It is a convenience offered to perform quickly a given action.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#getAccelerator--"><code>getAccelerator()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setAccelerator-javafx.scene.input.KeyCombination-"><code>setAccelerator(KeyCombination)</code></a></dd>
</dl>
</li>
</ul>
<a name="setMnemonicParsing-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMnemonicParsing</h4>
<pre>public final&nbsp;void&nbsp;setMnemonicParsing(boolean&nbsp;value)</pre>
<div class="block">Sets the value of the property mnemonicParsing.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>MnemonicParsing property to enable/disable text parsing.
 If this is set to true, then the MenuItem text will be
 parsed to see if it contains the mnemonic parsing character '_'.
 When a mnemonic is detected the key combination will
 be determined based on the succeeding character, and the mnemonic
 added.

 <p>
 The default value for MenuItem is true.
 </p></dd>
</dl>
</li>
</ul>
<a name="isMnemonicParsing--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isMnemonicParsing</h4>
<pre>public final&nbsp;boolean&nbsp;isMnemonicParsing()</pre>
<div class="block">Gets the value of the property mnemonicParsing.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>MnemonicParsing property to enable/disable text parsing.
 If this is set to true, then the MenuItem text will be
 parsed to see if it contains the mnemonic parsing character '_'.
 When a mnemonic is detected the key combination will
 be determined based on the succeeding character, and the mnemonic
 added.

 <p>
 The default value for MenuItem is true.
 </p></dd>
</dl>
</li>
</ul>
<a name="mnemonicParsingProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mnemonicParsingProperty</h4>
<pre>public final&nbsp;<a href="../../../javafx/beans/property/BooleanProperty.html" title="class in javafx.beans.property">BooleanProperty</a>&nbsp;mnemonicParsingProperty()</pre>
<div class="block">MnemonicParsing property to enable/disable text parsing.
 If this is set to true, then the MenuItem text will be
 parsed to see if it contains the mnemonic parsing character '_'.
 When a mnemonic is detected the key combination will
 be determined based on the succeeding character, and the mnemonic
 added.

 <p>
 The default value for MenuItem is true.
 </p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/MenuItem.html#isMnemonicParsing--"><code>isMnemonicParsing()</code></a>, 
<a href="../../../javafx/scene/control/MenuItem.html#setMnemonicParsing-boolean-"><code>setMnemonicParsing(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="getStyleClass--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStyleClass</h4>
<pre>public&nbsp;<a href="../../../javafx/collections/ObservableList.html" title="interface in javafx.collections">ObservableList</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;getStyleClass()</pre>
<div class="block">*
 Public API                                                              *
                                                                         *</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../javafx/css/Styleable.html#getStyleClass--">getStyleClass</a></code>&nbsp;in interface&nbsp;<code><a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a></code></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://www.w3.org/TR/css3-selectors/#class-html">CSS3 class selectors</a></dd>
</dl>
</li>
</ul>
<a name="fire--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fire</h4>
<pre>public&nbsp;void&nbsp;fire()</pre>
<div class="block">Fires a new ActionEvent.</div>
</li>
</ul>
<a name="addEventHandler-javafx.event.EventType-javafx.event.EventHandler-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addEventHandler</h4>
<pre>public&nbsp;&lt;E extends <a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;&nbsp;void&nbsp;addEventHandler(<a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a>&lt;E&gt;&nbsp;eventType,
                                              <a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;E&gt;&nbsp;eventHandler)</pre>
<div class="block">Registers an event handler to this MenuItem. The handler is called when the
 menu item receives an <code>Event</code> of the specified type during the bubbling
 phase of event delivery.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>E</code> - the specific event class of the handler</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>eventType</code> - the type of the events to receive by the handler</dd>
<dd><code>eventHandler</code> - the handler to register</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the event type or handler is null</dd>
</dl>
</li>
</ul>
<a name="removeEventHandler-javafx.event.EventType-javafx.event.EventHandler-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeEventHandler</h4>
<pre>public&nbsp;&lt;E extends <a href="../../../javafx/event/Event.html" title="class in javafx.event">Event</a>&gt;&nbsp;void&nbsp;removeEventHandler(<a href="../../../javafx/event/EventType.html" title="class in javafx.event">EventType</a>&lt;E&gt;&nbsp;eventType,
                                                 <a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a>&lt;E&gt;&nbsp;eventHandler)</pre>
<div class="block">Unregisters a previously registered event handler from this MenuItem. One
 handler might have been registered for different event types, so the
 caller needs to specify the particular event type from which to
 unregister the handler.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>E</code> - the specific event class of the handler</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>eventType</code> - the event type from which to unregister</dd>
<dd><code>eventHandler</code> - the handler to unregister</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the event type or handler is null</dd>
</dl>
</li>
</ul>
<a name="buildEventDispatchChain-javafx.event.EventDispatchChain-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>buildEventDispatchChain</h4>
<pre>public&nbsp;<a href="../../../javafx/event/EventDispatchChain.html" title="interface in javafx.event">EventDispatchChain</a>&nbsp;buildEventDispatchChain(<a href="../../../javafx/event/EventDispatchChain.html" title="interface in javafx.event">EventDispatchChain</a>&nbsp;tail)</pre>
<div class="block">Construct an event dispatch chain for this target. The event dispatch
 chain contains event dispatchers which might be interested in processing
 of events targeted at this <code>EventTarget</code>. This event target is
 not automatically added to the chain, so if it wants to process events,
 it needs to add an <code>EventDispatcher</code> for itself to the chain.
 <p>
 In the case the event target is part of some hierarchy, the chain for it
 is usually built from event dispatchers collected from the root of the
 hierarchy to the event target.
 <p>
 The event dispatch chain is constructed by modifications to the provided
 initial event dispatch chain. The returned chain should have the initial
 chain at its end so the dispatchers should be prepended to the initial
 chain.
 <p>
 The caller shouldn't assume that the initial chain remains unchanged nor
 that the returned value will reference a different chain.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../javafx/event/EventTarget.html#buildEventDispatchChain-javafx.event.EventDispatchChain-">buildEventDispatchChain</a></code>&nbsp;in interface&nbsp;<code><a href="../../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>tail</code> - the initial chain to build from</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the resulting event dispatch chain for this target</dd>
</dl>
</li>
</ul>
<a name="getUserData--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUserData</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;getUserData()</pre>
<div class="block">Returns a previously set Object property, or null if no such property
 has been set using the <a href="../../../javafx/scene/control/MenuItem.html#setUserData-java.lang.Object-"><code>setUserData(java.lang.Object)</code></a> method.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The Object that was previously set, or null if no property
          has been set or if null was set.</dd>
</dl>
</li>
</ul>
<a name="setUserData-java.lang.Object-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUserData</h4>
<pre>public&nbsp;void&nbsp;setUserData(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value)</pre>
<div class="block">Convenience method for setting a single Object property that can be
 retrieved at a later date. This is functionally equivalent to calling
 the getProperties().put(Object key, Object value) method. This can later
 be retrieved by calling <a href="../../../javafx/scene/Node.html#getUserData--"><code>Node.getUserData()</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - The value to be stored - this can later be retrieved by calling
          <a href="../../../javafx/scene/Node.html#getUserData--"><code>Node.getUserData()</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getProperties--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getProperties</h4>
<pre>public&nbsp;<a href="../../../javafx/collections/ObservableMap.html" title="interface in javafx.collections">ObservableMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;getProperties()</pre>
<div class="block">Returns an observable map of properties on this menu item for use primarily
 by application developers.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an observable map of properties on this menu item for use primarily
 by application developers</dd>
</dl>
</li>
</ul>
<a name="getTypeSelector--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypeSelector</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getTypeSelector()</pre>
<div class="block">The type of this <code>Styleable</code> that is to be used in selector matching.
 This is analogous to an "element" in HTML.
 (<a href="http://www.w3.org/TR/CSS2/selector.html#type-selectors">CSS Type Selector</a>).</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../javafx/css/Styleable.html#getTypeSelector--">getTypeSelector</a></code>&nbsp;in interface&nbsp;<code><a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>"MenuItem"</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>JavaFX 8.0</dd>
</dl>
</li>
</ul>
<a name="getStyleableParent--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStyleableParent</h4>
<pre>public&nbsp;<a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a>&nbsp;getStyleableParent()</pre>
<div class="block">Return the parent of this Styleable, or null if there is no parent.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../javafx/css/Styleable.html#getStyleableParent--">getStyleableParent</a></code>&nbsp;in interface&nbsp;<code><a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>getParentMenu()</code>, or <code>getParentPopup()</code>
 if <code>parentMenu</code> is null</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>JavaFX 8.0</dd>
</dl>
</li>
</ul>
<a name="getPseudoClassStates--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPseudoClassStates</h4>
<pre>public final&nbsp;<a href="../../../javafx/collections/ObservableSet.html" title="interface in javafx.collections">ObservableSet</a>&lt;<a href="../../../javafx/css/PseudoClass.html" title="class in javafx.css">PseudoClass</a>&gt;&nbsp;getPseudoClassStates()</pre>
<div class="block">Return the pseudo-class state of this Styleable. CSS assumes this set is read-only.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../javafx/css/Styleable.html#getPseudoClassStates--">getPseudoClassStates</a></code>&nbsp;in interface&nbsp;<code><a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a></code></dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>JavaFX 8.0</dd>
</dl>
</li>
</ul>
<a name="getCssMetaData--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCssMetaData</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../javafx/css/CssMetaData.html" title="class in javafx.css">CssMetaData</a>&lt;? extends <a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a>,?&gt;&gt;&nbsp;getCssMetaData()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../javafx/css/Styleable.html#getCssMetaData--">Styleable</a></code></span></div>
<div class="block">The CssMetaData of this Styleable. This may be returned as
 an unmodifiable list.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../javafx/css/Styleable.html#getCssMetaData--">getCssMetaData</a></code>&nbsp;in interface&nbsp;<code><a href="../../../javafx/css/Styleable.html" title="interface in javafx.css">Styleable</a></code></dd>
</dl>
</li>
</ul>
<a name="toString--">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/MenuItem.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">JavaFX&nbsp;8</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../javafx/scene/control/MenuButton.html" title="class in javafx.scene.control"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../javafx/scene/control/MultipleSelectionModel.html" title="class in javafx.scene.control"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?javafx/scene/control/MenuItem.html" target="_top">Frames</a></li>
<li><a href="MenuItem.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><small><a href="https://docs.oracle.com/javase/8/docs/legal/cpyr.html">Copyright</a> (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.</small></small></p>
</body>
</html>