java.lang.Object
com.dua3.utility.fx.controls.AboutDialogBuilder
Builder for Alert Dialogs.
Provides a fluent interface to create Alerts.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuild()Constructs and configures an instance of AboutDialog based on the properties set in the AboutDialogBuilder.Sets the copyright information for the About dialog.Sets the CSS file to be used for styling the dialog.expandableContent(@Nullable String text) Sets expandable content for the AboutDialog.Sets the expandable content for the AboutDialog.Sets the graphic for the about dialog using a URL pointing to the image.Sets the graphic node for the About dialog.Sets the email address for the About dialog.Sets the text and mailto URI for the mail link in the About Dialog.Sets the name to be used in the AboutDialog.voidDisplays the dialog and waits for the user to respond before returning.Sets the title for the about dialog.Sets the version information for the about dialog.
-
Methodendetails
-
title
Sets the title for the about dialog.- Parameter:
title- the title to be set for the about dialog- Gibt zurück:
- the current instance of AboutDialogBuilder for method chaining
-
name
Sets the name to be used in the AboutDialog.- Parameter:
name- the name to set- Gibt zurück:
- the current instance of AboutDialogBuilder
-
version
Sets the version information for the about dialog.- Parameter:
version- the version information to be displayed in the dialog.- Gibt zurück:
- the current instance of AboutDialogBuilder for method chaining.
-
copyright
Sets the copyright information for the About dialog.- Parameter:
text- the copyright text to be displayed in the About dialog- Gibt zurück:
- the current instance of AboutDialogBuilder for method chaining
-
mail
Sets the email address for the About dialog.- Parameter:
address- the email address to be displayed and used in the mailto link- Gibt zurück:
- the current instance of AboutDialogBuilder for method chaining
-
mail
Sets the text and mailto URI for the mail link in the About Dialog.- Parameter:
text- the text to be displayed for the mail linkmailtoUri- the mailto URI to be assigned to the mail link- Gibt zurück:
- the current instance of AboutDialogBuilder for method chaining
-
css
Sets the CSS file to be used for styling the dialog.- Parameter:
css- the URL of the CSS file- Gibt zurück:
- the updated instance of AboutDialogBuilder
-
graphic
Sets the graphic for the about dialog using a URL pointing to the image. If the URL is null, the graphic will be set to null. If the URL points to a valid image, the image will be loaded and set as the graphic. If an error occurs while reading the image, a warning will be logged and the graphic will be set to null.- Parameter:
url- the URL pointing to the image to be used as the graphic, can be null- Gibt zurück:
- the AboutDialogBuilder instance with the updated graphic
-
graphic
Sets the graphic node for the About dialog.- Parameter:
graphic- the graphic node to set- Gibt zurück:
- the current instance of AboutDialogBuilder for method chaining
-
expandableContent
Sets the expandable content for the AboutDialog.- Parameter:
c- the node to be displayed as expandable content in the dialog- Gibt zurück:
- the AboutDialogBuilder instance for method chaining
-
expandableContent
Sets expandable content for the AboutDialog.- Parameter:
text- the text to set as expandable content; if null or blank, the expandable content is set to null- Gibt zurück:
- the AboutDialogBuilder instance for method chaining
-
showAndWait
public void showAndWait()Displays the dialog and waits for the user to respond before returning.This method constructs an instance of AboutDialog using the current configuration and then invokes its showAndWait method to display it. The dialog will be modal and will block execution until the user dismisses it.
-
build
Constructs and configures an instance of AboutDialog based on the properties set in the AboutDialogBuilder.- Gibt zurück:
- a configured AboutDialog instance
-