Class HomeViewController

java.lang.Object
com.prog3.ipt.Controller.ViewController
com.prog3.ipt.Controller.HomeViewController
All Implemented Interfaces:
javafx.fxml.Initializable

public class HomeViewController extends ViewController
HomeViewController is the controller that handles LoginRegister view.
  • Field Details

    • usernameWelcomeLabel

      private javafx.scene.control.Label usernameWelcomeLabel
    • logoutButton

      private javafx.scene.control.Button logoutButton
    • loginButton

      private javafx.scene.control.Button loginButton
    • searchPathButton

      private javafx.scene.control.Button searchPathButton
    • manageTravelDocumentsButton

      private javafx.scene.control.Button manageTravelDocumentsButton
    • infoButton

      private javafx.scene.control.Button infoButton
    • noticesButton

      private javafx.scene.control.Button noticesButton
    • editProfileButton

      private javafx.scene.control.Button editProfileButton
  • Constructor Details

    • HomeViewController

      public HomeViewController()
  • Method Details

    • onBackButtonClick

      protected void onBackButtonClick(javafx.event.ActionEvent event)
      Specified by:
      onBackButtonClick in class ViewController
    • onInfoButtonClick

      private void onInfoButtonClick(javafx.event.ActionEvent event)
      Move on Info view
      Parameters:
      event - Button clicked
    • onLoginButtonClick

      private void onLoginButtonClick(javafx.event.ActionEvent event)
      Login Citizen account
      Parameters:
      event - Button clicked
    • onLogoutButtonClick

      private void onLogoutButtonClick(javafx.event.ActionEvent event)
      Logout from Citizen account
      Parameters:
      event - Button clicked
      See Also:
    • onSearchPathButtonClick

      private void onSearchPathButtonClick(javafx.event.ActionEvent event)
      Move on Search Path view
      Parameters:
      event - Button clicked
    • onNoticesButtonClick

      private void onNoticesButtonClick(javafx.event.ActionEvent event)
      Move on Notices view
      Parameters:
      event - Button clicked
    • onManageTravelDocumentsButtonClick

      private void onManageTravelDocumentsButtonClick(javafx.event.ActionEvent event)
      Move on Manage Travel Documents view
      Parameters:
      event - Button clicked
    • onEditProfileButtonClick

      private void onEditProfileButtonClick(javafx.event.ActionEvent event)
      Move on Edit Profile view
      Parameters:
      event - Button clicked
    • enableLoggedUserView

      private void enableLoggedUserView(String loggedUsername)
      Set up a logged User view
      Parameters:
      loggedUsername - The string that represents the username of the logged User
    • enableGuestUserView

      private void enableGuestUserView()
      Set up the Guest User view
    • 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: