public class WindowFinderImpl extends java.lang.Object implements WindowFinder
| Constructor and Description |
|---|
WindowFinderImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<javafx.stage.Window> |
listTargetWindows()
Returns a list of windows that are ordered by proximity to the last target window.
|
java.util.List<javafx.stage.Window> |
listWindows()
|
javafx.stage.Window |
targetWindow()
Returns the last stored target window.
|
void |
targetWindow(int windowIndex)
Stores the window returned from
WindowFinder.window(int) as the new last target window. |
void |
targetWindow(javafx.scene.Node node)
Stores the given node's scene's window as the new last target window.
|
void |
targetWindow(java.util.regex.Pattern stageTitlePattern)
Stores the stage whose title matches the given regex as the new last target window.
|
void |
targetWindow(java.util.function.Predicate<javafx.stage.Window> predicate)
Stores the first window that is closes by proximity to the last stored target window and passes the
given predicate as the new last target window or throws a
NoSuchElementException
if none exist. |
void |
targetWindow(javafx.scene.Scene scene)
Stores the given scene's window as the new last target window.
|
void |
targetWindow(java.lang.String stageTitleRegex)
Stores the stage whose title matches the given regex as the new last target window.
|
void |
targetWindow(javafx.stage.Window window)
Stores the given window as the target window.
|
javafx.stage.Window |
window(int windowIndex)
Returns the window at the given index from the list of windows that are ordered by proximity to the last stored
target window.
|
javafx.stage.Window |
window(javafx.scene.Node node)
Returns the node's scene's window.
|
javafx.stage.Window |
window(java.util.regex.Pattern stageTitlePattern)
Returns the stage whose title matches the given regex.
|
javafx.stage.Window |
window(java.util.function.Predicate<javafx.stage.Window> predicate)
Calls
WindowFinder.listTargetWindows() and returns the first window that passes the predicate or throws
a NoSuchElementException if none exist. |
javafx.stage.Window |
window(javafx.scene.Scene scene)
Returns the scene's window.
|
javafx.stage.Window |
window(java.lang.String stageTitleRegex)
Returns the stage whose title matches the given regex.
|
public javafx.stage.Window targetWindow()
WindowFindertargetWindow in interface WindowFinderpublic void targetWindow(javafx.stage.Window window)
WindowFindertargetWindow in interface WindowFinderpublic void targetWindow(java.util.function.Predicate<javafx.stage.Window> predicate)
WindowFinderNoSuchElementException
if none exist.targetWindow in interface WindowFinderpublic java.util.List<javafx.stage.Window> listWindows()
WindowFinderlistWindows in interface WindowFinderpublic java.util.List<javafx.stage.Window> listTargetWindows()
WindowFinderlistTargetWindows in interface WindowFinderpublic javafx.stage.Window window(java.util.function.Predicate<javafx.stage.Window> predicate)
WindowFinderWindowFinder.listTargetWindows() and returns the first window that passes the predicate or throws
a NoSuchElementException if none exist.window in interface WindowFinderpublic void targetWindow(int windowIndex)
WindowFinderWindowFinder.window(int) as the new last target window.targetWindow in interface WindowFinderpublic void targetWindow(java.lang.String stageTitleRegex)
WindowFindertargetWindow in interface WindowFinderpublic void targetWindow(java.util.regex.Pattern stageTitlePattern)
WindowFindertargetWindow in interface WindowFinderpublic void targetWindow(javafx.scene.Scene scene)
WindowFindertargetWindow in interface WindowFinderpublic void targetWindow(javafx.scene.Node node)
WindowFindertargetWindow in interface WindowFinderpublic javafx.stage.Window window(int windowIndex)
WindowFinderwindow in interface WindowFinderpublic javafx.stage.Window window(java.lang.String stageTitleRegex)
WindowFinderwindow in interface WindowFinderpublic javafx.stage.Window window(java.util.regex.Pattern stageTitlePattern)
WindowFinderwindow in interface WindowFinderpublic javafx.stage.Window window(javafx.scene.Scene scene)
WindowFinderwindow in interface WindowFinderpublic javafx.stage.Window window(javafx.scene.Node node)
WindowFinderwindow in interface WindowFinder