GWTApplication.client
Class LinkFaultDialog

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

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

This class will allow the user to link a fault to another fault. It does by means of a pop up dialog which will be displayed when the user clicks on the appropriate link on the interface

Version:
$Id: LinkFaultDialog.java,v 1.5 2007/12/17 10:34:56 cb Exp $
Author:
Craige Bevil

Field Summary
private  com.google.gwt.user.client.ui.Button CancelButton
          This is the cancel button widget
private  int ChildFaultId
          This is the fault id of the child fault which we will link to parent fault which will be entered by the user
(package private)  com.google.gwt.user.client.ui.DialogBox LinkDialog
          This is the main dialog box which will be displayed
private  LabelTextBox ParentLinkTextEntry
          This is the entry box into which the user will enter the id of the fault to which this fault will be linked to
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
LinkFaultDialog(FaultServiceAsync svc)
          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 showLinkDialog(int ChildFaultId)
          Displays the new dialog which will allow the user to link this fault with the fault specified.
 
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


CancelButton

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


LinkDialog

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


ChildFaultId

private int ChildFaultId
This is the fault id of the child fault which we will link to parent fault which will be entered by the user


ParentLinkTextEntry

private LabelTextBox ParentLinkTextEntry
This is the entry box into which the user will enter the id of the fault to which this fault will be linked to

Constructor Detail

LinkFaultDialog

LinkFaultDialog(FaultServiceAsync svc)
Constructor

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

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

showLinkDialog

public void showLinkDialog(int ChildFaultId)
Displays the new dialog which will allow the user to link this fault with the fault specified.

Parameters:
ChildFaultId - This is the id. of the fault which we will link to the fault entered by the user should be linked to