src/main/java/seedu/address/ui/MainWindow.java
void fillInnerParts() throws CommandException {
        resultDisplay = new ResultDisplay();
        resultDisplayPlaceholder.getChildren().add(resultDisplay.getRoot());

        StatusBarFooter statusBarFooter = new StatusBarFooter(logic.getAddressBookFilePath());
        statusbarPlaceholder.getChildren().add(statusBarFooter.getRoot());

        CommandBox commandBox = new CommandBox(this::executeCommand, this);
        commandBoxPlaceholder.getChildren().add(commandBox.getRoot());

        studentListPanel = new StudentListPanel(logic.getFilteredStudentList(), commandBox);
        staffListPanel = new StaffListPanel(logic.getFilteredStaffList(), commandBox);
        courseListPanel = new CourseListPanel(logic.getFilteredCourseList(), commandBox);
        financeListPanel = new FinanceListPanel(logic.getFilteredFinanceList(), commandBox);
        assignmentListPanel = new AssignmentListPanel(logic.getFilteredAssignmentList(), commandBox);

        summaryPanel = new SummaryPanel();

        //    {
//      "details": Student,
//      "courses": [
//          {
//            "info": Course,
//            "progress_list": [Progress],
//            "number_of_done_progress": Integer,
//          }
//      ]
//    }

        studentDetailedPanel = new StudentDetailedPanel(logic.getFilteredStudentDetailsMap(), commandBox);
        staffDetailedPanel = new StaffDetailedPanel(logic.getFilteredStaffDetailsMap(), commandBox);
        courseDetailedPanel = new CourseDetailedPanel(logic.getFilteredCourseDetailsMap(), commandBox);
        financeDetailedPanel = new FinanceDetailedPanel(logic.getFilteredFinanceDetailsMap(), commandBox);
        assignmentDetailedPanel = new AssignmentDetailedPanel(logic.getFilteredAssignmentDetailsMap(), commandBox);

//    Set<ID> assignedCourses = new HashSet<ID>();
//    assignedCourses.add(new ID("11"));
//    assignedCourses.add(new ID("12"));
//    Set<Tag> assignedTags = new HashSet<Tag>();
//    assignedTags.add(new Tag("Cool"));
//    assignedTags.add(new Tag("CS"));
//    Student fakeStudent = new Student(new Name("Tommy"), new ID("9999999999"), assignedCourses, assignedTags);
//    fakeStudent.processAssignedCourses((FilteredList<Course>) logic.getFilteredCourseList());
//    studentDetailsMap.put("details", fakeStudent);
//    ObservableList<Course> filteredCourses = logic.getFilteredCourseList();
//    ObservableList<HashMap> courseMap = FXCollections.observableArrayList();
//    for (Course course : filteredCourses) {
//      HashMap<String, Object> m = new HashMap<>();
//      ObservableList<Progress> progressList = FXCollections.observableArrayList();
//      m.put("info", course);
//      m.put("progress_list", progressList);
//      m.put("number_of_done_progress", 3);
//      courseMap.add(m);
//    }
//    studentDetailsMap.put("courses", courseMap);
//    studentDetailedPanel = new StudentDetailedPanel(studentDetailsMap, commandBox);

        dataListPanelPlaceholder.getChildren().add(studentListPanel.getRoot());
        extraListPanelPlaceholder.getChildren().add(studentDetailedPanel.getRoot());
        //summaryPanelPlaceholder.getChildren().add(summaryPanel.getRoot());
        summaryPanel.updateTotalStudents(logic.getFilteredStudentList().size());
        summaryPanel.updateTotalStaffs(logic.getFilteredStaffList().size());
        summaryPanel.updateTotalCourses(logic.getFilteredCourseList().size());
        summaryPanel.updateTotalFinances(logic.getFilteredFinanceList().size());
        summaryPanel.updateTotalAssignments(logic.getFilteredAssignmentList().size());

        logic.setSummaryPanel(summaryPanel);

        ftListPanelLeft = getFadeTransition(Duration.millis(150), dataListPanelPlaceholder);
        ftListPanelRight = getFadeTransition(Duration.millis(150), extraListPanelPlaceholder);

        originalExtraPanelWidth = extraListPanelPlaceholder.getMaxWidth();
        originalExtraPanelHeight = extraListPanelPlaceholder.getMaxHeight();
    }
