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 Summary
Fields 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 Summary
Constructors Constructor Description AppointmentsModifyController()
-
Method Summary
All 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
-
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
-
-
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.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
-
onClickCustomers
void 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
-
onClickLogOut
void 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
-
onClickOverview
void 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
-
onClickReports
void 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
-
onClickButtonAdd
void 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
-
onClickCancel
void 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
-
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.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
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Initializes the Appts Modify Controller- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
url-resourceBundle-
-
-