fable.gui.dialog
Class PasswordDialog

java.lang.Object
  extended by Dialog
      extended by fable.gui.dialog.PasswordDialog

public class PasswordDialog
extends Dialog

The password dialog allows a user to enter his password

Author:
Christopher Moh

Method Summary
static java.lang.String createNewPassword(Shell parent)
          Creates a dialog box that returns a new password This dialog box does NOT ask for an existing password.
static java.lang.String replacePassword(Shell parent, FableCensor censor)
          Creates a dialog box to enter a password, but the old password (in a FableCensor) has to be confirmed first!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createNewPassword

public static java.lang.String createNewPassword(Shell parent)
Creates a dialog box that returns a new password This dialog box does NOT ask for an existing password.

Parameters:
parent - Parent Shell
Returns:
String of the password returned, or null if no password is returned
Requires:
parent != null

replacePassword

public static java.lang.String replacePassword(Shell parent,
                                               FableCensor censor)
Creates a dialog box to enter a password, but the old password (in a FableCensor) has to be confirmed first!

Parameters:
parent - Parent shell
censor - Existing censor
Returns:
the new password, or null if no password is entered
Requires:
parent, censor != null