Module com.prog3.ipt
Class AddMembershipViewController
java.lang.Object
com.prog3.ipt.Controller.ViewController
com.prog3.ipt.Controller.TravelDocumentsManagement.TravelDocumentsManagementViewController
com.prog3.ipt.Controller.TravelDocumentsManagement.AddMembershipViewController
- All Implemented Interfaces:
javafx.fxml.Initializable
AddMembershipViewController is a class that extends TravelDocumentsManagementViewController.
This class handles AddMembership 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.Button
private Membership
private javafx.scene.control.Label
private javafx.scene.control.TextField
private javafx.scene.control.DatePicker
Fields inherited from class com.prog3.ipt.Controller.TravelDocumentsManagement.TravelDocumentsManagementViewController
myTravelDocumentFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Membership
void
initialize
(URL url, ResourceBundle resourceBundle) protected void
Initializes View Componentprivate void
onAddMembershipToCartButtonClick
(javafx.event.ActionEvent event) Adds a membership to cartprotected void
onBackButtonClick
(javafx.event.ActionEvent event) Back to previous viewprivate void
onDecreaseMembershipQuantityButtonClick
(javafx.event.ActionEvent event) Decreases the number of membership that the logged citizen wants to buyprivate void
onHelpButtonClick
(javafx.event.ActionEvent event) Shows help informationprivate void
onIncreaseMembershipQuantityButtonClick
(javafx.event.ActionEvent event) Increases the number of membership that the logged citizen wants to buyprivate void
setMyMembership
(Membership myMembership) 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
-
myMembership
-
backButton
private javafx.scene.control.Button backButton -
startDatePicker
private javafx.scene.control.DatePicker startDatePicker -
decreaseMembershipQuantityButton
private javafx.scene.control.Button decreaseMembershipQuantityButton -
quantityTextField
private javafx.scene.control.TextField quantityTextField -
increaseMembershipQuantityButton
private javafx.scene.control.Button increaseMembershipQuantityButton -
priceResultLabel
private javafx.scene.control.Label priceResultLabel -
helpButton
private javafx.scene.control.Button helpButton -
addMembershipToCart
private javafx.scene.control.Button addMembershipToCart
-
-
Constructor Details
-
AddMembershipViewController
public AddMembershipViewController()
-
-
Method Details
-
setMyMembership
-
getMyMembership
-
onBackButtonClick
protected void onBackButtonClick(javafx.event.ActionEvent event) Back to previous view- Overrides:
onBackButtonClick
in classTravelDocumentsManagementViewController
- Parameters:
event
- Button clicked
-
onAddMembershipToCartButtonClick
private void onAddMembershipToCartButtonClick(javafx.event.ActionEvent event) Adds a membership to cart- Parameters:
event
- Button clicked
-
onIncreaseMembershipQuantityButtonClick
private void onIncreaseMembershipQuantityButtonClick(javafx.event.ActionEvent event) Increases the number of membership that the logged citizen wants to buy- Parameters:
event
- Button clicked
-
onDecreaseMembershipQuantityButtonClick
private void onDecreaseMembershipQuantityButtonClick(javafx.event.ActionEvent event) Decreases the number of membership that the logged citizen wants to buy- Parameters:
event
- Button clicked
-
onHelpButtonClick
private void onHelpButtonClick(javafx.event.ActionEvent event) Shows help information- Parameters:
event
- Button clicked
-
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:
-