Package scheduler.controller
Class ReportsBreakdownController
- java.lang.Object
-
- scheduler.controller.ReportsBreakdownController
-
- All Implemented Interfaces:
javafx.fxml.Initializable
public class ReportsBreakdownController extends java.lang.Object implements javafx.fxml.InitializableController for the Reports by Type / month controller
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.control.ButtonbuttonAppointmentsprivate javafx.scene.control.ButtonbuttonCustomersprivate javafx.scene.control.ButtonbuttonLogoutprivate javafx.scene.control.ButtonbuttonOverviewprivate javafx.scene.control.ButtonbuttonReportsprivate javafx.scene.control.TableColumn<Type,java.lang.String>columnAppointmentTypeprivate javafx.scene.control.TableColumn<Type,java.lang.Integer>columnNumOfAppointmentsprivate javafx.scene.control.ComboBox<java.lang.String>comboMonthPickerprivate javafx.scene.control.ComboBox<java.lang.String>comboReportType(package private) javafx.scene.Parentscene(package private) javafx.stage.Stagestageprivate javafx.scene.control.TableView<Type>tableMonthViewprivate javafx.scene.control.TableView<Type>tableTypeView
-
Constructor Summary
Constructors Constructor Description ReportsBreakdownController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidclickComboReportType(javafx.event.ActionEvent event)Changes to the appropriate report type if needed when the Report type is changed in 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) voidonClickMonthPicker(javafx.event.ActionEvent event)Event handler for the Month Picker combo box.(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
-
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
-
columnAppointmentType
private javafx.scene.control.TableColumn<Type,java.lang.String> columnAppointmentType
-
columnNumOfAppointments
private javafx.scene.control.TableColumn<Type,java.lang.Integer> columnNumOfAppointments
-
tableMonthView
private javafx.scene.control.TableView<Type> tableMonthView
-
tableTypeView
private javafx.scene.control.TableView<Type> tableTypeView
-
comboMonthPicker
private javafx.scene.control.ComboBox<java.lang.String> comboMonthPicker
-
-
Method Detail
-
clickComboReportType
void clickComboReportType(javafx.event.ActionEvent event) throws java.io.IOExceptionChanges to the appropriate report type if needed when the Report type is changed in the combo box.- Parameters:
event-- Throws:
java.io.IOException
-
onClickMonthPicker
void onClickMonthPicker(javafx.event.ActionEvent event)
Event handler for the Month Picker combo box. Loads the appropriate report based on the month entered by the user- Parameters:
event- combo button click
-
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
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)- Specified by:
initializein interfacejavafx.fxml.Initializable
-
-