Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > afb4c294e8f553dc8d6909c852dc1564 > files > 840

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:47 UTC 2016 -->
<title>ChoiceDialog (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="ChoiceDialog (JavaFX 8)";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":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};
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/ChoiceDialog.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/ChoiceBox.html" title="class in javafx.scene.control"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../javafx/scene/control/ColorPicker.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/ChoiceDialog.html" target="_top">Frames</a></li>
<li><a href="ChoiceDialog.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>Field&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>Field&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 ChoiceDialog" class="title">Class ChoiceDialog&lt;T&gt;</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><a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control">javafx.scene.control.Dialog</a>&lt;T&gt;</li>
<li>
<ul class="inheritance">
<li>javafx.scene.control.ChoiceDialog&lt;T&gt;</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The type of the items to show to the user, and the type that is returned
            via <a href="../../../javafx/scene/control/Dialog.html#getResult--"><code>Dialog.getResult()</code></a> when the dialog is dismissed.</dd>
</dl>
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">ChoiceDialog&lt;T&gt;</span>
extends <a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control">Dialog</a>&lt;T&gt;</pre>
<div class="block">A dialog that shows a list of choices to the user, from which they can pick
 one item at most.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>JavaFX 8u40</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control"><code>Dialog</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/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a>&lt;<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/ChoiceDialog.html#selectedItemProperty">selectedItem</a></span></code>
<div class="block">Returns the property representing the currently selected item in the dialog.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="properties.inherited.from.class.javafx.scene.control.Dialog">
<!--   -->
</a>
<h3>Properties inherited from class&nbsp;javafx.scene.control.<a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control">Dialog</a></h3>
<code><a href="../../../javafx/scene/control/Dialog.html#contentTextProperty">contentText</a>, <a href="../../../javafx/scene/control/Dialog.html#dialogPaneProperty">dialogPane</a>, <a href="../../../javafx/scene/control/Dialog.html#graphicProperty">graphic</a>, <a href="../../../javafx/scene/control/Dialog.html#headerTextProperty">headerText</a>, <a href="../../../javafx/scene/control/Dialog.html#heightProperty">height</a>, <a href="../../../javafx/scene/control/Dialog.html#onCloseRequestProperty">onCloseRequest</a>, <a href="../../../javafx/scene/control/Dialog.html#onHiddenProperty">onHidden</a>, <a href="../../../javafx/scene/control/Dialog.html#onHidingProperty">onHiding</a>, <a href="../../../javafx/scene/control/Dialog.html#onShowingProperty">onShowing</a>, <a href="../../../javafx/scene/control/Dialog.html#onShownProperty">onShown</a>, <a href="../../../javafx/scene/control/Dialog.html#resizableProperty">resizable</a>, <a href="../../../javafx/scene/control/Dialog.html#resultConverterProperty">resultConverter</a>, <a href="../../../javafx/scene/control/Dialog.html#resultProperty">result</a>, <a href="../../../javafx/scene/control/Dialog.html#showingProperty">showing</a>, <a href="../../../javafx/scene/control/Dialog.html#titleProperty">title</a>, <a href="../../../javafx/scene/control/Dialog.html#widthProperty">width</a>, <a href="../../../javafx/scene/control/Dialog.html#xProperty">x</a>, <a href="../../../javafx/scene/control/Dialog.html#yProperty">y</a></code></li>
</ul>
</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/ChoiceDialog.html#ChoiceDialog--">ChoiceDialog</a></span>()</code>
<div class="block">Creates a default, empty instance of ChoiceDialog with no set items and a
 null default choice.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/ChoiceDialog.html#ChoiceDialog-T-java.util.Collection-">ChoiceDialog</a></span>(<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&nbsp;defaultChoice,
            <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&gt;&nbsp;choices)</code>
<div class="block">Creates a new ChoiceDialog instance with the first argument specifying the
 default choice that should be shown to the user, and the second argument
 specifying a collection of all available choices for the user.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/ChoiceDialog.html#ChoiceDialog-T-T...-">ChoiceDialog</a></span>(<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&nbsp;defaultChoice,
            <a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>...&nbsp;choices)</code>
