- Alle implementierten Schnittstellen:
EventTarget
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.-
Eigenschaftsübersicht
Von Klasse geerbte Eigenschaften javafx.scene.control.Dialog
contentText, dialogPane, graphic, headerText, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, resizable, resultConverter, result, showing, title, width, x, y -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstructs a new dialog window that displays information about the application.AboutDialog(@Nullable URL css) Constructs a new dialog window that displays information about the application. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanChecks if the mail is configured and mail functionality is supported.voidmail()Sends an email using the default mail application on the user's system.voidsetCopyright(String value) Set copyright text.voidsetEmailAddress(String value) Set the email URI.voidsetEmailText(String value) Set the email text.voidSet name.voidsetVersion(String value) Set version text.Von Klasse geerbte Methoden javafx.scene.control.Dialog
addEventFilter, addEventHandler, buildEventDispatchChain, close, contentTextProperty, dialogPaneProperty, getContentText, getDialogPane, getGraphic, getHeaderText, getHeight, getModality, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOwner, getResult, getResultConverter, getTitle, getWidth, getX, getY, graphicProperty, headerTextProperty, heightProperty, hide, initModality, initOwner, initStyle, isResizable, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, removeEventFilter, removeEventHandler, resizableProperty, resultConverterProperty, resultProperty, setContentText, setDialogPane, setGraphic, setHeaderText, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setResizable, setResult, setResultConverter, setTitle, setWidth, setX, setY, show, showAndWait, showingProperty, titleProperty, widthProperty, xProperty, yProperty
-
Konstruktordetails
-
AboutDialog
public AboutDialog()Constructs a new dialog window that displays information about the application. -
AboutDialog
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
Set name.- Parameter:
value- the text to display
-
setVersion
Set version text.- Parameter:
value- the text to display
-
setCopyright
Set copyright text.- Parameter:
value- the text to display
-
setEmailText
Set the email text.- Parameter:
value- the text to display for the email
-
setEmailAddress
Set the email URI.- Parameter:
value- the mail URI to set
-