/**
     * Fills up all the placeholders of this window.
     */
Fills up all the placeholders of this window.
Fills up all the placeholders of this window .
void fillInnerParts() throws CommandException {
        resultDisplay = new ResultDisplay();
        resultDisplayPlaceholder.getChildren().add(resultDisplay.getRoot());
        StatusBarFooter statusBarFooter = new StatusBarFooter(logic.getAddressBookFilePath());
        statusbarPlaceholder.getChildren().add(statusBarFooter.getRoot());
        CommandBox commandBox = new CommandBox(this::executeCommand, this);
        commandBoxPlaceholder.getChildren().add(commandBox.getRoot());
        studentListPanel = new StudentListPanel(logic.getFilteredStudentList(), commandBox);
        staffListPanel = new StaffListPanel(logic.getFilteredStaffList(), commandBox);
        courseListPanel = new CourseListPanel(logic.getFilteredCourseList(), commandBox);
        financeListPanel = new FinanceListPanel(logic.getFilteredFinanceList(), commandBox);
        assignmentListPanel = new AssignmentListPanel(logic.getFilteredAssignmentList(), commandBox);
        summaryPanel = new SummaryPanel();
        studentDetailedPanel = new StudentDetailedPanel(logic.getFilteredStudentDetailsMap(), commandBox);
        staffDetailedPanel = new StaffDetailedPanel(logic.getFilteredStaffDetailsMap(), commandBox);
        courseDetailedPanel = new CourseDetailedPanel(logic.getFilteredCourseDetailsMap(), commandBox);
        financeDetailedPanel = new FinanceDetailedPanel(logic.getFilteredFinanceDetailsMap(), commandBox);
        assignmentDetailedPanel = new AssignmentDetailedPanel(logic.getFilteredAssignmentDetailsMap(), commandBox);
        dataListPanelPlaceholder.getChildren().add(studentListPanel.getRoot());
        extraListPanelPlaceholder.getChildren().add(studentDetailedPanel.getRoot());
        summaryPanel.updateTotalStudents(logic.getFilteredStudentList().size());
        summaryPanel.updateTotalStaffs(logic.getFilteredStaffList().size());
        summaryPanel.updateTotalCourses(logic.getFilteredCourseList().size());
        summaryPanel.updateTotalFinances(logic.getFilteredFinanceList().size());
        summaryPanel.updateTotalAssignments(logic.getFilteredAssignmentList().size());
        logic.setSummaryPanel(summaryPanel);
        ftListPanelLeft = getFadeTransition(Duration.millis(150), dataListPanelPlaceholder);
        ftListPanelRight = getFadeTransition(Duration.millis(150), extraListPanelPlaceholder);
        originalExtraPanelWidth = extraListPanelPlaceholder.getMaxWidth();
        originalExtraPanelHeight = extraListPanelPlaceholder.getMaxHeight();
    }
