Stage, PopupWindow, or other
such top level window.
Window objects must be constructed and modified on the JavaFX Application Thread.
The JavaFX Application Thread is created as part of the startup process for
the JavaFX runtime. See the javafx. class and
the Platform#startup(Runnable) method for more information.
Some Window properties are read-only, even though they have
corresponding set methods, because they can be changed externally by the
underlying platform, and therefore must not be bindable.
Further, these properties might be ignored on some platforms, depending on
whether or not there is a window manager and how it is configured.
For example, a tiling window manager might ignore the x and y
properties, or treat them as hints, placing the window in a location of its
choosing.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private class | Window.
Caches all requested bounds settings and applies them at once during the next pulse. |
| Modifier and Type | Field and Description |
|---|---|
| private static final float | |
| private static final float | |
| private ObjectProperty | eventDispatcher
Specifies the event dispatcher for this node. |
| private ReadOnlyBooleanWrapper | focused
Whether or not this |
| private int | |
| private BooleanProperty | forceIntegerRenderScale
Boolean property that controls whether only integer render scales are set by default by the system when there is a change in the associated output scale. |
| pack-priv boolean | |
| private ReadOnlyDoubleWrapper | height
The height of this |
| private boolean | |
| private WindowEventDispatcher | |
| private ObjectProperty | onCloseRequest
Called when there is an external request to close this |
| private ObjectProperty | onHidden
Called just after the Window has been hidden. |
| private ObjectProperty | onHiding
Called just prior to the Window being hidden. |
| private ObjectProperty | onShowing
Called just prior to the Window being shown. |
| private ObjectProperty | onShown
Called just after the Window is shown. |
| private DoubleProperty | opacity
Defines the opacity of the |
| private ReadOnlyDoubleWrapper | outputScaleX
The scale that the |
| private ReadOnlyDoubleWrapper | outputScaleY
The scale that the |
| private TKStage | |
| private Window. | |
| private WindowPeerListener | |
| private ObservableMap | |
| private DoubleProperty | renderScaleX
The horizontal scale that the |
| private DoubleProperty | renderScaleY
The vertical scale that the |
| private Window. | scene
The |
| private final ReadOnlyObjectWrapper | |
| private ReadOnlyBooleanWrapper | showing
Whether or not this |
| private boolean | sizeToScene
Indicates if a user requested the window to be sized to match the scene size. |
| private static ObservableList | |
| private static final Object | |
| private ReadOnlyDoubleWrapper | width
The width of this |
| private boolean | |
| private WindowHelper | |
| private static ObservableList | windows
A list of all the currently _showing_ windows. |
| private ReadOnlyDoubleWrapper | x
The horizontal location of this |
| private boolean | |
| private ReadOnlyDoubleWrapper | y
The vertical location of this |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final <T extends Event> void | addEventFilter(final EventType<T> eventType, final EventHandler<? super T> eventFilter)
Overrides default javafx. Registers an event filter for this target. |
| public final <T extends Event> void | addEventHandler(final EventType<T> eventType, final EventHandler<? super T> eventHandler)
Overrides default javafx. Registers an event handler for this target. |
| private void | |
| pack-priv final void | |
| public EventDispatchChain | buildEventDispatchChain(EventDispatchChain tail)
Implements javafx. Construct an event dispatch chain for this target. |
| public void | centerOnScreen()
Sets x and y properties on this Window so that it is centered on the current screen. |
| pack-priv WindowEventDispatcher | |
| pack-priv void | |
| private void | |
| private void | |
| public final ObjectProperty | |
| public final void | |
| private void | |
| public final ReadOnlyBooleanProperty | |
| public final BooleanProperty | |
| public final EventDispatcher | |
| public final double | |
| pack-priv WindowEventDispatcher | |
| public final EventHandler | |
| public final EventHandler | |
| public final EventHandler | |
| public final EventHandler | |
| public final EventHandler | |
| public final double | |
| public final double | |
| public final double | |
| pack-priv TKStage | |
| pack-priv WindowPeerListener | |
| public final ObservableMap | Returns: an observable map of properties on this node for use primarily by application developersReturns an observable map of properties on this node for use primarily by application developers. |
| public final double | |
| public final double | |
| public final Scene | |
| public Object | Returns: The Object that was previously set, or null if no property has been set or if null was set.Returns a previously set Object property, or null if no such property
has been set using the |
| public final double | |
| pack-priv Window | |
| public static ObservableList | Returns: A list containing all windows that are currently showing.Returns a list containing a reference to the currently showing JavaFX windows. |
| private Screen | |
| public final double | |
| public final double | |
| public boolean | |
| public final ReadOnlyDoubleProperty | |
| public void | |
| pack-priv void | |
| private void | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| pack-priv boolean | Returns: true if allowed, false otherwiseDetermines whether the |
| pack-priv void | notifyLocationChanged(double
the new window x position newX, double the new window y position newY)Notification from the windowing system that the window's position has changed. |
| private void | |
| pack-priv void | notifySizeChanged(double
the new window width newWidth, double the new window height newHeight)Notification from the windowing system that the window's size has changed. |
| public final ObjectProperty | |
| public final ObjectProperty | |
| public final ObjectProperty | |
| public final ObjectProperty | |
| public final ObjectProperty | |
| public final DoubleProperty | |
| public final ReadOnlyDoubleProperty | |
| public final ReadOnlyDoubleProperty | |
| public final <T extends Event> void | removeEventFilter(final EventType<T> eventType, final EventHandler<? super T> eventFilter)
Overrides default javafx. Unregisters a previously registered event filter from this target. |
| public final <T extends Event> void | removeEventHandler(final EventType<T> eventType, final EventHandler<? super T> eventHandler)
Overrides default javafx. Unregisters a previously registered event handler from this target. |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final void | |
| public final ReadOnlyObjectProperty | |
| private ReadOnlyObjectProperty | |
| public final void | |
| protected final < the specific event class of the handler T extends Event> void | setEventHandler(final EventType<T>
the event type to associate with the given eventHandler eventType, final EventHandler<? super T> the handler to register, or null to unregister eventHandler)Sets the handler to use for this event type. |
| pack-priv final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| pack-priv void | |
| pack-priv void | |
| public final void | |
| public final void | |
| protected void | |
| private void | |
| public void | setUserData(Object
The value to be stored - this can later be retrieved by calling
value)Window#getUserData().Convenience method for setting a single Object property that can be retrieved at a later date. |
| public final void | |
| public final void | |
| pack-priv void | |
| public final void | |
| pack-priv void | |
| protected void | |
| public final ReadOnlyBooleanProperty | |
| public void | sizeToScene()
Set the width and height of this Window to match the size of the content of this Window's Scene. |
| private void | |
| pack-priv void | |
| public final ReadOnlyDoubleProperty | |
| public final ReadOnlyDoubleProperty | |
| public final ReadOnlyDoubleProperty |