public final void pseudoClassStateChanged (PseudoClass pseudoClass, boolean active)

Used to specify that a pseudo-class of this Node has changed. If the pseudo-class is used in a CSS selector that matches this Node, CSS will be reapplied. Typically, this method is called from the invalidated method of a property that is used as a pseudo-class. For example:



     private static final PseudoClass MY_PSEUDO_CLASS_STATE = PseudoClass.getPseudoClass("my-state");

     BooleanProperty myPseudoClassState = new BooleanPropertyBase(false) {

            @Override public void invalidated() {
                pseudoClassStateChanged(MY_PSEUDO_CLASS_STATE, get());
           }

            @Override public Object getBean() {
               return MyControl.this;
           }

            @Override public String getName() {
               return "myPseudoClassState";
           }
       };
 

Parameters:
pseudoClass    the pseudo-class that has changed state
active    whether or not the state is active

Since:  JavaFX 8.0