GWTApplication.client
Class ChangePasswordDialogBox

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by GWTApplication.client.FaultDBForm
                  extended by GWTApplication.client.ChangePasswordDialogBox
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.ClickListener

public class ChangePasswordDialogBox
extends FaultDBForm
implements com.google.gwt.user.client.ui.ClickListener

This class will allow the user to change his password. It does by means of a pop up dialog which will allow the user to enter his new password twice. If the passwords do not match the attempt at setting the password is rejected.

Version:
$Id: ChangePasswordDialogBox.java,v 1.6 2008/01/15 11:08:16 cb Exp $
Author:
Craige Bevil

Field Summary
private  com.google.gwt.user.client.ui.Button CancelButton
          This is the cancel button widget
(package private)  com.google.gwt.user.client.ui.DialogBox ChangePasswordDialog
          This is the main dialog box which will be displayed
(package private)  java.lang.String emailAddress
          This is the email address of the person that is to have his password updated
private  com.google.gwt.user.client.ui.PasswordTextBox NewPassword
          The user will enter his new password into this text box widget.
private  com.google.gwt.user.client.ui.PasswordTextBox PasswordConfirmation
          The user will enter his new password into this text box widget.
private  com.google.gwt.user.client.ui.Button SubmitButton
          This is the submit button widget
 
Fields inherited from class GWTApplication.client.FaultDBForm
busyIndicator, internationalizationConstants, NOLENGTHCHECK, PrinterList, svc, UserAuthentication
 
Constructor Summary
ChangePasswordDialogBox(FaultServiceAsync svc, java.lang.String emailAddress)
          Constructor
 
Method Summary
 void onClick(com.google.gwt.user.client.ui.Widget sender)
          This is the click handler which is called when the user calls presses one of the buttons on the dialog.
 void showChangePasswordDialog()
          Displays the dialog which will allow the user to change his password.
 
Methods inherited from class GWTApplication.client.FaultDBForm
createEmailLink, fillListBoxWithCurrentInstruments, fillListBoxWithDutyTechnicians, fillListBoxWithFaultType, fillListBoxWithInstruments, fillListBoxWithSeverity, fillListBoxWithSites, fillListBoxWithStaffMembers, fillListBoxWithStates, fillListBoxWithSupportAstronomers, fillListBoxWithSystems, fillListBoxWithTelescopeOperators, getCurrentDate, getCurrentTime, getFullUserNameFromEmailAddress, selectDefaultListOption, setSelectedItemInListbox, stringContainsText, verifyDateFormat, verifyDateNotInFuture, verifyText, verifyTimeFormat
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement, getWidget, initWidget, isAttached, onAttach, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SubmitButton

private final com.google.gwt.user.client.ui.Button SubmitButton
This is the submit button widget


NewPassword

private final com.google.gwt.user.client.ui.PasswordTextBox NewPassword
The user will enter his new password into this text box widget.


PasswordConfirmation

private com.google.gwt.user.client.ui.PasswordTextBox PasswordConfirmation
The user will enter his new password into this text box widget.


CancelButton

private final com.google.gwt.user.client.ui.Button CancelButton
This is the cancel button widget


ChangePasswordDialog

com.google.gwt.user.client.ui.DialogBox ChangePasswordDialog
This is the main dialog box which will be displayed


emailAddress

java.lang.String emailAddress
This is the email address of the person that is to have his password updated

Constructor Detail

ChangePasswordDialogBox

ChangePasswordDialogBox(FaultServiceAsync svc,
                        java.lang.String emailAddress)
Constructor

Parameters:
svc - Used to communicate with the remote servlet container.
emailAddress - This is the email address of the person who is to have his password changed.
Method Detail

onClick

public void onClick(com.google.gwt.user.client.ui.Widget sender)
This is the click handler which is called when the user calls presses one of the buttons on the dialog. It results in the process of changing the password being initiated.

Specified by:
onClick in interface com.google.gwt.user.client.ui.ClickListener
Parameters:
sender - This is the widget which raised the event.

showChangePasswordDialog

public void showChangePasswordDialog()
Displays the dialog which will allow the user to change his password.