<div class="block">Creates a new ChoiceDialog instance with the first argument specifying the
 default choice that should be shown to the user, and all following arguments
 considered a varargs array of all available choices for the user.</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/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/ChoiceDialog.html#getDefaultChoice--">getDefaultChoice</a></span>()</code>
<div class="block">Returns the default choice that was specified in the constructor.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/collections/ObservableList.html" title="interface in javafx.collections">ObservableList</a>&lt;<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/ChoiceDialog.html#getItems--">getItems</a></span>()</code>
<div class="block">Returns the list of all items that will be displayed to users.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/ChoiceDialog.html#getSelectedItem--">getSelectedItem</a></span>()</code>
<div class="block">Returns the currently selected item in the dialog.</div>
</td>
</tr>
<tr id="i3" 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/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/ChoiceDialog.html#selectedItemProperty--">selectedItemProperty</a></span>()</code>
<div class="block">Returns the property representing the currently selected item in the dialog.</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/ChoiceDialog.html#setSelectedItem-T-">setSelectedItem</a></span>(<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&nbsp;item)</code>
<div class="block">Sets the currently selected item in the dialog.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javafx.scene.control.Dialog">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;javafx.scene.control.<a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control">Dialog</a></h3>
<code><a href="../../../javafx/scene/control/Dialog.html#buildEventDispatchChain-javafx.event.EventDispatchChain-">buildEventDispatchChain</a>, <a href="../../../javafx/scene/control/Dialog.html#close--">close</a>, <a href="../../../javafx/scene/control/Dialog.html#contentTextProperty--">contentTextProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#dialogPaneProperty--">dialogPaneProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#getContentText--">getContentText</a>, <a href="../../../javafx/scene/control/Dialog.html#getDialogPane--">getDialogPane</a>, <a href="../../../javafx/scene/control/Dialog.html#getGraphic--">getGraphic</a>, <a href="../../../javafx/scene/control/Dialog.html#getHeaderText--">getHeaderText</a>, <a href="../../../javafx/scene/control/Dialog.html#getHeight--">getHeight</a>, <a href="../../../javafx/scene/control/Dialog.html#getModality--">getModality</a>, <a href="../../../javafx/scene/control/Dialog.html#getOnCloseRequest--">getOnCloseRequest</a>, <a href="../../../javafx/scene/control/Dialog.html#getOnHidden--">getOnHidden</a>, <a href="../../../javafx/scene/control/Dialog.html#getOnHiding--">getOnHiding</a>, <a href="../../../javafx/scene/control/Dialog.html#getOnShowing--">getOnShowing</a>, <a href="../../../javafx/scene/control/Dialog.html#getOnShown--">getOnShown</a>, <a href="../../../javafx/scene/control/Dialog.html#getOwner--">getOwner</a>, <a href="../../../javafx/scene/control/Dialog.html#getResult--">getResult</a>, <a href="../../../javafx/scene/control/Dialog.html#getResultConverter--">getResultConverter</a>, <a href="../../../javafx/scene/control/Dialog.html#getTitle--">getTitle</a>, <a href="../../../javafx/scene/control/Dialog.html#getWidth--">getWidth</a>, <a href="../../../javafx/scene/control/Dialog.html#getX--">getX</a>, <a href="../../../javafx/scene/control/Dialog.html#getY--">getY</a>, <a href="../../../javafx/scene/control/Dialog.html#graphicProperty--">graphicProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#headerTextProperty--">headerTextProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#heightProperty--">heightProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#hide--">hide</a>, <a href="../../../javafx/scene/control/Dialog.html#initModality-javafx.stage.Modality-">initModality</a>, <a href="../../../javafx/scene/control/Dialog.html#initOwner-javafx.stage.Window-">initOwner</a>, <a href="../../../javafx/scene/control/Dialog.html#initStyle-javafx.stage.StageStyle-">initStyle</a>, <a href="../../../javafx/scene/control/Dialog.html#isResizable--">isResizable</a>, <a href="../../../javafx/scene/control/Dialog.html#isShowing--">isShowing</a>, <a href="../../../javafx/scene/control/Dialog.html#onCloseRequestProperty--">onCloseRequestProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#onHiddenProperty--">onHiddenProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#onHidingProperty--">onHidingProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#onShowingProperty--">onShowingProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#onShownProperty--">onShownProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#resizableProperty--">resizableProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#resultConverterProperty--">resultConverterProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#resultProperty--">resultProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#setContentText-java.lang.String-">setContentText</a>, <a href="../../../javafx/scene/control/Dialog.html#setDialogPane-javafx.scene.control.DialogPane-">setDialogPane</a>, <a href="../../../javafx/scene/control/Dialog.html#setGraphic-javafx.scene.Node-">setGraphic</a>, <a href="../../../javafx/scene/control/Dialog.html#setHeaderText-java.lang.String-">setHeaderText</a>, <a href="../../../javafx/scene/control/Dialog.html#setHeight-double-">setHeight</a>, <a href="../../../javafx/scene/control/Dialog.html#setOnCloseRequest-javafx.event.EventHandler-">setOnCloseRequest</a>, <a href="../../../javafx/scene/control/Dialog.html#setOnHidden-javafx.event.EventHandler-">setOnHidden</a>, <a href="../../../javafx/scene/control/Dialog.html#setOnHiding-javafx.event.EventHandler-">setOnHiding</a>, <a href="../../../javafx/scene/control/Dialog.html#setOnShowing-javafx.event.EventHandler-">setOnShowing</a>, <a href="../../../javafx/scene/control/Dialog.html#setOnShown-javafx.event.EventHandler-">setOnShown</a>, <a href="../../../javafx/scene/control/Dialog.html#setResizable-boolean-">setResizable</a>, <a href="../../../javafx/scene/control/Dialog.html#setResult-R-">setResult</a>, <a href="../../../javafx/scene/control/Dialog.html#setResultConverter-javafx.util.Callback-">setResultConverter</a>, <a href="../../../javafx/scene/control/Dialog.html#setTitle-java.lang.String-">setTitle</a>, <a href="../../../javafx/scene/control/Dialog.html#setWidth-double-">setWidth</a>, <a href="../../../javafx/scene/control/Dialog.html#setX-double-">setX</a>, <a href="../../../javafx/scene/control/Dialog.html#setY-double-">setY</a>, <a href="../../../javafx/scene/control/Dialog.html#show--">show</a>, <a href="../../../javafx/scene/control/Dialog.html#showAndWait--">showAndWait</a>, <a href="../../../javafx/scene/control/Dialog.html#showingProperty--">showingProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#titleProperty--">titleProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#widthProperty--">widthProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#xProperty--">xProperty</a>, <a href="../../../javafx/scene/control/Dialog.html#yProperty--">yProperty</a></code></li>
</ul>
<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#toString--" title="class or interface in java.lang">toString</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="selectedItemProperty">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>selectedItem</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/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&gt; selectedItemProperty</pre>
<div class="block">Returns the property representing the currently selected item in the dialog.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/ChoiceDialog.html#getSelectedItem--"><code>getSelectedItem()</code></a>, 
<a href="../../../javafx/scene/control/ChoiceDialog.html#setSelectedItem-T-"><code>setSelectedItem(T)</code></a></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="ChoiceDialog--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ChoiceDialog</h4>
<pre>public&nbsp;ChoiceDialog()</pre>
<div class="block">Creates a default, empty instance of ChoiceDialog with no set items and a
 null default choice. Users of this constructor will subsequently need to
 call <a href="../../../javafx/scene/control/ChoiceDialog.html#getItems--"><code>getItems()</code></a> to specify which items to show to the user.</div>
