Package passwordmanagergui.group
Class CreateGroupWindow
java.lang.Object
passwordmanagergui.group.CreateGroupWindow
Window for creating a new password group
- Since:
- 2024-01-31
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringExpression to remove whitespace characters from a password group nameprivate StringName of the group being createdprivate JTextFieldGroup name entry fieldprivate StringPassword of the created groupprivate JPasswordFieldGroup password entry fieldprivate passwordmanager.encoded.IRawDataCreated group of passwords in encrypted formprivate booleanWindow closed statusprivate final booleanField responsible for whether the window is modal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckAndRemoveFieldWhitespaces(String fieldText) Method that removes all whitespace characters from a stringpasswordmanager.encoded.IRawDataA method that creates a window for entering information about a new group of passwords with the ability to confirm or cancel the creation of a new group of passwordspasswordmanager.encoded.IRawDataMethod that creates an encrypted group of passwordsprivate voidMethod that waits for the window to close and then returns the created group
-
Field Details
-
windowIsModal
private final boolean windowIsModalField responsible for whether the window is modal- See Also:
-
windowIsClosed
private boolean windowIsClosedWindow closed status -
groupName
Name of the group being created -
groupPassword
Password of the created group -
groupNameField
Group name entry field -
groupPasswordField
Group password entry field -
resultGroup
private passwordmanager.encoded.IRawData resultGroupCreated group of passwords in encrypted form -
allNotWhitespaceSymbolsRegexp
Expression to remove whitespace characters from a password group name- See Also:
-
-
Constructor Details
-
CreateGroupWindow
public CreateGroupWindow()
-
-
Method Details
-
create
A method that creates a window for entering information about a new group of passwords with the ability to confirm or cancel the creation of a new group of passwords- Parameters:
mainWindow- parent window- Returns:
- reference to an encoded password group object
-
createPasswordGroup
public passwordmanager.encoded.IRawData createPasswordGroup()Method that creates an encrypted group of passwords- Returns:
- reference to an encoded password group object
-
checkAndRemoveFieldWhitespaces
Method that removes all whitespace characters from a string- Parameters:
fieldText-- Returns:
- text without whitespace characters
-
waitWindowClose
private void waitWindowClose()Method that waits for the window to close and then returns the created group
-