Class StyleableMatchers

java.lang.Object
org.testfx.matcher.base.StyleableMatchers

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

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.hamcrest.Matcher<javafx.css.Styleable>
    Creates a matcher that matches all Styleable objects that have the given id as their CSS id.
    static org.hamcrest.Matcher<javafx.css.Styleable>
    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.

    Methods inherited from class java.lang.Object

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

    • StyleableMatchers

      private StyleableMatchers()
  • Method Details

    • 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