Class AddSingleTicketsViewController

All Implemented Interfaces:
javafx.fxml.Initializable

public class AddSingleTicketsViewController extends TravelDocumentsManagementViewController
AddSingleTicketsViewController is a class that extends TravelDocumentsManagementViewController This class handles AddSingleTickets view
  • Field Details

    • mySingleTicket

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

      private void setMySingleTicket(SingleTicket mySingleTicket)
    • getMySingleTicket

      private SingleTicket getMySingleTicket()
    • onBackButtonClick

      protected void onBackButtonClick(javafx.event.ActionEvent event)
      Back to previous view
      Overrides:
      onBackButtonClick in class TravelDocumentsManagementViewController
      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

      public void initialize(URL url, ResourceBundle resourceBundle)
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Overrides:
      initialize in class TravelDocumentsManagementViewController
      See Also:
      • Initializable.initialize(URL, ResourceBundle)
    • initializeViewComponents

      protected void initializeViewComponents()
      Description copied from class: ViewController
      Initializes View Component
      Overrides:
      initializeViewComponents in class TravelDocumentsManagementViewController
      See Also: