Class CssPropertyFactory.StylishEnumProperty<T extends java.lang.Enum<T>>

  • 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>
    Enclosing class:
    CssPropertyFactory<S extends javafx.css.Styleable>

    public class CssPropertyFactory.StylishEnumProperty<T extends java.lang.Enum<T>>
    extends javafx.css.SimpleStyleableObjectProperty<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      StylishEnumProperty​(javafx.css.Styleable styleableBean, java.lang.String propertyName, T initialValue, boolean inherits, java.lang.Class<T> enumClass, java.util.function.BinaryOperator<T> filter, java.lang.Runnable... invalidateActions)
      The constructor of the StylishEnumProperty.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void set​(T v)  
      • Methods inherited from class javafx.css.SimpleStyleableObjectProperty

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

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

        addListener, addListener, fireValueChangedEvent, get, invalidated, 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

      • preInvalidateAction

        protected final java.lang.Runnable preInvalidateAction
      • postInvalidateAction

        protected final java.lang.Runnable postInvalidateAction
      • filter

        protected final java.util.function.BinaryOperator<T extends java.lang.Enum<T>> filter
    • Constructor Detail

      • StylishEnumProperty

        public StylishEnumProperty​(javafx.css.Styleable styleableBean,
                                   java.lang.String propertyName,
                                   T initialValue,
                                   boolean inherits,
                                   java.lang.Class<T> enumClass,
                                   java.util.function.BinaryOperator<T> filter,
                                   java.lang.Runnable... invalidateActions)
        The constructor of the StylishEnumProperty.
        Parameters:
        styleableBean - the bean of this ObjectProperty
        propertyName - the name of this ObjectProperty
        initialValue - the initial value of the wrapped Enum " @param inherits whether or not the CSS style can be inherited by child nodes
        inherits - whether or not the CSS style can be inherited by child nodes
        enumClass - the type of enum to read
        filter - possibility to modify the new value based on old and updated value
        invalidateActions - lambda expressions executed after and before invalidation
    • Method Detail

      • set

        public void set​(T v)
        Specified by:
        set in interface javafx.beans.value.WritableObjectValue<T extends java.lang.Enum<T>>
        Overrides:
        set in class javafx.css.StyleableObjectProperty<T extends java.lang.Enum<T>>