forked from MatthewMacri/Programming-Patterns-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
20 changed files
with
378 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ public void actionPerformed(ActionEvent e) { | |
}); | ||
|
||
// Return buttons in different panels to go back to main menu | ||
view.getTeacherViewCourseDetailsPage().getReturnButton().addActionListener(new ActionListener() { | ||
view.getTeacherViewCourseTeachingPage().getReturnButton().addActionListener(new ActionListener() { | ||
@Override | ||
public void actionPerformed(ActionEvent e) { | ||
view.showMainMenuPanel(); | ||
|
@@ -66,6 +66,7 @@ public void actionPerformed(ActionEvent e) { | |
}); | ||
} | ||
|
||
|
||
/** | ||
* makes sure the login information is valid before opening the main menu. | ||
*/ | ||
|
@@ -83,7 +84,7 @@ private void login() { | |
view.getTeacherMainMenuPage().getNameLabel().setText(teacher.getFullName()); | ||
view.showMainMenuPanel(); | ||
} else { | ||
view.getTeacherLoginPage().getErrorLabel().setText("Error! Incorrect Teacher ID or Password"); | ||
view.getTeacherLoginPage().getErrorLabel().setText("no"); | ||
} | ||
} | ||
|
||
|
@@ -102,18 +103,12 @@ private TeacherModel verifyTeacherInputLogin(int id, String password) { | |
} | ||
} | ||
if (id == -20) { | ||
CourseModel historyCourse = new CourseModel("HIST101", 1, 30, 3, 9, 11, "Monday"); | ||
CourseModel historyCourse2 = new CourseModel("HIST102", 1, 30, 3, 11, 1, "Wednesday"); | ||
|
||
List<CourseModel> coursesTeaching = new ArrayList<>(); | ||
coursesTeaching.add(historyCourse); | ||
coursesTeaching.add(historyCourse2); | ||
// Create TeacherModel with the courses they are teaching | ||
return new TeacherModel("Sothearoum", "Thao", "438-725-8966", "[email protected]", "yeeteronii", coursesTeaching); | ||
return new TeacherModel("Sothearoum", "Thao", "438-725-8966", | ||
"[email protected]", "yeeteronii", coursesTeaching); | ||
} | ||
return null; | ||
} | ||
|
||
/** | ||
* method to display schedule in the teacher view schedule panel | ||
*/ | ||
|
@@ -127,7 +122,7 @@ private void showTeacherSchedule() { | |
* displays course details in the teacher course details page | ||
*/ | ||
private void showCourseDetails() { | ||
view.showViewCourseDetailsPanel(); | ||
view.showViewCourseTeachingPanel(); | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.