Module com.prog3.ipt
Class TravelDocumentsManagementViewController
java.lang.Object
com.prog3.ipt.Controller.ViewController
com.prog3.ipt.Controller.TravelDocumentsManagement.TravelDocumentsManagementViewController
- All Implemented Interfaces:
javafx.fxml.Initializable
- Direct Known Subclasses:
AddMembershipViewController
,AddSingleTicketsViewController
,MyMembershipViewController
,MySingleTicketsViewController
TravelDocumentsManagementViewController class extends ViewController class.
This class handles TravelDocumentManagement 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 String
private javafx.scene.control.TextField
private javafx.scene.control.TextField
private javafx.scene.control.TableColumn<TravelDocumentFX,
javafx.scene.control.Button> private javafx.scene.control.DatePicker
private javafx.scene.control.TableColumn<TravelDocumentFX,
LocalDate> private javafx.scene.control.TableColumn<TravelDocumentFX,
LocalDate> private boolean
private javafx.scene.control.TableColumn<TravelDocumentFX,
String> private javafx.scene.control.TableView<TravelDocumentFX>
private javafx.scene.control.Button
private javafx.scene.control.Button
protected TravelDocumentFactory
private javafx.scene.control.ComboBox<String>
private javafx.scene.control.TableColumn<TravelDocumentFX,
Double> private javafx.scene.control.TableColumn<TravelDocumentFX,
String> private javafx.scene.control.Button
private javafx.scene.control.TableColumn<TravelDocumentFX,
LocalDate> private javafx.scene.control.Label
private javafx.scene.control.TableColumn<TravelDocumentFX,
String> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
Display content on view when credit card payment method was chosenprivate String
ConverterDropDownListString getterprotected Order
getOrder()
Order gettervoid
initialize
(URL url, ResourceBundle resourceBundle) protected void
Initializes View Componentprivate void
onAddMembershipsButtonClick
(javafx.event.ActionEvent event) Move on AddMemberships viewprivate void
onAddSingleTicketsButtonClick
(javafx.event.ActionEvent event) Move on AddSingleTickets viewprotected void
onBackButtonClick
(javafx.event.ActionEvent event) Back to previous viewprivate void
onBuyCartItemsButtonClick
(javafx.event.ActionEvent event) Creates and inserts a transaction to the Transaction table according to the logged Citizen orderprivate void
onMyMembershipButtonClick
(javafx.event.ActionEvent event) Move on MyMemberships viewprivate void
onMySingleTicketsButtonClick
(javafx.event.ActionEvent event) Move on MySingleTickets viewprivate void
onSavePaymentMethodButtonClick
(javafx.event.ActionEvent event) Saves payment methodprivate void
onSelectedDropDownListElement
(javafx.event.ActionEvent event) ComboBox / DropDownList payment methods handlingprivate void
Display content on view when PayPal payment method was chosenprivate void
Display content on view when phone number bill payment method was chosenprivate void
setConvertedDropDownListString
(String convertedDropDownListString) ConverterDropDownListString setterprotected void
Order setterMethods 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
-
myTravelDocumentFactory
-
convertedDropDownListString
-
isValidTransaction
private boolean isValidTransaction -
backButton
private javafx.scene.control.Button backButton -
myMembershipButton
private javafx.scene.control.Button myMembershipButton -
mySingleTicketsButton
private javafx.scene.control.Button mySingleTicketsButton -
paymentMethodsDropDownList
-
creditCardNumberTextField
private javafx.scene.control.TextField creditCardNumberTextField -
CVV_TextField
private javafx.scene.control.TextField CVV_TextField -
expirationCreditCardDatePicker
private javafx.scene.control.DatePicker expirationCreditCardDatePicker -
savePaymentMethodButton
private javafx.scene.control.Button savePaymentMethodButton -
myCartTableView
-
totalPriceLabel
private javafx.scene.control.Label totalPriceLabel -
addSingleTicketsButton
private javafx.scene.control.Button addSingleTicketsButton -
addMembershipsButton
private javafx.scene.control.Button addMembershipsButton -
buyCartItemsButton
private javafx.scene.control.Button buyCartItemsButton -
travelDocumentIDTableColumn
-
lineIDTableColumn
-
rideIDTableColumn
-
issueDateTableColumn
-
startDateTableColumn
-
expirationDateTableColumn
-
priceTableColumn
-
deleteRowTableColumn
private javafx.scene.control.TableColumn<TravelDocumentFX,javafx.scene.control.Button> deleteRowTableColumn
-
-
Constructor Details
-
TravelDocumentsManagementViewController
public TravelDocumentsManagementViewController()
-
-
Method Details
-
onBackButtonClick
protected void onBackButtonClick(javafx.event.ActionEvent event) Back to previous view- Specified by:
onBackButtonClick
in classViewController
- Parameters:
event
- Button clicked
-
onMySingleTicketsButtonClick
private void onMySingleTicketsButtonClick(javafx.event.ActionEvent event) Move on MySingleTickets view- Parameters:
event
- Button clicked
-
onMyMembershipButtonClick
private void onMyMembershipButtonClick(javafx.event.ActionEvent event) Move on MyMemberships view- Parameters:
event
- Button clicked
-
onAddSingleTicketsButtonClick
private void onAddSingleTicketsButtonClick(javafx.event.ActionEvent event) Move on AddSingleTickets view- Parameters:
event
- Button clicked
-
onAddMembershipsButtonClick
private void onAddMembershipsButtonClick(javafx.event.ActionEvent event) Move on AddMemberships view- Parameters:
event
- Button clicked
-
onBuyCartItemsButtonClick
private void onBuyCartItemsButtonClick(javafx.event.ActionEvent event) Creates and inserts a transaction to the Transaction table according to the logged Citizen order- Parameters:
event
- Button clicked
-
onSavePaymentMethodButtonClick
private void onSavePaymentMethodButtonClick(javafx.event.ActionEvent event) Saves payment method- Parameters:
event
- Button clicked
-
initialize
- See Also:
-
Initializable.initialize(URL, ResourceBundle)
-
initializeViewComponents
protected void initializeViewComponents()Description copied from class:ViewController
Initializes View Component- Specified by:
initializeViewComponents
in classViewController
- See Also:
-
setOrder
Order setter- Parameters:
order
- Reference to Order object- See Also:
-
getOrder
Order getter- Returns:
- reference to Order object
- See Also:
-
setConvertedDropDownListString
ConverterDropDownListString setter- Parameters:
convertedDropDownListString
- Reference to a String object
-
getConvertedDropDownListString
ConverterDropDownListString getter- Returns:
- Reference to a String object
-
onSelectedDropDownListElement
private void onSelectedDropDownListElement(javafx.event.ActionEvent event) ComboBox / DropDownList payment methods handling- Parameters:
event
-
-
creditCardPaymentMethodSelected
private void creditCardPaymentMethodSelected()Display content on view when credit card payment method was chosen- See Also:
-
payPalPaymentMethodSelected
private void payPalPaymentMethodSelected()Display content on view when PayPal payment method was chosen- See Also:
-
phoneNumberBillPaymentMethodSelected
private void phoneNumberBillPaymentMethodSelected()Display content on view when phone number bill payment method was chosen- See Also:
-