Ejemplo n.º 1
0
  public static ManageStaffController launchInManage() throws IOException {
    ManageStaffController controller = ManageStaffController.launch();
    controller.selfPane.getChildren().remove(controller.back_Btn);
    controller.back_Btn.setVisible(false);
    controller.manageblStaffService = StaffFactory.getManageService();
    controller.manageblHallService = InstitutionFactory.getManageblHallService();
    controller.manageblCenterService = InstitutionFactory.getManageblCenterService();

    return controller;
  }
Ejemplo n.º 2
0
  public static ManageStaffController launchInInit(Pane father, Pane before) throws IOException {
    ManageStaffController controller = ManageStaffController.launch();
    controller.back_Btn.setOnAction(
        actionEvent -> {
          father.getChildren().clear();
          father.getChildren().add(before);
        });
    controller.manageblCenterService = InitBLFactory.getInitializationBLService();
    controller.manageblStaffService = InitBLFactory.getInitializationBLService();
    controller.manageblHallService = InitBLFactory.getInitializationBLService();

    return controller;
  }