Class ProfileController

java.lang.Object
com.esprit.controllers.users.ProfileController

public class ProfileController extends Object
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 Details

    • LOGGER

      private static final Logger LOGGER
    • DEFAULT_PROFILE_GIF

      private static final String DEFAULT_PROFILE_GIF
      See Also:
    • PROFILE_IMAGES_DIR

      private static final String 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

      private void loadAndSetImage(String imageUrl)
    • useGradientFallback

      private void useGradientFallback()
    • ensureProfileImageDirectoryExists

      private void ensureProfileImageDirectoryExists()
    • setData

      public void setData(User user)
    • deleteAccount

      public void deleteAccount(javafx.event.ActionEvent event) throws IOException
      Throws:
      IOException
    • modifyAccount

      public void modifyAccount(javafx.event.ActionEvent event)
    • validateInputs

      private boolean validateInputs()
    • updateUserFromFields

      private void updateUserFromFields()
    • signOut

      public void signOut(javafx.event.ActionEvent event) throws IOException
      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

      private void showAlert(String title, String content, javafx.scene.control.Alert.AlertType type)