Klasse DialogBuilder<D extends @NonNull Dialog<R>,B extends @NonNull DialogBuilder<D,B,R>,R>

java.lang.Object
com.dua3.utility.fx.controls.abstract_builders.DialogPaneBuilder<D,B,R>
com.dua3.utility.fx.controls.abstract_builders.DialogBuilder<D,B,R>
Typparameter:
D - the type of dialog box to build
B - the type of the builder class itself
R - the type of the result returned by the dialog box
Bekannte direkte Unterklassen:
AlertBuilder, InputDialogBuilder, OptionsDialogBuilder, PromptBuilder

public abstract class DialogBuilder<D extends @NonNull Dialog<R>,B extends @NonNull DialogBuilder<D,B,R>,R> extends DialogPaneBuilder<D,B,R>
Abstract class for building dialog boxes.
  • Konstruktordetails

    • DialogBuilder

      protected DialogBuilder(@Nullable Window parentWindow)
  • Methodendetails

    • title

      public B title(String fmt, Object... args)
      Set dialog title.
      Parameter:
      fmt - the format String as defined by Formatter
      args - the arguments passed to the formatter
      Gibt zurück:
      this
    • showAndWait

      public Optional<R> showAndWait()
      Build and show the dialog.

      This is equivalent to calling build().showAndWait().

      Gibt zurück:
      Optional containing the result as defined by the dialog
    • build

      public D build()
      Create Dialog instance.
      Setzt außer Kraft:
      build in Klasse DialogPaneBuilder<D extends @NonNull Dialog<R>,B extends @NonNull DialogBuilder<D,B,R>,R>
      Gibt zurück:
      Dialog instance