edu.mayo.bsi.ngsportal.client
Class ChangeSampleNameDialog

java.lang.Object
  extended by edu.mayo.bsi.ngsportal.client.ChangeSampleNameDialog
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, com.smartgwt.client.widgets.form.fields.events.KeyPressHandler

public class ChangeSampleNameDialog
extends Object
implements com.smartgwt.client.widgets.form.fields.events.KeyPressHandler

Author:
Greg Dougherty

Constructor Summary
ChangeSampleNameDialog(String newName, String oldName, String species, String captureKit, String rlimsProject, String diseaseType, SampleInfo theSample, RunEditPanel editor, com.smartgwt.client.data.Record newRecord, com.google.gwt.user.client.Command followUp)
          Create and show a dialog box that lets the user add a new Sample to the DB, or just change its name
 
Method Summary
 void onKeyPress(com.smartgwt.client.widgets.form.fields.events.KeyPressEvent event)
          Fire off doSave if the user hits Enter or Return after filling in the name and species
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeSampleNameDialog

public ChangeSampleNameDialog(String newName,
                              String oldName,
                              String species,
                              String captureKit,
                              String rlimsProject,
                              String diseaseType,
                              SampleInfo theSample,
                              RunEditPanel editor,
                              com.smartgwt.client.data.Record newRecord,
                              com.google.gwt.user.client.Command followUp)
Create and show a dialog box that lets the user add a new Sample to the DB, or just change its name

Parameters:
newName - The user given new name for the Sample
oldName - The previous name for the Sample
species - The Species specified in the Sample's row
captureKit - The Capture Kit used to obtain the sequencing results
rlimsProject - The RLIMS Project where the sample was sequences
diseaseType - The Disease Type specified in the Sample's row
theSample - The sample the user might be modifying
editor - RunEditPanel to send the results of the user's actions
newRecord - The ListGrid Record that contains the new Sample
followUp - Command to be executed by doneCommand. Can be null
Method Detail

onKeyPress

public void onKeyPress(com.smartgwt.client.widgets.form.fields.events.KeyPressEvent event)
Fire off doSave if the user hits Enter or Return after filling in the name and species

Specified by:
onKeyPress in interface com.smartgwt.client.widgets.form.fields.events.KeyPressHandler
Parameters:
event - Key Press event. Nothing happens if this isn't Enter