public final class MessageDialog extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
setDefaultParent(javafx.stage.Window newDefaultParent) |
static boolean |
showConfirmationMessage(javafx.stage.Window parent,
String message) |
static void |
showErrorMessage(javafx.stage.Window parent,
String message) |
static void |
showErrorMessage(javafx.stage.Window parent,
String message,
Throwable t) |
static <T> T |
showOptionsMessage(javafx.stage.Window parent,
String message,
Collection<javafx.util.Pair<T,String>> choices) |
static <T> T |
showOptionsMessage(javafx.stage.Window parent,
String message,
T... choices) |
static void |
showProgressBar(javafx.stage.Window parent,
String title,
javafx.beans.property.StringProperty message,
javafx.beans.property.DoubleProperty progress) |
static boolean |
showQuestionMessage(javafx.stage.Window parent,
String message) |
static void |
showWarningMessage(javafx.stage.Window parent,
String message) |
public static void setDefaultParent(javafx.stage.Window newDefaultParent)
newDefaultParent - the defaultParent to setpublic static void showErrorMessage(javafx.stage.Window parent,
String message)
parent - dialog parent, if null default parent is usedmessage - Error message to showpublic static void showErrorMessage(javafx.stage.Window parent,
String message,
Throwable t)
parent - dialog parent, if null default parent is usedmessage - Error message to showt - Throwable shown as detailspublic static void showWarningMessage(javafx.stage.Window parent,
String message)
parent - dialog parent, if null default parent is usedmessage - Warning message to showpublic static boolean showConfirmationMessage(javafx.stage.Window parent,
String message)
parent - dialog parent, if null default parent is usedmessage - Confirmation message to showpublic static boolean showQuestionMessage(javafx.stage.Window parent,
String message)
parent - dialog parent, if null default parent is usedmessage - Question message to show@SafeVarargs public static <T> T showOptionsMessage(javafx.stage.Window parent, String message, T... choices)
T - choice typeparent - dialog parent, if null default parent is usedmessage - Question message to showchoices - possible choicespublic static <T> T showOptionsMessage(javafx.stage.Window parent,
String message,
Collection<javafx.util.Pair<T,String>> choices)
T - choice typeparent - dialog parent, if null default parent is usedmessage - Question message to showchoices - possible choices where Pair value is the choice label displayedpublic static void showProgressBar(javafx.stage.Window parent,
String title,
javafx.beans.property.StringProperty message,
javafx.beans.property.DoubleProperty progress)
parent - dialog parent, if null default parent is usedtitle - dialog titlemessage - dialog message propertyprogress - progress bar valueCopyright © 2015. All rights reserved.