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(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message)
Open a confirmation dialog who blocks until closed with
MessageDialog.ConfirmResult.OK as default |
static MessageDialog.ConfirmResult |
openConfirmDialog(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message,
MessageDialog.ConfirmResult defaultValue)
Open a confirmation dialog who blocks until closed
|
static void |
openErrorDialog(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message)
Open an error dialog who blocks until closed
|
static void |
openInformationDialog(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message)
Open an information dialog who blocks until closed
|
static MessageDialog.QuestionCancelResult |
openQuestionCancelDialog(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message)
Open a question-cancel dialog who blocks until closed with
MessageDialog.QuestionCancelResult.YES as
default |
static MessageDialog.QuestionCancelResult |
openQuestionCancelDialog(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message,
MessageDialog.QuestionCancelResult defaultValue)
Open a question-cancel dialog who blocks until closed
|
static MessageDialog.QuestionResult |
openQuestionDialog(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message)
Open a question dialog who blocks until closed with
MessageDialog.QuestionResult.YES as default |
static MessageDialog.QuestionResult |
openQuestionDialog(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message,
MessageDialog.QuestionResult defaultValue)
Open a question dialog who blocks until closed
|
static void |
openWarningDialog(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message)
Open a warning dialog who blocks until closed
|
createDialogArea, getContentInset, getStylesheets, showTemporaryErrorMessage, showTemporaryInfoMessage, showTemporaryMessage, showTemporaryWarningMessagebuttonPressed, cancelPressed, close, create, createButtonBar, createButtonForBar, createContents, getBounds, getCustomWindowPane, 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(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message)
parent - the parentwindowTitle - the window titletitle - the title textmessage - the messagepublic static void openWarningDialog(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message)
parent - the parentwindowTitle - the window titletitle - the title textmessage - the messagepublic static void openInformationDialog(javafx.stage.Window parent,
java.lang.String windowTitle,
java.lang.String title,
java.lang.String message)
parent - the parentwindowTitle - the window titletitle - the title textmessage - the messagepublic static MessageDialog.QuestionResult openQuestionDialog(javafx.stage.Window parent, java.lang.String windowTitle, java.lang.String title, java.lang.String message)
MessageDialog.QuestionResult.YES as defaultparent - the parentwindowTitle - the window titletitle - the titlemessage - the messagepublic static MessageDialog.QuestionResult openQuestionDialog(javafx.stage.Window parent, java.lang.String windowTitle, java.lang.String title, java.lang.String message, MessageDialog.QuestionResult defaultValue)
parent - the parentwindowTitle - the window titletitle - the title textmessage - the messagedefaultValue - the default valuepublic static MessageDialog.QuestionCancelResult openQuestionCancelDialog(javafx.stage.Window parent, java.lang.String windowTitle, java.lang.String title, java.lang.String message)
MessageDialog.QuestionCancelResult.YES as
defaultparent - the parentwindowTitle - the window titletitle - the title textmessage - the messagepublic static MessageDialog.QuestionCancelResult openQuestionCancelDialog(javafx.stage.Window parent, java.lang.String windowTitle, java.lang.String title, java.lang.String message, MessageDialog.QuestionCancelResult defaultValue)
parent - the parentwindowTitle - the window titletitle - the titlemessage - the messagedefaultValue - the default valuepublic static MessageDialog.ConfirmResult openConfirmDialog(javafx.stage.Window parent, java.lang.String windowTitle, java.lang.String title, java.lang.String message)
MessageDialog.ConfirmResult.OK as defaultparent - the parentwindowTitle - the window titletitle - the title textmessage - the messagepublic static MessageDialog.ConfirmResult openConfirmDialog(javafx.stage.Window parent, java.lang.String windowTitle, java.lang.String title, java.lang.String message, MessageDialog.ConfirmResult defaultValue)
parent - the parentwindowTitle - the window titletitle - the title textmessage - the messagedefaultValue - the default value