use of com.cas.sim.tis.action.TypicalCaseAction 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);
});
}
Aggregations