Package scheduler.controller
Class AppointmentsDetailController
- java.lang.Object
-
- scheduler.controller.AppointmentsDetailController
-
- All Implemented Interfaces:
javafx.fxml.Initializable
public class AppointmentsDetailController extends java.lang.Object implements javafx.fxml.InitializableUI controller for the Appointments : Detail screen.
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.control.ButtonbuttonAddNewAppointmentprivate javafx.scene.control.ButtonbuttonAppointmentsprivate javafx.scene.control.ButtonbuttonCustomersprivate javafx.scene.control.ButtonbuttonDeleteprivate javafx.scene.control.ButtonbuttonLogoutprivate javafx.scene.control.ButtonbuttonModifyprivate javafx.scene.control.ButtonbuttonOverviewprivate javafx.scene.control.ButtonbuttonReportsprivate javafx.scene.control.ButtonbuttonReturnprivate javafx.scene.control.ButtonbuttonSearchprivate javafx.scene.control.LabellabelAppointmentIDprivate javafx.scene.control.LabellabelAppointmentTitleprivate javafx.scene.control.LabellabelContactNameprivate javafx.scene.control.LabellabelCustomerIDprivate javafx.scene.control.LabellabelCustomerNameprivate javafx.scene.control.LabellabelDescriptionprivate javafx.scene.control.LabellabelEndTimeprivate javafx.scene.control.LabellabelLocationprivate javafx.scene.control.LabellabelStartTimeprivate javafx.scene.control.LabellabelTypeprivate javafx.scene.control.LabellabelUserID(package private) static AppointmentpassedParameters(package private) javafx.scene.Parentscene(package private) javafx.stage.Stagestageprivate javafx.scene.control.TextFieldtextfieldSearch
-
Constructor Summary
Constructors Constructor Description AppointmentsDetailController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcopyPassedParameters(Appointment A)Copies Appointment passed from the calling function to the Appointments Add controlllervoidinitialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Initializes the Appts Detail 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)Routes user to the Appointments : Add screen, when the ADD APPOINTMENT button is clicked(package private) voidonClickButtonDelete(javafx.event.ActionEvent event)Handler for what occurs when the user clicks the delete button.(package private) voidonClickButtonModify(javafx.event.ActionEvent event)Sends the Appointment object being referenced on the detail page to the Modify Appointment Conroller(package private) voidonClickButtonReturn(javafx.event.ActionEvent event)Returns the user to the Appointment Overview screen when they click the RETURN TO LIST VIEW button(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
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
-
-
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.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-- 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-- 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
-
onClickButtonDelete
void onClickButtonDelete(javafx.event.ActionEvent event) throws java.io.IOExceptionHandler 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.IOExceptionSends 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.IOExceptionReturns 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.IOExceptionRoutes 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:
initializein interfacejavafx.fxml.Initializable- Parameters:
url-resourceBundle-
-
-