Package scheduler.controller
Class CustomersOverviewController
- java.lang.Object
-
- scheduler.controller.CustomersOverviewController
-
- All Implemented Interfaces:
javafx.fxml.Initializable
public class CustomersOverviewController extends java.lang.Object implements javafx.fxml.InitializableController for the Overview screen
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.control.ButtonbuttonAddNewCustomerprivate javafx.scene.control.ButtonbuttonAppointmentsprivate javafx.scene.control.ButtonbuttonCustomersprivate javafx.scene.control.ButtonbuttonLogoutprivate javafx.scene.control.ButtonbuttonOpenprivate javafx.scene.control.ButtonbuttonOverviewprivate javafx.scene.control.ButtonbuttonReportsprivate javafx.scene.control.ButtonbuttonSearchprivate javafx.scene.control.TableColumn<Customer,java.lang.String>labelAddressprivate javafx.scene.control.TableColumn<Customer,java.lang.Integer>labelCountryprivate javafx.scene.control.TableColumn<Customer,java.lang.Integer>labelCustomerIDprivate javafx.scene.control.TableColumn<Customer,java.lang.Integer>labelDivisionIDprivate javafx.scene.control.TableColumn<Customer,java.lang.String>labelNameprivate javafx.scene.control.LabellabelNameSelectorprivate javafx.scene.control.TableColumn<Customer,java.lang.String>labelPhoneNumberprivate javafx.scene.control.TableColumn<Customer,java.lang.String>labelPostalCode(package private) javafx.scene.Parentscene(package private) javafx.stage.Stagestageprivate javafx.scene.control.TableView<Customer>tableAllCustomersprivate javafx.scene.control.TextFieldtextfieldSearch
-
Constructor Summary
Constructors Constructor Description CustomersOverviewController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Initializes the Customers Overview Controller(package private) voidonClickAddNewCustomer(javafx.event.ActionEvent event)Loads the Add customer screen when the ADD CUSTOMER button is clicked.(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) voidonClickButtonOpen(javafx.event.ActionEvent event)Handler for the GET CUSTOMER DETAIL 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) voidonClickCustomerSearch(javafx.event.ActionEvent event)(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) voidonClickTableItem(javafx.scene.input.MouseEvent event)
-
-
-
Field Detail
-
stage
javafx.stage.Stage stage
-
scene
javafx.scene.Parent scene
-
buttonAddNewCustomer
private javafx.scene.control.Button buttonAddNewCustomer
-
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
-
buttonOpen
private javafx.scene.control.Button buttonOpen
-
tableAllCustomers
private javafx.scene.control.TableView<Customer> tableAllCustomers
-
labelCustomerID
private javafx.scene.control.TableColumn<Customer,java.lang.Integer> labelCustomerID
-
labelName
private javafx.scene.control.TableColumn<Customer,java.lang.String> labelName
-
labelAddress
private javafx.scene.control.TableColumn<Customer,java.lang.String> labelAddress
-
labelPostalCode
private javafx.scene.control.TableColumn<Customer,java.lang.String> labelPostalCode
-
labelPhoneNumber
private javafx.scene.control.TableColumn<Customer,java.lang.String> labelPhoneNumber
-
labelCountry
private javafx.scene.control.TableColumn<Customer,java.lang.Integer> labelCountry
-
labelDivisionID
private javafx.scene.control.TableColumn<Customer,java.lang.Integer> labelDivisionID
-
labelNameSelector
private javafx.scene.control.Label labelNameSelector
-
-
Method Detail
-
onClickCustomerSearch
void onClickCustomerSearch(javafx.event.ActionEvent event)
-
onClickAddNewCustomer
void onClickAddNewCustomer(javafx.event.ActionEvent event) throws java.io.IOExceptionLoads the Add customer screen when the ADD CUSTOMER button is clicked.- Parameters:
event-- Throws:
java.io.IOException
-
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
-
onClickTableItem
void onClickTableItem(javafx.scene.input.MouseEvent event) throws java.io.IOException- Throws:
java.io.IOException
-
onClickButtonOpen
void onClickButtonOpen(javafx.event.ActionEvent event) throws java.io.IOExceptionHandler for the GET CUSTOMER DETAIL button. Validates that a customer has been selected, passes the customer object to the Customer Modify screen, and loads it.- Parameters:
event-- Throws:
java.io.IOException
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Initializes the Customers Overview Controller- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
url-resourceBundle-
-
-