Klasse AboutDialog

java.lang.Object
javafx.scene.control.Dialog<Void>
com.dua3.utility.fx.controls.AboutDialog
Alle implementierten Schnittstellen:
EventTarget

public class AboutDialog extends Dialog<Void>
The AboutDialog class represents a dialog box that displays information about the application. It extends the Dialog class and does not return any value (Void). This class includes various labels and buttons to display information such as the application name, version, copyright, and email. The AboutDialog class also provides methods to set the name, version, copyright, and email text. The class also includes a mail() method, which opens the default email application with the specified email address. The mail() method checks if the email address is configured and if the Desktop API is supported before opening the email application.

Example Usage:


 AboutDialog aboutDialog = new AboutDialog();
 aboutDialog.setName("MyApp");
 aboutDialog.setVersion("1.0");
 aboutDialog.setCopyright("© 2021 My Company");
 aboutDialog.setEmailAddress("info@company.com");
 aboutDialog.showAndWait();
 
Note: The AboutDialogBuilder class is responsible for constructing the AboutDialog instance and setting its properties.
  • Konstruktordetails

    • AboutDialog

      public AboutDialog()
      Constructs a new dialog window that displays information about the application.
    • AboutDialog

      public AboutDialog(@Nullable URL css)
      Constructs a new dialog window that displays information about the application.
      Parameter:
      css - the URL to the CSS file to be applied to the dialog window
  • Methodendetails

    • mail

      public void mail()
      Sends an email using the default mail application on the user's system. The email address to send to must be provided as a valid email address (mailto URI). The method checks if the email address is configured and if the desktop API is supported before attempting to send the email.
    • isMailAvailable

      public boolean isMailAvailable()
      Checks if the mail is configured and mail functionality is supported.
      Gibt zurück:
      true if the mail functionality is supported, false otherwise
    • setName

      public void setName(String value)
      Set name.
      Parameter:
      value - the text to display
    • setVersion

      public void setVersion(String value)
      Set version text.
      Parameter:
      value - the text to display
    • setCopyright

      public void setCopyright(String value)
      Set copyright text.
      Parameter:
      value - the text to display
    • setEmailText

      public void setEmailText(String value)
      Set the email text.
      Parameter:
      value - the text to display for the email
    • setEmailAddress

      public void setEmailAddress(String value)
      Set the email URI.
      Parameter:
      value - the mail URI to set