Module org.testfx

Class StyleableMatchers


  • public class StyleableMatchers
    extends Object
    TestFX matchers for Styleable objects.
    • Method Summary

      Modifier and Type Method Description
      static org.hamcrest.Matcher<javafx.css.Styleable> hasId​(String id)
      Creates a matcher that matches all Styleable objects that have the given id as their CSS id.
      static org.hamcrest.Matcher<javafx.css.Styleable> hasStyle​(String style)
      Creates a matcher that matches all Styleable objects that have the given style as their CSS style.
      static org.hamcrest.Matcher<javafx.css.Styleable> hasStyleableParent​(javafx.css.Styleable styleableParent)
      Creates a matcher that matches all Styleable objects that have the given parent as their styleable parent.
      static org.hamcrest.Matcher<javafx.css.Styleable> hasTypeSelector​(String typeSelector)
      Creates a matcher that matches all Styleable objects that have the given typeSelector as their type selector.
    • Method Detail

      • hasTypeSelector

        public static org.hamcrest.Matcher<javafx.css.Styleable> hasTypeSelector​(String typeSelector)
        Creates a matcher that matches all Styleable objects that have the given typeSelector as their type selector.
        Parameters:
        typeSelector - the String the matched Styleables should have as their type selector
      • hasId

        public static org.hamcrest.Matcher<javafx.css.Styleable> hasId​(String id)
        Creates a matcher that matches all Styleable objects that have the given id as their CSS id.
        Parameters:
        id - the String the matched Styleables should have as their CSS id
      • hasStyle

        public static org.hamcrest.Matcher<javafx.css.Styleable> hasStyle​(String style)
        Creates a matcher that matches all Styleable objects that have the given style as their CSS style.
        Parameters:
        style - the String the matched Styleables should have as their CSS style
      • hasStyleableParent

        public static org.hamcrest.Matcher<javafx.css.Styleable> hasStyleableParent​(javafx.css.Styleable styleableParent)
        Creates a matcher that matches all Styleable objects that have the given parent as their styleable parent.
        Parameters:
        styleableParent - the String the matched Styleables should have as their styleable parent