bayern.steinbrecher.wizard.pages.TablePage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Wizard Show documentation
Show all versions of Wizard Show documentation
Contains a library to create dynamic and branching JavaFX wizards in an abstract way.
Comes with a predefined collection of typical wizard pages.
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