Package scheduler.controller
Class AppointmentsModifyController
- java.lang.Object
- 
- scheduler.controller.AppointmentsModifyController
 
- 
- All Implemented Interfaces:
- javafx.fxml.Initializable
 
 public class AppointmentsModifyController extends java.lang.Object implements javafx.fxml.InitializableController for the Appointments: Modify screen
- 
- 
Field SummaryFields Modifier and Type Field Description private javafx.scene.control.ButtonbuttonAddNewAppointmentprivate javafx.scene.control.ButtonbuttonAppointmentsprivate javafx.scene.control.ButtonbuttonCancelprivate javafx.scene.control.ButtonbuttonCustomersprivate javafx.scene.control.ButtonbuttonLogoutprivate javafx.scene.control.ButtonbuttonOverviewprivate javafx.scene.control.ButtonbuttonReportsprivate javafx.scene.control.ButtonbuttonSaveprivate javafx.scene.control.ButtonbuttonSearchprivate javafx.scene.control.ComboBox<Contact>comboBoxContactprivate javafx.scene.control.ComboBox<Customer>comboCustomerNameprivate javafx.scene.control.ComboBox<java.time.LocalTime>comboEndTimeprivate javafx.scene.control.ComboBox<java.time.LocalTime>comboStartTimeprivate javafx.scene.control.ComboBox<java.lang.String>comboTypeprivate javafx.scene.control.DatePickerdateDatePickerprivate javafx.scene.control.LabellabelAppointmentIDprivate javafx.scene.control.LabellabelCustomerIDprivate javafx.scene.control.LabellabelUserIDprivate static AppointmentpassedParameters(package private) javafx.scene.Parentscene(package private) javafx.stage.Stagestageprivate javafx.scene.control.TextFieldtextDescriptionprivate javafx.scene.control.TextFieldtextFieldLocationprivate javafx.scene.control.TextFieldtextFieldNameprivate javafx.scene.control.TextFieldtextfieldSearchprivate javafx.scene.control.TextFieldtextfieldTitle
 - 
Constructor SummaryConstructors Constructor Description AppointmentsModifyController()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcopyPassedParameters(Appointment A)Copies Appointment fields over to the controller from the calling functionvoidinitialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Initializes the Appts Modify Controller(package private) voidonClickAppointments(javafx.event.ActionEvent event)Navigates the user to the Appointments screen when they click on the APPOINTMENT button on the main menu(package private) voidonClickButtonAdd(javafx.event.ActionEvent event)Loads the Appointment add screen with the ADD APPOINTMENT button is clicked(package private) voidonClickButtonSave(javafx.event.ActionEvent event)Runs validation when the save button is clicked.(package private) voidonClickCancel(javafx.event.ActionEvent event)Returns to the appointment overview page when the CANCEL button is clicked.(package private) voidonClickCustomerName(javafx.event.ActionEvent event)If the user updates the Customer name combo box, the Customer ID field is also updated.(package private) voidonClickCustomers(javafx.event.ActionEvent event)Navigates the user to the Customers screen when they click on the CUSTOMER button on the main menu(package private) voidonClickLogOut(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) voidonClickOverview(javafx.event.ActionEvent event)Navigates the user to the Overview page, when they click on the OVERVIEW button on the main menu.(package private) voidonClickReports(javafx.event.ActionEvent event)Navigates the user to the Reports page, when they click on the REPORTS button on the main menu.
 
- 
- 
- 
Field Detail- 
stagejavafx.stage.Stage stage 
 - 
scenejavafx.scene.Parent scene 
 - 
passedParametersprivate static Appointment passedParameters 
 - 
buttonAddNewAppointmentprivate javafx.scene.control.Button buttonAddNewAppointment 
 - 
buttonOverviewprivate javafx.scene.control.Button buttonOverview 
 - 
buttonCustomersprivate javafx.scene.control.Button buttonCustomers 
 - 
buttonAppointmentsprivate javafx.scene.control.Button buttonAppointments 
 - 
buttonReportsprivate javafx.scene.control.Button buttonReports 
 - 
buttonLogoutprivate javafx.scene.control.Button buttonLogout 
 - 
textfieldSearchprivate javafx.scene.control.TextField textfieldSearch 
 - 
buttonSearchprivate javafx.scene.control.Button buttonSearch 
 - 
textfieldTitleprivate javafx.scene.control.TextField textfieldTitle 
 - 
textDescriptionprivate javafx.scene.control.TextField textDescription 
 - 
labelAppointmentIDprivate javafx.scene.control.Label labelAppointmentID 
 - 
textFieldNameprivate javafx.scene.control.TextField textFieldName 
 - 
comboTypeprivate javafx.scene.control.ComboBox<java.lang.String> comboType 
 - 
textFieldLocationprivate javafx.scene.control.TextField textFieldLocation 
 - 
dateDatePickerprivate javafx.scene.control.DatePicker dateDatePicker 
 - 
comboStartTimeprivate javafx.scene.control.ComboBox<java.time.LocalTime> comboStartTime 
 - 
comboEndTimeprivate javafx.scene.control.ComboBox<java.time.LocalTime> comboEndTime 
 - 
labelCustomerIDprivate javafx.scene.control.Label labelCustomerID 
 - 
labelUserIDprivate javafx.scene.control.Label labelUserID 
 - 
buttonCancelprivate javafx.scene.control.Button buttonCancel 
 - 
buttonSaveprivate javafx.scene.control.Button buttonSave 
 - 
comboCustomerNameprivate javafx.scene.control.ComboBox<Customer> comboCustomerName 
 - 
comboBoxContactprivate javafx.scene.control.ComboBox<Contact> comboBoxContact 
 
- 
 - 
Method Detail- 
copyPassedParameterspublic static void copyPassedParameters(Appointment A) Copies Appointment fields over to the controller from the calling function- Parameters:
- A- an appointment
 
 - 
onClickAppointmentsvoid onClickAppointments(javafx.event.ActionEvent event) throws java.io.IOExceptionNavigates 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
 
 - 
onClickCustomersvoid onClickCustomers(javafx.event.ActionEvent event) throws java.io.IOExceptionNavigates 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
 
 - 
onClickLogOutvoid onClickLogOut(javafx.event.ActionEvent event) throws java.io.IOExceptionNavigates 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
 
 - 
onClickOverviewvoid onClickOverview(javafx.event.ActionEvent event) throws java.io.IOExceptionNavigates 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
 
 - 
onClickReportsvoid onClickReports(javafx.event.ActionEvent event) throws java.io.IOExceptionNavigates the user to the Reports page, when they click on the REPORTS button on the main menu.- Parameters:
- event-
- Throws:
- java.io.IOException
 
 - 
onClickButtonAddvoid onClickButtonAdd(javafx.event.ActionEvent event) throws java.io.IOExceptionLoads the Appointment add screen with the ADD APPOINTMENT button is clicked- Parameters:
- event- button click
- Throws:
- java.io.IOException
 
 - 
onClickCancelvoid onClickCancel(javafx.event.ActionEvent event) throws java.io.IOExceptionReturns to the appointment overview page when the CANCEL button is clicked.- Parameters:
- event- button click
- Throws:
- java.io.IOException
 
 - 
onClickCustomerNamevoid 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.
 
 - 
onClickButtonSavevoid onClickButtonSave(javafx.event.ActionEvent event) throws java.io.IOExceptionRuns 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
 
 - 
initializepublic void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Initializes the Appts Modify Controller- Specified by:
- initializein interface- javafx.fxml.Initializable
- Parameters:
- url-
- resourceBundle-
 
 
- 
 
-