void fillInnerParts ( ) throws CommandException { resultDisplay = new ResultDisplay ( ) ; resultDisplayPlaceholder . getChildren ( ) . add ( resultDisplay . getRoot ( ) ) ; StatusBarFooter statusBarFooter = new StatusBarFooter ( logic . getAddressBookFilePath ( ) ) ; statusbarPlaceholder . getChildren ( ) . add ( statusBarFooter . getRoot ( ) ) ; CommandBox commandBox = new CommandBox ( this :: executeCommand , this ) ; commandBoxPlaceholder . getChildren ( ) . add ( commandBox . getRoot ( ) ) ; studentListPanel = new StudentListPanel ( logic . getFilteredStudentList ( ) , commandBox ) ; staffListPanel = new StaffListPanel ( logic . getFilteredStaffList ( ) , commandBox ) ; courseListPanel = new CourseListPanel ( logic . getFilteredCourseList ( ) , commandBox ) ; financeListPanel = new FinanceListPanel ( logic . getFilteredFinanceList ( ) , commandBox ) ; assignmentListPanel = new AssignmentListPanel ( logic . getFilteredAssignmentList ( ) , commandBox ) ; summaryPanel = new SummaryPanel ( ) ; studentDetailedPanel = new StudentDetailedPanel ( logic . getFilteredStudentDetailsMap ( ) , commandBox ) ; staffDetailedPanel = new StaffDetailedPanel ( logic . getFilteredStaffDetailsMap ( ) , commandBox ) ; courseDetailedPanel = new CourseDetailedPanel ( logic . getFilteredCourseDetailsMap ( ) , commandBox ) ; financeDetailedPanel = new FinanceDetailedPanel ( logic . getFilteredFinanceDetailsMap ( ) , commandBox ) ; assignmentDetailedPanel = new AssignmentDetailedPanel ( logic . getFilteredAssignmentDetailsMap ( ) , commandBox ) ; dataListPanelPlaceholder . getChildren ( ) . add ( studentListPanel . getRoot ( ) ) ; extraListPanelPlaceholder . getChildren ( ) . add ( studentDetailedPanel . getRoot ( ) ) ; summaryPanel . updateTotalStudents ( logic . getFilteredStudentList ( ) . size ( ) ) ; summaryPanel . updateTotalStaffs ( logic . getFilteredStaffList ( ) . size ( ) ) ; summaryPanel . updateTotalCourses ( logic . getFilteredCourseList ( ) . size ( ) ) ; summaryPanel . updateTotalFinances ( logic . getFilteredFinanceList ( ) . size ( ) ) ; summaryPanel . updateTotalAssignments ( logic . getFilteredAssignmentList ( ) . size ( ) ) ; logic . setSummaryPanel ( summaryPanel ) ; ftListPanelLeft = getFadeTransition ( Duration . millis ( 150 ) , dataListPanelPlaceholder ) ; ftListPanelRight = getFadeTransition ( Duration . millis ( 150 ) , extraListPanelPlaceholder ) ; originalExtraPanelWidth = extraListPanelPlaceholder . getMaxWidth ( ) ; originalExtraPanelHeight = extraListPanelPlaceholder . getMaxHeight ( ) ; }
Fills up all the placeholders of this window.
Fills up all the placeholders of this window .
//    { //      "details": Student, //      "courses": [ //          { //            "info": Course, //            "progress_list": [Progress], //            "number_of_done_progress": Integer, //          } //      ] //    } //    Set<ID> assignedCourses = new HashSet<ID>(); //    assignedCourses.add(new ID("11")); //    assignedCourses.add(new ID("12")); //    Set<Tag> assignedTags = new HashSet<Tag>(); //    assignedTags.add(new Tag("Cool")); //    assignedTags.add(new Tag("CS")); //    Student fakeStudent = new Student(new Name("Tommy"), new ID("9999999999"), assignedCourses, assignedTags); //    fakeStudent.processAssignedCourses((FilteredList<Course>) logic.getFilteredCourseList()); //    studentDetailsMap.put("details", fakeStudent); //    ObservableList<Course> filteredCourses = logic.getFilteredCourseList(); //    ObservableList<HashMap> courseMap = FXCollections.observableArrayList(); //    for (Course course : filteredCourses) { //      HashMap<String, Object> m = new HashMap<>(); //      ObservableList<Progress> progressList = FXCollections.observableArrayList(); //      m.put("info", course); //      m.put("progress_list", progressList); //      m.put("number_of_done_progress", 3); //      courseMap.add(m); //    } //    studentDetailsMap.put("courses", courseMap); //    studentDetailedPanel = new StudentDetailedPanel(studentDetailsMap, commandBox); //summaryPanelPlaceholder.getChildren().add(summaryPanel.getRoot());