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

java9.org.fxmisc.richtext.JavaFXCompatibility Maven / Gradle / Ivy

There is a newer version: 0.11.3
Show newest version
package org.fxmisc.richtext;

import javafx.beans.property.ObjectProperty;
import javafx.css.converter.SizeConverter;
import javafx.css.StyleConverter;
import javafx.scene.paint.Paint;
import javafx.scene.text.Text;

/* ************************************************* *
 * 													 *
 *  Also look for and remove deprecated methods !!!  *
 *  												 *
 * ************************************************* */
/**
 * Used to use reflection to make this project's code work on Java 8 and Java 9 in a single jar
 */
@Deprecated
public class JavaFXCompatibility {

    static public boolean isJavaEight() {
    	return false;
    }

    static ObjectProperty Text_selectionFillProperty(Text text) {
    	return text.selectionFillProperty();
    }

    static StyleConverter SizeConverter_SequenceConverter_getInstance() {
    	return SizeConverter.SequenceConverter.getInstance();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy