Class StylishBooleanProperty

  • All Implemented Interfaces:
    javafx.beans.Observable, javafx.beans.property.Property<java.lang.Boolean>, javafx.beans.property.ReadOnlyProperty<java.lang.Boolean>, javafx.beans.value.ObservableBooleanValue, javafx.beans.value.ObservableValue<java.lang.Boolean>, javafx.beans.value.WritableBooleanValue, javafx.beans.value.WritableValue<java.lang.Boolean>, javafx.css.StyleableProperty<java.lang.Boolean>

    public class StylishBooleanProperty
    extends javafx.css.SimpleStyleableBooleanProperty
    Short-hand to reduce boiler-plate type code of customisation of SimpleStyleableBooleanProperty to always include an axis re-layout. N.B. Also, the warning of inheriting more than 'n' generations is thrown only once this way.
    Author:
    rstein
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Runnable invalidateAction  
    • Constructor Summary

      Constructors 
      Constructor Description
      StylishBooleanProperty​(javafx.css.CssMetaData<? extends javafx.css.Styleable,​java.lang.Boolean> cssMetaData, java.lang.Object bean, java.lang.String name, boolean initialValue, java.lang.Runnable invalidateAction)
      The constructor of the StylishBooleanProperty.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void invalidated()  
      • Methods inherited from class javafx.css.SimpleStyleableBooleanProperty

        getBean, getCssMetaData, getName
      • Methods inherited from class javafx.css.StyleableBooleanProperty

        applyStyle, bind, getStyleOrigin, set
      • Methods inherited from class javafx.beans.property.BooleanPropertyBase

        addListener, addListener, fireValueChangedEvent, get, isBound, removeListener, removeListener, toString, unbind
      • Methods inherited from class javafx.beans.property.BooleanProperty

        asObject, bindBidirectional, booleanProperty, setValue, unbindBidirectional
      • Methods inherited from class javafx.beans.property.ReadOnlyBooleanProperty

        readOnlyBooleanProperty
      • Methods inherited from class javafx.beans.binding.BooleanExpression

        and, asString, booleanExpression, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, or
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javafx.beans.value.ObservableValue

        getValue
      • Methods inherited from interface javafx.beans.value.WritableValue

        getValue
    • Field Detail

      • invalidateAction

        protected java.lang.Runnable invalidateAction
    • Constructor Detail

      • StylishBooleanProperty

        public StylishBooleanProperty​(javafx.css.CssMetaData<? extends javafx.css.Styleable,​java.lang.Boolean> cssMetaData,
                                      java.lang.Object bean,
                                      java.lang.String name,
                                      boolean initialValue,
                                      java.lang.Runnable invalidateAction)
        The constructor of the StylishBooleanProperty.
        Parameters:
        cssMetaData - the CssMetaData associated with this StyleableProperty
        bean - the bean of this BooleanProperty
        name - the name of this BooleanProperty
        initialValue - the initial value of the wrapped Object
        invalidateAction - lambda expression executed in invalidated
    • Method Detail

      • invalidated

        protected void invalidated()
        Overrides:
        invalidated in class javafx.beans.property.BooleanPropertyBase