Changeset 3824
- Timestamp:
- Sep 8, 2010, 9:11:02 AM (13 years ago)
- Location:
- trunk/client/servlet/src/org/proteios
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/action/extract/AddExtract.java
r3818 r3824 28 28 package org.proteios.action.extract; 29 29 30 31 32 30 import org.proteios.action.ProteiosAction; 33 31 import org.proteios.core.CreationEvent; … … 36 34 import org.proteios.core.ItemFactory; 37 35 import org.proteios.core.Sample; 36 import org.proteios.gui.form.*; 38 37 import se.lu.thep.waf.ActionException; 39 38 import se.lu.thep.waf.constraints.InvalidParameterValue; 40 import org.proteios.gui.form.*;41 39 42 40 /** … … 103 101 extract.setOriginalQuantityInMicroLiters(extractQuantity); 104 102 extract 105 .setConcentrationInGramsPerLiter(getValidFloat( FormFactory.VCONCENTRATION));103 .setConcentrationInGramsPerLiter(getValidFloat(ConcentrationField.VPARAM)); 106 104 dc.commit(); 107 105 setMessage("Extract saved"); -
trunk/client/servlet/src/org/proteios/action/extract/AddLabeledExtract.java
r3818 r3824 28 28 package org.proteios.action.extract; 29 29 30 31 32 30 import org.proteios.action.ProteiosAction; 33 31 import org.proteios.core.CreationEvent; … … 37 35 import org.proteios.core.Label; 38 36 import org.proteios.core.LabeledExtract; 37 import org.proteios.gui.form.*; 39 38 import se.lu.thep.waf.ActionException; 40 39 import se.lu.thep.waf.constraints.InvalidParameterValue; 41 import org.proteios.gui.form.*;42 40 43 41 /** … … 100 98 labeledExtract.setOriginalQuantityInMicroLiters(extractQuantity); 101 99 labeledExtract 102 .setConcentrationInGramsPerLiter(getValidFloat( FormFactory.VCONCENTRATION));100 .setConcentrationInGramsPerLiter(getValidFloat(ConcentrationField.VPARAM)); 103 101 dc.commit(); 104 102 setMessage("Extract saved"); -
trunk/client/servlet/src/org/proteios/action/extract/AddSecondaryExtract.java
r3818 r3824 28 28 package org.proteios.action.extract; 29 29 30 31 32 30 import org.proteios.action.ProteiosAction; 33 31 import org.proteios.core.CreationEvent; … … 35 33 import org.proteios.core.Extract; 36 34 import org.proteios.core.ItemFactory; 35 import org.proteios.gui.form.*; 37 36 import se.lu.thep.waf.ActionException; 38 37 import se.lu.thep.waf.constraints.InvalidParameterValue; 39 import org.proteios.gui.form.*;40 38 41 39 /** … … 91 89 extract.setOriginalQuantityInMicroLiters(extractQuantity); 92 90 extract 93 .setConcentrationInGramsPerLiter(getValidFloat( FormFactory.VCONCENTRATION));91 .setConcentrationInGramsPerLiter(getValidFloat(ConcentrationField.VPARAM)); 94 92 dc.commit(); 95 93 setMessage("Extract saved"); -
trunk/client/servlet/src/org/proteios/action/extract/AddSecondaryLabeledExtract.java
r3818 r3824 28 28 package org.proteios.action.extract; 29 29 30 31 32 30 import org.proteios.action.ProteiosAction; 33 31 import org.proteios.core.CreationEvent; … … 37 35 import org.proteios.core.Label; 38 36 import org.proteios.core.LabeledExtract; 37 import org.proteios.gui.form.*; 39 38 import se.lu.thep.waf.ActionException; 40 39 import se.lu.thep.waf.constraints.InvalidParameterValue; 41 import org.proteios.gui.form.*;42 40 43 41 /** … … 103 101 labeledExtract.setOriginalQuantityInMicroLiters(extractQuantity); 104 102 labeledExtract 105 .setConcentrationInGramsPerLiter(getValidFloat( FormFactory.VCONCENTRATION));103 .setConcentrationInGramsPerLiter(getValidFloat(ConcentrationField.VPARAM)); 106 104 dc.commit(); 107 105 setMessage("Extract saved"); -
trunk/client/servlet/src/org/proteios/action/extract/SaveExtract.java
r3818 r3824 28 28 package org.proteios.action.extract; 29 29 30 31 30 import org.proteios.action.ProteiosAction; 32 31 import org.proteios.core.DbControl; … … 34 33 import org.proteios.core.ItemFactory; 35 34 import org.proteios.core.UpdateEvent; 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 org.proteios.gui.form.*;39 38 40 39 /** … … 78 77 extract.setOriginalQuantityInMicroLiters(originalQuantity); 79 78 // 80 Float concentration = getValidFloat( FormFactory.VCONCENTRATION);79 Float concentration = getValidFloat(ConcentrationField.VPARAM); 81 80 extract.setConcentrationInGramsPerLiter(concentration); 82 81 // -
trunk/client/servlet/src/org/proteios/action/extract/SaveLabeledExtract.java
r3818 r3824 28 28 package org.proteios.action.extract; 29 29 30 31 32 30 import org.proteios.action.ProteiosAction; 33 31 import org.proteios.core.DbControl; … … 36 34 import org.proteios.core.LabeledExtract; 37 35 import org.proteios.core.UpdateEvent; 36 import org.proteios.gui.form.*; 38 37 import se.lu.thep.waf.ActionException; 39 38 import se.lu.thep.waf.constraints.InvalidParameterValue; 40 import org.proteios.gui.form.*;41 39 42 40 /** … … 86 84 extract.setOriginalQuantityInMicroLiters(originalQuantity); 87 85 // 88 Float concentration = getValidFloat( FormFactory.VCONCENTRATION);86 Float concentration = getValidFloat(ConcentrationField.VPARAM); 89 87 extract.setConcentrationInGramsPerLiter(concentration); 90 88 // -
trunk/client/servlet/src/org/proteios/action/hit/CombineHits.java
r3817 r3824 28 28 package org.proteios.action.hit; 29 29 30 import java.util.ArrayList; 31 import java.util.List; 30 32 import org.proteios.action.ProteiosAction; 31 33 import org.proteios.action.job.ListJobs; … … 51 53 import se.lu.thep.waf.constraints.VBoolean; 52 54 import se.lu.thep.waf.constraints.VString; 53 import java.util.ArrayList;54 import java.util.List;55 56 55 57 56 /** … … 84 83 log.debug("gelId:" + gelId); 85 84 log.debug("localSampleId:" + localSampleId); 86 String filename = getValidString(F ormFactory.VFILENAME);85 String filename = getValidString(FileNameField.VPARAM); 87 86 String randomString = getValidString(FormFactory.VRANDOMSTRING); 88 87 Float fdrCutOff = getValidFloat(FormFactory.VFDR); -
trunk/client/servlet/src/org/proteios/action/hit/CreateExclusionListJob.java
r3397 r3824 40 40 import org.proteios.core.Project; 41 41 import org.proteios.core.StringParameterType; 42 import org.proteios.gui.form.FormFactory; 43 42 import org.proteios.gui.form.*; 44 43 import se.lu.thep.waf.ActionException; 45 44 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 79 78 String localSampleId = getString(FormFactory.VLOCALSAMPLEIDSELECTED); 80 79 log.debug("localSampleId:" + localSampleId); 81 String filename = getValidString(F ormFactory.VFILENAME);80 String filename = getValidString(FileNameField.VPARAM); 82 81 String format = getValidString(VFORMAT); 83 82 String externalId = getValidString(VEXTERNALID); -
trunk/client/servlet/src/org/proteios/action/hit/CreateProteinAssemblyJob.java
r3816 r3824 42 42 import org.proteios.core.StringParameterType; 43 43 import org.proteios.gui.form.*; 44 45 44 import se.lu.thep.waf.ActionException; 46 45 import se.lu.thep.waf.constraints.InvalidParameterValue; … … 91 90 log.debug("gelId:" + gelId); 92 91 log.debug("localSampleId:" + localSampleId); 93 String filename = getValidString(F ormFactory.VFILENAME);92 String filename = getValidString(FileNameField.VPARAM); 94 93 String label = getValidString(VLABEL); 95 94 String decoyPrefix = getValidString(VDECOYPREFIX); -
trunk/client/servlet/src/org/proteios/action/hit/ExclusionList.java
r3593 r3824 28 28 package org.proteios.action.hit; 29 29 30 import java.util.ArrayList; 31 import java.util.List; 30 32 import org.proteios.ActionLink; 31 33 import org.proteios.Context; … … 36 38 import org.proteios.core.Hit; 37 39 import org.proteios.core.Project; 40 import org.proteios.gui.ColumnContainer; 38 41 import org.proteios.gui.Title; 39 42 import org.proteios.gui.TitledWindow; 40 43 import org.proteios.gui.Toolbar; 41 import org.proteios.gui.form.Checkbox; 42 import org.proteios.gui.form.Fieldset; 43 import org.proteios.gui.form.Form; 44 import org.proteios.gui.form.FormFactory; 45 import org.proteios.gui.form.Option; 46 import org.proteios.gui.form.Select; 47 import org.proteios.gui.form.TextField; 44 import org.proteios.gui.form.*; 48 45 import org.proteios.gui.layout.RowLayout; 49 import org.proteios.gui.ColumnContainer;50 51 46 import se.lu.thep.waf.ActionException; 52 47 import se.lu.thep.waf.constraints.InvalidParameterValue; 53 48 import se.lu.thep.waf.constraints.VBoolean; 54 49 import se.lu.thep.waf.constraints.VString; 55 56 import java.util.ArrayList;57 import java.util.List;58 50 59 51 /** … … 97 89 properties.add(getFormFactory().selectLocalSampleId(dc, project)); 98 90 TextField<String> nameF = new TextField<String>( 99 F ormFactory.VFILENAME);91 FileNameField.VPARAM); 100 92 nameF.setValue("ExclusionList.txt"); 101 93 nameF.setLabel("OutputFileName"); -
trunk/client/servlet/src/org/proteios/gui/form/ConcentrationField.java
r3791 r3824 1 1 /* 2 $Id$ 2 $Id$ 3 4 Copyright (C) 2010 Gregory Vincic 5 6 Files are copyright by their respective authors. The contributions to 7 files where copyright is not explicitly stated can be traced with the 8 source code revision system. 9 10 This file is part of Proteios. 11 Available at http://www.proteios.org/ 12 13 Proteios is free software; you can redistribute it and/or 14 modify it under the terms of the GNU General Public License 15 as published by the Free Software Foundation; either version 2 16 of the License, or (at your option) any later version. 17 18 Proteios is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 GNU General Public License for more details. 22 23 You should have received a copy of the GNU General Public License 24 along with this program; if not, write to the Free Software 25 Foundation, Inc., 59 Temple Place - Suite 339. 26 Boston, MA 02111-1307, USA. 27 */ 3 28 4 Copyright (C) 2006, 2007,2009 Gregory Vincic5 6 Files are copyright by their respective authors. The contributions to7 files where copyright is not explicitly stated can be traced with the8 source code revision system.9 10 This file is part of Proteios.11 Available at http://www.proteios.org/12 13 proteios-2.x is free software; you can redistribute it and/or14 modify it under the terms of the GNU General Public License15 as published by the Free Software Foundation; either version 216 of the License, or (at your option) any later version.17 18 Proteios is distributed in the hope that it will be useful,19 but WITHOUT ANY WARRANTY; without even the implied warranty of20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the21 GNU General Public License for more details.22 23 You should have received a copy of the GNU General Public License24 along with this program; if not, write to the Free Software25 Foundation, Inc., 59 Temple Place - Suite 330,26 Boston, MA 02111-1307, USA.27 */28 29 package org.proteios.gui.form; 29 30 30 31 import se.lu.thep.waf.constraints.VFloat; 31 32 32 public final class ConcentrationField 33 extends TextField<Float> 33 /** 34 */ 35 public class ConcentrationField extends TextField<Float> 34 36 { 35 public static final VFloat VPARAM = new VFloat("concentration", false); 36 37 public ConcentrationField() 38 { 39 super(ConcentrationField.VPARAM); 40 setLabel("ConcentrationInGramsPerLiter"); 41 setHelp("Grams protein/liter"); 42 } 37 public static final VFloat VPARAM = new VFloat("concentration",false); 38 public ConcentrationField() 39 { 40 super(ConcentrationField.VPARAM); 41 setLabel("Concentration"); 42 setHelp("Grams protein/liter"); 43 } 43 44 } -
trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java
r3823 r3824 205 205 public static final VInteger VPROJECTTYPE = new ProjectTypeID(); 206 206 public static final VInteger VPROJECTSTATUS = new ProjectStatus(); 207 public static final VInteger VPROTOCOLFILEID = new VInteger( 208 "protocolfileId", 0, true); 209 public static final VBoolean VPROTOCOLFILERESET = new VBoolean( 210 "protocolFileReset", false); 211 public static final VInteger VANNOTYPEID = new VInteger("annotationTypeId", 212 0, true); 207 public static final VInteger VPROTOCOLFILEID = new VInteger("protocolfileId", 0, true); 208 public static final VBoolean VPROTOCOLFILERESET = new VBoolean("protocolFileReset", false); 209 public static final VInteger VANNOTYPEID = new VInteger("annotationTypeId",0, true); 213 210 public static final VInteger VGROUPID = new VInteger("groupId", 1, false); 214 211 public static final VString VNAME = NameField.VPARAM; 215 212 public static final VString VUSERNAME = new VString("username", 1, 32, true); 216 public static final VString VANNONAME = new VString("annotationName", 1, 217 64, false); 213 public static final VString VANNONAME = new VString("annotationName", 1,64, false); 218 214 public static final VString VDESCR = new VString("description", 0, 255); 219 215 public static final VString VEMAIL = new VString("email", 1, 255, true); … … 226 222 public static final VString VLOGIN = new VString("login", 1, 32, true); 227 223 public static final VString VTYPE = new VString("type", 1, 64, true); 228 public static final VString VFILE = new VString("file", 1, 512); // Allow 229 public static final VString VFILENAME = new VString("fileName", 1, 255); 230 public static final VString VNONREQUIRED_FILENAME = new VString("fileName", 231 0, 255, false); 232 public static final VString VREQUIRED_FILENAME = new VString("fileName", 1, 233 255, true); 224 public static final VString VFILE = new VString("file", 1, 512); // Allowpublic static final VString VFILENAME = new VString("fileName", 1, 255); 225 public static final VString VNONREQUIRED_FILENAME = new VString("fileName",0, 255, false); 226 public static final VString VREQUIRED_FILENAME = new VString("fileName", 1,255, true); 234 227 public static final VString VFWDACTION = ForwardField.VPARAM; 235 public static final VString VFWD2ACTION = new VString("forward2ActionId", 236 1, 255, false); 237 public static final VString VCLASSNAME = new VString("className", 1, 255, 238 true); 228 public static final VString VFWD2ACTION = new VString("forward2ActionId",1, 255, false); 229 public static final VString VCLASSNAME = new VString("className", 1, 255,true); 239 230 public static final VString VURI = new VString("fileURI", 0, 255, false); 240 public static final VString VROLEPERMISSIONID = new VString("rolePermId", 241 1, 64, true); 242 public static final VString VWELLPOSITION = new VString("wellPosition", 0, 243 8, false); 244 public static final VString VREQUIRED_LOCALSAMPLEID = new VString( 245 "localSampleId", 0, 32, true); 246 public static final VString VLOCALSAMPLEID = new VString("localSampleId", 247 0, 32, false); 248 public static final VString VLOCALSAMPLEIDSELECTED = new VString( 249 "localSampleIdSelected", 0, 32, false); 231 public static final VString VROLEPERMISSIONID = new VString("rolePermId",1, 64, true); 232 public static final VString VWELLPOSITION = new VString("wellPosition", 0,8, false); 233 public static final VString VREQUIRED_LOCALSAMPLEID = new VString("localSampleId", 0, 32, true); 234 public static final VString VLOCALSAMPLEID = new VString("localSampleId",0, 32, false); 235 public static final VString VLOCALSAMPLEIDSELECTED = new VString("localSampleIdSelected", 0, 32, false); 250 236 public static final VInteger VDIRID = new VInteger("dirId", 1, true); 251 237 public static final VInteger VSPOTID = new VInteger("spotId", 0, false); 252 public static final VInteger VFILETYPEID = new VInteger("fileTypeId", 0, 253 true); 238 public static final VInteger VFILETYPEID = new VInteger("fileTypeId", 0,true); 254 239 public static final VString VPERCENT = new VString("percent", 0, 4, false); 255 public static final VInteger VMASSSTART = new VInteger( 256 "massStartInKiloDaltons", 0, false); 257 public static final VInteger VMASSEND = new VInteger( 258 "massEndInKiloDaltons", 0, false); 259 public static final VInteger VSIZEX = new VInteger("sizeXInCentiMeters", 0, 260 false); 261 public static final VInteger VSIZEY = new VInteger("sizeYInCentiMeters", 0, 262 false); 263 public static final VInteger VPERCENTACRYLAMID = new VInteger( 264 "percentAcrylAmid", 0, 100, false); 265 public static final VString VDENATURATINGAGENT = new VString( 266 "denaturatingAgent", 0, 255, false); 267 public static final VString VPROTEINASSAY = new VString("proteinAssay", 0, 268 255, false); 269 public static final VString VSOLUBILIZATIONBUFFER = new VString( 270 "solubilizationBuffer", 0, 255, false); 271 public static final VFloat VCONCENTRATION = new VFloat("concentration", 272 false); 273 public static final VFloat VORIGINALQUANTITY = new VFloat( 274 "originalQuantity", true); 275 public static final VFloat VREMAININGQUANTITY = new VFloat( 276 "remainingQuantity", false); 240 public static final VInteger VMASSSTART = new VInteger("massStartInKiloDaltons", 0, false); 241 public static final VInteger VMASSEND = new VInteger("massEndInKiloDaltons", 0, false); 242 public static final VInteger VSIZEX = new VInteger("sizeXInCentiMeters", 0,false); 243 public static final VInteger VSIZEY = new VInteger("sizeYInCentiMeters", 0,false); 244 public static final VInteger VPERCENTACRYLAMID = new VInteger("percentAcrylAmid", 0, 100, false); 245 public static final VString VDENATURATINGAGENT = new VString("denaturatingAgent", 0, 255, false); 246 public static final VString VPROTEINASSAY = new VString("proteinAssay", 0,255, false); 247 public static final VString VSOLUBILIZATIONBUFFER = new VString("solubilizationBuffer", 0, 255, false); 248 public static final VFloat VORIGINALQUANTITY = new VFloat("originalQuantity", true); 249 public static final VFloat VREMAININGQUANTITY = new VFloat("remainingQuantity", false); 277 250 public static final VFloat VQUANTITY = new VFloat("quantity", true); 278 public static final VFloat VUSEDQUANTITYINMICROLITERS = new VFloat( 279 "UsedQuantityInMicroLiters", true); 251 public static final VFloat VUSEDQUANTITYINMICROLITERS = new VFloat("UsedQuantityInMicroLiters", true); 280 252 public static final VFloat VFDR = FDRField.VPARAM; 281 public static final VBoolean VPEPTIDECOMPARE = new VBoolean( 282 "isPeptideCompare", false); 283 public static final VBoolean VISMICROTITREPLATE = new VBoolean( 284 "isMicrotitrePlate", false); 285 public static final VString VRANDOMSTRING = new VString("randomString", 1, 286 15, true); 287 public static final VString VSTORAGELOCATION = new VString( 288 "storageLocation", 0, 255, false); 253 public static final VBoolean VPEPTIDECOMPARE = new VBoolean("isPeptideCompare", false); 254 public static final VBoolean VISMICROTITREPLATE = new VBoolean("isMicrotitrePlate", false); 255 public static final VString VRANDOMSTRING = new VString("randomString", 1,15, true); 256 public static final VString VSTORAGELOCATION = new VString("storageLocation", 0, 255, false); 289 257 public static final VInteger VCOUNT = new VInteger("count", 0, true); 290 258 public static final VInteger VDIRCOUNT = new VInteger("dirCount", 0, true); 291 259 public static final VInteger VJOBCOUNT = new VInteger("jobCount", 0, true); 292 public static final VInteger VSPECTRUMSEARCHCOUNT = new VInteger( 293 "spectrumSearchCount", 0, true); 294 public static final VBoolean VREADONLYFORM = new VBoolean("readOnlyForm", 295 false); 296 public static final VString VFILESELECTIONNEXTBUTTONNAME = new VString( 297 "fileSelectionNextButtonName", 0, 255, false); 260 public static final VInteger VSPECTRUMSEARCHCOUNT = new VInteger("spectrumSearchCount", 0, true); 261 public static final VBoolean VREADONLYFORM = new VBoolean("readOnlyForm",false); 262 public static final VString VFILESELECTIONNEXTBUTTONNAME = new VString("fileSelectionNextButtonName", 0, 255, false); 298 263 public static final VBoolean VCONFIRM = new VBoolean("confirm", false); 299 public static final VString VCONFIRMMESSAGE = new VString("confirmMessage", 300 0, 255, false); 301 public static final VString VCANCELACTION = new VString("cancelActionId", 302 1, 255, false); 303 public static final VString VFILTERNAME = new VString("filterName", 0, 255, 304 false); 305 public static final VString VFILTERCLASS = new VString("filterClass", 0, 306 255, false); 307 public static final VString VFILTERCONDITION = new VString( 308 "filterCondition", 0, 255, false); 309 public static final VString VFILTERVALUE = new VString("filterValue", 0, 310 255, false); 264 public static final VString VCONFIRMMESSAGE = new VString("confirmMessage",0, 255, false); 265 public static final VString VCANCELACTION = new VString("cancelActionId",1, 255, false); 266 public static final VString VFILTERNAME = new VString("filterName", 0, 255,false); 267 public static final VString VFILTERCLASS = new VString("filterClass", 0,255, false); 268 public static final VString VFILTERCONDITION = new VString("filterCondition", 0, 255, false); 269 public static final VString VFILTERVALUE = new VString("filterValue", 0,255, false); 311 270 public static final VInteger VLISTSIZE = new VInteger("listSize", 0, false); 312 public static final VString VFILTERKEYLIST = new VString("filterKeyList", 313 0, 255, false); 314 public static final VString VFILTERCLASSLIST = new VString( 315 "filterClassList", 0, 255, false); 316 public static final VString VFILTERCONDITIONLIST = new VString( 317 "filterConditionList", 0, 255, false); 318 public static final VString VFILTERVALUELIST = new VString( 319 "filterValueList", 0, 255, false); 320 public static final VString VSORTCOLUMNKEY = new VString("sortColumnKey", 321 0, 255, false); 271 public static final VString VFILTERKEYLIST = new VString("filterKeyList",0, 255, false); 272 public static final VString VFILTERCLASSLIST = new VString("filterClassList", 0, 255, false); 273 public static final VString VFILTERCONDITIONLIST = new VString("filterConditionList", 0, 255, false); 274 public static final VString VFILTERVALUELIST = new VString("filterValueList", 0, 255, false); 275 public static final VString VSORTCOLUMNKEY = new VString("sortColumnKey",0, 255, false); 322 276 public static final VString VDUMMY = new VString("dummy", 0, 255, false); 323 277 public static final VString VCOMMENT = new VString("comment", 0, 255, false); 324 public static final VDate VENTRYDATE = new VDate("entryDate", false, 325 Format.DATETIME); 326 public static final VDate VEVENTDATE = new VDate("eventDate", false, 327 Format.DATETIME, Format.DATE); 328 public static final VDate VNEWSDATE = new VDate("newsDate", true, 329 Format.DATETIME, Format.DATE); 330 public static final VDate VSTARTDATE = new VDate("startDate", true, 331 Format.DATETIME, Format.DATE); 332 public static final VDate VENDDATE = new VDate("endDate", true, 333 Format.DATETIME, Format.DATE); 334 public static final VInteger VLENGTH = new VInteger("lengthInCentiMeters", 335 0, false); 336 public static final VInteger VBIOMATERIALID = new VInteger("bioMaterialId", 337 1, false); 278 public static final VDate VENTRYDATE = new VDate("entryDate", false,Format.DATETIME); 279 public static final VDate VEVENTDATE = new VDate("eventDate", false,Format.DATETIME, Format.DATE); 280 public static final VDate VNEWSDATE = new VDate("newsDate", true,Format.DATETIME, Format.DATE); 281 public static final VDate VSTARTDATE = new VDate("startDate", true,Format.DATETIME, Format.DATE); 282 public static final VDate VENDDATE = new VDate("endDate", true,Format.DATETIME, Format.DATE); 283 public static final VInteger VLENGTH = new VInteger("lengthInCentiMeters",0, false); 284 public static final VInteger VBIOMATERIALID = new VInteger("bioMaterialId",1, false); 338 285 // TODO what are valid values for the pistart parameter 339 public static final VInteger VPISTART = new VInteger("piStart", 340 Integer.MIN_VALUE, Integer.MAX_VALUE, false); 341 public static final VInteger VPIEND = new VInteger("piEnd", 342 Integer.MIN_VALUE, Integer.MAX_VALUE, false); 286 public static final VInteger VPISTART = new VInteger("piStart",Integer.MIN_VALUE, Integer.MAX_VALUE, false); 287 public static final VInteger VPIEND = new VInteger("piEnd",Integer.MIN_VALUE, Integer.MAX_VALUE, false); 343 288 public static final VString VSTAIN = new VString("stain", 0, 255, false); 344 289 public static final VInteger VLABELID = new VInteger("labelId", 0, true); 345 // public static final VInteger VCOLUMNROWID = new VInteger("columnRowId", 346 // 0, true); 347 public static final VInteger VCOLUMNROWID = new VInteger("columnRowId", 0, 348 false); 349 public static final VInteger VCOLUMNLISTSIZE = new VInteger( 350 "columnListSize", 0, false); 351 public static final VInteger VCOLUMNSELECTID = new VInteger( 352 "columnSelectId", 0, false); 353 public static final VInteger VCOLUMNSELECTLISTSIZE = new VInteger( 354 "columnSelectListSize", 0, false); 355 public static final VString VTABLECONFACTION = new VString( 356 "tableConfigurationActionId", 0, 255, false); 290 // public static final VInteger VCOLUMNROWID = new VInteger("columnRowId",// 0, true); 291 public static final VInteger VCOLUMNROWID = new VInteger("columnRowId", 0,false); 292 public static final VInteger VCOLUMNLISTSIZE = new VInteger("columnListSize", 0, false); 293 public static final VInteger VCOLUMNSELECTID = new VInteger("columnSelectId", 0, false); 294 public static final VInteger VCOLUMNSELECTLISTSIZE = new VInteger("columnSelectListSize", 0, false); 295 public static final VString VTABLECONFACTION = new VString("tableConfigurationActionId", 0, 255, false); 357 296 private static final VString VOWNER = new VString("owner", 1, 32, false); 358 public static final VString VNONREQUIRED_NAME = new VString("name", 0, 255, 359 false); 360 public static final VString VNONREQUIRED_INSTITUTION = new VString( 361 "institution", 0, 255, false); 362 public static final VString VNONREQUIRED_ADDRESS = new VString("address", 363 0, 255, false); 364 public static final VString VNONREQUIRED_URL = new VString("url", 0, 255, 365 false); 366 public static final VString VNONREQUIRED_EMAIL = new VString("email", 0, 367 255, false); 368 public static final VString VNONREQUIRED_CONTACT_INFO = new VString( 369 "contactInfo", 0, 255, false); 370 public static final VString VNONREQUIRED_SAMPLE_NAME = new VString( 371 "sampleName", 0, 255, false); 372 public static final VString VNONREQUIRED_SAMPLE_NUMBER = new VString( 373 "sampleNumber", 0, 255, false); 374 public static final VString VNONREQUIRED_SAMPLE_STATE = new VString( 375 "sampelState", 0, 255, false); 376 public static final VString VNONREQUIRED_SAMPLE_MASS_IN_GRAMS = new VString( 377 "sampleMassInGrams", 0, 255, false); 378 public static final VString VNONREQUIRED_SAMPLE_VOLUME_IN_MILLILITERS = new VString( 379 "sampleVolumeInMilliliters", 0, 255, false); 380 public static final VString VNONREQUIRED_SAMPLE_CONCENTRATION_IN_GRAMS_PER_LITER = new VString( 381 "sampleConcentrationInGramsPerLiter", 0, 255, false); 382 public static final VString VNONREQUIRED_SAMPLE_BATCH = new VString( 383 "sampleBatch", 0, 255, false); 384 public static final VString VNONREQUIRED_SAMPLE_COMMENT = new VString( 385 "sampleComment", 0, 255, false); 297 public static final VString VNONREQUIRED_NAME = new VString("name", 0, 255,false); 298 public static final VString VNONREQUIRED_INSTITUTION = new VString("institution", 0, 255, false); 299 public static final VString VNONREQUIRED_ADDRESS = new VString("address",0, 255, false); 300 public static final VString VNONREQUIRED_URL = new VString("url", 0, 255,false); 301 public static final VString VNONREQUIRED_EMAIL = new VString("email", 0,255, false); 302 public static final VString VNONREQUIRED_CONTACT_INFO = new VString("contactInfo", 0, 255, false); 303 public static final VString VNONREQUIRED_SAMPLE_NAME = new VString("sampleName", 0, 255, false); 304 public static final VString VNONREQUIRED_SAMPLE_NUMBER = new VString("sampleNumber", 0, 255, false); 305 public static final VString VNONREQUIRED_SAMPLE_STATE = new VString("sampelState", 0, 255, false); 306 public static final VString VNONREQUIRED_SAMPLE_MASS_IN_GRAMS = new VString("sampleMassInGrams", 0, 255, false); 307 public static final VString VNONREQUIRED_SAMPLE_VOLUME_IN_MILLILITERS = new VString("sampleVolumeInMilliliters", 0, 255, false); 308 public static final VString VNONREQUIRED_SAMPLE_CONCENTRATION_IN_GRAMS_PER_LITER = new VString("sampleConcentrationInGramsPerLiter", 0, 255, false); 309 public static final VString VNONREQUIRED_SAMPLE_BATCH = new VString("sampleBatch", 0, 255, false); 310 public static final VString VNONREQUIRED_SAMPLE_COMMENT = new VString("sampleComment", 0, 255, false); 386 311 /** 387 312 * logger to use … … 2379 2304 properties.add(new ExternalGelIdSelect(dc, project)); 2380 2305 properties.add(selectLocalSampleId(dc, project)); 2381 TextField<String> nameF = new TextField<String>(VFILENAME);2306 TextField<String> nameF = new FileNameField(); 2382 2307 nameF.setValue("ProteinReport.tsv"); 2383 2308 nameF.setLabel("OutputFileName"); … … 2933 2858 form.addFieldset(properties); 2934 2859 // Filename field 2935 TextField<String> nameF = new TextField<String>(VFILENAME);2860 TextField<String> nameF = new FileNameField(); 2936 2861 nameF.setValue("HitsReport.tsv"); 2937 2862 nameF.setLabel("OutputFileName"); … … 3725 3650 } 3726 3651 // Mascot Parameters Template File 3727 TextField<String> parameterFileF = createField(VFILENAME);3652 TextField<String> parameterFileF = new FileNameField(); 3728 3653 fs.add(parameterFileF); 3729 3654 parameterFileF.setLabel("MascotParameterTemplateFile"); … … 3839 3764 } 3840 3765 // Mascot Parameters Template File 3841 TextField<String> parameterFileF = createField(VFILENAME);3766 TextField<String> parameterFileF = new FileNameField(); 3842 3767 fs.add(parameterFileF); 3843 3768 parameterFileF.setLabel("MascotParameterTemplateFile"); … … 4861 4786 } 4862 4787 // OMSSA Parameters Template File 4863 TextField<String> parameterFileF = createField(VFILENAME);4788 TextField<String> parameterFileF = new FileNameField(); 4864 4789 fs.add(parameterFileF); 4865 4790 parameterFileF.setLabel("OMSSAParameterTemplateFile"); … … 4956 4881 } 4957 4882 // OMSSA Parameters Template File 4958 TextField<String> parameterFileF = createField(VFILENAME);4883 TextField<String> parameterFileF = new FileNameField(); 4959 4884 fs.add(parameterFileF); 4960 4885 parameterFileF.setLabel("OMSSAParameterTemplateFile"); … … 5882 5807 } 5883 5808 // XTandem Parameters Template File 5884 TextField<String> parameterFileF = createField(VFILENAME);5809 TextField<String> parameterFileF = new FileNameField(); 5885 5810 fs.add(parameterFileF); 5886 5811 parameterFileF.setLabel("XTandemParameterTemplateFile"); … … 5958 5883 } 5959 5884 // XTandem Parameters Template File 5960 TextField<String> parameterFileF = createField(VFILENAME);5885 TextField<String> parameterFileF = new FileNameField(); 5961 5886 fs.add(parameterFileF); 5962 5887 parameterFileF.setLabel("XTandemParameterTemplateFile"); … … 8239 8164 quantityFS.add(quantityF); 8240 8165 // 8241 TextField<Float> concF = new ConcentrationField();8166 TextField<Float> concF = new ConcentrationField(); 8242 8167 quantityFS.add(concF); 8243 8168 if (extract != null) … … 8287 8212 quantityFS.add(quantityF); 8288 8213 // 8289 TextField<Float> concF = new ConcentrationField();8214 TextField<Float> concF = new ConcentrationField(); 8290 8215 quantityFS.add(concF); 8291 8216 // … … 8353 8278 quantityFS.add(quantityF); 8354 8279 // 8355 TextField<Float> concF = new ConcentrationField();8280 TextField<Float> concF = new ConcentrationField(); 8356 8281 quantityFS.add(concF); 8357 8282 // … … 8557 8482 field.setLabel("StorageLocation"); 8558 8483 field.setHelp("E.g. Fridge X on floor Y"); 8559 return field;8560 }8561 8562 8563 public TextField<Float> newConcentrationField()8564 {8565 TextField<Float> field = new TextField<Float>(VCONCENTRATION);8566 field.setLabel("Concentration");8567 field.setHelp("Grams protein/liter");8568 8484 return field; 8569 8485 } … … 9544 9460 fs.add(typeS); 9545 9461 // Protocol File 9546 TextField<String> fileF = createField(VFILENAME);9462 TextField<String> fileF = new FileNameField(); 9547 9463 fs.add(fileF); 9548 9464 fileF.setLabel("ProtocolFile"); … … 9839 9755 if (GelScanEvent.class.equals(cls)) 9840 9756 { 9841 TextField<String> fileF = createField(VFILENAME);9757 TextField<String> fileF = new FileNameField(); 9842 9758 fs.add(fileF); 9843 9759 fileF.setValue("not specified"); … … 9972 9888 fs.add(typeS); 9973 9889 // Protocol File 9974 TextField<String> fileF = createField(VFILENAME);9890 TextField<String> fileF = new FileNameField(); 9975 9891 fs.add(fileF); 9976 9892 fileF.setLabel("ProtocolFile");
Note: See TracChangeset
for help on using the changeset viewer.