Package com.esprit.controllers.users
Class ProfileController
java.lang.Object
com.esprit.controllers.users.ProfileController
JavaFX controller class for the RAKCHA application. Handles UI interactions
and manages view logic using FXML.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- RAKCHA Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javafx.scene.control.TextField
private javafx.scene.control.DatePicker
private static final String
private javafx.scene.control.Button
private javafx.scene.control.TextField
private javafx.scene.control.TextField
private javafx.scene.shape.Circle
private javafx.scene.control.Button
private javafx.scene.control.TextField
javafx.scene.layout.AnchorPane
private static final Logger
private javafx.scene.control.TextField
private javafx.scene.control.TextField
private javafx.scene.image.ImageView
private static final String
private javafx.animation.Timeline
private javafx.scene.control.Button
private javafx.scene.control.Button
(package private) User
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
deleteAccount
(javafx.event.ActionEvent event) private void
void
void
private void
loadAndSetImage
(String imageUrl) void
modifyAccount
(javafx.event.ActionEvent event) void
void
setLeftPane
(javafx.scene.layout.AnchorPane leftPane) Sets the LeftPane value.private void
void
signOut
(javafx.event.ActionEvent event) private void
private void
private boolean
-
Field Details
-
LOGGER
-
DEFAULT_PROFILE_GIF
- See Also:
-
PROFILE_IMAGES_DIR
- See Also:
-
pulseAnimation
private javafx.animation.Timeline pulseAnimation -
leftPane
public javafx.scene.layout.AnchorPane leftPane -
user
User user -
adresseTextField
private javafx.scene.control.TextField adresseTextField -
dateDeNaissanceDatePicker
private javafx.scene.control.DatePicker dateDeNaissanceDatePicker -
emailTextField
private javafx.scene.control.TextField emailTextField -
firstNameTextField
private javafx.scene.control.TextField firstNameTextField -
lastNameTextField
private javafx.scene.control.TextField lastNameTextField -
passwordTextField
private javafx.scene.control.TextField passwordTextField -
phoneNumberTextField
private javafx.scene.control.TextField phoneNumberTextField -
photoDeProfilImageView
private javafx.scene.image.ImageView photoDeProfilImageView -
imageCircle
private javafx.scene.shape.Circle imageCircle -
importPhotoButton
private javafx.scene.control.Button importPhotoButton -
saveButton
private javafx.scene.control.Button saveButton -
deleteButton
private javafx.scene.control.Button deleteButton -
signOutButton
private javafx.scene.control.Button signOutButton
-
-
Constructor Details
-
ProfileController
public ProfileController()
-
-
Method Details
-
initialize
public void initialize() -
configureImageCircle
private void configureImageCircle() -
loadAndSetImage
-
useGradientFallback
private void useGradientFallback() -
ensureProfileImageDirectoryExists
private void ensureProfileImageDirectoryExists() -
setData
-
deleteAccount
- Throws:
IOException
-
modifyAccount
public void modifyAccount(javafx.event.ActionEvent event) -
validateInputs
private boolean validateInputs() -
updateUserFromFields
private void updateUserFromFields() -
signOut
- Throws:
IOException
-
setLeftPane
public void setLeftPane(javafx.scene.layout.AnchorPane leftPane) Sets the LeftPane value.- Parameters:
setLeftPane
- the value to set
-
importPhoto
public void importPhoto() -
showAlert
-