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

public class TravelDocumentsManagementViewController extends ViewController
TravelDocumentsManagementViewController class extends ViewController class. This class handles TravelDocumentManagement view
  • Field Details

    • myTravelDocumentFactory

      protected TravelDocumentFactory myTravelDocumentFactory
    • convertedDropDownListString

      private String 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

      private javafx.scene.control.ComboBox<String> 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

      private javafx.scene.control.TableView<TravelDocumentFX> 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

      private javafx.scene.control.TableColumn<TravelDocumentFX,String> travelDocumentIDTableColumn
    • lineIDTableColumn

      private javafx.scene.control.TableColumn<TravelDocumentFX,String> lineIDTableColumn
    • rideIDTableColumn

      private javafx.scene.control.TableColumn<TravelDocumentFX,String> rideIDTableColumn
    • issueDateTableColumn

      private javafx.scene.control.TableColumn<TravelDocumentFX,LocalDate> issueDateTableColumn
    • startDateTableColumn

      private javafx.scene.control.TableColumn<TravelDocumentFX,LocalDate> startDateTableColumn
    • expirationDateTableColumn

      private javafx.scene.control.TableColumn<TravelDocumentFX,LocalDate> expirationDateTableColumn
    • priceTableColumn

      private javafx.scene.control.TableColumn<TravelDocumentFX,Double> 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 class ViewController
      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

      public void initialize(URL url, ResourceBundle resourceBundle)
      See Also:
      • Initializable.initialize(URL, ResourceBundle)
    • initializeViewComponents

      protected void initializeViewComponents()
      Description copied from class: ViewController
      Initializes View Component
      Specified by:
      initializeViewComponents in class ViewController
      See Also:
    • setOrder

      protected void setOrder(Order order)
      Order setter
      Parameters:
      order - Reference to Order object
      See Also:
    • getOrder

      protected Order getOrder()
      Order getter
      Returns:
      reference to Order object
      See Also:
    • setConvertedDropDownListString

      private void setConvertedDropDownListString(String convertedDropDownListString)
      ConverterDropDownListString setter
      Parameters:
      convertedDropDownListString - Reference to a String object
    • getConvertedDropDownListString

      private String 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: