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

bayern.steinbrecher.wizard.pages.TablePage Maven / Gradle / Ivy

Go to download

Contains a library to create dynamic and branching JavaFX wizards in an abstract way. Comes with a predefined collection of typical wizard pages.

There is a newer version: 1.60
Show newest version
package bayern.steinbrecher.wizard.pages;

import bayern.steinbrecher.wizard.StandaloneWizardPage;
import org.jetbrains.annotations.NotNull;

import java.util.List;
import java.util.Optional;

/**
 * @author Stefan Huber
 * @since 1.51
 */
public class TablePage extends StandaloneWizardPage, TablePageController> {

    private final List> results;

    /**
     * @since 1.52
     */
    public TablePage() {
        this(List.of());
    }

    /**
     * NOTE The constructor assumes that the results are in row-major order and the first row contains the headings of
     * the table.
     */
    public TablePage(@NotNull List> results) {
        super("TablePage.fxml", null);
        this.results = results;
    }

    @Override
    protected void afterControllerInitialized() {
        setResults(results);
    }

    public void setResults(@NotNull List> results) {
        getController().setResults(results);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy