package scheduler.view; import javafx.fxml.FXML; import javafx.scene.control.ListView; import scheduler.Main; public class ViewFilterController extends ViewScheduleController { @FXML private ListView instructorList; @FXML private ListView courseList; @FXML private ListView roomList; /** * The constructor. The constructor is called before the initialize() method. */ public ViewFilterController() { } /** * Initializes the controller class. This method is automatically called * after the fxml file has been loaded. */ @FXML private void initialize() { // Initialize the person table with the two columns. } @FXML private void handleOpenAction() { System.out.println("Open clicked\n"); } @FXML private void handleSaveAction() { System.out.println("Save clicked\n"); } @FXML private void handleRatingAction() { System.out.println("Rating clicked"); } /** * Is called by the main application to give a reference back to itself. * * @param mainApp */ public void setMainApp(Main mainApp) { super.setMainApp(mainApp); // Add observable list data to the table instructorList.setItems(mainApp.getInstructorData()); courseList.setItems(mainApp.getCourseData()); roomList.setItems(mainApp.getRoomData()); } }