WizzardDialogView.java 文件源码

java
阅读 30 收藏 0 点赞 0 评论 0

项目:ecasta 作者:
/**
 * 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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号