application.ui.template.TemplateController Maven / Gradle / Ivy
package application.ui.template;
import java.util.Collections;
import java.util.Map;
import java.util.Optional;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.daisy.streamline.api.config.ConfigurationsCatalogService;
import org.daisy.streamline.api.config.ConfigurationsProviderException;
import application.common.Singleton;
import application.l10n.Messages;
import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.geometry.Insets;
import javafx.scene.Node;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.control.ButtonType;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
/**
* Provides a controller for a template view.
* @author Joel Håkansson
*
*/
public class TemplateController {
private static final Logger logger = Logger.getLogger(TemplateController.class.getCanonicalName());
@FXML private VBox templates;
@FXML private Label title;
private Optional