-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathViewAddQuestionPanel.java
40 lines (32 loc) · 1.16 KB
/
ViewAddQuestionPanel.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import java.awt.Dimension;
import javax.swing.JTabbedPane;
public class ViewAddQuestionPanel extends JTabbedPane {
private ViewAddMultipleChoiceQuestionTab multipleChoiceQuestion;
private ViewAddFillBlankQuestionTab fillBlankQuestion;
private ViewAddDragAndDropQuestionTab dragAndDrop;
public ViewAddQuestionPanel(Controller controller) {
setPreferredSize(new Dimension(800, 600));
multipleChoiceQuestion = new ViewAddMultipleChoiceQuestionTab(
controller);
fillBlankQuestion = new ViewAddFillBlankQuestionTab(controller);
dragAndDrop = new ViewAddDragAndDropQuestionTab(controller);
this.addTab("Fill in the Blank", fillBlankQuestion);
this.addTab("Multiple Choice", multipleChoiceQuestion);
this.addTab("Drag and Drop", dragAndDrop);
}
public ViewAddMultipleChoiceQuestionTab getMultipleChoiceQuestion() {
return multipleChoiceQuestion;
}
public ViewAddFillBlankQuestionTab getFillBlankQuestion() {
return fillBlankQuestion;
}
public ViewAddDragAndDropQuestionTab getDragAndDrop() {
return dragAndDrop;
}
public String getUrlText(){
return dragAndDrop.getUrlText();
}
public String getTitleText(){
return dragAndDrop.getTitleText();
}
}