Class AppointmentsDetailController

  • All Implemented Interfaces:
    javafx.fxml.Initializable

    public class AppointmentsDetailController
    extends java.lang.Object
    implements javafx.fxml.Initializable
    UI controller for the Appointments : Detail screen.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void copyPassedParameters​(Appointment A)
      Copies Appointment passed from the calling function to the Appointments Add controlller
      void initialize​(java.net.URL url, java.util.ResourceBundle resourceBundle)
      Initializes the Appts Detail Controller
      (package private) void onClickAppointments​(javafx.event.ActionEvent event)
      Navigates the user to the Appointments screen when they click on the APPOINTMENT button on the main menu
      (package private) void onClickButtonAdd​(javafx.event.ActionEvent event)
      Routes user to the Appointments : Add screen, when the ADD APPOINTMENT button is clicked
      (package private) void onClickButtonDelete​(javafx.event.ActionEvent event)
      Handler for what occurs when the user clicks the delete button.
      (package private) void onClickButtonModify​(javafx.event.ActionEvent event)
      Sends the Appointment object being referenced on the detail page to the Modify Appointment Conroller
      (package private) void onClickButtonReturn​(javafx.event.ActionEvent event)
      Returns the user to the Appointment Overview screen when they click the RETURN TO LIST VIEW button
      (package private) void onClickCustomers​(javafx.event.ActionEvent event)
      Navigates the user to the Customers screen when they click on the CUSTOMER button on the main menu
      (package private) void onClickLogOut​(javafx.event.ActionEvent event)
      Navigates the user to the Login page where they are automatically logged out, when they click on the LOGOUT button on the main menu.
      (package private) void onClickOverview​(javafx.event.ActionEvent event)
      Navigates the user to the Overview page, when they click on the OVERVIEW button on the main menu.
      (package private) void onClickReports​(javafx.event.ActionEvent event)
      Navigates the user to the Reports page, when they click on the REPORTS button on the main menu.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • stage

        javafx.stage.Stage stage
      • scene

        javafx.scene.Parent scene
      • passedParameters

        static Appointment passedParameters
      • buttonAddNewAppointment

        private javafx.scene.control.Button buttonAddNewAppointment
      • buttonOverview

        private javafx.scene.control.Button buttonOverview
      • buttonCustomers

        private javafx.scene.control.Button buttonCustomers
      • buttonAppointments

        private javafx.scene.control.Button buttonAppointments
      • buttonReports

        private javafx.scene.control.Button buttonReports
      • buttonLogout

        private javafx.scene.control.Button buttonLogout
      • textfieldSearch

        private javafx.scene.control.TextField textfieldSearch
      • buttonSearch

        private javafx.scene.control.Button buttonSearch
      • labelAppointmentTitle

        private javafx.scene.control.Label labelAppointmentTitle
      • labelStartTime

        private javafx.scene.control.Label labelStartTime
      • labelAppointmentID

        private javafx.scene.control.Label labelAppointmentID
      • labelContactName

        private javafx.scene.control.Label labelContactName
      • labelType

        private javafx.scene.control.Label labelType
      • labelDescription

        private javafx.scene.control.Label labelDescription
      • labelLocation

        private javafx.scene.control.Label labelLocation
      • labelEndTime

        private javafx.scene.control.Label labelEndTime
      • labelCustomerID

        private javafx.scene.control.Label labelCustomerID
      • labelUserID

        private javafx.scene.control.Label labelUserID
      • labelCustomerName

        private javafx.scene.control.Label labelCustomerName
      • buttonDelete

        private javafx.scene.control.Button buttonDelete
      • buttonModify

        private javafx.scene.control.Button buttonModify
      • buttonReturn

        private javafx.scene.control.Button buttonReturn
    • Constructor Detail

      • AppointmentsDetailController

        public AppointmentsDetailController()
    • Method Detail

      • copyPassedParameters

        public static void copyPassedParameters​(Appointment A)
        Copies Appointment passed from the calling function to the Appointments Add controlller
        Parameters:
        A - an appointment
      • onClickAppointments

        void onClickAppointments​(javafx.event.ActionEvent event)
                          throws java.io.IOException
        Navigates the user to the Appointments screen when they click on the APPOINTMENT button on the main menu
        Parameters:
        event - button click
        Throws:
        java.io.IOException
      • onClickCustomers

        void onClickCustomers​(javafx.event.ActionEvent event)
                       throws java.io.IOException
        Navigates the user to the Customers screen when they click on the CUSTOMER button on the main menu
        Parameters:
        event - button click
        Throws:
        java.io.IOException
      • onClickLogOut

        void onClickLogOut​(javafx.event.ActionEvent event)
                    throws java.io.IOException
        Navigates the user to the Login page where they are automatically logged out, when they click on the LOGOUT button on the main menu. They can choose to either login again, or exit the application from the login screen.
        Parameters:
        event -
        Throws:
        java.io.IOException
      • onClickOverview

        void onClickOverview​(javafx.event.ActionEvent event)
                      throws java.io.IOException
        Navigates the user to the Overview page, when they click on the OVERVIEW button on the main menu.
        Parameters:
        event -
        Throws:
        java.io.IOException
      • onClickReports

        void onClickReports​(javafx.event.ActionEvent event)
                     throws java.io.IOException
        Navigates the user to the Reports page, when they click on the REPORTS button on the main menu.
        Parameters:
        event -
        Throws:
        java.io.IOException
      • onClickButtonDelete

        void onClickButtonDelete​(javafx.event.ActionEvent event)
                          throws java.io.IOException
        Handler for what occurs when the user clicks the delete button. Posts a confirmation dialogue the UI before proceeding
        Parameters:
        event - button click
        Throws:
        java.io.IOException
      • onClickButtonModify

        void onClickButtonModify​(javafx.event.ActionEvent event)
                          throws java.io.IOException
        Sends the Appointment object being referenced on the detail page to the Modify Appointment Conroller
        Parameters:
        event - Click the Modify button
        Throws:
        java.io.IOException
      • onClickButtonReturn

        void onClickButtonReturn​(javafx.event.ActionEvent event)
                          throws java.io.IOException
        Returns the user to the Appointment Overview screen when they click the RETURN TO LIST VIEW button
        Parameters:
        event - button click
        Throws:
        java.io.IOException
      • onClickButtonAdd

        void onClickButtonAdd​(javafx.event.ActionEvent event)
                       throws java.io.IOException
        Routes user to the Appointments : Add screen, when the ADD APPOINTMENT button is clicked
        Parameters:
        event - button click
        Throws:
        java.io.IOException
      • initialize

        public void initialize​(java.net.URL url,
                               java.util.ResourceBundle resourceBundle)
        Initializes the Appts Detail Controller
        Specified by:
        initialize in interface javafx.fxml.Initializable
        Parameters:
        url -
        resourceBundle -