java.lang.Object
com.example.cab302project.PoliceCrimesController
Controller for the police crime management screen.
Allows police users to view, edit, and mark crime reports as dealt with.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method runs automatically after the FXML has loadedvoidReturn to the previous menu (dashboard)voidCloses the detail panel with a slide-down animation and clears selection.voidHandles changes from any filter menu option.voidMarks the selected crime as dealt with and updates the database.voidonSave()Handles saving a crime report based on form input.
-
Constructor Details
-
PoliceCrimesController
public PoliceCrimesController()
-
-
Method Details
-
initialize
public void initialize()This method runs automatically after the FXML has loaded -
onSave
public void onSave()Handles saving a crime report based on form input. If the selected record is new (id == 0), it is added to the database. Existing records are treated as read-only and cannot be modified. -
onBackButtonClick
public void onBackButtonClick()Return to the previous menu (dashboard) -
onFilterChanged
public void onFilterChanged()Handles changes from any filter menu option. -
onCloseDetail
public void onCloseDetail()Closes the detail panel with a slide-down animation and clears selection. -
onMarkAsDealt
public void onMarkAsDealt()Marks the selected crime as dealt with and updates the database.
-