Class AddMembershipViewController

All Implemented Interfaces:
javafx.fxml.Initializable

public class AddMembershipViewController extends TravelDocumentsManagementViewController
AddMembershipViewController is a class that extends TravelDocumentsManagementViewController. This class handles AddMembership view
  • Field Details

    • myMembership

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

      private void setMyMembership(Membership myMembership)
    • getMyMembership

      private Membership getMyMembership()
    • onBackButtonClick

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

      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: