edu.mayo.bsi.ngsportal.client
Class ChangeSampleNameDialog
java.lang.Object
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 |
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 SampleoldName - The previous name for the Samplespecies - The Species specified in the Sample's rowcaptureKit - The Capture Kit used to obtain the sequencing resultsrlimsProject - The RLIMS Project where the sample was sequencesdiseaseType - The Disease Type specified in the Sample's rowtheSample - The sample the user might be modifyingeditor - RunEditPanel to send the results of the user's actionsnewRecord - The ListGrid Record that contains the new SamplefollowUp - Command to be executed by doneCommand. Can be null
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