-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntryController.java
More file actions
51 lines (39 loc) · 1.22 KB
/
Copy pathEntryController.java
File metadata and controls
51 lines (39 loc) · 1.22 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
package openconsignment.controller.entry;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.Group;
import javafx.scene.control.Button;
import javax.inject.Inject;
import openconsignment.common.ViewLoader;
public class EntryController implements Initializable {
@FXML
private Button bill_entry_btn;
@FXML
private Button collection_entry_brn;
@FXML
private Button payment_entry_btn;
@FXML
private Group root;
private final ViewLoader viewLoader;
@Inject
public EntryController(ViewLoader viewLoader) {
this.viewLoader = viewLoader;
}
@Override
public void initialize(URL url, ResourceBundle rb) {}
@FXML
private void showBillEntryScreen(ActionEvent event) {
viewLoader.loadRoot("/fxml/entry/bill/BillEntry.fxml", root);
}
@FXML
private void showCollectionEntryScreen(ActionEvent event) {
viewLoader.loadRoot("/fxml/entry/collection/CollectionEntry.fxml", root);
}
@FXML
private void showPaymentEntryScreen(ActionEvent event) {
viewLoader.loadRoot("/fxml/entry/payment/PaymentEntry.fxml", root);
}
}