<!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_141) on Mon Oct 30 09:22:31 GMT 2017 --> <title>Window (JavaFX 8)</title> <meta name="date" content="2017-10-30"> <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="Window (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,"i12":10,"i13":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,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":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/Window.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 8</div> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../javafx/stage/StageStyle.html" title="enum in javafx.stage"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../index.html?javafx/stage/Window.html" target="_top">Frames</a></li> <li><a href="Window.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../allclasses-noframe.html">All 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: </li> <li>Nested | </li> <li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </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.stage</div> <h2 title="Class Window" class="title">Class Window</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>javafx.stage.Window</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> <dl> <dt>Direct Known Subclasses:</dt> <dd><a href="../../javafx/stage/PopupWindow.html" title="class in javafx.stage">PopupWindow</a>, <a href="../../javafx/stage/Stage.html" title="class in javafx.stage">Stage</a></dd> </dl> <hr> <br> <pre>public class <span class="typeNameLabel">Window</span> extends java.lang.Object implements <a href="../../javafx/event/EventTarget.html" title="interface in javafx.event">EventTarget</a></pre> <div class="block"><p> A top level window within which a scene is hosted, and with which the user interacts. A Window might be a <a href="../../javafx/stage/Stage.html" title="class in javafx.stage"><code>Stage</code></a>, <a href="../../javafx/stage/PopupWindow.html" title="class in javafx.stage"><code>PopupWindow</code></a>, or other such top level. A Window is used also for browser plug-in based deployments. </p></div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>JavaFX 2.0</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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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><<a href="../../javafx/event/EventDispatcher.html" title="interface in javafx.event">EventDispatcher</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#eventDispatcherProperty">eventDispatcher</a></span></code> <div class="block">Specifies the event dispatcher for this node.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyBooleanProperty.html" title="class in javafx.beans.property">ReadOnlyBooleanProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#focusedProperty">focused</a></span></code> <div class="block">Whether or not this <code>Window</code> has the keyboard or input focus.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#heightProperty">height</a></span></code> <div class="block">The height of this <code>Window</code>.</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#onCloseRequestProperty">onCloseRequest</a></span></code> <div class="block">Called when there is an external request to close this <code>Window</code>.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#onHiddenProperty">onHidden</a></span></code> <div class="block">Called just after the Window has been hidden.</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><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#onHidingProperty">onHiding</a></span></code> <div class="block">Called just prior to the Window being hidden.</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><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#onShowingProperty">onShowing</a></span></code> <div class="block">Called just prior to the Window being shown.</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#onShownProperty">onShown</a></span></code> <div class="block">Called just after the Window is shown.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/DoubleProperty.html" title="class in javafx.beans.property">DoubleProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#opacityProperty">opacity</a></span></code> <div class="block">Defines the opacity of the <code>Window</code> as a value between 0.0 and 1.0.</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../javafx/scene/Scene.html" title="class in javafx.scene">Scene</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#sceneProperty">scene</a></span></code> <div class="block">The <code>Scene</code> to be rendered on this <code>Window</code>.</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyBooleanProperty.html" title="class in javafx.beans.property">ReadOnlyBooleanProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#showingProperty">showing</a></span></code> <div class="block">Whether or not this <code>Window</code> is showing (that is, open on the user's system).</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#widthProperty">width</a></span></code> <div class="block">The width of this <code>Window</code>.</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#xProperty">x</a></span></code> <div class="block">The horizontal location of this <code>Window</code> on the screen.</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#yProperty">y</a></span></code> <div class="block">The vertical location of this <code>Window</code> on the screen.</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"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier</th> <th class="colLast" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>protected </code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#Window--">Window</a></span>()</code> </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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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><T extends <a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a>><br>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#addEventFilter-javafx.event.EventType-javafx.event.EventHandler-">addEventFilter</a></span>(<a href="../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><T> eventType, <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><? super T> eventFilter)</code> <div class="block">Registers an event filter to this node.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code><T extends <a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a>><br>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#addEventHandler-javafx.event.EventType-javafx.event.EventHandler-">addEventHandler</a></span>(<a href="../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><T> eventType, <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><? super T> eventHandler)</code> <div class="block">Registers an event handler to this node.</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/stage/Window.html#buildEventDispatchChain-javafx.event.EventDispatchChain-">buildEventDispatchChain</a></span>(<a href="../../javafx/event/EventDispatchChain.html" title="interface in javafx.event">EventDispatchChain</a> tail)</code> <div class="block">Construct an event dispatch chain for this window.</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/stage/Window.html#centerOnScreen--">centerOnScreen</a></span>()</code> <div class="block">Sets x and y properties on this Window so that it is centered on the curent screen.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventDispatcher.html" title="interface in javafx.event">EventDispatcher</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#eventDispatcherProperty--">eventDispatcherProperty</a></span>()</code> <div class="block">Specifies the event dispatcher for this node.</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#fireEvent-javafx.event.Event-">fireEvent</a></span>(<a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a> event)</code> <div class="block">Fires the specified event.</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyBooleanProperty.html" title="class in javafx.beans.property">ReadOnlyBooleanProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#focusedProperty--">focusedProperty</a></span>()</code> <div class="block">Whether or not this <code>Window</code> has the keyboard or input focus.</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/event/EventDispatcher.html" title="interface in javafx.event">EventDispatcher</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getEventDispatcher--">getEventDispatcher</a></span>()</code> <div class="block">Gets the value of the property eventDispatcher.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getHeight--">getHeight</a></span>()</code> <div class="block">Gets the value of the property height.</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><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getOnCloseRequest--">getOnCloseRequest</a></span>()</code> <div class="block">Gets the value of the property onCloseRequest.</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><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getOnHidden--">getOnHidden</a></span>()</code> <div class="block">Gets the value of the property onHidden.</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getOnHiding--">getOnHiding</a></span>()</code> <div class="block">Gets the value of the property onHiding.</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code><a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getOnShowing--">getOnShowing</a></span>()</code> <div class="block">Gets the value of the property onShowing.</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getOnShown--">getOnShown</a></span>()</code> <div class="block">Gets the value of the property onShown.</div> </td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getOpacity--">getOpacity</a></span>()</code> <div class="block">Gets the value of the property opacity.</div> </td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/collections/ObservableMap.html" title="interface in javafx.collections">ObservableMap</a><java.lang.Object,java.lang.Object></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getProperties--">getProperties</a></span>()</code> <div class="block">Returns an observable map of properties on this node for use primarily by application developers.</div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code><a href="../../javafx/scene/Scene.html" title="class in javafx.scene">Scene</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getScene--">getScene</a></span>()</code> <div class="block">Gets the value of the property scene.</div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code>java.lang.Object</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.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/stage/Window.html#setUserData-java.lang.Object-"><code>setUserData(java.lang.Object)</code></a> method.</div> </td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getWidth--">getWidth</a></span>()</code> <div class="block">Gets the value of the property width.</div> </td> </tr> <tr id="i19" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getX--">getX</a></span>()</code> <div class="block">Gets the value of the property x.</div> </td> </tr> <tr id="i20" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#getY--">getY</a></span>()</code> <div class="block">Gets the value of the property y.</div> </td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#hasProperties--">hasProperties</a></span>()</code> <div class="block">Tests if Window has properties.</div> </td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#heightProperty--">heightProperty</a></span>()</code> <div class="block">The height of this <code>Window</code>.</div> </td> </tr> <tr id="i23" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#hide--">hide</a></span>()</code> <div class="block">Attempts to hide this Window by setting the visibility to false.</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/stage/Window.html#isFocused--">isFocused</a></span>()</code> <div class="block">Gets the value of the property focused.</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/stage/Window.html#isShowing--">isShowing</a></span>()</code> <div class="block">Gets the value of the property showing.</div> </td> </tr> <tr id="i26" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#onCloseRequestProperty--">onCloseRequestProperty</a></span>()</code> <div class="block">Called when there is an external request to close this <code>Window</code>.</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><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#onHiddenProperty--">onHiddenProperty</a></span>()</code> <div class="block">Called just after the Window has been hidden.</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><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#onHidingProperty--">onHidingProperty</a></span>()</code> <div class="block">Called just prior to the Window being hidden.</div> </td> </tr> <tr id="i29" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#onShowingProperty--">onShowingProperty</a></span>()</code> <div class="block">Called just prior to the Window being shown.</div> </td> </tr> <tr id="i30" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#onShownProperty--">onShownProperty</a></span>()</code> <div class="block">Called just after the Window is shown.</div> </td> </tr> <tr id="i31" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/DoubleProperty.html" title="class in javafx.beans.property">DoubleProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#opacityProperty--">opacityProperty</a></span>()</code> <div class="block">Defines the opacity of the <code>Window</code> as a value between 0.0 and 1.0.</div> </td> </tr> <tr id="i32" class="altColor"> <td class="colFirst"><code><T extends <a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a>><br>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#removeEventFilter-javafx.event.EventType-javafx.event.EventHandler-">removeEventFilter</a></span>(<a href="../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><T> eventType, <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><? super T> eventFilter)</code> <div class="block">Unregisters a previously registered event filter from this node.</div> </td> </tr> <tr id="i33" class="rowColor"> <td class="colFirst"><code><T extends <a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a>><br>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#removeEventHandler-javafx.event.EventType-javafx.event.EventHandler-">removeEventHandler</a></span>(<a href="../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><T> eventType, <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><? super T> eventHandler)</code> <div class="block">Unregisters a previously registered event handler from this node.</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/stage/Window.html#requestFocus--">requestFocus</a></span>()</code> <div class="block">Requests that this <code>Window</code> get the input focus.</div> </td> </tr> <tr id="i35" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../javafx/scene/Scene.html" title="class in javafx.scene">Scene</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#sceneProperty--">sceneProperty</a></span>()</code> <div class="block">The <code>Scene</code> to be rendered on this <code>Window</code>.</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/stage/Window.html#setEventDispatcher-javafx.event.EventDispatcher-">setEventDispatcher</a></span>(<a href="../../javafx/event/EventDispatcher.html" title="interface in javafx.event">EventDispatcher</a> value)</code> <div class="block">Sets the value of the property eventDispatcher.</div> </td> </tr> <tr id="i37" class="rowColor"> <td class="colFirst"><code>protected <T extends <a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a>><br>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#setEventHandler-javafx.event.EventType-javafx.event.EventHandler-">setEventHandler</a></span>(<a href="../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><T> eventType, <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><? super T> eventHandler)</code> <div class="block">Sets the handler to use for this event type.</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/stage/Window.html#setHeight-double-">setHeight</a></span>(double value)</code> <div class="block">Sets the value of the property height.</div> </td> </tr> <tr id="i39" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#setOnCloseRequest-javafx.event.EventHandler-">setOnCloseRequest</a></span>(<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> value)</code> <div class="block">Sets the value of the property onCloseRequest.</div> </td> </tr> <tr id="i40" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#setOnHidden-javafx.event.EventHandler-">setOnHidden</a></span>(<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> value)</code> <div class="block">Sets the value of the property onHidden.</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/stage/Window.html#setOnHiding-javafx.event.EventHandler-">setOnHiding</a></span>(<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> value)</code> <div class="block">Sets the value of the property onHiding.</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/stage/Window.html#setOnShowing-javafx.event.EventHandler-">setOnShowing</a></span>(<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> value)</code> <div class="block">Sets the value of the property onShowing.</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/stage/Window.html#setOnShown-javafx.event.EventHandler-">setOnShown</a></span>(<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> value)</code> <div class="block">Sets the value of the property onShown.</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/stage/Window.html#setOpacity-double-">setOpacity</a></span>(double value)</code> <div class="block">Sets the value of the property opacity.</div> </td> </tr> <tr id="i45" class="rowColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#setScene-javafx.scene.Scene-">setScene</a></span>(<a href="../../javafx/scene/Scene.html" title="class in javafx.scene">Scene</a> value)</code> <div class="block">Sets the value of the property scene.</div> </td> </tr> <tr id="i46" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#setUserData-java.lang.Object-">setUserData</a></span>(java.lang.Object 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="i47" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#setWidth-double-">setWidth</a></span>(double value)</code> <div class="block">Sets the value of the property width.</div> </td> </tr> <tr id="i48" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#setX-double-">setX</a></span>(double value)</code> <div class="block">Sets the value of the property x.</div> </td> </tr> <tr id="i49" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#setY-double-">setY</a></span>(double value)</code> <div class="block">Sets the value of the property y.</div> </td> </tr> <tr id="i50" class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#show--">show</a></span>()</code> <div class="block">Attempts to show this Window by setting visibility to true</div> </td> </tr> <tr id="i51" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyBooleanProperty.html" title="class in javafx.beans.property">ReadOnlyBooleanProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#showingProperty--">showingProperty</a></span>()</code> <div class="block">Whether or not this <code>Window</code> is showing (that is, open on the user's system).</div> </td> </tr> <tr id="i52" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#sizeToScene--">sizeToScene</a></span>()</code> <div class="block">Set the width and height of this Window to match the size of the content of this Window's Scene.</div> </td> </tr> <tr id="i53" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#widthProperty--">widthProperty</a></span>()</code> <div class="block">The width of this <code>Window</code>.</div> </td> </tr> <tr id="i54" class="altColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#xProperty--">xProperty</a></span>()</code> <div class="block">The horizontal location of this <code>Window</code> on the screen.</div> </td> </tr> <tr id="i55" class="rowColor"> <td class="colFirst"><code><a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../javafx/stage/Window.html#yProperty--">yProperty</a></span>()</code> <div class="block">The vertical location of this <code>Window</code> on the screen.</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 java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</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="xProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>x</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a> xProperty</pre> <div class="block">The horizontal location of this <code>Window</code> on the screen. Changing this attribute will move the <code>Window</code> horizontally. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getX--"><code>getX()</code></a>, <a href="../../javafx/stage/Window.html#setX-double-"><code>setX(double)</code></a></dd> </dl> </li> </ul> <a name="yProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>y</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a> yProperty</pre> <div class="block">The vertical location of this <code>Window</code> on the screen. Changing this attribute will move the <code>Window</code> vertically. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getY--"><code>getY()</code></a>, <a href="../../javafx/stage/Window.html#setY-double-"><code>setY(double)</code></a></dd> </dl> </li> </ul> <a name="widthProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>width</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a> widthProperty</pre> <div class="block">The width of this <code>Window</code>. Changing this attribute will narrow or widen the width of the <code>Window</code>. This value includes any and all decorations which may be added by the Operating System such as resizable frame handles. Typical applications will set the <a href="../../javafx/scene/Scene.html" title="class in javafx.scene"><code>Scene</code></a> width instead. This <code>Window</code> will take its width from the scene if it has never been set by the application. Resizing the window by end user does not count as a setting the width by the application. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getWidth--"><code>getWidth()</code></a>, <a href="../../javafx/stage/Window.html#setWidth-double-"><code>setWidth(double)</code></a></dd> </dl> </li> </ul> <a name="heightProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>height</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a> heightProperty</pre> <div class="block">The height of this <code>Window</code>. Changing this attribute will shrink or heighten the height of the <code>Window</code>. This value includes any and all decorations which may be added by the Operating System such as the title bar. Typical applications will set the <a href="../../javafx/scene/Scene.html" title="class in javafx.scene"><code>Scene</code></a> height instead. This window will take its height from the scene if it has never been set by the application. Resizing this window by end user does not count as a setting the height by the application. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getHeight--"><code>getHeight()</code></a>, <a href="../../javafx/stage/Window.html#setHeight-double-"><code>setHeight(double)</code></a></dd> </dl> </li> </ul> <a name="focusedProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>focused</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyBooleanProperty.html" title="class in javafx.beans.property">ReadOnlyBooleanProperty</a> focusedProperty</pre> <div class="block">Whether or not this <code>Window</code> has the keyboard or input focus. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#isFocused--"><code>isFocused()</code></a>, <a href="../../javafx/stage/Window.html#setFocused-boolean-"><code>setFocused(boolean)</code></a></dd> </dl> </li> </ul> <a name="sceneProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>scene</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../javafx/scene/Scene.html" title="class in javafx.scene">Scene</a>> sceneProperty</pre> <div class="block">The <code>Scene</code> to be rendered on this <code>Window</code>. There can only be one <code>Scene</code> on the <code>Window</code> at a time, and a <code>Scene</code> can only be on one <code>Window</code> at a time. Setting a <code>Scene</code> on a different <code>Window</code> will cause the old <code>Window</code> to lose the reference before the new one gains it. You may swap <code>Scene</code>s on a <code>Window</code> at any time, even if it is an instance of <code>Stage</code> and with <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> set to true. If the width or height of this <code>Window</code> have never been set by the application, setting the scene will cause this <code>Window</code> to take its width or height from that scene. Resizing this window by end user does not count as setting the width or height by the application. An <code>IllegalStateException</code> is thrown if this property is set on a thread other than the JavaFX Application Thread.</div> <dl> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>null</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getScene--"><code>getScene()</code></a>, <a href="../../javafx/stage/Window.html#setScene-javafx.scene.Scene-"><code>setScene(Scene)</code></a></dd> </dl> </li> </ul> <a name="opacityProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>opacity</h4> <pre>public final <a href="../../javafx/beans/property/DoubleProperty.html" title="class in javafx.beans.property">DoubleProperty</a> opacityProperty</pre> <div class="block">Defines the opacity of the <code>Window</code> as a value between 0.0 and 1.0. The opacity is reflected across the <code>Window</code>, its <code>Decoration</code> and its <code>Scene</code> content. On a JavaFX runtime platform that does not support opacity, assigning a value to this variable will have no visible difference. A <code>Window</code> with 0% opacity is fully translucent. Typically, a <code>Window</code> with 0% opacity will not receive any mouse events.</div> <dl> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>1.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOpacity--"><code>getOpacity()</code></a>, <a href="../../javafx/stage/Window.html#setOpacity-double-"><code>setOpacity(double)</code></a></dd> </dl> </li> </ul> <a name="onCloseRequestProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onCloseRequest</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>> onCloseRequestProperty</pre> <div class="block">Called when there is an external request to close this <code>Window</code>. The installed event handler can prevent window closing by consuming the received event.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOnCloseRequest--"><code>getOnCloseRequest()</code></a>, <a href="../../javafx/stage/Window.html#setOnCloseRequest-javafx.event.EventHandler-"><code>setOnCloseRequest(EventHandler)</code></a></dd> </dl> </li> </ul> <a name="onShowingProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onShowing</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>> onShowingProperty</pre> <div class="block">Called just prior to the Window being shown.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOnShowing--"><code>getOnShowing()</code></a>, <a href="../../javafx/stage/Window.html#setOnShowing-javafx.event.EventHandler-"><code>setOnShowing(EventHandler)</code></a></dd> </dl> </li> </ul> <a name="onShownProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onShown</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>> onShownProperty</pre> <div class="block">Called just after the Window is shown.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOnShown--"><code>getOnShown()</code></a>, <a href="../../javafx/stage/Window.html#setOnShown-javafx.event.EventHandler-"><code>setOnShown(EventHandler)</code></a></dd> </dl> </li> </ul> <a name="onHidingProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onHiding</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>> onHidingProperty</pre> <div class="block">Called just prior to the Window being hidden.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOnHiding--"><code>getOnHiding()</code></a>, <a href="../../javafx/stage/Window.html#setOnHiding-javafx.event.EventHandler-"><code>setOnHiding(EventHandler)</code></a></dd> </dl> </li> </ul> <a name="onHiddenProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onHidden</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>> onHiddenProperty</pre> <div class="block">Called just after the Window has been hidden. When the <code>Window</code> is hidden, this event handler is invoked allowing the developer to clean up resources or perform other tasks when the <a href="../../javafx/stage/Window.html" title="class in javafx.stage"><code>Window</code></a> is closed.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOnHidden--"><code>getOnHidden()</code></a>, <a href="../../javafx/stage/Window.html#setOnHidden-javafx.event.EventHandler-"><code>setOnHidden(EventHandler)</code></a></dd> </dl> </li> </ul> <a name="showingProperty"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>showing</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyBooleanProperty.html" title="class in javafx.beans.property">ReadOnlyBooleanProperty</a> showingProperty</pre> <div class="block">Whether or not this <code>Window</code> is showing (that is, open on the user's system). The Window might be "showing", yet the user might not be able to see it due to the Window being rendered behind another Window or due to the Window being positioned off the monitor.</div> <dl> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>false</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#isShowing--"><code>isShowing()</code></a></dd> </dl> </li> </ul> <a name="eventDispatcherProperty"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>eventDispatcher</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventDispatcher.html" title="interface in javafx.event">EventDispatcher</a>> eventDispatcherProperty</pre> <div class="block">Specifies the event dispatcher for this node. The default event dispatcher sends the received events to the registered event handlers and filters. When replacing the value with a new <code>EventDispatcher</code>, the new dispatcher should forward events to the replaced dispatcher to maintain the node's default event handling behavior.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getEventDispatcher--"><code>getEventDispatcher()</code></a>, <a href="../../javafx/stage/Window.html#setEventDispatcher-javafx.event.EventDispatcher-"><code>setEventDispatcher(EventDispatcher)</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="Window--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>Window</h4> <pre>protected Window()</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="sizeToScene--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>sizeToScene</h4> <pre>public void sizeToScene()</pre> <div class="block">Set the width and height of this Window to match the size of the content of this Window's Scene.</div> </li> </ul> <a name="centerOnScreen--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>centerOnScreen</h4> <pre>public void centerOnScreen()</pre> <div class="block">Sets x and y properties on this Window so that it is centered on the curent screen. The current screen is determined from the intersection of current window bounds and visual bounds of all screens.</div> </li> </ul> <a name="setX-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setX</h4> <pre>public final void setX(double value)</pre> <div class="block">Sets the value of the property x.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>The horizontal location of this <code>Window</code> on the screen. Changing this attribute will move the <code>Window</code> horizontally. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false.</dd> </dl> </li> </ul> <a name="getX--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getX</h4> <pre>public final double getX()</pre> <div class="block">Gets the value of the property x.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>The horizontal location of this <code>Window</code> on the screen. Changing this attribute will move the <code>Window</code> horizontally. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false.</dd> </dl> </li> </ul> <a name="xProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>xProperty</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a> xProperty()</pre> <div class="block">The horizontal location of this <code>Window</code> on the screen. Changing this attribute will move the <code>Window</code> horizontally. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getX--"><code>getX()</code></a>, <a href="../../javafx/stage/Window.html#setX-double-"><code>setX(double)</code></a></dd> </dl> </li> </ul> <a name="setY-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setY</h4> <pre>public final void setY(double value)</pre> <div class="block">Sets the value of the property y.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>The vertical location of this <code>Window</code> on the screen. Changing this attribute will move the <code>Window</code> vertically. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false.</dd> </dl> </li> </ul> <a name="getY--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getY</h4> <pre>public final double getY()</pre> <div class="block">Gets the value of the property y.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>The vertical location of this <code>Window</code> on the screen. Changing this attribute will move the <code>Window</code> vertically. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false.</dd> </dl> </li> </ul> <a name="yProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>yProperty</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a> yProperty()</pre> <div class="block">The vertical location of this <code>Window</code> on the screen. Changing this attribute will move the <code>Window</code> vertically. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getY--"><code>getY()</code></a>, <a href="../../javafx/stage/Window.html#setY-double-"><code>setY(double)</code></a></dd> </dl> </li> </ul> <a name="setWidth-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setWidth</h4> <pre>public final void setWidth(double value)</pre> <div class="block">Sets the value of the property width.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>The width of this <code>Window</code>. Changing this attribute will narrow or widen the width of the <code>Window</code>. This value includes any and all decorations which may be added by the Operating System such as resizable frame handles. Typical applications will set the <a href="../../javafx/scene/Scene.html" title="class in javafx.scene"><code>Scene</code></a> width instead. This <code>Window</code> will take its width from the scene if it has never been set by the application. Resizing the window by end user does not count as a setting the width by the application. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></dd> </dl> </li> </ul> <a name="getWidth--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getWidth</h4> <pre>public final double getWidth()</pre> <div class="block">Gets the value of the property width.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>The width of this <code>Window</code>. Changing this attribute will narrow or widen the width of the <code>Window</code>. This value includes any and all decorations which may be added by the Operating System such as resizable frame handles. Typical applications will set the <a href="../../javafx/scene/Scene.html" title="class in javafx.scene"><code>Scene</code></a> width instead. This <code>Window</code> will take its width from the scene if it has never been set by the application. Resizing the window by end user does not count as a setting the width by the application. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></dd> </dl> </li> </ul> <a name="widthProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>widthProperty</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a> widthProperty()</pre> <div class="block">The width of this <code>Window</code>. Changing this attribute will narrow or widen the width of the <code>Window</code>. This value includes any and all decorations which may be added by the Operating System such as resizable frame handles. Typical applications will set the <a href="../../javafx/scene/Scene.html" title="class in javafx.scene"><code>Scene</code></a> width instead. This <code>Window</code> will take its width from the scene if it has never been set by the application. Resizing the window by end user does not count as a setting the width by the application. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getWidth--"><code>getWidth()</code></a>, <a href="../../javafx/stage/Window.html#setWidth-double-"><code>setWidth(double)</code></a></dd> </dl> </li> </ul> <a name="setHeight-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setHeight</h4> <pre>public final void setHeight(double value)</pre> <div class="block">Sets the value of the property height.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>The height of this <code>Window</code>. Changing this attribute will shrink or heighten the height of the <code>Window</code>. This value includes any and all decorations which may be added by the Operating System such as the title bar. Typical applications will set the <a href="../../javafx/scene/Scene.html" title="class in javafx.scene"><code>Scene</code></a> height instead. This window will take its height from the scene if it has never been set by the application. Resizing this window by end user does not count as a setting the height by the application. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></dd> </dl> </li> </ul> <a name="getHeight--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getHeight</h4> <pre>public final double getHeight()</pre> <div class="block">Gets the value of the property height.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>The height of this <code>Window</code>. Changing this attribute will shrink or heighten the height of the <code>Window</code>. This value includes any and all decorations which may be added by the Operating System such as the title bar. Typical applications will set the <a href="../../javafx/scene/Scene.html" title="class in javafx.scene"><code>Scene</code></a> height instead. This window will take its height from the scene if it has never been set by the application. Resizing this window by end user does not count as a setting the height by the application. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></dd> </dl> </li> </ul> <a name="heightProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>heightProperty</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyDoubleProperty.html" title="class in javafx.beans.property">ReadOnlyDoubleProperty</a> heightProperty()</pre> <div class="block">The height of this <code>Window</code>. Changing this attribute will shrink or heighten the height of the <code>Window</code>. This value includes any and all decorations which may be added by the Operating System such as the title bar. Typical applications will set the <a href="../../javafx/scene/Scene.html" title="class in javafx.scene"><code>Scene</code></a> height instead. This window will take its height from the scene if it has never been set by the application. Resizing this window by end user does not count as a setting the height by the application. If this <code>Window</code> is an instance of <code>Stage</code>, changing this attribute will not visually affect the <code>Window</code> while <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> is true, but will be honored by the <code>Window</code> once <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> becomes false. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getHeight--"><code>getHeight()</code></a>, <a href="../../javafx/stage/Window.html#setHeight-double-"><code>setHeight(double)</code></a></dd> </dl> </li> </ul> <a name="requestFocus--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>requestFocus</h4> <pre>public final void requestFocus()</pre> <div class="block">Requests that this <code>Window</code> get the input focus.</div> </li> </ul> <a name="isFocused--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isFocused</h4> <pre>public final boolean isFocused()</pre> <div class="block">Gets the value of the property focused.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Whether or not this <code>Window</code> has the keyboard or input focus. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></dd> </dl> </li> </ul> <a name="focusedProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>focusedProperty</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyBooleanProperty.html" title="class in javafx.beans.property">ReadOnlyBooleanProperty</a> focusedProperty()</pre> <div class="block">Whether or not this <code>Window</code> has the keyboard or input focus. <p> The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable. </p></div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#isFocused--"><code>isFocused()</code></a>, <a href="../../javafx/stage/Window.html#setFocused-boolean-"><code>setFocused(boolean)</code></a></dd> </dl> </li> </ul> <a name="getProperties--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getProperties</h4> <pre>public final <a href="../../javafx/collections/ObservableMap.html" title="interface in javafx.collections">ObservableMap</a><java.lang.Object,java.lang.Object> getProperties()</pre> <div class="block">Returns an observable map of properties on this node for use primarily by application developers.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>an observable map of properties on this node for use primarily by application developers</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>JavaFX 8u40</dd> </dl> </li> </ul> <a name="hasProperties--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasProperties</h4> <pre>public boolean hasProperties()</pre> <div class="block">Tests if Window has properties.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if node has properties.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>JavaFX 8u40</dd> </dl> </li> </ul> <a name="setUserData-java.lang.Object-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setUserData</h4> <pre>public void setUserData(java.lang.Object 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/stage/Window.html#getUserData--"><code>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/stage/Window.html#getUserData--"><code>getUserData()</code></a>.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>JavaFX 8u40</dd> </dl> </li> </ul> <a name="getUserData--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getUserData</h4> <pre>public java.lang.Object 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/stage/Window.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> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>JavaFX 8u40</dd> </dl> </li> </ul> <a name="setScene-javafx.scene.Scene-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setScene</h4> <pre>protected void setScene(<a href="../../javafx/scene/Scene.html" title="class in javafx.scene">Scene</a> value)</pre> <div class="block">Sets the value of the property scene.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>The <code>Scene</code> to be rendered on this <code>Window</code>. There can only be one <code>Scene</code> on the <code>Window</code> at a time, and a <code>Scene</code> can only be on one <code>Window</code> at a time. Setting a <code>Scene</code> on a different <code>Window</code> will cause the old <code>Window</code> to lose the reference before the new one gains it. You may swap <code>Scene</code>s on a <code>Window</code> at any time, even if it is an instance of <code>Stage</code> and with <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> set to true. If the width or height of this <code>Window</code> have never been set by the application, setting the scene will cause this <code>Window</code> to take its width or height from that scene. Resizing this window by end user does not count as setting the width or height by the application. An <code>IllegalStateException</code> is thrown if this property is set on a thread other than the JavaFX Application Thread.</dd> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>null</dd> </dl> </li> </ul> <a name="getScene--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getScene</h4> <pre>public final <a href="../../javafx/scene/Scene.html" title="class in javafx.scene">Scene</a> getScene()</pre> <div class="block">Gets the value of the property scene.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>The <code>Scene</code> to be rendered on this <code>Window</code>. There can only be one <code>Scene</code> on the <code>Window</code> at a time, and a <code>Scene</code> can only be on one <code>Window</code> at a time. Setting a <code>Scene</code> on a different <code>Window</code> will cause the old <code>Window</code> to lose the reference before the new one gains it. You may swap <code>Scene</code>s on a <code>Window</code> at any time, even if it is an instance of <code>Stage</code> and with <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> set to true. If the width or height of this <code>Window</code> have never been set by the application, setting the scene will cause this <code>Window</code> to take its width or height from that scene. Resizing this window by end user does not count as setting the width or height by the application. An <code>IllegalStateException</code> is thrown if this property is set on a thread other than the JavaFX Application Thread.</dd> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>null</dd> </dl> </li> </ul> <a name="sceneProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>sceneProperty</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../javafx/scene/Scene.html" title="class in javafx.scene">Scene</a>> sceneProperty()</pre> <div class="block">The <code>Scene</code> to be rendered on this <code>Window</code>. There can only be one <code>Scene</code> on the <code>Window</code> at a time, and a <code>Scene</code> can only be on one <code>Window</code> at a time. Setting a <code>Scene</code> on a different <code>Window</code> will cause the old <code>Window</code> to lose the reference before the new one gains it. You may swap <code>Scene</code>s on a <code>Window</code> at any time, even if it is an instance of <code>Stage</code> and with <a href="../../javafx/stage/Stage.html#fullScreenProperty--"><code>fullScreen</code></a> set to true. If the width or height of this <code>Window</code> have never been set by the application, setting the scene will cause this <code>Window</code> to take its width or height from that scene. Resizing this window by end user does not count as setting the width or height by the application. An <code>IllegalStateException</code> is thrown if this property is set on a thread other than the JavaFX Application Thread.</div> <dl> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>null</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getScene--"><code>getScene()</code></a>, <a href="../../javafx/stage/Window.html#setScene-javafx.scene.Scene-"><code>setScene(Scene)</code></a></dd> </dl> </li> </ul> <a name="setOpacity-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setOpacity</h4> <pre>public final void setOpacity(double value)</pre> <div class="block">Sets the value of the property opacity.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Defines the opacity of the <code>Window</code> as a value between 0.0 and 1.0. The opacity is reflected across the <code>Window</code>, its <code>Decoration</code> and its <code>Scene</code> content. On a JavaFX runtime platform that does not support opacity, assigning a value to this variable will have no visible difference. A <code>Window</code> with 0% opacity is fully translucent. Typically, a <code>Window</code> with 0% opacity will not receive any mouse events.</dd> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>1.0</dd> </dl> </li> </ul> <a name="getOpacity--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOpacity</h4> <pre>public final double getOpacity()</pre> <div class="block">Gets the value of the property opacity.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Defines the opacity of the <code>Window</code> as a value between 0.0 and 1.0. The opacity is reflected across the <code>Window</code>, its <code>Decoration</code> and its <code>Scene</code> content. On a JavaFX runtime platform that does not support opacity, assigning a value to this variable will have no visible difference. A <code>Window</code> with 0% opacity is fully translucent. Typically, a <code>Window</code> with 0% opacity will not receive any mouse events.</dd> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>1.0</dd> </dl> </li> </ul> <a name="opacityProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>opacityProperty</h4> <pre>public final <a href="../../javafx/beans/property/DoubleProperty.html" title="class in javafx.beans.property">DoubleProperty</a> opacityProperty()</pre> <div class="block">Defines the opacity of the <code>Window</code> as a value between 0.0 and 1.0. The opacity is reflected across the <code>Window</code>, its <code>Decoration</code> and its <code>Scene</code> content. On a JavaFX runtime platform that does not support opacity, assigning a value to this variable will have no visible difference. A <code>Window</code> with 0% opacity is fully translucent. Typically, a <code>Window</code> with 0% opacity will not receive any mouse events.</div> <dl> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>1.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOpacity--"><code>getOpacity()</code></a>, <a href="../../javafx/stage/Window.html#setOpacity-double-"><code>setOpacity(double)</code></a></dd> </dl> </li> </ul> <a name="setOnCloseRequest-javafx.event.EventHandler-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setOnCloseRequest</h4> <pre>public final void setOnCloseRequest(<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> value)</pre> <div class="block">Sets the value of the property onCloseRequest.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Called when there is an external request to close this <code>Window</code>. The installed event handler can prevent window closing by consuming the received event.</dd> </dl> </li> </ul> <a name="getOnCloseRequest--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOnCloseRequest</h4> <pre>public final <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> getOnCloseRequest()</pre> <div class="block">Gets the value of the property onCloseRequest.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Called when there is an external request to close this <code>Window</code>. The installed event handler can prevent window closing by consuming the received event.</dd> </dl> </li> </ul> <a name="onCloseRequestProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onCloseRequestProperty</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>> onCloseRequestProperty()</pre> <div class="block">Called when there is an external request to close this <code>Window</code>. The installed event handler can prevent window closing by consuming the received event.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOnCloseRequest--"><code>getOnCloseRequest()</code></a>, <a href="../../javafx/stage/Window.html#setOnCloseRequest-javafx.event.EventHandler-"><code>setOnCloseRequest(EventHandler)</code></a></dd> </dl> </li> </ul> <a name="setOnShowing-javafx.event.EventHandler-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setOnShowing</h4> <pre>public final void setOnShowing(<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> value)</pre> <div class="block">Sets the value of the property onShowing.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Called just prior to the Window being shown.</dd> </dl> </li> </ul> <a name="getOnShowing--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOnShowing</h4> <pre>public final <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> getOnShowing()</pre> <div class="block">Gets the value of the property onShowing.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Called just prior to the Window being shown.</dd> </dl> </li> </ul> <a name="onShowingProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onShowingProperty</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>> onShowingProperty()</pre> <div class="block">Called just prior to the Window being shown.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOnShowing--"><code>getOnShowing()</code></a>, <a href="../../javafx/stage/Window.html#setOnShowing-javafx.event.EventHandler-"><code>setOnShowing(EventHandler)</code></a></dd> </dl> </li> </ul> <a name="setOnShown-javafx.event.EventHandler-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setOnShown</h4> <pre>public final void setOnShown(<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> value)</pre> <div class="block">Sets the value of the property onShown.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Called just after the Window is shown.</dd> </dl> </li> </ul> <a name="getOnShown--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOnShown</h4> <pre>public final <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> getOnShown()</pre> <div class="block">Gets the value of the property onShown.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Called just after the Window is shown.</dd> </dl> </li> </ul> <a name="onShownProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onShownProperty</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>> onShownProperty()</pre> <div class="block">Called just after the Window is shown.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOnShown--"><code>getOnShown()</code></a>, <a href="../../javafx/stage/Window.html#setOnShown-javafx.event.EventHandler-"><code>setOnShown(EventHandler)</code></a></dd> </dl> </li> </ul> <a name="setOnHiding-javafx.event.EventHandler-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setOnHiding</h4> <pre>public final void setOnHiding(<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> value)</pre> <div class="block">Sets the value of the property onHiding.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Called just prior to the Window being hidden.</dd> </dl> </li> </ul> <a name="getOnHiding--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOnHiding</h4> <pre>public final <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> getOnHiding()</pre> <div class="block">Gets the value of the property onHiding.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Called just prior to the Window being hidden.</dd> </dl> </li> </ul> <a name="onHidingProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onHidingProperty</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>> onHidingProperty()</pre> <div class="block">Called just prior to the Window being hidden.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOnHiding--"><code>getOnHiding()</code></a>, <a href="../../javafx/stage/Window.html#setOnHiding-javafx.event.EventHandler-"><code>setOnHiding(EventHandler)</code></a></dd> </dl> </li> </ul> <a name="setOnHidden-javafx.event.EventHandler-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setOnHidden</h4> <pre>public final void setOnHidden(<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> value)</pre> <div class="block">Sets the value of the property onHidden.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Called just after the Window has been hidden. When the <code>Window</code> is hidden, this event handler is invoked allowing the developer to clean up resources or perform other tasks when the <a href="../../javafx/stage/Window.html" title="class in javafx.stage"><code>Window</code></a> is closed.</dd> </dl> </li> </ul> <a name="getOnHidden--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOnHidden</h4> <pre>public final <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>> getOnHidden()</pre> <div class="block">Gets the value of the property onHidden.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Called just after the Window has been hidden. When the <code>Window</code> is hidden, this event handler is invoked allowing the developer to clean up resources or perform other tasks when the <a href="../../javafx/stage/Window.html" title="class in javafx.stage"><code>Window</code></a> is closed.</dd> </dl> </li> </ul> <a name="onHiddenProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onHiddenProperty</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage">WindowEvent</a>>> onHiddenProperty()</pre> <div class="block">Called just after the Window has been hidden. When the <code>Window</code> is hidden, this event handler is invoked allowing the developer to clean up resources or perform other tasks when the <a href="../../javafx/stage/Window.html" title="class in javafx.stage"><code>Window</code></a> is closed.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getOnHidden--"><code>getOnHidden()</code></a>, <a href="../../javafx/stage/Window.html#setOnHidden-javafx.event.EventHandler-"><code>setOnHidden(EventHandler)</code></a></dd> </dl> </li> </ul> <a name="isShowing--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isShowing</h4> <pre>public final boolean isShowing()</pre> <div class="block">Gets the value of the property showing.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Whether or not this <code>Window</code> is showing (that is, open on the user's system). The Window might be "showing", yet the user might not be able to see it due to the Window being rendered behind another Window or due to the Window being positioned off the monitor.</dd> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>false</dd> </dl> </li> </ul> <a name="showingProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>showingProperty</h4> <pre>public final <a href="../../javafx/beans/property/ReadOnlyBooleanProperty.html" title="class in javafx.beans.property">ReadOnlyBooleanProperty</a> showingProperty()</pre> <div class="block">Whether or not this <code>Window</code> is showing (that is, open on the user's system). The Window might be "showing", yet the user might not be able to see it due to the Window being rendered behind another Window or due to the Window being positioned off the monitor.</div> <dl> <dt><span class="simpleTagLabel">Default value:</span></dt> <dd>false</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#isShowing--"><code>isShowing()</code></a></dd> </dl> </li> </ul> <a name="show--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>show</h4> <pre>protected void show()</pre> <div class="block">Attempts to show this Window by setting visibility to true</div> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.IllegalStateException</code> - if this method is called on a thread other than the JavaFX Application Thread.</dd> </dl> </li> </ul> <a name="hide--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hide</h4> <pre>public void hide()</pre> <div class="block">Attempts to hide this Window by setting the visibility to false.</div> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.IllegalStateException</code> - if this method is called on a thread other than the JavaFX Application Thread.</dd> </dl> </li> </ul> <a name="setEventDispatcher-javafx.event.EventDispatcher-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEventDispatcher</h4> <pre>public final void setEventDispatcher(<a href="../../javafx/event/EventDispatcher.html" title="interface in javafx.event">EventDispatcher</a> value)</pre> <div class="block">Sets the value of the property eventDispatcher.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Specifies the event dispatcher for this node. The default event dispatcher sends the received events to the registered event handlers and filters. When replacing the value with a new <code>EventDispatcher</code>, the new dispatcher should forward events to the replaced dispatcher to maintain the node's default event handling behavior.</dd> </dl> </li> </ul> <a name="getEventDispatcher--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getEventDispatcher</h4> <pre>public final <a href="../../javafx/event/EventDispatcher.html" title="interface in javafx.event">EventDispatcher</a> getEventDispatcher()</pre> <div class="block">Gets the value of the property eventDispatcher.</div> <dl> <dt><span class="simpleTagLabel">Property description:</span></dt> <dd>Specifies the event dispatcher for this node. The default event dispatcher sends the received events to the registered event handlers and filters. When replacing the value with a new <code>EventDispatcher</code>, the new dispatcher should forward events to the replaced dispatcher to maintain the node's default event handling behavior.</dd> </dl> </li> </ul> <a name="eventDispatcherProperty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>eventDispatcherProperty</h4> <pre>public final <a href="../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../javafx/event/EventDispatcher.html" title="interface in javafx.event">EventDispatcher</a>> eventDispatcherProperty()</pre> <div class="block">Specifies the event dispatcher for this node. The default event dispatcher sends the received events to the registered event handlers and filters. When replacing the value with a new <code>EventDispatcher</code>, the new dispatcher should forward events to the replaced dispatcher to maintain the node's default event handling behavior.</div> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../javafx/stage/Window.html#getEventDispatcher--"><code>getEventDispatcher()</code></a>, <a href="../../javafx/stage/Window.html#setEventDispatcher-javafx.event.EventDispatcher-"><code>setEventDispatcher(EventDispatcher)</code></a></dd> </dl> </li> </ul> <a name="addEventHandler-javafx.event.EventType-javafx.event.EventHandler-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addEventHandler</h4> <pre>public final <T extends <a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a>> void addEventHandler(<a href="../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><T> eventType, <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><? super T> eventHandler)</pre> <div class="block">Registers an event handler to this node. The handler is called when the node 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>T</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>java.lang.NullPointerException</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 final <T extends <a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a>> void removeEventHandler(<a href="../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><T> eventType, <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><? super T> eventHandler)</pre> <div class="block">Unregisters a previously registered event handler from this node. 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>T</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>java.lang.NullPointerException</code> - if the event type or handler is null</dd> </dl> </li> </ul> <a name="addEventFilter-javafx.event.EventType-javafx.event.EventHandler-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addEventFilter</h4> <pre>public final <T extends <a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a>> void addEventFilter(<a href="../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><T> eventType, <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><? super T> eventFilter)</pre> <div class="block">Registers an event filter to this node. The filter is called when the node receives an <code>Event</code> of the specified type during the capturing phase of event delivery.</div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> <dd><code>T</code> - the specific event class of the filter</dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>eventType</code> - the type of the events to receive by the filter</dd> <dd><code>eventFilter</code> - the filter to register</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.NullPointerException</code> - if the event type or filter is null</dd> </dl> </li> </ul> <a name="removeEventFilter-javafx.event.EventType-javafx.event.EventHandler-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>removeEventFilter</h4> <pre>public final <T extends <a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a>> void removeEventFilter(<a href="../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><T> eventType, <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><? super T> eventFilter)</pre> <div class="block">Unregisters a previously registered event filter from this node. One filter might have been registered for different event types, so the caller needs to specify the particular event type from which to unregister the filter.</div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> <dd><code>T</code> - the specific event class of the filter</dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>eventType</code> - the event type from which to unregister</dd> <dd><code>eventFilter</code> - the filter to unregister</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.NullPointerException</code> - if the event type or filter is null</dd> </dl> </li> </ul> <a name="setEventHandler-javafx.event.EventType-javafx.event.EventHandler-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setEventHandler</h4> <pre>protected final <T extends <a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a>> void setEventHandler(<a href="../../javafx/event/EventType.html" title="class in javafx.event">EventType</a><T> eventType, <a href="../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><? super T> eventHandler)</pre> <div class="block">Sets the handler to use for this event type. There can only be one such handler specified at a time. This handler is guaranteed to be called first. This is used for registering the user-defined onFoo event handlers.</div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> <dd><code>T</code> - the specific event class of the handler</dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>eventType</code> - the event type to associate with the given eventHandler</dd> <dd><code>eventHandler</code> - the handler to register, or null to unregister</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>java.lang.NullPointerException</code> - if the event type is null</dd> </dl> </li> </ul> <a name="fireEvent-javafx.event.Event-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>fireEvent</h4> <pre>public final void fireEvent(<a href="../../javafx/event/Event.html" title="class in javafx.event">Event</a> event)</pre> <div class="block">Fires the specified event. <p> This method must be called on the FX user thread.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>event</code> - the event to fire</dd> </dl> </li> </ul> <a name="buildEventDispatchChain-javafx.event.EventDispatchChain-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>buildEventDispatchChain</h4> <pre>public <a href="../../javafx/event/EventDispatchChain.html" title="interface in javafx.event">EventDispatchChain</a> buildEventDispatchChain(<a href="../../javafx/event/EventDispatchChain.html" title="interface in javafx.event">EventDispatchChain</a> tail)</pre> <div class="block">Construct an event dispatch chain for this window.</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> in interface <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 window</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/Window.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 8</div> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../javafx/stage/StageStyle.html" title="enum in javafx.stage"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../javafx/stage/WindowEvent.html" title="class in javafx.stage"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../index.html?javafx/stage/Window.html" target="_top">Frames</a></li> <li><a href="Window.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../allclasses-noframe.html">All 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: </li> <li>Nested | </li> <li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </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><font size="-1"><a href="http://bugreport.java.com/bugreport/" target="_blank">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="https://docs.oracle.com/javase/8/docs/index.html" target="_blank">Java SE Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.<br> <a href="https://docs.oracle.com/javase/8/docs/legal/cpyr.html" target="_blank">Copyright</a> © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to <a href="http://download.oracle.com/otndocs/jcp/java_se-8-mrel-spec/license.html" target="_blank">license terms</a>. Also see the <a target="_blank" href="http://www.oracle.com/technetwork/java/redist-137594.html" target="_blank">documentation redistribution policy</a>.</font></small></p> </body> </html>