FXDialog class. The available dialogs in this class
are useful for displaying small information graphic dialogs
rather than complex windows. For more complex dialogs it is
advised to rather create a new sub class of FXDialog.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private final NotificationGroup | |
| private final NotificationGroup | |
| private static final Logger | |
| private final Window | |
| private final ObservableList | |
| private final NotificationGroup | |
| private final NotificationGroup | |
| private final NotificationGroup |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | addWalkthroughPane(Dialog<?> dialog)
A stock JavaFX dialog, unlike a |
| private <T> ChoiceDialog | createChoiceDialog(String title, String content, String okButtonLabel, T defaultChoice, Collection<T> choices)
|
| private FXDialog | |
| private FXDialog | |
| private <V> ProgressDialog | |
| private DirectoryChooser | |
| private FileChooser | |
| private String | |
| public List | |
| public ObservableList | |
| public void | |
| public void | notify(Notification<?> notification)
Implements org. Notify the user in a non-blocking way (e.g. a toast). |
| public static String | |
| public Optional | showBackgroundProgressDialogAndWait(String title, String content, StateManager stateManager)
Implements org. Constructs and shows a dialog showing the progress of running background tasks. |
| public <T> Optional | showChoiceDialogAndWait(String title, String content, String okButtonLabel, T defaultChoice, Collection<T> choices)
Implements org. This will create and display new |
| public boolean | showConfirmationDialogAndWait(String title, String content)
Implements org. This will create and display a new confirmation dialog. |
| public boolean | showConfirmationDialogAndWait(String title, String content, String okButtonLabel)
Implements org. Create and display a new confirmation dialog. |
| public boolean | showConfirmationDialogAndWait(String title, String content, String okButtonLabel, String cancelButtonLabel)
Implements org. Create and display a new confirmation dialog. |
| public boolean | showConfirmationDialogWithOptOutAndWait(String title, String content, String optOutMessage, Consumer<Boolean> optOutAction)
Implements org. Create and display a new confirmation dialog. |
| public boolean | showConfirmationDialogWithOptOutAndWait(String title, String content, String okButtonLabel, String cancelButtonLabel, String optOutMessage, Consumer<Boolean> optOutAction)
Implements org. Create and display a new confirmation dialog. |
| public Optional | showCustomButtonDialogAndWait(Alert.
Implements org. This will create and display a new dialog of the specified
|
| public Optional | showCustomButtonDialogWithTooltipsAndWait(Alert.
Implements org. This will create and display a new dialog showing a custom |
| public void | showCustomDialog(BaseDialog<?> dialogView)
Implements org. Shows a custom dialog without returning any results. |
| public Optional | showCustomDialogAndWait(String title, DialogPane contentPane, ButtonType... buttonTypes)
Implements org. This will create and display a new dialog showing a custom |
| public <R> Optional | showCustomDialogAndWait(Dialog<R> dialog)
Implements org. Shows a custom dialog and returns the result. |
| public void | showCustomDialogModal(BaseDialog<?> dialog)
Implements org. Shows a custom dialog as a window: does not block the main window. |
| public Optional | showDirectorySelectionDialog(DirectoryDialogConfiguration directoryDialogConfiguration)
Implements org. Shows a new directory selection dialog. |
| public <T> Optional | showEditableChoiceDialogAndWait(String title, String content, String okButtonLabel, T defaultChoice, Collection<T> choices, StringConverter<T> converter)
Implements org.
|
| public void | showErrorDialogAndWait(String title, String content)
Implements org. This will create and display a new error dialog. |
| public void | showErrorDialogAndWait(String message, Throwable exception)
Implements org. Create and display error dialog displaying the given exception. |
| public void | showErrorDialogAndWait(Exception exception)
Implements org. Create and display error dialog displaying the given exception. |
| public void | showErrorDialogAndWait(FetcherException fetcherException)
Implements org.
|
| public void | showErrorDialogAndWait(String title, String content, Throwable exception)
Implements org. Create and display error dialog displaying the given exception. |
| public void | showErrorDialogAndWait(String message)
Implements org. Create and display error dialog displaying the given message. |
| public Optional | showFileOpenDialog(FileDialogConfiguration fileDialogConfiguration)
Implements org. Shows a new file open dialog. |
| public Optional | showFileOpenDialog(FileDialogConfiguration fileDialogConfiguration, Window owner)
Implements org. Shows a new file open dialog. |
| public List | showFileOpenDialogAndGetMultipleFiles(FileDialogConfiguration fileDialogConfiguration)
Implements org. Shows a new file open dialog. |
| public Optional | showFileOpenFromArchiveDialog(Path archivePath)
Implements org. Shows a new dialog that list all files contained in the given archive and which lets the user select one of these files. |
| public Optional | showFileSaveDialog(FileDialogConfiguration fileDialogConfiguration)
Implements org. Shows a new file save dialog. |
| public void | showInformationDialogAndWait(String title, String content)
Implements org. This will create and display a new information dialog. |
| public Optional | showInputDialogAndWait(String title, String content)
Implements org. This will create and display new |
| public Optional | showInputDialogWithDefaultAndWait(String title, String content, String defaultValue)
Implements org. This will create and display new |
| public Optional | showPasswordDialogAndWait(String title, String header, String content)
Implements org. This will create and display new |
| public boolean | showPrintDialog(PrinterJob job)
Implements org. Displays a Print Dialog. |
| public <V> void | showProgressDialog(String title, String content, Task<V> task)
Implements org. Constructs and shows a cancelable |
| public <V> void | showProgressDialogAndWait(String title, String content, Task<V> task)
Implements org. Constructs and shows a cancelable |
| public void | showWarningDialogAndWait(String title, String content)
Implements org. This will create and display a new information dialog. |