All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fxmisc.richtext.PropertyCssMetaData Maven / Gradle / Ivy

The newest version!
package org.fxmisc.richtext;

import javafx.css.CssMetaData;
import javafx.css.StyleConverter;
import javafx.css.Styleable;
import javafx.css.StyleableObjectProperty;
import javafx.css.StyleableProperty;

public class PropertyCssMetaData extends CssMetaData {

    private final StyleableObjectProperty property;

    public PropertyCssMetaData(
            StyleableObjectProperty property,
            String cssProperty,
            StyleConverter converter,
            V initialValue) {
        super(cssProperty, converter, initialValue);
        this.property = property;
    }

    @Override
    public boolean isSettable(S node) {
        return !property.isBound();
    }

    @Override
    public StyleableProperty getStyleableProperty(S node) {
        return property;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy