Class CreateGroupWindow

java.lang.Object
passwordmanagergui.group.CreateGroupWindow

public class CreateGroupWindow extends Object
Window for creating a new password group
Since:
2024-01-31
  • Field Details

    • windowIsModal

      private final boolean windowIsModal
      Field responsible for whether the window is modal
      See Also:
    • windowIsClosed

      private boolean windowIsClosed
      Window closed status
    • groupName

      private String groupName
      Name of the group being created
    • groupPassword

      private String groupPassword
      Password of the created group
    • groupNameField

      private JTextField groupNameField
      Group name entry field
    • groupPasswordField

      private JPasswordField groupPasswordField
      Group password entry field
    • resultGroup

      private passwordmanager.encoded.IRawData resultGroup
      Created group of passwords in encrypted form
    • allNotWhitespaceSymbolsRegexp

      private final String allNotWhitespaceSymbolsRegexp
      Expression to remove whitespace characters from a password group name
      See Also:
  • Constructor Details

    • CreateGroupWindow

      public CreateGroupWindow()
  • Method Details

    • create

      public passwordmanager.encoded.IRawData create(JFrame mainWindow)
      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

      public String checkAndRemoveFieldWhitespaces(String fieldText)
      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