Module org.testfx

Interface WindowFinder

  • All Known Implementing Classes:
    WindowFinderImpl

    public interface WindowFinder
    • Method Detail

      • targetWindow

        Window targetWindow()
        Returns the last stored target window.
      • targetWindow

        void targetWindow​(Window window)
        Stores the given window as the target window.
      • targetWindow

        void targetWindow​(Predicate<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.
      • targetWindow

        void targetWindow​(int windowIndex)
        Stores the window returned from window(int) as the new last target window.
      • targetWindow

        void targetWindow​(String stageTitleRegex)
        Stores the stage whose title matches the given regex as the new last target window.
      • targetWindow

        void targetWindow​(Pattern stageTitlePattern)
        Stores the stage whose title matches the given regex as the new last target window.
      • targetWindow

        void targetWindow​(Scene scene)
        Stores the given scene's window as the new last target window.
      • targetWindow

        void targetWindow​(Node node)
        Stores the given node's scene's window as the new last target window.
      • listTargetWindows

        List<Window> listTargetWindows()
        Returns a list of windows that are ordered by proximity to the last target window.
      • window

        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

        Window window​(String stageTitleRegex)
        Returns the stage whose title matches the given regex.
      • window

        Window window​(Pattern stageTitlePattern)
        Returns the stage whose title matches the given regex.
      • window

        Window window​(Scene scene)
        Returns the scene's window.
      • window

        Window window​(Node node)
        Returns the node's scene's window.