Class PoliceCrimesController

java.lang.Object
com.example.cab302project.PoliceCrimesController

public class PoliceCrimesController extends Object
Controller for the police crime management screen. Allows police users to view, edit, and mark crime reports as dealt with.
  • 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.