Changeset 3840


Ignore:
Timestamp:
Sep 9, 2010, 3:16:45 PM (13 years ago)
Author:
Gregory Vincic
Message:

Refs #698. Removed getImportHitsWizardStep2Form method from FormFactory

Location:
trunk/client/servlet/src/org/proteios
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/org/proteios/action/hit/ImportHitsWizard.java

    r3839 r3840  
    9999    toolbar = new Toolbar();
    100100
    101     step2 = getFormFactory().getImportHitsWizardStep2Form(project);
     101    step2 = new ImportHitsWizardStep2Form(project, getActionFactory().getId(ImportHitsWizardStep2b.class));
    102102    step2.setToolbar(toolbar);
    103103
  • trunk/client/servlet/src/org/proteios/action/hit/ImportHitsWizardStep2a.java

    r3821 r3840  
    5757    DbControl dc = newDbControl();
    5858    Project project = isProjectActive(dc);
    59     Form impForm = getFormFactory().getImportHitsWizardStep2Form(project);
     59    Form impForm = new ImportHitsWizardStep2Form(project, getActionFactory().getId(ImportHitsWizardStep2b.class));
    6060    verifyParameters(impForm);
    6161    saveToSession(ExternalPlateIdField.VPARAM);
  • trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java

    r3839 r3840  
    21532153
    21542154 // Cleaning up from here
    2155 
    2156   public Form getImportHitsWizardStep2Form(Project project)
    2157   {
    2158     DbControl dc = project.getDbControl();
    2159     Form form = new Form("importHitsWizardStep2Form");
    2160     if (dc != null && dc.isConnected())
    2161     {
    2162       // Properties fieldset
    2163       Fieldset properties = new Fieldset();
    2164       properties.getLegendTitle().setTitle(
    2165         "ImportHitsWizardStep2FormLegend");
    2166       form.addFieldset(properties);
    2167       /*
    2168        * This hidden text field sets title to be used for file selection
    2169        * form.
    2170        */
    2171       TextField<String> titleF = new TitleField();
    2172       titleF.setValue("Step 2a. Select PeakList File[s]");
    2173       properties.add(titleF);
    2174       /*
    2175        * This hidden text field sets name to be used for the "Next" button
    2176        * in the file selection form.
    2177        */
    2178       TextField<String> buttonNameF = new NextButtonNameField();
    2179       buttonNameF.setValue("Import");
    2180       properties.add(buttonNameF);
    2181       /*
    2182        * Hidden text field for storing plugin id to use.
    2183        */
    2184       TextField<Integer> pluginIdF = new PluginIdField();
    2185       PluginDefinition pluginDef = PluginDefinition.getByClassName(
    2186         project.getDbControl(),
    2187         "org.proteios.plugins.PeakListToHitPlugin");
    2188       pluginIdF.setValue(pluginDef.getId());
    2189       properties.add(pluginIdF);
    2190       /*
    2191        * This hidden forward field sets action id used by the file
    2192        * selection action called by ImportHitsWizardStep1a.
    2193        */
    2194       TextField<String> forwardF = new ForwardField();
    2195       forwardF
    2196         .setValue(actionFactory.getId(ImportHitsWizardStep2b.class));
    2197       properties.add(forwardF);
    2198       // Plate id selector
    2199       Select<VString> plateIdS = new PlateSelect(dc, project);
    2200       properties.add(plateIdS);
    2201     }
    2202     return form;
    2203   }
    2204 
    22052155
    22062156  public Form getImportHitsWizardStep3Form(Project project)
Note: See TracChangeset for help on using the changeset viewer.