Module com.dua3.utility.fx.controls
Package com.dua3.utility.fx.controls
Class AbstractDialogBuilder<D extends @NonNull Dialog<R>,B extends @NonNull AbstractDialogBuilder<D,B,R>,R>
java.lang.Object
com.dua3.utility.fx.controls.AbstractDialogPaneBuilder<D,B,R>
com.dua3.utility.fx.controls.AbstractDialogBuilder<D,B,R>
- Type Parameters:
D- the type of dialog box to buildB- the type of the builder class itselfR- the type of the result returned by the dialog box
- Direct Known Subclasses:
AlertBuilder,InputDialogBuilder,OptionsDialogBuilder,PromptBuilder
public abstract class AbstractDialogBuilder<D extends @NonNull Dialog<R>,B extends @NonNull AbstractDialogBuilder<D,B,R>,R>
extends AbstractDialogPaneBuilder<D,B,R>
Abstract class for building dialog boxes.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.dua3.utility.fx.controls.AbstractDialogPaneBuilder
AbstractDialogPaneBuilder.ResultHandler<R> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.dua3.utility.fx.controls.AbstractDialogPaneBuilder
applyIfNotNull, getResultHandler, header, resultHandler, setDialogSupplier
-
Constructor Details
-
AbstractDialogBuilder
-
-
Method Details
-
title
Set dialog title.- Parameters:
fmt- the format String as defined byFormatterargs- the arguments passed to the formatter- Returns:
this
-
showAndWait
Build and show the dialog.This is equivalent to calling build().showAndWait().
- Returns:
- Optional containing the result as defined by the dialog
-
build
Create Dialog instance.
-