Class StyleableMatchers


  • public class StyleableMatchers
    extends java.lang.Object
    TestFX matchers for Styleable objects.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private StyleableMatchers()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.hamcrest.Matcher<javafx.css.Styleable> hasId​(java.lang.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​(java.lang.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​(java.lang.String typeSelector)
      Creates a matcher that matches all Styleable objects that have the given typeSelector as their type selector.
      • Methods inherited from class java.lang.Object

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

      • StyleableMatchers

        private StyleableMatchers()
    • Method Detail

      • hasTypeSelector

        public static org.hamcrest.Matcher<javafx.css.Styleable> hasTypeSelector​(java.lang.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​(java.lang.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​(java.lang.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