com.dua3.utility.fx.controls.AbstractPaneBuilder Maven / Gradle / Ivy
The newest version!
package com.dua3.utility.fx.controls;
import javafx.scene.control.DialogPane;
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 {
protected String next;
protected AbstractPaneBuilder() {
super(DialogPane::setHeaderText);
}
@SuppressWarnings("unchecked")
public B next(String s) {
this.next = s;
return (B) this;
}
}