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.Initializable
UI controller for the Appointments : Detail screen.
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.control.Button
buttonAddNewAppointment
private javafx.scene.control.Button
buttonAppointments
private javafx.scene.control.Button
buttonCustomers
private javafx.scene.control.Button
buttonDelete
private javafx.scene.control.Button
buttonLogout
private javafx.scene.control.Button
buttonModify
private javafx.scene.control.Button
buttonOverview
private javafx.scene.control.Button
buttonReports
private javafx.scene.control.Button
buttonReturn
private javafx.scene.control.Button
buttonSearch
private javafx.scene.control.Label
labelAppointmentID
private javafx.scene.control.Label
labelAppointmentTitle
private javafx.scene.control.Label
labelContactName
private javafx.scene.control.Label
labelCustomerID
private javafx.scene.control.Label
labelCustomerName
private javafx.scene.control.Label
labelDescription
private javafx.scene.control.Label
labelEndTime
private javafx.scene.control.Label
labelLocation
private javafx.scene.control.Label
labelStartTime
private javafx.scene.control.Label
labelType
private javafx.scene.control.Label
labelUserID
(package private) static Appointment
passedParameters
(package private) javafx.scene.Parent
scene
(package private) javafx.stage.Stage
stage
private javafx.scene.control.TextField
textfieldSearch
-
Constructor Summary
Constructors Constructor Description AppointmentsDetailController()
-
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 controlllervoid
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.
-
-
-
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.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 interfacejavafx.fxml.Initializable
- Parameters:
url
-resourceBundle
-
-
-