Class WindowMatchers


  • public class WindowMatchers
    extends java.lang.Object
    TestFX matchers for Window instances.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private WindowMatchers()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.hamcrest.Matcher<javafx.stage.Window> isFocused()
      A matcher checking if a window currently has the focus.
      static org.hamcrest.Matcher<javafx.stage.Window> isNotFocused()
      A matcher checking if a window is currently not focused.
      static org.hamcrest.Matcher<javafx.stage.Window> isNotShowing()
      A matcher checking if a window is currently not showing.
      static org.hamcrest.Matcher<javafx.stage.Window> isShowing()
      A matcher checking if a window is currently showing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WindowMatchers

        private WindowMatchers()
    • Method Detail

      • isShowing

        public static org.hamcrest.Matcher<javafx.stage.Window> isShowing()
        A matcher checking if a window is currently showing.
        Returns:
        the matcher
      • isNotShowing

        public static org.hamcrest.Matcher<javafx.stage.Window> isNotShowing()
        A matcher checking if a window is currently not showing.
        Returns:
        the matcher
      • isFocused

        public static org.hamcrest.Matcher<javafx.stage.Window> isFocused()
        A matcher checking if a window currently has the focus.
        Returns:
        the matcher
      • isNotFocused

        public static org.hamcrest.Matcher<javafx.stage.Window> isNotFocused()
        A matcher checking if a window is currently not focused.
        Returns:
        the matcher