public final class MessageTitleDialog extends TitleAreaDialog
MessageDialogCANCEL_BUTTON, OK_BUTTON| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<javafx.scene.control.Button> |
createButtonsForBar()
Create the buttons for the bar
|
protected javafx.scene.Node |
createDialogContent() |
protected boolean |
isCancelDefault(int buttonId)
Check if the button ID is the default cancle button
|
protected boolean |
isOkDefault(int buttonId)
Check if the button ID is the default ok button
|
static MessageDialog.ConfirmResult |
openConfirmDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message)
Open a confirmation dialog who blocks until closed with
MessageDialog.ConfirmResult.OK as default |
static MessageDialog.ConfirmResult |
openConfirmDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message,
@NonNull MessageDialog.ConfirmResult defaultValue)
Open a confirmation dialog who blocks until closed
|
static void |
openErrorDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message)
Open an error dialog who blocks until closed
|
static void |
openInformationDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message)
Open an information dialog who blocks until closed
|
static MessageDialog.QuestionCancelResult |
openQuestionCancelDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message)
Open a question-cancel dialog who blocks until closed with
MessageDialog.QuestionCancelResult.YES as
default |
static MessageDialog.QuestionCancelResult |
openQuestionCancelDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message,
@NonNull MessageDialog.QuestionCancelResult defaultValue)
Open a question-cancel dialog who blocks until closed
|
static MessageDialog.QuestionResult |
openQuestionDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message)
Open a question dialog who blocks until closed with
MessageDialog.QuestionResult.YES as default |
static MessageDialog.QuestionResult |
openQuestionDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message,
@NonNull MessageDialog.QuestionResult defaultValue)
Open a question dialog who blocks until closed
|
static void |
openWarningDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message)
Open a warning dialog who blocks until closed
|
createDialogArea, getContentInset, getStylesheetsbuttonPressed, cancelPressed, close, create, createButtonBar, createButtonForBar, createContents, getBounds, getInitialContentSize, getInitialLocation, getInitialSize, getModality, okPressed, open, pack, preopen, setBounds, setReturnCodeprotected boolean isOkDefault(int buttonId)
DialogisOkDefault in class DialogbuttonId - the button idtrue if the button is the default ok buttonButton.defaultButtonProperty()protected boolean isCancelDefault(int buttonId)
DialogisCancelDefault in class DialogbuttonId - the button idtrue if the button is the default cancel buttonprotected java.util.List<javafx.scene.control.Button> createButtonsForBar()
DialogcreateButtonsForBar in class Dialogprotected javafx.scene.Node createDialogContent()
createDialogContent in class TitleAreaDialogpublic static void openErrorDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message)
parent - the parentwindowTitle - the window titletitle - the title textmessage - the messagepublic static void openWarningDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message)
parent - the parentwindowTitle - the window titletitle - the title textmessage - the messagepublic static void openInformationDialog(@Nullable javafx.stage.Window parent,
@NonNull java.lang.String windowTitle,
@NonNull java.lang.String title,
@NonNull java.lang.String message)
parent - the parentwindowTitle - the window titletitle - the title textmessage - the messagepublic static MessageDialog.QuestionResult openQuestionDialog(@Nullable javafx.stage.Window parent, @NonNull java.lang.String windowTitle, @NonNull java.lang.String title, @NonNull java.lang.String message)
MessageDialog.QuestionResult.YES as defaultparent - the parentwindowTitle - the window titletitle - the titlemessage - the messagepublic static MessageDialog.QuestionResult openQuestionDialog(@Nullable javafx.stage.Window parent, @NonNull java.lang.String windowTitle, @NonNull java.lang.String title, @NonNull java.lang.String message, @NonNull MessageDialog.QuestionResult defaultValue)
parent - the parentwindowTitle - the window titletitle - the title textmessage - the messagedefaultValue - the default valuepublic static MessageDialog.QuestionCancelResult openQuestionCancelDialog(@Nullable javafx.stage.Window parent, @NonNull java.lang.String windowTitle, @NonNull java.lang.String title, @NonNull java.lang.String message)
MessageDialog.QuestionCancelResult.YES as
defaultparent - the parentwindowTitle - the window titletitle - the title textmessage - the messagepublic static MessageDialog.QuestionCancelResult openQuestionCancelDialog(@Nullable javafx.stage.Window parent, @NonNull java.lang.String windowTitle, @NonNull java.lang.String title, @NonNull java.lang.String message, @NonNull MessageDialog.QuestionCancelResult defaultValue)
parent - the parentwindowTitle - the window titletitle - the titlemessage - the messagedefaultValue - the default valuepublic static MessageDialog.ConfirmResult openConfirmDialog(@Nullable javafx.stage.Window parent, @NonNull java.lang.String windowTitle, @NonNull java.lang.String title, @NonNull java.lang.String message)
MessageDialog.ConfirmResult.OK as defaultparent - the parentwindowTitle - the window titletitle - the title textmessage - the messagepublic static MessageDialog.ConfirmResult openConfirmDialog(@Nullable javafx.stage.Window parent, @NonNull java.lang.String windowTitle, @NonNull java.lang.String title, @NonNull java.lang.String message, @NonNull MessageDialog.ConfirmResult defaultValue)
parent - the parentwindowTitle - the window titletitle - the title textmessage - the messagedefaultValue - the default value