-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathManageController.java
More file actions
55 lines (41 loc) · 1.22 KB
/
ManageController.java
File metadata and controls
55 lines (41 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
52
53
54
55
package jobinterviewpreparationsystem;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.RadioButton;
import javafx.scene.control.ToggleGroup;
public class ManageController implements Initializable {
/**
* Initializes the controller class.
*/
@FXML
private RadioButton add;
@FXML
private RadioButton remove;
@FXML
private RadioButton update;
@FXML
private ToggleGroup toggleGroup;
@FXML
private void handleSubmitAction(ActionEvent event) {
if (add.isSelected()) {
JobInterviewPreparationSystem.showAddScreen();
} else if (remove.isSelected()) {
JobInterviewPreparationSystem.showRemoveScreen();
} else if (update.isSelected()) {
JobInterviewPreparationSystem.showUpdateScreen();
} else {
System.out.println("No action selected.");
}
}
@FXML
private void handleGoBackButton(ActionEvent event) {
JobInterviewPreparationSystem.showAdminScreen();
}
@Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
}
}