-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainController.java
More file actions
72 lines (56 loc) · 1.78 KB
/
Copy pathMainController.java
File metadata and controls
72 lines (56 loc) · 1.78 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package openconsignment.controller;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.MenuItem;
import javafx.scene.layout.BorderPane;
import openconsignment.common.ViewLoader;
public class MainController implements Initializable {
@FXML
private Button input_btn;
@FXML
private BorderPane root;
@FXML
private Button report_btn;
@FXML
private Button master_btn;
@FXML
private MenuItem welcome_screen;
private ViewLoader viewLoader;
@Override
public void initialize(URL url, ResourceBundle rb) {
viewLoader = new ViewLoader();
viewLoader.loadCenter("/fxml/WelcomeScreen.fxml", root);
}
@FXML
private void showInputScreen(ActionEvent event) {
viewLoader.loadCenter("/fxml/entry/Input.fxml", root);
}
@FXML
private void showReportScreen(ActionEvent event) {
viewLoader.loadCenter("/fxml/report/Report.fxml", root);
}
@FXML
private void showMasterScreen(ActionEvent event) {
viewLoader.loadCenter("/fxml/master/Master.fxml", root);
}
@FXML
private void showWelcomeScreen(ActionEvent event) {
viewLoader.loadCenter("/fxml/WelcomeScreen.fxml", root);
}
@FXML
private void showInputHistory(ActionEvent event) {
viewLoader.loadCenter("/fxml/history/InputHistory.fxml", root);
}
@FXML
private void showCollectionHistory(ActionEvent event) {
viewLoader.loadCenter("/fxml/history/CollectionHistory.fxml", root);
}
@FXML
private void showPaymentHistory(ActionEvent event) {
viewLoader.loadCenter("/fxml/history/PaymentHistory.fxml", root);
}
}