Package org.testfx.service.finder
Interface WindowFinder
-
- All Known Implementing Classes:
WindowFinderImpl
public interface WindowFinder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.WindowtargetWindow()Returns the last stored target window.voidtargetWindow(int windowIndex)Stores the window returned fromwindow(int)as the new last target window.voidtargetWindow(java.lang.String stageTitleRegex)Stores the stage whose title matches the given regex as the new last target window.voidtargetWindow(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 aNoSuchElementExceptionif none exist.voidtargetWindow(java.util.regex.Pattern stageTitlePattern)Stores the stage whose title matches the given regex as the new last target window.voidtargetWindow(javafx.scene.Node node)Stores the given node's scene's window as the new last target window.voidtargetWindow(javafx.scene.Scene scene)Stores the given scene's window as the new last target window.voidtargetWindow(javafx.stage.Window window)Stores the given window as the target window.javafx.stage.Windowwindow(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.Windowwindow(java.lang.String stageTitleRegex)Returns the stage whose title matches the given regex.javafx.stage.Windowwindow(java.util.function.Predicate<javafx.stage.Window> predicate)CallslistTargetWindows()and returns the first window that passes the predicate or throws aNoSuchElementExceptionif none exist.javafx.stage.Windowwindow(java.util.regex.Pattern stageTitlePattern)Returns the stage whose title matches the given regex.javafx.stage.Windowwindow(javafx.scene.Node node)Returns the node's scene's window.javafx.stage.Windowwindow(javafx.scene.Scene scene)Returns the scene's window.
-
-
-
Method Detail
-
targetWindow
javafx.stage.Window targetWindow()
Returns the last stored target window.
-
targetWindow
void targetWindow(javafx.stage.Window window)
Stores the given window as the target window.
-
targetWindow
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 aNoSuchElementExceptionif none exist.
-
targetWindow
void targetWindow(int windowIndex)
Stores the window returned fromwindow(int)as the new last target window.
-
targetWindow
void targetWindow(java.lang.String stageTitleRegex)
Stores the stage whose title matches the given regex as the new last target window.
-
targetWindow
void targetWindow(java.util.regex.Pattern stageTitlePattern)
Stores the stage whose title matches the given regex as the new last target window.
-
targetWindow
void targetWindow(javafx.scene.Scene scene)
Stores the given scene's window as the new last target window.
-
targetWindow
void targetWindow(javafx.scene.Node node)
Stores the given node's scene's window as the new last target window.
-
listWindows
java.util.List<javafx.stage.Window> listWindows()
-
listTargetWindows
java.util.List<javafx.stage.Window> listTargetWindows()
Returns a list of windows that are ordered by proximity to the last target window.
-
window
javafx.stage.Window window(java.util.function.Predicate<javafx.stage.Window> predicate)
CallslistTargetWindows()and returns the first window that passes the predicate or throws aNoSuchElementExceptionif none exist.
-
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.
-
window
javafx.stage.Window window(java.lang.String stageTitleRegex)
Returns the stage whose title matches the given regex.
-
window
javafx.stage.Window window(java.util.regex.Pattern stageTitlePattern)
Returns the stage whose title matches the given regex.
-
window
javafx.stage.Window window(javafx.scene.Scene scene)
Returns the scene's window.
-
window
javafx.stage.Window window(javafx.scene.Node node)
Returns the node's scene's window.
-
-