Search in sources :

Example 1 with TypicalCaseSelectDialog

use of com.cas.sim.tis.view.control.imp.preparation.TypicalCaseSelectDialog in project TeachingInSimulation by ScOrPiOzzy.

the class TypicalCaseMenu method showCaseDialog.

// open打开案例选择面板
private void showCaseDialog() {
    Dialog<Integer> dialog = new Dialog<>();
    dialog.setDialogPane(new TypicalCaseSelectDialog(true));
    dialog.setTitle(MsgUtil.getMessage("typical.case.title.list"));
    dialog.setPrefSize(640, 500);
    dialog.showAndWait().ifPresent(id -> {
        if (id == null) {
            return;
        }
        SpringUtil.getBean(PageController.class).showLoading();
        TypicalCaseAction action = SpringUtil.getBean(TypicalCaseAction.class);
        TypicalCase typicalCase = action.findTypicalCaseById(id);
        typicalCase3D.setupCase(typicalCase);
    });
}
Also used : TypicalCaseSelectDialog(com.cas.sim.tis.view.control.imp.preparation.TypicalCaseSelectDialog) PageController(com.cas.sim.tis.view.controller.PageController) TypicalCaseAction(com.cas.sim.tis.action.TypicalCaseAction) TextInputDialog(javafx.scene.control.TextInputDialog) Dialog(com.cas.sim.tis.view.control.imp.dialog.Dialog) TypicalCaseSelectDialog(com.cas.sim.tis.view.control.imp.preparation.TypicalCaseSelectDialog) TypicalCase(com.cas.sim.tis.entity.TypicalCase)

Aggregations

TypicalCaseAction (com.cas.sim.tis.action.TypicalCaseAction)1 TypicalCase (com.cas.sim.tis.entity.TypicalCase)1 Dialog (com.cas.sim.tis.view.control.imp.dialog.Dialog)1 TypicalCaseSelectDialog (com.cas.sim.tis.view.control.imp.preparation.TypicalCaseSelectDialog)1 PageController (com.cas.sim.tis.view.controller.PageController)1 TextInputDialog (javafx.scene.control.TextInputDialog)1