java.lang.Object
com.prog3.ipt.Controller.ViewController
com.prog3.ipt.Controller.HomeViewController
- All Implemented Interfaces:
javafx.fxml.Initializable
HomeViewController is the controller that handles LoginRegister 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 javafx.scene.control.Button
private javafx.scene.control.Button
private javafx.scene.control.Button
private javafx.scene.control.Label
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
Set up the Guest User viewprivate void
enableLoggedUserView
(String loggedUsername) Set up a logged User viewvoid
initialize
(URL url, ResourceBundle resourceBundle) protected void
Initializes View Componentprotected void
onBackButtonClick
(javafx.event.ActionEvent event) private void
onEditProfileButtonClick
(javafx.event.ActionEvent event) Move on Edit Profile viewprivate void
onInfoButtonClick
(javafx.event.ActionEvent event) Move on Info viewprivate void
onLoginButtonClick
(javafx.event.ActionEvent event) Login Citizen accountprivate void
onLogoutButtonClick
(javafx.event.ActionEvent event) Logout from Citizen accountprivate void
onManageTravelDocumentsButtonClick
(javafx.event.ActionEvent event) Move on Manage Travel Documents viewprivate void
onNoticesButtonClick
(javafx.event.ActionEvent event) Move on Notices viewprivate void
onSearchPathButtonClick
(javafx.event.ActionEvent event) Move on Search Path viewMethods 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
-
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 classViewController
-
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
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
- 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:
-