|
@@ -38,6 +38,10 @@ public class DialogBuilderUtil {
|
|
return buildDialog(title, header, content, Alert.AlertType.CONFIRMATION, defaultButton, ButtonType.YES, ButtonType.NO);
|
|
return buildDialog(title, header, content, Alert.AlertType.CONFIRMATION, defaultButton, ButtonType.YES, ButtonType.NO);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static Alert buildGracefulShutdownDialog(String title, String header, String content, ButtonType defaultButton, ButtonType... buttons) {
|
|
|
|
+ return buildDialog(title, header, content, Alert.AlertType.WARNING, defaultButton, buttons);
|
|
|
|
+ }
|
|
|
|
+
|
|
private static Alert buildDialog(String title, String header, String content, Alert.AlertType type, ButtonType defaultButton, ButtonType... buttons) {
|
|
private static Alert buildDialog(String title, String header, String content, Alert.AlertType type, ButtonType defaultButton, ButtonType... buttons) {
|
|
Text contentText = new Text(content);
|
|
Text contentText = new Text(content);
|
|
contentText.setWrappingWidth(360.0);
|
|
contentText.setWrappingWidth(360.0);
|