Module com.prog3.ipt
Class AddSingleTicketsViewController
java.lang.Object
com.prog3.ipt.Controller.ViewController
com.prog3.ipt.Controller.TravelDocumentsManagement.TravelDocumentsManagementViewController
com.prog3.ipt.Controller.TravelDocumentsManagement.AddSingleTicketsViewController
- All Implemented Interfaces:
javafx.fxml.Initializable
AddSingleTicketsViewController is a class that extends TravelDocumentsManagementViewController
This class handles AddSingleTickets view
-
Field Summary
Modifier and TypeFieldDescriptionprivate javafx.scene.control.Button
private javafx.scene.control.Button
private javafx.scene.control.Button
private javafx.scene.control.Button
private javafx.scene.control.TextField
private javafx.scene.control.TextField
private javafx.scene.control.Button
private SingleTicket
private javafx.scene.control.Label
private javafx.scene.control.TextField
Fields inherited from class com.prog3.ipt.Controller.TravelDocumentsManagement.TravelDocumentsManagementViewController
myTravelDocumentFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate SingleTicket
void
initialize
(URL url, ResourceBundle resourceBundle) protected void
Initializes View Componentprivate void
onAddSingleTicketsToCartButtonClick
(javafx.event.ActionEvent event) Adds a single ticket to cartprotected void
onBackButtonClick
(javafx.event.ActionEvent event) Back to previous viewprivate void
onDecreaseSingleTicketQuantityButtonClick
(javafx.event.ActionEvent event) Decreases membership quantityprivate void
onHelpButtonClick
(javafx.event.ActionEvent event) Shows help informationprivate void
onIncreaseSingleTicketQuantityButtonClick
(javafx.event.ActionEvent event) Increases ticket quantityprivate void
setMySingleTicket
(SingleTicket mySingleTicket) Methods inherited from class com.prog3.ipt.Controller.TravelDocumentsManagement.TravelDocumentsManagementViewController
getOrder, setOrder
Methods inherited from class com.prog3.ipt.Controller.ViewController
checkDatePickersContent, checkTextFieldsContent, clearDatePickersContent, clearTextFieldsContent, generatePayPalAlert, getFxmlLoader, getLocalScene, getStage, onButtonClickNavigateToView, raiseConfirmationAlert, raiseErrorAlert, raiseInformationAlert, setFxmlLoader, setLocalScene, setStage, validateEmail
-
Field Details
-
mySingleTicket
-
backButton
private javafx.scene.control.Button backButton -
ID_RideTextField
private javafx.scene.control.TextField ID_RideTextField -
ID_LineTextField
private javafx.scene.control.TextField ID_LineTextField -
decreaseMonoTicketQuantityButton
private javafx.scene.control.Button decreaseMonoTicketQuantityButton -
quantityTextField
private javafx.scene.control.TextField quantityTextField -
increaseMonoTicketQuantityButton
private javafx.scene.control.Button increaseMonoTicketQuantityButton -
priceResultLabel
private javafx.scene.control.Label priceResultLabel -
helpButton
private javafx.scene.control.Button helpButton -
addMonoTicketsToCart
private javafx.scene.control.Button addMonoTicketsToCart
-
-
Constructor Details
-
AddSingleTicketsViewController
public AddSingleTicketsViewController()
-
-
Method Details
-
setMySingleTicket
-
getMySingleTicket
-
onBackButtonClick
protected void onBackButtonClick(javafx.event.ActionEvent event) Back to previous view- Overrides:
onBackButtonClick
in classTravelDocumentsManagementViewController
- Parameters:
event
- Button clicked
-
onAddSingleTicketsToCartButtonClick
private void onAddSingleTicketsToCartButtonClick(javafx.event.ActionEvent event) Adds a single ticket to cart- Parameters:
event
- Button clicked
-
onIncreaseSingleTicketQuantityButtonClick
private void onIncreaseSingleTicketQuantityButtonClick(javafx.event.ActionEvent event) Increases ticket quantity- Parameters:
event
- Button clicked
-
onDecreaseSingleTicketQuantityButtonClick
private void onDecreaseSingleTicketQuantityButtonClick(javafx.event.ActionEvent event) Decreases membership quantity- Parameters:
event
- Button clicked
-
onHelpButtonClick
private void onHelpButtonClick(javafx.event.ActionEvent event) Shows help information- Parameters:
event
-
-
initialize
- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Overrides:
initialize
in classTravelDocumentsManagementViewController
- See Also:
-
Initializable.initialize(URL, ResourceBundle)
-
initializeViewComponents
protected void initializeViewComponents()Description copied from class:ViewController
Initializes View Component- Overrides:
initializeViewComponents
in classTravelDocumentsManagementViewController
- See Also:
-