public final class Windows
extends java.lang.Object
Window related functions.| Modifier and Type | Method and Description |
|---|---|
static <T> T |
onHiding(javafx.stage.Window window,
java.util.function.Consumer<T> consumer,
T t)
Make sure a
Consumer is invoked as soon as a corresponding Window is about to get closed. |
public static <T> T onHiding(javafx.stage.Window window,
java.util.function.Consumer<T> consumer,
T t)
Consumer is invoked as soon as a corresponding Window is about to get closed.T - The actual consumer parameter type.window - The Window to monitor.consumer - The Consumer to invoke.t - The consumer parameter to use.