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

com.puresoltechnologies.javafx.showroom.dialogs.wizards.ExampleWizardPage1 Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
package com.puresoltechnologies.javafx.showroom.dialogs.wizards;

import com.puresoltechnologies.javafx.extensions.dialogs.wizard.AbstractWizardPage;

import javafx.geometry.HPos;
import javafx.geometry.VPos;
import javafx.scene.Node;
import javafx.scene.control.ButtonType;
import javafx.scene.control.CheckBox;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Priority;

public class ExampleWizardPage1 extends AbstractWizardPage {

    private final GridPane gridPane = new GridPane();

    public ExampleWizardPage1(ExampleWizardData data) {
	super("Step 1", "Description for Step 1");

	CheckBox proceedCheckBox = new CheckBox("Can proceed");
	GridPane.setConstraints(proceedCheckBox, 0, 0, 1, 1, HPos.LEFT, VPos.CENTER, Priority.SOMETIMES,
		Priority.NEVER);

	CheckBox finishCheckBox = new CheckBox("Can finish");
	GridPane.setConstraints(finishCheckBox, 0, 1, 1, 1, HPos.LEFT, VPos.CENTER, Priority.SOMETIMES, Priority.NEVER);

	gridPane.getChildren().addAll(proceedCheckBox, finishCheckBox);
	canProceedProperty().bind(proceedCheckBox.selectedProperty());
	canFinishProperty().bind(finishCheckBox.selectedProperty());
    }

    @Override
    public Node getNode() {
	return gridPane;
    }

    @Override
    public void initialize() {
	// Intentionally left empty.
    }

    @Override
    public void close(ButtonType type) {
	// Intentionally left empty.
    }

    @Override
    public void onArrival() {
	// Intentionally left empty.
    }

    @Override
    public void onBack() {
	// Intentionally left empty.
    }

    @Override
    public void onNext() {
	// Intentionally left empty.
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy