public final class WindowUtil extends Object
Modifier and Type | Method and Description |
---|---|
static javafx.beans.property.ReadOnlyProperty<javafx.stage.Window> |
createCurrentWindowProperty(javafx.scene.Node pNode)
Creates a read-only property providing the current window of the
specified node.
|
static javafx.collections.ObservableList<javafx.beans.property.ReadOnlyProperty<javafx.scene.Parent>> |
createParentPathObservableList(javafx.scene.Node pNode) |
static javafx.beans.property.ReadOnlyProperty<Boolean> |
createVisibleOnSceneNodeProperty(javafx.scene.Node pNode)
Creates a property which determines whether the specified node is
visible on the scene.
|
static javafx.beans.property.ReadOnlyProperty<Boolean> |
createVisibleOnSceneNodeProperty(javafx.beans.value.ObservableValue<? extends javafx.scene.Node> pNode) |
static javafx.beans.property.ReadOnlyProperty<Boolean> |
createWindowShowingProperty(javafx.scene.Node pNode)
Creates a read-only property providing the 'showing' state of the
current window of the specified node.
|
static void |
delay(double pMs,
Runnable pRunnable)
Runs the specified runnable on the JavaFX thread after the specified time in
milliseconds is elapsed.
|
static void |
fixDialogSizingBug(javafx.scene.control.Dialog<?> pDialog)
A workaround for a Linux specific sizing bug, which occurs
when a dialog instance is reused for showing a dialog
more than once - the dialog pane height is shrunk to zero.
|
static javafx.stage.Window |
getWindow(javafx.event.ActionEvent pActionEvent) |
static <T> Optional<T> |
showAndWait(javafx.scene.control.Dialog<T> pDialog,
javafx.scene.control.MenuBar pMenuBar)
Used to prevent access to system menu on Mac OS when modal dialog is shown.
|
static void |
showTooltip(javafx.scene.control.Control pControl,
int pDelay,
int pShowingDuration)
Shows the tooltip of the specified component for the specified duration, after the
specified delay.
|
static void |
showTooltip(javafx.scene.control.Control pControl,
int pDelay,
int pShowingDuration,
javafx.geometry.Pos pPosition)
Shows the tooltip of the specified component for the specified duration, after the
specified delay.
|
public static javafx.stage.Window getWindow(javafx.event.ActionEvent pActionEvent)
public static void fixDialogSizingBug(javafx.scene.control.Dialog<?> pDialog)
public static javafx.beans.property.ReadOnlyProperty<javafx.stage.Window> createCurrentWindowProperty(javafx.scene.Node pNode)
public static javafx.beans.property.ReadOnlyProperty<Boolean> createWindowShowingProperty(javafx.scene.Node pNode)
public static javafx.beans.property.ReadOnlyProperty<Boolean> createVisibleOnSceneNodeProperty(javafx.beans.value.ObservableValue<? extends javafx.scene.Node> pNode)
public static javafx.beans.property.ReadOnlyProperty<Boolean> createVisibleOnSceneNodeProperty(javafx.scene.Node pNode)
public static javafx.collections.ObservableList<javafx.beans.property.ReadOnlyProperty<javafx.scene.Parent>> createParentPathObservableList(javafx.scene.Node pNode)
public static <T> Optional<T> showAndWait(javafx.scene.control.Dialog<T> pDialog, javafx.scene.control.MenuBar pMenuBar)
public static void showTooltip(javafx.scene.control.Control pControl, int pDelay, int pShowingDuration)
pDelay
- Delay in milliseconds before showing the tooltip.pShowingDuration
- Duration in milliseconds for which the tooltip will be visible.public static void showTooltip(javafx.scene.control.Control pControl, int pDelay, int pShowingDuration, javafx.geometry.Pos pPosition)
pDelay
- Delay in milliseconds before showing the tooltip.pShowingDuration
- Duration in milliseconds for which the tooltip will be visible.public static void delay(double pMs, Runnable pRunnable)
Copyright © 2023. All rights reserved.