java.lang.Object
com.dua3.utility.fx.controls.AbstractDialogPaneBuilder<D,B,R>
com.dua3.utility.fx.controls.AbstractPaneBuilder<InputDialogPane<Void>,AlertPaneBuilder,Void>
com.dua3.utility.fx.controls.AlertPaneBuilder
public class AlertPaneBuilder
extends AbstractPaneBuilder<InputDialogPane<Void>,AlertPaneBuilder,Void>
Builder for Alert Dialogs.
Provides a fluent interface to create Alerts.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.dua3.utility.fx.controls.AbstractDialogPaneBuilder
AbstractDialogPaneBuilder.ResultHandler<R> -
Field Summary
Fields inherited from class com.dua3.utility.fx.controls.AbstractPaneBuilder
next -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create Alert instance.Sets the text content of the alert dialog.Methods inherited from class com.dua3.utility.fx.controls.AbstractPaneBuilder
nextMethods inherited from class com.dua3.utility.fx.controls.AbstractDialogPaneBuilder
applyIfNotNull, getResultHandler, header, resultHandler, setDialogSupplier
-
Method Details
-
text
Sets the text content of the alert dialog. The text can be formatted using a format string and arguments.- Parameters:
fmt- the format string.args- arguments referenced by the format specifiers in the format string.- Returns:
- the current instance of the AlertPaneBuilder for chaining.
-
build
Description copied from class:AbstractDialogPaneBuilderCreate Alert instance.- Overrides:
buildin classAbstractDialogPaneBuilder<InputDialogPane<Void>,AlertPaneBuilder, Void> - Returns:
- Alert instance
-