GWTApplication.client
Class FaultAddition

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.FaultAddition
All Implemented Interfaces:
com.google.gwt.user.client.EventListener
Direct Known Subclasses:
FaultComment, FaultSolution, FaultWorkAround

abstract class FaultAddition
extends FaultDBForm

This is a base class will be used to generate a tab at the bottom of the fault modification form to allow them to create additions to a fault. This is essentially a base class for the classes which can be used to create workarounds, solutions and comments which can be added to a fault.

The class makes extensive use of the google web toolkit.

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

Field Summary
protected  LabelListBox EnteredBy
          The user will enter the name of the person which made the fault addition into this field
protected  com.google.gwt.user.client.ui.FlexTable FaultAdditionTable
          This is the table into which we will pack all of these widgets which will be used to enter the data
protected  com.jpavel.gwt.wysiwyg.client.Editor FaultAdditionText
          This is the text area into which the user will enter the details of the text addition
protected  int FaultNumber
          This is the fault number which is associated with this fault addition
protected  FaultUpdatedListener faultUpdateListener
          This is a listener which is called when we save the fault
protected  LabelTextBox TimeSpent
          The user will enter the amount of time spent on this addition to the fault
protected  AuthenticationDetails userAuthentication
          The details of the user authentication
 
Fields inherited from class GWTApplication.client.FaultDBForm
busyIndicator, internationalizationConstants, NOLENGTHCHECK, PrinterList, svc, UserAuthentication
 
Constructor Summary
FaultAddition(int FaultNumber, FaultServiceAsync svc, InternationalizationConstants internationalizationConstants, AuthenticationDetails userAuthentication, FaultUpdatedListener faultUpdateListener)
          Constructor for the fault addition tab in the modify fault form
 
Method Summary
(package private) abstract  void resetFormToDefaultValues()
          Reset the contents of the fault addition form to what is current stored in the database for this fault addition.
(package private) abstract  void saveFormContentsToDatabase()
          Save the contents of the fault addition form to the database.
(package private) abstract  void setFormDefaultValues()
          An abstract method which should be provided by the subclass which will allow for the fields in the form to be initialised to their default values.
 
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

faultUpdateListener

protected FaultUpdatedListener faultUpdateListener
This is a listener which is called when we save the fault


FaultNumber

protected int FaultNumber
This is the fault number which is associated with this fault addition


FaultAdditionTable

protected com.google.gwt.user.client.ui.FlexTable FaultAdditionTable
This is the table into which we will pack all of these widgets which will be used to enter the data


FaultAdditionText

protected com.jpavel.gwt.wysiwyg.client.Editor FaultAdditionText
This is the text area into which the user will enter the details of the text addition


EnteredBy

protected LabelListBox EnteredBy
The user will enter the name of the person which made the fault addition into this field


TimeSpent

protected LabelTextBox TimeSpent
The user will enter the amount of time spent on this addition to the fault


userAuthentication

protected AuthenticationDetails userAuthentication
The details of the user authentication

Constructor Detail

FaultAddition

FaultAddition(int FaultNumber,
              FaultServiceAsync svc,
              InternationalizationConstants internationalizationConstants,
              AuthenticationDetails userAuthentication,
              FaultUpdatedListener faultUpdateListener)
Constructor for the fault addition tab in the modify fault form

Parameters:
FaultNumber - This is the number of the defect report which this fault addition is associated with.
svc - A conduit to the servlet container
internationalizationConstants - This is used for internationalization so we can display the interface in English and Spanish
userAuthentication - The details of the user authentication.
faultUpdateListener - This is a listener object which is to be informed when the fault changes.
Method Detail

setFormDefaultValues

abstract void setFormDefaultValues()
An abstract method which should be provided by the subclass which will allow for the fields in the form to be initialised to their default values.


saveFormContentsToDatabase

abstract void saveFormContentsToDatabase()
Save the contents of the fault addition form to the database.


resetFormToDefaultValues

abstract void resetFormToDefaultValues()
Reset the contents of the fault addition form to what is current stored in the database for this fault addition.