Class AppointmentsModifyController

  • All Implemented Interfaces:
    javafx.fxml.Initializable

    public class AppointmentsModifyController
    extends java.lang.Object
    implements javafx.fxml.Initializable
    Controller for the Appointments: Modify screen
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void copyPassedParameters​(Appointment A)
      Copies Appointment fields over to the controller from the calling function
      void initialize​(java.net.URL url, java.util.ResourceBundle resourceBundle)
      Initializes the Appts Modify 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)
      Loads the Appointment add screen with the ADD APPOINTMENT button is clicked
      (package private) void onClickButtonSave​(javafx.event.ActionEvent event)
      Runs validation when the save button is clicked.
      (package private) void onClickCancel​(javafx.event.ActionEvent event)
      Returns to the appointment overview page when the CANCEL button is clicked.
      (package private) void onClickCustomerName​(javafx.event.ActionEvent event)
      If the user updates the Customer name combo box, the Customer ID field is also updated.
      (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

        private 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
      • textfieldTitle

        private javafx.scene.control.TextField textfieldTitle
      • textDescription

        private javafx.scene.control.TextField textDescription
      • labelAppointmentID

        private javafx.scene.control.Label labelAppointmentID
      • textFieldName

        private javafx.scene.control.TextField textFieldName
      • comboType

        private javafx.scene.control.ComboBox<java.lang.String> comboType
      • textFieldLocation

        private javafx.scene.control.TextField textFieldLocation
      • dateDatePicker

        private javafx.scene.control.DatePicker dateDatePicker
      • comboStartTime

        private javafx.scene.control.ComboBox<java.time.LocalTime> comboStartTime
      • comboEndTime

        private javafx.scene.control.ComboBox<java.time.LocalTime> comboEndTime
      • labelCustomerID

        private javafx.scene.control.Label labelCustomerID
      • labelUserID

        private javafx.scene.control.Label labelUserID
      • buttonCancel

        private javafx.scene.control.Button buttonCancel
      • buttonSave

        private javafx.scene.control.Button buttonSave
      • comboCustomerName

        private javafx.scene.control.ComboBox<Customer> comboCustomerName
      • comboBoxContact

        private javafx.scene.control.ComboBox<Contact> comboBoxContact
    • Constructor Detail

      • AppointmentsModifyController

        public AppointmentsModifyController()
    • Method Detail

      • copyPassedParameters

        public static void copyPassedParameters​(Appointment A)
        Copies Appointment fields over to the controller from the calling function
        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 - button click
        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 - button click
        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
      • onClickButtonAdd

        void onClickButtonAdd​(javafx.event.ActionEvent event)
                       throws java.io.IOException
        Loads the Appointment add screen with the ADD APPOINTMENT button is clicked
        Parameters:
        event - button click
        Throws:
        java.io.IOException
      • onClickCancel

        void onClickCancel​(javafx.event.ActionEvent event)
                    throws java.io.IOException
        Returns to the appointment overview page when the CANCEL button is clicked.
        Parameters:
        event - button click
        Throws:
        java.io.IOException
      • onClickCustomerName

        void onClickCustomerName​(javafx.event.ActionEvent event)
        If the user updates the Customer name combo box, the Customer ID field is also updated.
        Parameters:
        event - click on Customer name combo box.
      • onClickButtonSave

        void onClickButtonSave​(javafx.event.ActionEvent event)
                        throws java.io.IOException
        Runs validation when the save button is clicked. If validated, confirms the changes with the user and updates the record if the change in confirmed.
        Parameters:
        event - button click
        Throws:
        java.io.IOException
      • initialize

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