Package scheduler.controller
Class ReportsApptByContactController
- java.lang.Object
-
- scheduler.controller.ReportsApptByContactController
-
- All Implemented Interfaces:
javafx.fxml.Initializable
public class ReportsApptByContactController extends java.lang.Object implements javafx.fxml.InitializableController for the Report by Contact UI
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javafx.collections.ObservableList<Appointment>appointmentByContactprivate javafx.scene.control.ButtonbuttonAppointmentsprivate javafx.scene.control.ButtonbuttonCustomersprivate javafx.scene.control.ButtonbuttonLogoutprivate javafx.scene.control.ButtonbuttonOverviewprivate javafx.scene.control.ButtonbuttonReportsprivate javafx.scene.control.TableColumn<Appointment,java.lang.Integer>columnApptIDprivate javafx.scene.control.TableColumn<Appointment,java.lang.Integer>columnCustomerIDprivate javafx.scene.control.TableColumn<Appointment,java.lang.String>columnDescriptionprivate javafx.scene.control.TableColumn<Appointment,java.lang.String>columnEndprivate javafx.scene.control.TableColumn<Appointment,java.lang.String>columnStartprivate javafx.scene.control.TableColumn<Appointment,java.lang.String>columnTitleprivate javafx.scene.control.TableColumn<Appointment,java.lang.String>columnTypeprivate javafx.scene.control.ComboBox<Contact>comboContactsprivate javafx.scene.control.ComboBox<java.lang.String>comboReportType(package private) javafx.scene.Parentscene(package private) javafx.stage.Stagestageprivate javafx.scene.control.TableView<Appointment>tableAppointments
-
Constructor Summary
Constructors Constructor Description ReportsApptByContactController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidclickComboContacts(javafx.event.ActionEvent event)Populates appointments by Contact when a contact is chosen from the combo box.voidinitialize(java.net.URL url, java.util.ResourceBundle resourceBundle)(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) 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.(package private) voidonClickReportType(javafx.event.ActionEvent event)Updates report type if appropriate when the Report type combo box is clicked
-
-
-
Field Detail
-
stage
javafx.stage.Stage stage
-
scene
javafx.scene.Parent scene
-
appointmentByContact
javafx.collections.ObservableList<Appointment> appointmentByContact
-
comboReportType
private javafx.scene.control.ComboBox<java.lang.String> comboReportType
-
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
-
comboContacts
private javafx.scene.control.ComboBox<Contact> comboContacts
-
tableAppointments
private javafx.scene.control.TableView<Appointment> tableAppointments
-
columnApptID
private javafx.scene.control.TableColumn<Appointment,java.lang.Integer> columnApptID
-
columnTitle
private javafx.scene.control.TableColumn<Appointment,java.lang.String> columnTitle
-
columnType
private javafx.scene.control.TableColumn<Appointment,java.lang.String> columnType
-
columnDescription
private javafx.scene.control.TableColumn<Appointment,java.lang.String> columnDescription
-
columnStart
private javafx.scene.control.TableColumn<Appointment,java.lang.String> columnStart
-
columnEnd
private javafx.scene.control.TableColumn<Appointment,java.lang.String> columnEnd
-
columnCustomerID
private javafx.scene.control.TableColumn<Appointment,java.lang.Integer> columnCustomerID
-
-
Method Detail
-
clickComboContacts
void clickComboContacts(javafx.event.ActionEvent event)
Populates appointments by Contact when a contact is chosen from the combo box.- Parameters:
event-
-
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-- 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-- 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
-
onClickReportType
void onClickReportType(javafx.event.ActionEvent event) throws java.io.IOExceptionUpdates report type if appropriate when the Report type combo box is clicked- Parameters:
event-- Throws:
java.io.IOException
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)- Specified by:
initializein interfacejavafx.fxml.Initializable
-
-