Changeset 3840
- Timestamp:
- Sep 9, 2010, 3:16:45 PM (13 years ago)
- 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 99 99 toolbar = new Toolbar(); 100 100 101 step2 = getFormFactory().getImportHitsWizardStep2Form(project);101 step2 = new ImportHitsWizardStep2Form(project, getActionFactory().getId(ImportHitsWizardStep2b.class)); 102 102 step2.setToolbar(toolbar); 103 103 -
trunk/client/servlet/src/org/proteios/action/hit/ImportHitsWizardStep2a.java
r3821 r3840 57 57 DbControl dc = newDbControl(); 58 58 Project project = isProjectActive(dc); 59 Form impForm = getFormFactory().getImportHitsWizardStep2Form(project);59 Form impForm = new ImportHitsWizardStep2Form(project, getActionFactory().getId(ImportHitsWizardStep2b.class)); 60 60 verifyParameters(impForm); 61 61 saveToSession(ExternalPlateIdField.VPARAM); -
trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java
r3839 r3840 2153 2153 2154 2154 // 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 fieldset2163 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 selection2169 * 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" button2176 * 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 file2192 * selection action called by ImportHitsWizardStep1a.2193 */2194 TextField<String> forwardF = new ForwardField();2195 forwardF2196 .setValue(actionFactory.getId(ImportHitsWizardStep2b.class));2197 properties.add(forwardF);2198 // Plate id selector2199 Select<VString> plateIdS = new PlateSelect(dc, project);2200 properties.add(plateIdS);2201 }2202 return form;2203 }2204 2205 2155 2206 2156 public Form getImportHitsWizardStep3Form(Project project)
Note: See TracChangeset
for help on using the changeset viewer.