// Path: src/main/java/me/xwang1024/sifResExplorer/presentation/builder/SIFStage.java
// public class SIFStage {
// 	private boolean isBuild = false;
// 	private Stage stage;
// 	private AbsStageBuilder builder;
// 
// 	public Stage getStage() {
// 		return stage;
// 	}
// 
// 	public void setStage(Stage stage) {
// 		this.stage = stage;
// 	}
// 
// 	public AbsStageBuilder getBuilder() {
// 		return builder;
// 	}
// 
// 	public void setBuilder(AbsStageBuilder builder) {
// 		this.builder = builder;
// 	}
// 
// 	public void show() throws Exception {
// 		if (builder != null && !isBuild) {
// 			builder.build();
// 		}
// 		stage.show();
// 	}
// 
// 	public void hide() {
// 		stage.hide();
// 	}
// 
// 	public void close() {
// 		stage.close();
// 	}
// 
// 	public SIFStage() {
// 		// TODO Auto-generated constructor stub
// 	}
// 
// 	public SIFStage(Stage stage, AbsStageBuilder builder) {
// 		super();
// 		this.stage = stage;
// 		this.builder = builder;
// 	}
// }


import java.io.IOException;
import me.xwang1024.sifResExplorer.presentation.builder.SIFStage;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.stage.Modality;
import javafx.stage.Stage;

package me.xwang1024.sifResExplorer.presentation;



public class DataImportDialog {
	private TextField pathField;
	private Button verifyBtn;
	private Label verifyLabel;
	private CheckBox databaseBox;
	private CheckBox imageBox;
	private CheckBox defaultBox;
	private Button continueBtn;

	public DataImportDialog(final Stage stg) throws IOException {
		final Stage stage = new Stage();
		stage.initModality(Modality.APPLICATION_MODAL);
		stage.initOwner(stg);
		stage.setTitle("Select data source...");
		Parent root = FXMLLoader.load(this.getClass().getClassLoader()
				.getResource("dataImport.fxml"));
		initElements(root);
		initListener(root);
		Scene scene = new Scene(root);
		stage.setScene(scene);
		stage.show();

// Path: src/main/java/me/xwang1024/sifResExplorer/presentation/builder/SIFStage.java
// public class SIFStage {
// 	private boolean isBuild = false;
// 	private Stage stage;
// 	private AbsStageBuilder builder;
// 
// 	public Stage getStage() {
// 		return stage;
// 	}
// 
// 	public void setStage(Stage stage) {
// 		this.stage = stage;
// 	}
// 
// 	public AbsStageBuilder getBuilder() {
// 		return builder;
// 	}
// 
// 	public void setBuilder(AbsStageBuilder builder) {
// 		this.builder = builder;
// 	}
// 
// 	public void show() throws Exception {
// 		if (builder != null && !isBuild) {
// 			builder.build();
// 		}
// 		stage.show();
// 	}
// 
// 	public void hide() {
// 		stage.hide();
// 	}
// 
// 	public void close() {
// 		stage.close();
// 	}
// 
// 	public SIFStage() {
// 		// TODO Auto-generated constructor stub
// 	}
// 
// 	public SIFStage(Stage stage, AbsStageBuilder builder) {
// 		super();
// 		this.stage = stage;
// 		this.builder = builder;
// 	}
// }


// Path: src/main/java/me/xwang1024/sifResExplorer/presentation/DataImportDialog.java
import java.io.IOException;
import me.xwang1024.sifResExplorer.presentation.builder.SIFStage;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.stage.Modality;
import javafx.stage.Stage;

package me.xwang1024.sifResExplorer.presentation;



public class DataImportDialog {
	private TextField pathField;
	private Button verifyBtn;
	private Label verifyLabel;
	private CheckBox databaseBox;
	private CheckBox imageBox;
	private CheckBox defaultBox;
	private Button continueBtn;

	public DataImportDialog(final Stage stg) throws IOException {
		final Stage stage = new Stage();
		stage.initModality(Modality.APPLICATION_MODAL);
		stage.initOwner(stg);
		stage.setTitle("Select data source...");
		Parent root = FXMLLoader.load(this.getClass().getClassLoader()
				.getResource("dataImport.fxml"));
		initElements(root);
		initListener(root);
		Scene scene = new Scene(root);
		stage.setScene(scene);
		stage.show();

		SIFStage importStage = new SIFStage(stage, null);
