
de.felixroske.jfxsupport.AbstractFxmlView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springboot-javafx-support Show documentation
Show all versions of springboot-javafx-support Show documentation
Support for Spring Boot and JavaFX 8
package de.felixroske.jfxsupport;
import static java.util.ResourceBundle.getBundle;
import java.io.IOException;
import java.net.URL;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import javafx.application.Platform;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.beans.value.ObservableValue;
import javafx.collections.ObservableList;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.layout.AnchorPane;
/**
* This class is derived from Adam Bien's
* afterburner.fx project.
*
* {@link AbstractFxmlView} is a stripped down version of FXMLView that provides DI for Java FX Controllers via Spring.
*
* Felix Roske ([email protected]) changed this to use annotation for fxml path.
*
* @author Thomas Darimont
*/
public abstract class AbstractFxmlView implements ApplicationContextAware {
protected ObjectProperty
© 2015 - 2025 Weber Informatics LLC | Privacy Policy