Sophie

Sophie

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

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:45 UTC 2016 -->
<title>Alert (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="Alert (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};
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/Alert.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/Accordion.html" title="class in javafx.scene.control"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum 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/Alert.html" target="_top">Frames</a></li>
<li><a href="Alert.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><a href="#nested.class.summary">Nested</a>&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 Alert" class="title">Class Alert</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;<a href="../../../javafx/scene/control/ButtonType.html" title="class in javafx.scene.control">ButtonType</a>&gt;</li>
<li>
<ul class="inheritance">
<li>javafx.scene.control.Alert</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<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">Alert</span>
extends <a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control">Dialog</a>&lt;<a href="../../../javafx/scene/control/ButtonType.html" title="class in javafx.scene.control">ButtonType</a>&gt;</pre>
<div class="block">The Alert class subclasses the <a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control"><code>Dialog</code></a> class, and provides support for a number
 of pre-built dialog types that can be easily shown to users to prompt for a
 response. Therefore, for many users, the Alert class is the most suited class
 for their needs (as opposed to using <a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control"><code>Dialog</code></a> directly). Alternatively,
 users who want to prompt a user for text input or to make a choice from a list
 of options would be better served by using <a href="../../../javafx/scene/control/TextInputDialog.html" title="class in javafx.scene.control"><code>TextInputDialog</code></a> and
 <a href="../../../javafx/scene/control/ChoiceDialog.html" title="class in javafx.scene.control"><code>ChoiceDialog</code></a>, respectively.

 <p>When creating an Alert instance, users must pass in an <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a>
 enumeration value. It is by passing in this value that the Alert instance will
 configure itself appropriately (by setting default values for many of the
 <a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control"><code>Dialog</code></a> properties, including <a href="../../../javafx/scene/control/Dialog.html#titleProperty--"><code>title</code></a>,
 <a href="../../../javafx/scene/control/Dialog.html#headerTextProperty--"><code>header</code></a>, and <a href="../../../javafx/scene/control/Dialog.html#graphicProperty--"><code>graphic</code></a>,
 as well as the default <a href="../../../javafx/scene/control/Alert.html#getButtonTypes--"><code>buttons</code></a> that are expected in
 a dialog of the given type.

 <p>To instantiate (but not yet show) an Alert, simply use code such as the following:
 <code>Alert alert = new Alert(AlertType.CONFIRMATION, "Are you sure you want to format your system?");</code>

 <p>Once an Alert is instantiated, we must show it. More often than not, alerts
 (and dialogs in general) are shown in a modal and blocking fashion. 'Modal'
 means that the dialog prevents user interaction with the owning application
 whilst it is showing, and 'blocking' means that code execution stops at the
 point in which the dialog is shown. This means that you can show a dialog,
 await the user response, and then continue running the code that directly
 follows the show call, giving developers the ability to immediately deal with
 the user input from the dialog (if relevant).

 <p>JavaFX dialogs are modal by default (you can change this via the
 <a href="../../../javafx/scene/control/Dialog.html#initModality-javafx.stage.Modality-"><code>Dialog.initModality(javafx.stage.Modality)</code></a> API). To specify whether you want
 blocking or non-blocking dialogs, developers simply choose to call
 <a href="../../../javafx/scene/control/Dialog.html#showAndWait--"><code>Dialog.showAndWait()</code></a> or <a href="../../../javafx/scene/control/Dialog.html#show--"><code>Dialog.show()</code></a> (respectively). By default most
 developers should choose to use <a href="../../../javafx/scene/control/Dialog.html#showAndWait--"><code>Dialog.showAndWait()</code></a>, given the ease of
 coding in these situations. Shown below is three code snippets, showing three
 equally valid ways of showing the Alert dialog that was specified above:

 <p><strong>Option 1: The 'traditional' approach</strong>
 <pre><code> Optional&lt;ButtonType&gt; result = alert.showAndWait();
 if (result.isPresent() &amp;&amp; result.get() == ButtonType.OK) {
     formatSystem();
 }</code></pre>

 <p><strong>Option 2: The traditional + Optional approach</strong>
 <pre><code> alert.showAndWait().ifPresent(response -&gt; {
     if (response == ButtonType.OK) {
         formatSystem();
     }
 });</code></pre>

 <p><strong>Option 3: The fully lambda approach</strong>
 <pre><code> alert.showAndWait()
      .filter(response -&gt; response == ButtonType.OK)
      .ifPresent(response -&gt; formatSystem());
 </code></pre>

 <p>There is no better or worse option of the three listed above, so developers
 are encouraged to work to their own style preferences. The purpose of showing
 the above is to help introduce developers to the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a> API, which
 is new in Java 8 and may be foreign to many developers.</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>, 
<a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a>, 
<a href="../../../javafx/scene/control/TextInputDialog.html" title="class in javafx.scene.control"><code>TextInputDialog</code></a>, 
<a href="../../../javafx/scene/control/ChoiceDialog.html" title="class in javafx.scene.control"><code>ChoiceDialog</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/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/Alert.html#alertTypeProperty">alertType</a></span></code>
<div class="block">When creating an Alert instance, users must pass in an <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a>
 enumeration value.</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>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a></span></code>
<div class="block">An enumeration containing the available, pre-built alert types that
 the <a href="../../../javafx/scene/control/Alert.html" title="class in javafx.scene.control"><code>Alert</code></a> class can use to pre-populate various properties.</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/Alert.html#Alert-javafx.scene.control.Alert.AlertType-">Alert</a></span>(<a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&nbsp;alertType)</code>
<div class="block">Creates an alert with the given AlertType (refer to the <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a>
 documentation for clarification over which one is most appropriate).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/Alert.html#Alert-javafx.scene.control.Alert.AlertType-java.lang.String-javafx.scene.control.ButtonType...-">Alert</a></span>(<a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&nbsp;alertType,
     <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;contentText,
     <a href="../../../javafx/scene/control/ButtonType.html" title="class in javafx.scene.control">ButtonType</a>...&nbsp;buttons)</code>
<div class="block">Creates an alert with the given contentText, ButtonTypes, and AlertType
 (refer to the <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a> documentation for clarification over which
 one is most appropriate).</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/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/Alert.html#alertTypeProperty--">alertTypeProperty</a></span>()</code>
<div class="block">When creating an Alert instance, users must pass in an <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a>
 enumeration value.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/Alert.html#getAlertType--">getAlertType</a></span>()</code>
<div class="block">Gets the value of the property alertType.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../javafx/collections/ObservableList.html" title="interface in javafx.collections">ObservableList</a>&lt;<a href="../../../javafx/scene/control/ButtonType.html" title="class in javafx.scene.control">ButtonType</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/Alert.html#getButtonTypes--">getButtonTypes</a></span>()</code>
<div class="block">Returns an <a href="../../../javafx/collections/ObservableList.html" title="interface in javafx.collections"><code>ObservableList</code></a> of all <a href="../../../javafx/scene/control/ButtonType.html" title="class in javafx.scene.control"><code>ButtonType</code></a> instances that
 are currently set inside this Alert instance.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/control/Alert.html#setAlertType-javafx.scene.control.Alert.AlertType-">setAlertType</a></span>(<a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&nbsp;alertType)</code>
<div class="block">Sets the value of the property alertType.</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="alertTypeProperty">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>alertType</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/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&gt; alertTypeProperty</pre>
<div class="block">When creating an Alert instance, users must pass in an <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a>
 enumeration value. It is by passing in this value that the Alert instance will
 configure itself appropriately (by setting default values for many of the
 <a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control"><code>Dialog</code></a> properties, including <a href="../../../javafx/scene/control/Dialog.html#titleProperty--"><code>title</code></a>,
 <a href="../../../javafx/scene/control/Dialog.html#headerTextProperty--"><code>header</code></a>, and <a href="../../../javafx/scene/control/Dialog.html#graphicProperty--"><code>graphic</code></a>,
 as well as the default <a href="../../../javafx/scene/control/Alert.html#getButtonTypes--"><code>buttons</code></a> that are expected in
 a dialog of the given type.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/Alert.html#getAlertType--"><code>getAlertType()</code></a>, 
<a href="../../../javafx/scene/control/Alert.html#setAlertType-javafx.scene.control.Alert.AlertType-"><code>setAlertType(AlertType)</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="Alert-javafx.scene.control.Alert.AlertType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Alert</h4>
<pre>public&nbsp;Alert(<a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&nbsp;alertType)</pre>
<div class="block">Creates an alert with the given AlertType (refer to the <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a>
 documentation for clarification over which one is most appropriate).

 <p>By passing in an AlertType, default values for the
 <a href="../../../javafx/scene/control/Dialog.html#titleProperty--"><code>title</code></a>, <a href="../../../javafx/scene/control/Dialog.html#headerTextProperty--"><code>headerText</code></a>,
 and <a href="../../../javafx/scene/control/Dialog.html#graphicProperty--"><code>graphic</code></a> properties are set, as well as the
 relevant <a href="../../../javafx/scene/control/Alert.html#getButtonTypes--"><code>buttons</code></a> being installed. Once the Alert
 is instantiated, developers are able to modify the values of the alert as
 desired.

 <p>It is important to note that the one property that does not have a
 default value set, and which therefore the developer must set, is the
 <a href="../../../javafx/scene/control/Dialog.html#contentTextProperty--"><code>content text</code></a> property (or alternatively,
 the developer may call <code>alert.getDialogPane().setContent(Node)</code> if
 they want a more complex alert). If the contentText (or content) properties
 are not set, there is no useful information presented to end users.</div>
</li>
</ul>
<a name="Alert-javafx.scene.control.Alert.AlertType-java.lang.String-javafx.scene.control.ButtonType...-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Alert</h4>
<pre>public&nbsp;Alert(<a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&nbsp;alertType,
             <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;contentText,
             <a href="../../../javafx/scene/control/ButtonType.html" title="class in javafx.scene.control">ButtonType</a>...&nbsp;buttons)</pre>
<div class="block">Creates an alert with the given contentText, ButtonTypes, and AlertType
 (refer to the <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a> documentation for clarification over which
 one is most appropriate).

 <p>By passing in a variable number of ButtonType arguments, the developer
 is directly overriding the default buttons that will be displayed in the
 dialog, replacing the pre-defined buttons with whatever is specified in the
 varargs array.

 <p>By passing in an AlertType, default values for the
 <a href="../../../javafx/scene/control/Dialog.html#titleProperty--"><code>title</code></a>, <a href="../../../javafx/scene/control/Dialog.html#headerTextProperty--"><code>headerText</code></a>,
 and <a href="../../../javafx/scene/control/Dialog.html#graphicProperty--"><code>graphic</code></a> properties are set. Once the Alert
 is instantiated, developers are able to modify the values of the alert as
 desired.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getAlertType--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAlertType</h4>
<pre>public final&nbsp;<a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&nbsp;getAlertType()</pre>
<div class="block">Gets the value of the property alertType.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>When creating an Alert instance, users must pass in an <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a>
 enumeration value. It is by passing in this value that the Alert instance will
 configure itself appropriately (by setting default values for many of the
 <a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control"><code>Dialog</code></a> properties, including <a href="../../../javafx/scene/control/Dialog.html#titleProperty--"><code>title</code></a>,
 <a href="../../../javafx/scene/control/Dialog.html#headerTextProperty--"><code>header</code></a>, and <a href="../../../javafx/scene/control/Dialog.html#graphicProperty--"><code>graphic</code></a>,
 as well as the default <a href="../../../javafx/scene/control/Alert.html#getButtonTypes--"><code>buttons</code></a> that are expected in
 a dialog of the given type.</dd>
</dl>
</li>
</ul>
<a name="setAlertType-javafx.scene.control.Alert.AlertType-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAlertType</h4>
<pre>public final&nbsp;void&nbsp;setAlertType(<a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&nbsp;alertType)</pre>
<div class="block">Sets the value of the property alertType.</div>
<dl>
<dt><span class="simpleTagLabel">Property description:</span></dt>
<dd>When creating an Alert instance, users must pass in an <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a>
 enumeration value. It is by passing in this value that the Alert instance will
 configure itself appropriately (by setting default values for many of the
 <a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control"><code>Dialog</code></a> properties, including <a href="../../../javafx/scene/control/Dialog.html#titleProperty--"><code>title</code></a>,
 <a href="../../../javafx/scene/control/Dialog.html#headerTextProperty--"><code>header</code></a>, and <a href="../../../javafx/scene/control/Dialog.html#graphicProperty--"><code>graphic</code></a>,
 as well as the default <a href="../../../javafx/scene/control/Alert.html#getButtonTypes--"><code>buttons</code></a> that are expected in
 a dialog of the given type.</dd>
</dl>
</li>
</ul>
<a name="alertTypeProperty--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>alertTypeProperty</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/control/Alert.AlertType.html" title="enum in javafx.scene.control">Alert.AlertType</a>&gt;&nbsp;alertTypeProperty()</pre>
<div class="block">When creating an Alert instance, users must pass in an <a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum in javafx.scene.control"><code>Alert.AlertType</code></a>
 enumeration value. It is by passing in this value that the Alert instance will
 configure itself appropriately (by setting default values for many of the
 <a href="../../../javafx/scene/control/Dialog.html" title="class in javafx.scene.control"><code>Dialog</code></a> properties, including <a href="../../../javafx/scene/control/Dialog.html#titleProperty--"><code>title</code></a>,
 <a href="../../../javafx/scene/control/Dialog.html#headerTextProperty--"><code>header</code></a>, and <a href="../../../javafx/scene/control/Dialog.html#graphicProperty--"><code>graphic</code></a>,
 as well as the default <a href="../../../javafx/scene/control/Alert.html#getButtonTypes--"><code>buttons</code></a> that are expected in
 a dialog of the given type.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../javafx/scene/control/Alert.html#getAlertType--"><code>getAlertType()</code></a>, 
<a href="../../../javafx/scene/control/Alert.html#setAlertType-javafx.scene.control.Alert.AlertType-"><code>setAlertType(AlertType)</code></a></dd>
</dl>
</li>
</ul>
<a name="getButtonTypes--">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getButtonTypes</h4>
<pre>public final&nbsp;<a href="../../../javafx/collections/ObservableList.html" title="interface in javafx.collections">ObservableList</a>&lt;<a href="../../../javafx/scene/control/ButtonType.html" title="class in javafx.scene.control">ButtonType</a>&gt;&nbsp;getButtonTypes()</pre>
<div class="block">Returns an <a href="../../../javafx/collections/ObservableList.html" title="interface in javafx.collections"><code>ObservableList</code></a> of all <a href="../../../javafx/scene/control/ButtonType.html" title="class in javafx.scene.control"><code>ButtonType</code></a> instances that
 are currently set inside this Alert instance. A ButtonType may either be one
 of the pre-defined types (e.g. <a href="../../../javafx/scene/control/ButtonType.html#OK"><code>ButtonType.OK</code></a>), or it may be a
 custom type (created via the <a href="../../../javafx/scene/control/ButtonType.html#ButtonType-java.lang.String-"><code>ButtonType.ButtonType(String)</code></a> or
 <a href="../../../javafx/scene/control/ButtonType.html#ButtonType-java.lang.String-javafx.scene.control.ButtonBar.ButtonData-"><code>ButtonType.ButtonType(String, javafx.scene.control.ButtonBar.ButtonData)</code></a>
 constructors.

 <p>Readers should refer to the <a href="../../../javafx/scene/control/ButtonType.html" title="class in javafx.scene.control"><code>ButtonType</code></a> class documentation for more details,
 but at a high level, each ButtonType instance is converted to
 a Node (although most commonly a <a href="../../../javafx/scene/control/Button.html" title="class in javafx.scene.control"><code>Button</code></a>) via the (overridable)
 <a href="../../../javafx/scene/control/DialogPane.html#createButton-javafx.scene.control.ButtonType-"><code>DialogPane.createButton(ButtonType)</code></a> method on <a href="../../../javafx/scene/control/DialogPane.html" title="class in javafx.scene.control"><code>DialogPane</code></a>.</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/Alert.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/Accordion.html" title="class in javafx.scene.control"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../javafx/scene/control/Alert.AlertType.html" title="enum 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/Alert.html" target="_top">Frames</a></li>
<li><a href="Alert.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><a href="#nested.class.summary">Nested</a>&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>