private void signOutInDB() { checkAllFieldsHandled(); ObservableList<Topics135> selectedTopics = topicsListView.getSelectionModel().getSelectedItems(); ArrayList<Topics135> arrayOfTopics = new ArrayList<>(); if (selectedTopics != null) { for (Topics135 t : selectedTopics) { arrayOfTopics.add(t); } } if (arrayOfTopics.isEmpty()) { arrayOfTopics = null; } // If not in 135, then Level of Learning will be null. Do not insert level of learning in to DB. int levelOfLearningValue = -1; if (levelOfLearning.getValue() != null) { levelOfLearningValue = levelOfLearning.getValue(); } sod = new SignOutData( student.getEmplId(), arrayOfTopics, levelOfLearningValue, theTutor.getValue()); Main.getMdb().signOut(sod); successfulSignOut = true; close(); }
// CONSTRUCTOR public FactuurBekijkenView( Order order, int debiteurenNummer, KlantController klantController, OrderController orderController) { this.order = order; this.debiteurenNummer = debiteurenNummer; this.klantController = klantController; this.orderController = orderController; Klant klant = klantController.getKlantByOrder(order); klantVoornaam = klant.getVoornaam(); klantAchternaam = klant.getAchternaam(); klantNummer = klant.getTelefoon(); stage = Main.getInstance().mainStage; mainPane = new BorderPane(); topBox = new HBox(); centerBox = new HBox(); centerBox.getStyleClass().add("hbox"); centerBox.setAlignment(Pos.CENTER); bottomBox = new HBox(); bottomBox.getStyleClass().add("hbox"); bottomBox.setAlignment(Pos.CENTER); form = new GridPane(); form.setHgap(5); form.setVgap(5); form.getStyleClass().add("form"); scene = new Scene(mainPane); scene.getStylesheets().add("/view/style.css"); display(); }
@FXML private void handleAddButton(ActionEvent event) throws IOException { main.handleAddButton(); }
public void setMain(Main main) { this.main = main; torrentList.setItems(main.getTorrentData()); torrentTable.setItems(main.getTorrentData()); }