Class StylishObjectProperty<T>

  • Type Parameters:
    T - generics type (for fluent interface)
    All Implemented Interfaces:
    javafx.beans.Observable, javafx.beans.property.Property<T>, javafx.beans.property.ReadOnlyProperty<T>, javafx.beans.value.ObservableObjectValue<T>, javafx.beans.value.ObservableValue<T>, javafx.beans.value.WritableObjectValue<T>, javafx.beans.value.WritableValue<T>, javafx.css.StyleableProperty<T>

    public class StylishObjectProperty<T>
    extends javafx.css.SimpleStyleableObjectProperty<T>
    Short-hand to reduce boiler-plate type code of customisation of SimpleStyleableObjectProperty 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
      StylishObjectProperty​(javafx.css.CssMetaData<? extends javafx.css.Styleable,​T> cssMetaData, java.lang.Object bean, java.lang.String name, T initialValue, java.lang.Runnable invalidateAction)
      The constructor of the StylishObjectProperty.
    • Method Summary

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

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

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

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

        bindBidirectional, setValue, unbindBidirectional
      • Methods inherited from class javafx.beans.binding.ObjectExpression

        asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression
      • 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, setValue
    • Field Detail

      • invalidateAction

        protected java.lang.Runnable invalidateAction
    • Constructor Detail

      • StylishObjectProperty

        public StylishObjectProperty​(javafx.css.CssMetaData<? extends javafx.css.Styleable,​T> cssMetaData,
                                     java.lang.Object bean,
                                     java.lang.String name,
                                     T initialValue,
                                     java.lang.Runnable invalidateAction)
        The constructor of the StylishObjectProperty.
        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.ObjectPropertyBase<T>