/**
* initiliaze the dialog.
*
* @param stage where to show the dialog.
* @param testsystem to store data in
* @return {@link Dialog}
* @throws IOException when initialization failed
*/
public Dialog<Object> initDialog(Stage stage, Testsystem testsystem) throws IOException {
if (testsystem != null) {
edit = true;
this.testsystem = new Testsystem(testsystem.getId(), testsystem.getName(), testsystem.getUrl());
this.testsystem.getFeatures().addAll(testsystem.getFeatures());
} else {
testsystem = new Testsystem();
this.testsystem = testsystem;
}
this.stage = stage;
dialog = new Dialog<>();
dialog.setHeaderText(languageHandler.getMessage(DialogConstants.DIALOG_HEADER));
dialog.setTitle(languageHandler.getMessage(DialogConstants.DIALOG_TITLE));
dialog.getDialogPane().setContent(new WizzardDialogFirstStep().init(this.testsystem, this, languageHandler.getDefaultResourceBundle()));
dialog.setResizable(false);
dialog.getDialogPane().getButtonTypes().add(ButtonType.CANCEL);
dialog.getDialogPane().lookupButton(ButtonType.CANCEL).setVisible(false);
dialog.setGraphic(new ImageView(new Image("icons/info_icon-2.png")));
return dialog;
}
WizzardDialogView.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:ecasta
作者:
评论列表
文章目录