</li>
</ul>
<a name="ChoiceDialog-java.lang.Object-java.lang.Object:A-">
<!--   -->
</a><a name="ChoiceDialog-T-T...-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ChoiceDialog</h4>
<pre>public&nbsp;ChoiceDialog(<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&nbsp;defaultChoice,
                    <a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>...&nbsp;choices)</pre>
<div class="block">Creates a new ChoiceDialog instance with the first argument specifying the
 default choice that should be shown to the user, and all following arguments
 considered a varargs array of all available choices for the user. It is
 expected that the defaultChoice be one of the elements in the choices varargs
 array. If this is not true, then defaultChoice will be set to null and the
 dialog will show with the initial choice set to the first item in the list
 of choices.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>defaultChoice</code> - The item to display as the pre-selected choice in the dialog.
        This item must be contained within the choices varargs array.</dd>
<dd><code>choices</code> - All possible choices to present to the user.</dd>
</dl>
</li>
</ul>
<a name="ChoiceDialog-java.lang.Object-java.util.Collection-">
<!--   -->
</a><a name="ChoiceDialog-T-java.util.Collection-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ChoiceDialog</h4>
<pre>public&nbsp;ChoiceDialog(<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&nbsp;defaultChoice,
                    <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&gt;&nbsp;choices)</pre>
