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

application.prefs.PreferencesController Maven / Gradle / Ivy

package application.prefs;

import java.io.File;

import javafx.fxml.FXML;
import javafx.scene.control.Tab;

/**
 * Provides a controller for preferences.
 * @author Joel Håkansson
 *
 */
public class PreferencesController {

	@FXML private Tab previewTab;
	@FXML private Tab embossTab;
	@FXML private EmbossSettingsController embossSettings;
	@FXML private PaperSettingsController paperSettings;

	@FXML void initialize() {
		embossTab.setOnSelectionChanged(ev -> {
			if (embossTab.isSelected() && paperSettings.hasUpdates()) {
				embossSettings.updateComponents();
			}
		});
	}

	File generatedTestFile() {
		return embossSettings.generatedTestFile();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy