GWTApplication.client
Class ModifyFaultSubscriptionListDialog

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.ModifyFaultSubscriptionListDialog
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.ClickListener

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

This class will allow the user to review the list of faults which he has subscribed to recieve emails for so he can opt out of recieving emails for faults that he has previosuly subscribed to.

Version:
$Id: ModifyFaultSubscriptionListDialog.java,v 1.3 2008/01/15 11:08:15 cb Exp $
Author:
Craige Bevil

Field Summary
private  com.google.gwt.user.client.ui.Button CancelButton
          This is the cancel button widget
private  com.google.gwt.user.client.ui.DialogBox ChangeFaultsSubscribedToDialog
          This is the main dialog box which will be displayed
private  com.google.gwt.user.client.ui.Button SubmitButton
          This is the submit button widget
private  java.util.HashMap SubmitCheckBoxList
          This is a hashmap of all of the checkboxes which are included in the list of faults which have been subscribed to.
private  com.google.gwt.user.client.ui.Grid SubscribedFaultsTable
          This is the grid that contains all of the faults.
private  com.google.gwt.user.client.ui.Button UnsubscribeAllButton
          Unsubscribe all
 
Fields inherited from class GWTApplication.client.FaultDBForm
busyIndicator, internationalizationConstants, NOLENGTHCHECK, PrinterList, svc, UserAuthentication
 
Constructor Summary
ModifyFaultSubscriptionListDialog(FaultServiceAsync svc, AuthenticationDetails authenticationDetails)
          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 showChangeFaultsSubscribedToDialog()
          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

UnsubscribeAllButton

private com.google.gwt.user.client.ui.Button UnsubscribeAllButton
Unsubscribe all


SubmitButton

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


CancelButton

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


SubscribedFaultsTable

private com.google.gwt.user.client.ui.Grid SubscribedFaultsTable
This is the grid that contains all of the faults.


ChangeFaultsSubscribedToDialog

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


SubmitCheckBoxList

private java.util.HashMap SubmitCheckBoxList
This is a hashmap of all of the checkboxes which are included in the list of faults which have been subscribed to.

Constructor Detail

ModifyFaultSubscriptionListDialog

ModifyFaultSubscriptionListDialog(FaultServiceAsync svc,
                                  AuthenticationDetails authenticationDetails)
Constructor

Parameters:
svc - Used to communicate with the remote servlet container.
authenticationDetails - Authentication details of the current user.
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.

showChangeFaultsSubscribedToDialog

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