Class UserInfoDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class UserInfoDialog extends JDialog implements ActionListener
Dialog which prompts the user for a username and password.
See Also:
  • Field Details

  • Constructor Details

    • UserInfoDialog

      public UserInfoDialog(Frame owner, String title)
      Parameters:
      owner - Frame which owns this dialog
      title - String to display in the title bar of this dialog *
    • UserInfoDialog

      public UserInfoDialog(Frame owner, String title, com.nt.udc.admin.User user)
      Constructor which populates information in the dialog box with values contained in the given User Object.
      Parameters:
      owner - Frame which owns this dialog
      title - String to display in the title bar of this dialog
      user - Information to populate the text fields with *
    • UserInfoDialog

      public UserInfoDialog(Frame owner, String title, com.nt.udc.admin.User user, String invokedClass)
      Constructor which populates information in the dialog box with values contained in the given User Object.
      Parameters:
      owner - Frame which owns this dialog
      title - String to display in the title bar of this dialog
      user - Information to populate the text fields with
      invokedClass - Name of the class which invoked this *
  • Method Details

    • getInfo

      public static com.nt.udc.admin.User getInfo(Frame owner, String title, com.nt.udc.admin.User user)
      Displays this dialog populated with information from info and returns the user modified information.
      Parameters:
      owner - Frame which owns this dialog
      title - String to display in the title bar of this dialog
      user - Information to populate the text fields with
      Returns:
      User Object containing the information that the user modified. null, if the user cancels the operation.
    • getInfo

      public static com.nt.udc.admin.User getInfo(Frame owner, String title, com.nt.udc.admin.User user, String invokedClass)
      Displays this dialog populated with information from info and returns the user modified information.
      Parameters:
      owner - Frame which owns this dialog
      title - String to display in the title bar of this dialog
      user - Information to populate the text fields with
      invokedClass - Name of the class which invoked this
      Returns:
      User Object containing the information that the user modified. null, if the user cancels the operation.
    • getInfo

      public static com.nt.udc.admin.User getInfo(Frame owner, String title)
      Displays this dialog and returns the information that the user has entered.
      Parameters:
      owner - Frame which owns this dialog
      title - String to display in the title bar of this dialog
      Returns:
      User Object containing the information that the user entered. null, if the user cancels the operation.
    • getChangePassword

      public static Boolean getChangePassword()
    • addGUIComponents

      protected void addGUIComponents(String title)
      Lays out the components of this dialog.
      Parameters:
      title -
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener