Class CustomPasswordController
java.lang.Object
eirb.pub.app.display.javafx.view.vault.viewer.CustomPasswordController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCustomPasswordData(CustomPasswordData customInfos) Initializes the UI elements with values from the provided CustomPasswordData.static Optional<CustomPasswordData> showDialog(javafx.stage.Window owner, CustomPasswordData customInfos) Opens a dialog for customizing the password.
-
Constructor Details
-
CustomPasswordController
public CustomPasswordController()
-
-
Method Details
-
setCustomPasswordData
Initializes the UI elements with values from the provided CustomPasswordData. This method updates the spinner and checkboxes to reflect the current custom password settings.- Parameters:
customInfos- The CustomPasswordData containing the customization settings to be displayed.
-
showDialog
public static Optional<CustomPasswordData> showDialog(javafx.stage.Window owner, CustomPasswordData customInfos) Opens a dialog for customizing the password. This method allows the user to adjust settings like the number of symbols, inclusion of uppercase letters, lowercase letters, numbers, and special symbols.- Parameters:
owner- The window that owns the dialog.customInfos- The initial custom password settings to display in the dialog.- Returns:
- An Optional containing the updated CustomPasswordData if the user confirms the dialog, or an empty Optional if canceled.
-