forked from AY1920S1-CS2103T-T09-4/main
-
Notifications
You must be signed in to change notification settings - Fork 1
/
TabPanel.java
52 lines (38 loc) · 1.57 KB
/
TabPanel.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
41
42
43
44
45
46
47
48
49
50
51
52
package seedu.address.ui;
import javafx.fxml.FXML;
import javafx.scene.control.TabPane;
import javafx.scene.layout.Region;
import javafx.scene.layout.StackPane;
import seedu.address.logic.Logic;
/**
* class containing TabPane class
*/
public class TabPanel extends UiPart<Region> {
private static final String FXML = "TabPanel.fxml";
private PersonListPanel personListPanel;
private PersonListPanel personListPanel2;
private PersonListPanel personListPanel3;
private PersonListPanel personListPanel4;
@FXML
private StackPane phoneListPanelPlaceholder;
@FXML
private StackPane customerListPanelPlaceholder;
@FXML
private StackPane orderListPanelPlaceholder;
@FXML
private StackPane scheduleListPanelPlaceholder;
@FXML
private TabPane tabPanel;
public TabPanel(Logic logic) {
super(FXML);
personListPanel = new PersonListPanel(logic.getFilteredPersonList());
customerListPanelPlaceholder.getChildren().add(personListPanel.getRoot());
personListPanel2 = new PersonListPanel(logic.getFilteredPersonList());
phoneListPanelPlaceholder.getChildren().add(personListPanel2.getRoot());
personListPanel3 = new PersonListPanel(logic.getFilteredPersonList());
orderListPanelPlaceholder.getChildren().add(personListPanel3.getRoot());
personListPanel4 = new PersonListPanel(logic.getFilteredPersonList());
scheduleListPanelPlaceholder.getChildren().add(personListPanel4.getRoot());
tabPanel.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE);
}
}