com.dua3.utility.fx.controls.AbstractPaneBuilder Maven / Gradle / Ivy
package com.dua3.utility.fx.controls;
import javafx.scene.control.DialogPane;
import org.jspecify.annotations.Nullable;
import java.util.function.Supplier;
/**
* Abstract base for DialogPane builders.
*
* @param the type of the dialog or pane to build
* @param the type of the builder
* @param the result type
*/
public class AbstractPaneBuilder, B extends AbstractPaneBuilder, R>
extends AbstractDialogPaneBuilder {
@Nullable protected String next;
protected AbstractPaneBuilder() {
super(DialogPane::setHeaderText);
}
/**
* Sets the next string parameter for the builder.
*
* @param s the next string to be set
* @return this builder instance
*/
@SuppressWarnings("unchecked")
public B next(String s) {
this.next = s;
return (B) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy