Changeset 3827
- Timestamp:
- Sep 8, 2010, 9:37:38 AM (13 years ago)
- Location:
- trunk/client/servlet/src/org/proteios
- Files:
-
- 40 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/action/directory/AddDirectory.java
r2832 r3827 32 32 import org.proteios.core.Directory; 33 33 import org.proteios.core.ItemFactory; 34 import org.proteios.gui.form.Form; 35 import org.proteios.gui.form.FormFactory; 34 import org.proteios.gui.form.*; 36 35 import se.lu.thep.waf.ActionException; 37 36 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 65 64 Directory newDir = factory.create(Directory.class); 66 65 newDir.setParent(parentDir); 67 newDir.setName(getValidString( FormFactory.VNAME));66 newDir.setName(getValidString(NameField.VPARAM)); 68 67 newDir.setDescription(getValidString(FormFactory.VDESCR)); 69 68 dc.saveItem(newDir); -
trunk/client/servlet/src/org/proteios/action/directory/SaveDirectory.java
r2823 r3827 32 32 import org.proteios.core.Directory; 33 33 import org.proteios.core.ItemFactory; 34 import org.proteios.gui.form.Form; 35 import org.proteios.gui.form.FormFactory; 34 import org.proteios.gui.form.*; 36 35 import se.lu.thep.waf.ActionException; 37 36 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 61 60 ItemFactory factory = new ItemFactory(dc); 62 61 Directory dir = factory.getById(Directory.class, projectId); 63 dir.setName(getValidString( FormFactory.VNAME));62 dir.setName(getValidString(NameField.VPARAM)); 64 63 dir.setDescription(getValidString(FormFactory.VDESCR)); 65 64 dc.commit(); -
trunk/client/servlet/src/org/proteios/action/extract/AddExtract.java
r3824 r3827 88 88 } 89 89 // 90 String name = getString( FormFactory.VNAME);90 String name = getString(NameField.VPARAM); 91 91 extract.setName(name); 92 92 // -
trunk/client/servlet/src/org/proteios/action/extract/AddLabeledExtract.java
r3824 r3827 85 85 } 86 86 // 87 String name = getString( FormFactory.VNAME);87 String name = getString(NameField.VPARAM); 88 88 labeledExtract.setName(name); 89 89 // -
trunk/client/servlet/src/org/proteios/action/extract/AddSecondaryExtract.java
r3824 r3827 76 76 creation.setComment("Extraction"); 77 77 // 78 String name = getString( FormFactory.VNAME);78 String name = getString(NameField.VPARAM); 79 79 extract.setName(name); 80 80 // -
trunk/client/servlet/src/org/proteios/action/extract/AddSecondaryLabeledExtract.java
r3824 r3827 88 88 } 89 89 // 90 String name = getString( FormFactory.VNAME);90 String name = getString(NameField.VPARAM); 91 91 labeledExtract.setName(name); 92 92 // -
trunk/client/servlet/src/org/proteios/action/extract/SaveExtract.java
r3824 r3827 63 63 Extract oldExtract = getItemFactory(dc2).getById(Extract.class, extractId); 64 64 // 65 String name = getString( FormFactory.VNAME);65 String name = getString(NameField.VPARAM); 66 66 extract.setName(name); 67 67 // -
trunk/client/servlet/src/org/proteios/action/extract/SaveLabeledExtract.java
r3824 r3827 66 66 extractId); 67 67 // 68 String name = getString( FormFactory.VNAME);68 String name = getString(NameField.VPARAM); 69 69 extract.setName(name); 70 70 // -
trunk/client/servlet/src/org/proteios/action/file/CreateProtocolFromFile.java
r2455 r3827 6 6 import java.security.InvalidParameterException; 7 7 import java.util.List; 8 9 8 import org.proteios.action.ProteiosAction; 10 9 import org.proteios.action.directory.ViewActiveDirectory; … … 14 13 import org.proteios.core.Protocol; 15 14 import org.proteios.core.ProtocolType; 16 import org.proteios.gui.form.FormFactory; 17 15 import org.proteios.gui.form.*; 18 16 import se.lu.thep.waf.ActionException; 19 17 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 50 48 "Please select only one file to use as a protocol"); 51 49 } 52 String name = getValidString( FormFactory.VNAME);50 String name = getValidString(NameField.VPARAM); 53 51 String descr = getValidString(FormFactory.VDESCR); 54 52 String type = getValidString(FormFactory.VTYPE); -
trunk/client/servlet/src/org/proteios/action/file/SaveFileProperties.java
r2511 r3827 33 33 import org.proteios.core.FileType; 34 34 import org.proteios.core.ItemFactory; 35 import org.proteios.gui.form.Form; 36 import org.proteios.gui.form.FormFactory; 35 import org.proteios.gui.form.*; 37 36 import se.lu.thep.waf.ActionException; 38 37 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 62 61 // 63 62 //String name = getString(FormFactory.VREQUIRED_FILENAME); 64 String name = getString( FormFactory.VNAME);63 String name = getString(NameField.VPARAM); 65 64 file.setName(name); 66 65 // -
trunk/client/servlet/src/org/proteios/action/group/AddGroup.java
r2693 r3827 28 28 package org.proteios.action.group; 29 29 30 import static org.proteios.gui.form.FormFactory.VDESCR;31 import static org.proteios.gui.form.FormFactory.VNAME;32 33 30 import org.proteios.action.ProteiosAction; 34 31 import org.proteios.action.user.ViewActiveUser; 35 32 import org.proteios.core.DbControl; 36 33 import org.proteios.core.Group; 34 import org.proteios.gui.form.*; 37 35 import se.lu.thep.waf.ActionException; 38 36 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 51 49 52 50 // Create 53 name = getValidString( VNAME);54 description = getValidString( VDESCR);51 name = getValidString(NameField.VPARAM); 52 description = getValidString(DescriptionField.VPARAM); 55 53 dc = newDbControl(); 56 54 group = getItemFactory(dc).create(Group.class); -
trunk/client/servlet/src/org/proteios/action/mascot/AddMascotParameterSetStorage.java
r3825 r3827 65 65 verifyParameters(form); 66 66 // Get values 67 String name = getString( FormFactory.VNAME);67 String name = getString(NameField.VPARAM); 68 68 String description = getString(FormFactory.VDESCR); 69 69 Integer parameterTemplateFileId = getInteger(VMASCOTPARAMETERTEMPLATEFILEID); -
trunk/client/servlet/src/org/proteios/action/mascot/NewMascotParameterSetStorage.java
r3825 r3827 61 61 String forwardTo = getValidString(ForwardField.VPARAM); 62 62 // Get and reset MascotParameterSetStorage name session attribute 63 String name = getSessionAttribute( FormFactory.VNAME);64 setSessionAttribute( FormFactory.VNAME, null);63 String name = getSessionAttribute(NameField.VPARAM); 64 setSessionAttribute(NameField.VPARAM, null); 65 65 // Get and reset MascotParameterSetStorage description session attribute 66 66 String description = getSessionAttribute(FormFactory.VDESCR); -
trunk/client/servlet/src/org/proteios/action/mascot/SaveMascotParameterSetStorage.java
r3825 r3827 228 228 */ 229 229 log.debug("##### - \"Save As...\" Step 2"); 230 String name = getValidString( FormFactory.VNAME);230 String name = getValidString(NameField.VPARAM); 231 231 log.debug("name = \"" + name + "\""); 232 232 String description = getValidString(FormFactory.VDESCR); -
trunk/client/servlet/src/org/proteios/action/mascot/SelectMascotParameterFileStep1a.java
r3823 r3827 56 56 Form form = getFormFactory().getNewMascotParameterSetStorageForm(null); 57 57 verifyParameters(form); 58 String name = getString( FormFactory.VNAME);58 String name = getString(NameField.VPARAM); 59 59 String description = getString(FormFactory.VDESCR); 60 60 Integer parameterTemplateFileId = getInteger(AddMascotParameterSetStorage.VMASCOTPARAMETERTEMPLATEFILEID); … … 92 92 // Set session attributes for current field values 93 93 setSessionAttribute(ViewActiveDirectory.VDIRID, dirId); 94 setSessionAttribute( FormFactory.VNAME, name);94 setSessionAttribute(NameField.VPARAM, name); 95 95 setSessionAttribute(FormFactory.VDESCR, description); 96 96 setSessionAttribute(AddMascotParameterSetStorage.VMASCOTPARAMETERTEMPLATEFILEID, parameterTemplateFileId); -
trunk/client/servlet/src/org/proteios/action/mascot/SelectMascotParameterFileStep1b.java
r3825 r3827 54 54 * Get session parameters 55 55 */ 56 String name = getSessionAttribute( FormFactory.VNAME);56 String name = getSessionAttribute(NameField.VPARAM); 57 57 String description = getSessionAttribute(FormFactory.VDESCR); 58 58 Integer parameterTemplateFileId = getSessionAttribute(AddMascotParameterSetStorage.VMASCOTPARAMETERTEMPLATEFILEID); -
trunk/client/servlet/src/org/proteios/action/news/AddNews.java
r2380 r3827 28 28 package org.proteios.action.news; 29 29 30 import java.util.Date; 30 31 import org.proteios.action.ProteiosAction; 31 32 import org.proteios.core.DbControl; 32 33 import org.proteios.core.ItemFactory; 33 34 import org.proteios.core.News; 34 import org.proteios.gui.form.Form; 35 import org.proteios.gui.form.FormFactory; 35 import org.proteios.gui.form.*; 36 36 import se.lu.thep.waf.ActionException; 37 37 import se.lu.thep.waf.constraints.InvalidParameterValue; 38 import java.util.Date;39 38 40 39 /** … … 61 60 ItemFactory factory = getItemFactory(dc); 62 61 News news = factory.create(News.class); 63 String name = getString( FormFactory.VNAME);62 String name = getString(NameField.VPARAM); 64 63 String descr = getString(FormFactory.VDESCR); 65 64 Date startDate = getValidDate(FormFactory.VSTARTDATE); -
trunk/client/servlet/src/org/proteios/action/news/SaveNews.java
r2380 r3827 28 28 package org.proteios.action.news; 29 29 30 import java.util.Date; 30 31 import org.proteios.action.ProteiosAction; 31 32 import org.proteios.core.DbControl; 32 33 import org.proteios.core.ItemFactory; 33 34 import org.proteios.core.News; 34 import org.proteios.gui.form.Form; 35 import org.proteios.gui.form.FormFactory; 35 import org.proteios.gui.form.*; 36 36 import se.lu.thep.waf.ActionException; 37 37 import se.lu.thep.waf.constraints.InvalidParameterValue; 38 import java.util.Date;39 38 40 39 /** … … 65 64 * Set new values 66 65 */ 67 String name = getString( FormFactory.VNAME);66 String name = getString(NameField.VPARAM); 68 67 String descr = getString(FormFactory.VDESCR); 69 68 Date startDate = getValidDate(FormFactory.VSTARTDATE); -
trunk/client/servlet/src/org/proteios/action/omssa/AddOMSSAParameterSetStorage.java
r3825 r3827 65 65 verifyParameters(form); 66 66 // Get values 67 String name = getString( FormFactory.VNAME);67 String name = getString(NameField.VPARAM); 68 68 String description = getString(FormFactory.VDESCR); 69 69 Integer parameterTemplateFileId = getInteger(VOMSSAPARAMETERTEMPLATEFILEID); -
trunk/client/servlet/src/org/proteios/action/omssa/NewOMSSAParameterSetStorage.java
r3825 r3827 61 61 String forwardTo = getValidString(ForwardField.VPARAM); 62 62 // Get and reset OMSSAParameterSetStorage name session attribute 63 String name = getSessionAttribute( FormFactory.VNAME);64 setSessionAttribute( FormFactory.VNAME, null);63 String name = getSessionAttribute(NameField.VPARAM); 64 setSessionAttribute(NameField.VPARAM, null); 65 65 // Get and reset OMSSAParameterSetStorage description session attribute 66 66 String description = getSessionAttribute(FormFactory.VDESCR); -
trunk/client/servlet/src/org/proteios/action/omssa/SaveOMSSAParameterSetStorage.java
r3825 r3827 278 278 */ 279 279 log.debug("##### - \"Save As...\" Step 2"); 280 String name = getValidString( FormFactory.VNAME);280 String name = getValidString(NameField.VPARAM); 281 281 log.debug("name = \"" + name + "\""); 282 282 String description = getValidString(FormFactory.VDESCR); -
trunk/client/servlet/src/org/proteios/action/omssa/SelectOMSSAParameterFileStep1a.java
r3823 r3827 56 56 Form form = getFormFactory().getNewOMSSAParameterSetStorageForm(null); 57 57 verifyParameters(form); 58 String name = getString( FormFactory.VNAME);58 String name = getString(NameField.VPARAM); 59 59 String description = getString(FormFactory.VDESCR); 60 60 Integer parameterTemplateFileId = getInteger(AddOMSSAParameterSetStorage.VOMSSAPARAMETERTEMPLATEFILEID); … … 92 92 // Set session attributes for current field values 93 93 setSessionAttribute(ViewActiveDirectory.VDIRID, dirId); 94 setSessionAttribute( FormFactory.VNAME, name);94 setSessionAttribute(NameField.VPARAM, name); 95 95 setSessionAttribute(FormFactory.VDESCR, description); 96 96 setSessionAttribute(AddOMSSAParameterSetStorage.VOMSSAPARAMETERTEMPLATEFILEID, parameterTemplateFileId); -
trunk/client/servlet/src/org/proteios/action/omssa/SelectOMSSAParameterFileStep1b.java
r3825 r3827 54 54 * Get session parameters 55 55 */ 56 String name = getSessionAttribute( FormFactory.VNAME);56 String name = getSessionAttribute(NameField.VPARAM); 57 57 String description = getSessionAttribute(FormFactory.VDESCR); 58 58 Integer parameterTemplateFileId = getSessionAttribute(AddOMSSAParameterSetStorage.VOMSSAPARAMETERTEMPLATEFILEID); -
trunk/client/servlet/src/org/proteios/action/peakListSet/CreateFileExportJob.java
r3821 r3827 60 60 Integer plsId = getValidInteger(ItemIdField.VPARAM); 61 61 Integer pluginDefId = getValidInteger(PluginIdField.VPARAM); 62 String filename = getValidString( FormFactory.VNAME);62 String filename = getValidString(NameField.VPARAM); 63 63 /*********************************************************************** 64 64 * Create job -
trunk/client/servlet/src/org/proteios/action/peakListSet/SavePeakListSet.java
r2381 r3827 31 31 import org.proteios.core.DbControl; 32 32 import org.proteios.core.PeakListSet; 33 import org.proteios.gui.form.Form; 34 import org.proteios.gui.form.FormFactory; 33 import org.proteios.gui.form.*; 35 34 import se.lu.thep.waf.ActionException; 36 35 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 58 57 */ 59 58 Integer plsId = getValidInteger(FormFactory.VID); 60 String name = getValidString( FormFactory.VNAME);59 String name = getValidString(NameField.VPARAM); 61 60 String descr = getValidString(FormFactory.VDESCR); 62 61 DbControl dc = newDbControl(); -
trunk/client/servlet/src/org/proteios/action/project/AddProject.java
r3411 r3827 28 28 package org.proteios.action.project; 29 29 30 import java.util.ArrayList; 31 import java.util.Collection; 32 import java.util.Set; 33 import java.util.TreeSet; 30 34 import org.proteios.action.ProteiosAction; 31 35 import org.proteios.core.BaseException; … … 38 42 import org.proteios.core.Project; 39 43 import org.proteios.core.User; 40 import org.proteios.gui.form.Form; 41 import org.proteios.gui.form.FormFactory; 44 import org.proteios.gui.form.*; 42 45 import se.lu.thep.waf.ActionException; 43 46 import se.lu.thep.waf.constraints.InvalidParameterValue; 44 import java.util.ArrayList;45 import java.util.Collection;46 import java.util.Set;47 import java.util.TreeSet;48 47 49 48 /** … … 74 73 form = getFormFactory().getForm(Project.class,null); 75 74 verifyParameters(form); 76 name = getString( FormFactory.VNAME);75 name = getString(NameField.VPARAM); 77 76 description = getString(FormFactory.VDESCR); 78 77 projectType = getInteger(FormFactory.VPROJECTTYPE); -
trunk/client/servlet/src/org/proteios/action/project/SaveProject.java
r3316 r3827 31 31 import org.proteios.core.DbControl; 32 32 import org.proteios.core.Project; 33 import org.proteios.gui.form.Form; 34 import org.proteios.gui.form.FormFactory; 33 import org.proteios.gui.form.*; 35 34 import se.lu.thep.waf.ActionException; 36 35 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 50 49 // All is good get values 51 50 Integer projectId = getValidInteger(FormFactory.VID); 52 String name = getValidString( FormFactory.VNAME);51 String name = getValidString(NameField.VPARAM); 53 52 String description = getValidString(FormFactory.VDESCR); 54 53 Integer projectType = getValidInteger(FormFactory.VPROJECTTYPE); -
trunk/client/servlet/src/org/proteios/action/protocol/AddProtocol.java
r3825 r3827 56 56 verifyParameters(form); 57 57 // Get values 58 String name = getString( FormFactory.VNAME);58 String name = getString(NameField.VPARAM); 59 59 String description = getString(FormFactory.VDESCR); 60 60 String type = getString(FormFactory.VTYPE); -
trunk/client/servlet/src/org/proteios/action/protocol/NewProtocol.java
r3825 r3827 63 63 String forwardTo = getValidString(ForwardField.VPARAM); 64 64 // Get and reset protocol name session attribute 65 String name = getSessionAttribute( FormFactory.VNAME);66 setSessionAttribute( FormFactory.VNAME, null);65 String name = getSessionAttribute(NameField.VPARAM); 66 setSessionAttribute(NameField.VPARAM, null); 67 67 // Get and reset protocol description session attribute 68 68 String description = getSessionAttribute(FormFactory.VDESCR); -
trunk/client/servlet/src/org/proteios/action/protocol/ResetProtocolFile.java
r3825 r3827 58 58 Form form = getFormFactory().getNewProtocolForm(null); 59 59 verifyParameters(form); 60 String name = getString( FormFactory.VNAME);60 String name = getString(NameField.VPARAM); 61 61 String description = getString(FormFactory.VDESCR); 62 62 String type = getString(FormFactory.VTYPE); … … 96 96 // Set session attributes for current field values 97 97 setSessionAttribute(ViewActiveDirectory.VDIRID, dirId); 98 setSessionAttribute( FormFactory.VNAME, name);98 setSessionAttribute(NameField.VPARAM, name); 99 99 setSessionAttribute(FormFactory.VDESCR, description); 100 100 setSessionAttribute(FormFactory.VTYPE, type); -
trunk/client/servlet/src/org/proteios/action/protocol/SelectProtocolFileStep1a.java
r3825 r3827 56 56 Form form = getFormFactory().getNewProtocolForm(null); 57 57 verifyParameters(form); 58 String name = getString( FormFactory.VNAME);58 String name = getString(NameField.VPARAM); 59 59 String description = getString(FormFactory.VDESCR); 60 60 String type = getString(FormFactory.VTYPE); … … 94 94 // Set session attributes for current field values 95 95 setSessionAttribute(ViewActiveDirectory.VDIRID, dirId); 96 setSessionAttribute( FormFactory.VNAME, name);96 setSessionAttribute(NameField.VPARAM, name); 97 97 setSessionAttribute(FormFactory.VDESCR, description); 98 98 setSessionAttribute(FormFactory.VTYPE, type); -
trunk/client/servlet/src/org/proteios/action/protocol/SelectProtocolFileStep1b.java
r3825 r3827 55 55 * Get session parameters 56 56 */ 57 String name = getSessionAttribute( FormFactory.VNAME);57 String name = getSessionAttribute(NameField.VPARAM); 58 58 String description = getSessionAttribute(FormFactory.VDESCR); 59 59 String type = getSessionAttribute(FormFactory.VTYPE); -
trunk/client/servlet/src/org/proteios/action/user/SaveMyProfileProperties.java
r3608 r3827 31 31 import org.proteios.core.DbControl; 32 32 import org.proteios.core.User; 33 import org.proteios.gui.form.Form; 34 import org.proteios.gui.form.FormFactory; 33 import org.proteios.gui.form.*; 35 34 import se.lu.thep.waf.ActionException; 36 35 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 54 53 verifyParameters(form); 55 54 56 name = getString( FormFactory.VNAME);55 name = getString(NameField.VPARAM); 57 56 email = getString(FormFactory.VEMAIL); 58 57 descr = getString(FormFactory.VDESCR); -
trunk/client/servlet/src/org/proteios/action/user/SaveUserProperties.java
r3608 r3827 31 31 import org.proteios.core.DbControl; 32 32 import org.proteios.core.User; 33 import org.proteios.gui.form.Form; 34 import org.proteios.gui.form.FormFactory; 33 import org.proteios.gui.form.*; 35 34 import se.lu.thep.waf.ActionException; 36 35 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 56 55 57 56 userId = getValidInteger(FormFactory.VID); 58 name = getString( FormFactory.VNAME);57 name = getString(NameField.VPARAM); 59 58 email = getString(FormFactory.VEMAIL); 60 59 descr = getString(FormFactory.VDESCR); -
trunk/client/servlet/src/org/proteios/action/xTandemInput/AddXTandemParameterSetStorage.java
r3825 r3827 65 65 verifyParameters(form); 66 66 // Get values 67 String name = getString( FormFactory.VNAME);67 String name = getString(NameField.VPARAM); 68 68 String description = getString(FormFactory.VDESCR); 69 69 Integer parameterTemplateFileId = getInteger(VXTANDEMPARAMETERTEMPLATEFILEID); -
trunk/client/servlet/src/org/proteios/action/xTandemInput/NewXTandemParameterSetStorage.java
r3825 r3827 61 61 String forwardTo = getValidString(ForwardField.VPARAM); 62 62 // Get and reset XTandemParameterSetStorage name session attribute 63 String name = getSessionAttribute( FormFactory.VNAME);64 setSessionAttribute( FormFactory.VNAME, null);63 String name = getSessionAttribute(NameField.VPARAM); 64 setSessionAttribute(NameField.VPARAM, null); 65 65 // Get and reset XTandemParameterSetStorage description session attribute 66 66 String description = getSessionAttribute(FormFactory.VDESCR); -
trunk/client/servlet/src/org/proteios/action/xTandemInput/SaveXTandemParameterSetStorage.java
r3825 r3827 332 332 */ 333 333 log.debug("##### - \"Save As...\" Step 2"); 334 String name = getValidString( FormFactory.VNAME);334 String name = getValidString(NameField.VPARAM); 335 335 log.debug("name = \"" + name + "\""); 336 336 String description = getValidString(FormFactory.VDESCR); -
trunk/client/servlet/src/org/proteios/action/xTandemInput/SelectXTandemParameterFileStep1a.java
r3823 r3827 56 56 Form form = getFormFactory().getNewXTandemParameterSetStorageForm(null); 57 57 verifyParameters(form); 58 String name = getString( FormFactory.VNAME);58 String name = getString(NameField.VPARAM); 59 59 String description = getString(FormFactory.VDESCR); 60 60 Integer parameterTemplateFileId = getInteger(AddXTandemParameterSetStorage.VXTANDEMPARAMETERTEMPLATEFILEID); … … 92 92 // Set session attributes for current field values 93 93 setSessionAttribute(ViewActiveDirectory.VDIRID, dirId); 94 setSessionAttribute( FormFactory.VNAME, name);94 setSessionAttribute(NameField.VPARAM, name); 95 95 setSessionAttribute(FormFactory.VDESCR, description); 96 96 setSessionAttribute(AddXTandemParameterSetStorage.VXTANDEMPARAMETERTEMPLATEFILEID, parameterTemplateFileId); -
trunk/client/servlet/src/org/proteios/action/xTandemInput/SelectXTandemParameterFileStep1b.java
r3825 r3827 54 54 * Get session parameters 55 55 */ 56 String name = getSessionAttribute( FormFactory.VNAME);56 String name = getSessionAttribute(NameField.VPARAM); 57 57 String description = getSessionAttribute(FormFactory.VDESCR); 58 58 Integer parameterTemplateFileId = getSessionAttribute(AddXTandemParameterSetStorage.VXTANDEMPARAMETERTEMPLATEFILEID); -
trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java
r3826 r3827 207 207 public static final VInteger VANNOTYPEID = new VInteger("annotationTypeId",0, true); 208 208 public static final VInteger VGROUPID = new VInteger("groupId", 1, false); 209 public static final VString VNAME = NameField.VPARAM;210 209 public static final VString VUSERNAME = new VString("username", 1, 32, true); 211 210 public static final VString VANNONAME = new VString("annotationName", 1,64, false); … … 2318 2317 // Properties fieldset 2319 2318 Fieldset properties = new Fieldset(); 2320 properties.getLegendTitle().setTitle( 2321 "ImportHitsWizardStep1FormLegend"); 2319 properties.getLegendTitle().setTitle("ImportHitsWizardStep1FormLegend"); 2322 2320 form.addFieldset(properties); 2323 2321 /* … … 2349 2347 */ 2350 2348 TextField<String> forwardF = new ForwardField(); 2351 forwardF 2352 .setValue(actionFactory.getId(ImportHitsWizardStep1b.class)); 2349 forwardF.setValue(actionFactory.getId(ImportHitsWizardStep1b.class)); 2353 2350 properties.add(forwardF); 2354 2351 // Gel id (optional) … … 3628 3625 fs.getLegendTitle().setTitle("NewMascotParameterSetStorage"); 3629 3626 // MascotParameterSetStorage Name 3630 TextField<String> nameF = createField(VNAME); 3631 nameF.setLabel("Name"); 3627 TextField<String> nameF = new NameField(); 3632 3628 fs.add(nameF); 3633 3629 nameF.setValue("Mascot parameter set storage"); … … 3742 3738 fs.getLegendTitle().setTitle("SaveAsMascotParameterSetStorage"); 3743 3739 // MascotParameterSetStorage Name 3744 TextField<String> nameF = createField(VNAME); 3745 nameF.setLabel("Name"); 3740 TextField<String> nameF = new NameField(); 3746 3741 fs.add(nameF); 3747 3742 nameF.setValue("Mascot parameter set storage"); … … 4764 4759 fs.getLegendTitle().setTitle("NewOMSSAParameterSetStorage"); 4765 4760 // OMSSAParameterSetStorage Name 4766 TextField<String> nameF = createField(VNAME); 4767 nameF.setLabel("Name"); 4761 TextField<String> nameF = new NameField(); 4768 4762 fs.add(nameF); 4769 4763 nameF.setValue("OMSSA parameter set storage"); … … 4859 4853 fs.getLegendTitle().setTitle("SaveAsOMSSAParameterSetStorage"); 4860 4854 // OMSSAParameterSetStorage Name 4861 TextField<String> nameF = createField(VNAME); 4862 nameF.setLabel("Name"); 4855 TextField<String> nameF = new NameField(); 4863 4856 fs.add(nameF); 4864 4857 nameF.setValue("OMSSA parameter set storage"); … … 5785 5778 fs.getLegendTitle().setTitle("NewXTandemParameterSetStorage"); 5786 5779 // XTandemParameterSetStorage Name 5787 TextField<String> nameF = createField(VNAME); 5788 nameF.setLabel("Name"); 5780 TextField<String> nameF = new NameField(); 5789 5781 fs.add(nameF); 5790 5782 nameF.setValue("X!Tandem parameter set storage"); … … 5861 5853 fs.getLegendTitle().setTitle("SaveAsXTandemParameterSetStorage"); 5862 5854 // XTandemParameterSetStorage Name 5863 TextField<String> nameF = createField(VNAME); 5864 nameF.setLabel("Name"); 5855 TextField<String> nameF = new NameField(); 5865 5856 fs.add(nameF); 5866 5857 nameF.setValue("X!Tandem parameter set storage"); … … 9355 9346 fs.getLegendTitle().setTitle("Protocol"); 9356 9347 // Protocol Name 9357 TextField<String> nameF = createField(VNAME);9348 TextField<String> nameF = new NameField(); 9358 9349 fs.add(nameF); 9359 nameF.setLabel("Name");9360 9350 // Protocol Description 9361 9351 TextArea descF = new TextArea(VDESCR); … … 9417 9407 fs.getLegendTitle().setTitle("NewProtocol"); 9418 9408 // Protocol Name 9419 TextField<String> nameF = createField(VNAME); 9420 nameF.setLabel("Name"); 9409 TextField<String> nameF = new NameField(); 9421 9410 fs.add(nameF); 9422 9411 if (protocol != null) … … 9559 9548 if (Nameable.class.isAssignableFrom(cls)) 9560 9549 { 9561 TextField<String> nameF = createField(VNAME);9550 TextField<String> nameF = new NameField(); 9562 9551 fs.add(nameF); 9563 nameF.setLabel("Name");9564 9552 TextArea descF = new TextArea(VDESCR); 9565 9553 descF.setLabel("Description");
Note: See TracChangeset
for help on using the changeset viewer.