![JAR search and dependency download from the Maven repository](/logo.png)
de.felixroske.jfxsupport.AbstractFxmlView Maven / Gradle / Ivy
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 {
private static String FXML_PATH = "/fxml/";
protected ObjectProperty
© 2015 - 2025 Weber Informatics LLC | Privacy Policy