Verified Owner
Top Description Constructors Methods
org.jabref.gui

public Class FXDialog

extends Alert
Class Inheritance
Known Direct Subclasses
org.jabref.gui.preferences.websearch.ApiKeyDialog, org.jabref.gui.backup.BackupResolverDialog, org.jabref.gui.welcome.quicksettings.EntryTableConfigurationDialog, org.jabref.gui.welcome.quicksettings.LargeLibraryOptimizationDialog, org.jabref.gui.welcome.quicksettings.MainFileDirectoryDialog, org.jabref.gui.welcome.quicksettings.OnlineServicesDialog, org.jabref.gui.welcome.quicksettings.PushApplicationDialog, org.jabref.gui.welcome.quicksettings.ThemeDialog
Imports
javafx.scene.control.Alert, .DialogPane, javafx.scene.image.Image, javafx.scene.input.KeyEvent, javafx.stage.Modality, .Stage, .WindowEvent, org.jabref.gui.icon.IconTheme, org.jabref.gui.util.BaseDialog, org.jabref.gui.walkthrough.WalkthroughPane

This class provides a super class for all dialogs implemented in JavaFX.

To create a custom JavaFX dialog one should create an instance of this class and set a dialog pane through the inherited javafx.scene.control.Dialog#setDialogPane(javafx.scene.control.DialogPane) method. The dialog can be shown via javafx.scene.control.Dialog#show() or javafx.scene.control.Dialog#showAndWait().

The layout of the pane should be defined in an external fxml file and loaded it via the javafx.fxml.FXMLLoader.

Constructor Summary

AccessConstructor and Description
public
FXDialog(Alert.AlertType type, String title, Image image, boolean isModal)

public
FXDialog(Alert.AlertType type, String title, Image image)

public
FXDialog(Alert.AlertType type, String title, boolean isModal)

public
public
FXDialog(Alert.AlertType type, boolean isModal)

public

Method Summary

Modifier and TypeMethod and Description
private Stage
private void
private void
setUpDialogPane(DialogPane dialogPane)

Same as BaseDialog: key bindings and the walkthrough pane belong to the dialog pane.

Inherited from javafx.scene.control.Alert:
alertTypePropertygetAlertTypegetButtonTypessetAlertType

Constructor Detail

FXDialogback to summary
public FXDialog(Alert.AlertType type, String title, Image image, boolean isModal)
FXDialogback to summary
public FXDialog(Alert.AlertType type, String title, Image image)
FXDialogback to summary
public FXDialog(Alert.AlertType type, String title, boolean isModal)
FXDialogback to summary
public FXDialog(Alert.AlertType type, String title)
FXDialogback to summary
public FXDialog(Alert.AlertType type, boolean isModal)
FXDialogback to summary
public FXDialog(Alert.AlertType type)

Method Detail

getDialogWindowback to summary
private Stage getDialogWindow()
setDialogIconback to summary
private void setDialogIcon(Image image)
setUpDialogPaneback to summary
private void setUpDialogPane(DialogPane dialogPane)

Same as BaseDialog: key bindings and the walkthrough pane belong to the dialog pane.