GWTApplication.client
Class SearchResultFormatter.CloseFaultClickListener

java.lang.Object
  extended by GWTApplication.client.SearchResultFormatter.CloseFaultClickListener
All Implemented Interfaces:
com.google.gwt.user.client.ui.ClickListener, java.util.EventListener
Enclosing class:
SearchResultFormatter

 class SearchResultFormatter.CloseFaultClickListener
extends java.lang.Object
implements com.google.gwt.user.client.ui.ClickListener

An inner class which will allow the user to close down a fault. This is a listener class which is called when the user clicks upon the close fault link in the search results.

Version:
$Id: SearchResultFormatter.java,v 1.26 2007/12/17 12:26:40 cb Exp $
Author:
Craige Bevil

Field Summary
private  int faultNumber
          This is the fault number which is associated with the fault to be closed
private  ModifyFormPanel modifyFormPage
          This is the panel which is being used to update faults.
(package private)  com.google.gwt.user.client.ui.Hyperlink updateLink
          This is the update link which is associated with a fault.
 
Constructor Summary
SearchResultFormatter.CloseFaultClickListener(int faultNumber, ModifyFormPanel ModifyFormPage, com.google.gwt.user.client.ui.Hyperlink UpdateLink)
          Constructor
 
Method Summary
 void onClick(com.google.gwt.user.client.ui.Widget sender)
          Called when the user clicks upon the close fault link and results in the fault being closed down in the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

faultNumber

private final int faultNumber
This is the fault number which is associated with the fault to be closed


modifyFormPage

private final ModifyFormPanel modifyFormPage
This is the panel which is being used to update faults. Before we allow the user to close down a fault we need to make sure that he is not editing it.


updateLink

com.google.gwt.user.client.ui.Hyperlink updateLink
This is the update link which is associated with a fault.

Constructor Detail

SearchResultFormatter.CloseFaultClickListener

public SearchResultFormatter.CloseFaultClickListener(int faultNumber,
                                                     ModifyFormPanel ModifyFormPage,
                                                     com.google.gwt.user.client.ui.Hyperlink UpdateLink)
Constructor

Method Detail

onClick

public void onClick(com.google.gwt.user.client.ui.Widget sender)
Called when the user clicks upon the close fault link and results in the fault being closed down in the database. We only allow the user to close down a fault if he is not editing it.

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