StudyPathView.java
1 |
|
2 |
import java.util.Observer; |
3 |
import javax.swing.*; |
4 |
|
5 |
/** |
6 |
* StudyPathView - View class of the StudyPath and StudyPathController. |
7 |
* @see StudyPath |
8 |
* @see StudyPathController |
9 |
* @author Maarten Vangeneugden - 1438256 |
10 |
*/ |
11 |
public class StudyPathView extends AbstractView { |
12 |
public StudyPathView(StudyPath studyPath) { |
13 |
super(studyPath, null); |
14 |
createGUI(); |
15 |
} |
16 |
|
17 |
private void createGUI() { |
18 |
StudyPath studyPath = (StudyPath) getModel(); |
19 |
JList<Course> takenStudies = new JList<Course>(studyPath.courses()); |
20 |
JLabel lblStudyPoints = new JLabel((studyPath.studyPoints())); |
21 |
|
22 |
} |
23 |
|
24 |
|
25 |
|
26 |
private void update(Observable updatedStudyPath, Object info) { |
27 |
createGUI(); |
28 |
} |
29 |
} |
30 |