<div class="block">Creates a new ChoiceDialog instance with the first argument specifying the
 default choice that should be shown to the user, and the second argument
 specifying a collection of all available choices for the user. It is
 expected that the defaultChoice be one of the elements in the choices
 collection. If this is not true, then defaultChoice will be set to null and the
 dialog will show with the initial choice set to the first item in the list
 of choices.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>defaultChoice</code> - The item to display as the pre-selected choice in the dialog.
        This item must be contained within the choices varargs array.</dd>
<dd><code>choices</code> - All possible choices to present to the user.</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="getSelectedItem--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSelectedItem</h4>
<pre>public final&nbsp;<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&nbsp;getSelectedItem()</pre>
<div class="block">Returns the currently selected item in the dialog.</div>
</li>
</ul>
<a name="selectedItemProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>selectedItemProperty</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/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&gt;&nbsp;selectedItemProperty()</pre>
<div class="block">Returns the property representing the currently selected item in the dialog.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/ChoiceDialog.html#getSelectedItem--"><code>getSelectedItem()</code></a>, 
<a href="../../../javafx/scene/control/ChoiceDialog.html#setSelectedItem-T-"><code>setSelectedItem(T)</code></a></dd>
</dl>
</li>
</ul>
<a name="setSelectedItem-java.lang.Object-">
<!--   -->
</a><a name="setSelectedItem-T-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSelectedItem</h4>
<pre>public final&nbsp;void&nbsp;setSelectedItem(<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&nbsp;item)</pre>
<div class="block">Sets the currently selected item in the dialog.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>item</code> - The item to select in the dialog.</dd>
</dl>
</li>
</ul>
<a name="getItems--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getItems</h4>
<pre>public final&nbsp;<a href="../../../javafx/collections/ObservableList.html" title="interface in javafx.collections">ObservableList</a>&lt;<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&gt;&nbsp;getItems()</pre>
<div class="block">Returns the list of all items that will be displayed to users. This list
 can be modified by the developer to add, remove, or reorder the items
 to present to the user.</div>
</li>
</ul>
<a name="getDefaultChoice--">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getDefaultChoice</h4>
<pre>public final&nbsp;<a href="../../../javafx/scene/control/ChoiceDialog.html" title="type parameter in ChoiceDialog">T</a>&nbsp;getDefaultChoice()</pre>
<div class="block">Returns the default choice that was specified in the constructor.</div>
</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/ChoiceDialog.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/ChoiceBox.html" title="class in javafx.scene.control"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../javafx/scene/control/ColorPicker.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/ChoiceDialog.html" target="_top">Frames</a></li>
<li><a href="ChoiceDialog.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>Field&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>Field&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>