Changeset 3824


Ignore:
Timestamp:
Sep 8, 2010, 9:11:02 AM (13 years ago)
Author:
Gregory Vincic
Message:

Refs #698. Removed VCONCENTRATION from FormFactory

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  
    2828package org.proteios.action.extract;
    2929
    30 
    31 
    3230import org.proteios.action.ProteiosAction;
    3331import org.proteios.core.CreationEvent;
     
    3634import org.proteios.core.ItemFactory;
    3735import org.proteios.core.Sample;
     36import org.proteios.gui.form.*;
    3837import se.lu.thep.waf.ActionException;
    3938import se.lu.thep.waf.constraints.InvalidParameterValue;
    40 import org.proteios.gui.form.*;
    4139
    4240/**
     
    103101    extract.setOriginalQuantityInMicroLiters(extractQuantity);
    104102    extract
    105       .setConcentrationInGramsPerLiter(getValidFloat(FormFactory.VCONCENTRATION));
     103      .setConcentrationInGramsPerLiter(getValidFloat(ConcentrationField.VPARAM));
    106104    dc.commit();
    107105    setMessage("Extract saved");
  • trunk/client/servlet/src/org/proteios/action/extract/AddLabeledExtract.java

    r3818 r3824  
    2828package org.proteios.action.extract;
    2929
    30 
    31 
    3230import org.proteios.action.ProteiosAction;
    3331import org.proteios.core.CreationEvent;
     
    3735import org.proteios.core.Label;
    3836import org.proteios.core.LabeledExtract;
     37import org.proteios.gui.form.*;
    3938import se.lu.thep.waf.ActionException;
    4039import se.lu.thep.waf.constraints.InvalidParameterValue;
    41 import org.proteios.gui.form.*;
    4240
    4341/**
     
    10098    labeledExtract.setOriginalQuantityInMicroLiters(extractQuantity);
    10199    labeledExtract
    102       .setConcentrationInGramsPerLiter(getValidFloat(FormFactory.VCONCENTRATION));
     100      .setConcentrationInGramsPerLiter(getValidFloat(ConcentrationField.VPARAM));
    103101    dc.commit();
    104102    setMessage("Extract saved");
  • trunk/client/servlet/src/org/proteios/action/extract/AddSecondaryExtract.java

    r3818 r3824  
    2828package org.proteios.action.extract;
    2929
    30 
    31 
    3230import org.proteios.action.ProteiosAction;
    3331import org.proteios.core.CreationEvent;
     
    3533import org.proteios.core.Extract;
    3634import org.proteios.core.ItemFactory;
     35import org.proteios.gui.form.*;
    3736import se.lu.thep.waf.ActionException;
    3837import se.lu.thep.waf.constraints.InvalidParameterValue;
    39 import org.proteios.gui.form.*;
    4038
    4139/**
     
    9189    extract.setOriginalQuantityInMicroLiters(extractQuantity);
    9290    extract
    93       .setConcentrationInGramsPerLiter(getValidFloat(FormFactory.VCONCENTRATION));
     91      .setConcentrationInGramsPerLiter(getValidFloat(ConcentrationField.VPARAM));
    9492    dc.commit();
    9593    setMessage("Extract saved");
  • trunk/client/servlet/src/org/proteios/action/extract/AddSecondaryLabeledExtract.java

    r3818 r3824  
    2828package org.proteios.action.extract;
    2929
    30 
    31 
    3230import org.proteios.action.ProteiosAction;
    3331import org.proteios.core.CreationEvent;
     
    3735import org.proteios.core.Label;
    3836import org.proteios.core.LabeledExtract;
     37import org.proteios.gui.form.*;
    3938import se.lu.thep.waf.ActionException;
    4039import se.lu.thep.waf.constraints.InvalidParameterValue;
    41 import org.proteios.gui.form.*;
    4240
    4341/**
     
    103101    labeledExtract.setOriginalQuantityInMicroLiters(extractQuantity);
    104102    labeledExtract
    105       .setConcentrationInGramsPerLiter(getValidFloat(FormFactory.VCONCENTRATION));
     103      .setConcentrationInGramsPerLiter(getValidFloat(ConcentrationField.VPARAM));
    106104    dc.commit();
    107105    setMessage("Extract saved");
  • trunk/client/servlet/src/org/proteios/action/extract/SaveExtract.java

    r3818 r3824  
    2828package org.proteios.action.extract;
    2929
    30 
    3130import org.proteios.action.ProteiosAction;
    3231import org.proteios.core.DbControl;
     
    3433import org.proteios.core.ItemFactory;
    3534import org.proteios.core.UpdateEvent;
     35import org.proteios.gui.form.*;
    3636import se.lu.thep.waf.ActionException;
    3737import se.lu.thep.waf.constraints.InvalidParameterValue;
    38 import org.proteios.gui.form.*;
    3938
    4039/**
     
    7877    extract.setOriginalQuantityInMicroLiters(originalQuantity);
    7978    //
    80     Float concentration = getValidFloat(FormFactory.VCONCENTRATION);
     79    Float concentration = getValidFloat(ConcentrationField.VPARAM);
    8180    extract.setConcentrationInGramsPerLiter(concentration);
    8281    //
  • trunk/client/servlet/src/org/proteios/action/extract/SaveLabeledExtract.java

    r3818 r3824  
    2828package org.proteios.action.extract;
    2929
    30 
    31 
    3230import org.proteios.action.ProteiosAction;
    3331import org.proteios.core.DbControl;
     
    3634import org.proteios.core.LabeledExtract;
    3735import org.proteios.core.UpdateEvent;
     36import org.proteios.gui.form.*;
    3837import se.lu.thep.waf.ActionException;
    3938import se.lu.thep.waf.constraints.InvalidParameterValue;
    40 import org.proteios.gui.form.*;
    4139
    4240/**
     
    8684    extract.setOriginalQuantityInMicroLiters(originalQuantity);
    8785    //
    88     Float concentration = getValidFloat(FormFactory.VCONCENTRATION);
     86    Float concentration = getValidFloat(ConcentrationField.VPARAM);
    8987    extract.setConcentrationInGramsPerLiter(concentration);
    9088    //
  • trunk/client/servlet/src/org/proteios/action/hit/CombineHits.java

    r3817 r3824  
    2828package org.proteios.action.hit;
    2929
     30import java.util.ArrayList;
     31import java.util.List;
    3032import org.proteios.action.ProteiosAction;
    3133import org.proteios.action.job.ListJobs;
     
    5153import se.lu.thep.waf.constraints.VBoolean;
    5254import se.lu.thep.waf.constraints.VString;
    53 import java.util.ArrayList;
    54 import java.util.List;
    55 
    5655
    5756/**
     
    8483    log.debug("gelId:" + gelId);
    8584    log.debug("localSampleId:" + localSampleId);
    86     String filename = getValidString(FormFactory.VFILENAME);
     85    String filename = getValidString(FileNameField.VPARAM);
    8786    String randomString = getValidString(FormFactory.VRANDOMSTRING);
    8887    Float fdrCutOff = getValidFloat(FormFactory.VFDR);
  • trunk/client/servlet/src/org/proteios/action/hit/CreateExclusionListJob.java

    r3397 r3824  
    4040import org.proteios.core.Project;
    4141import org.proteios.core.StringParameterType;
    42 import org.proteios.gui.form.FormFactory;
    43 
     42import org.proteios.gui.form.*;
    4443import se.lu.thep.waf.ActionException;
    4544import se.lu.thep.waf.constraints.InvalidParameterValue;
     
    7978    String localSampleId = getString(FormFactory.VLOCALSAMPLEIDSELECTED);
    8079    log.debug("localSampleId:" + localSampleId);
    81     String filename = getValidString(FormFactory.VFILENAME);
     80    String filename = getValidString(FileNameField.VPARAM);
    8281    String format = getValidString(VFORMAT);
    8382    String externalId = getValidString(VEXTERNALID);
  • trunk/client/servlet/src/org/proteios/action/hit/CreateProteinAssemblyJob.java

    r3816 r3824  
    4242import org.proteios.core.StringParameterType;
    4343import org.proteios.gui.form.*;
    44 
    4544import se.lu.thep.waf.ActionException;
    4645import se.lu.thep.waf.constraints.InvalidParameterValue;
     
    9190    log.debug("gelId:" + gelId);
    9291    log.debug("localSampleId:" + localSampleId);
    93     String filename = getValidString(FormFactory.VFILENAME);
     92    String filename = getValidString(FileNameField.VPARAM);
    9493    String label = getValidString(VLABEL);
    9594    String decoyPrefix = getValidString(VDECOYPREFIX);
  • trunk/client/servlet/src/org/proteios/action/hit/ExclusionList.java

    r3593 r3824  
    2828package org.proteios.action.hit;
    2929
     30import java.util.ArrayList;
     31import java.util.List;
    3032import org.proteios.ActionLink;
    3133import org.proteios.Context;
     
    3638import org.proteios.core.Hit;
    3739import org.proteios.core.Project;
     40import org.proteios.gui.ColumnContainer;
    3841import org.proteios.gui.Title;
    3942import org.proteios.gui.TitledWindow;
    4043import 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;
     44import org.proteios.gui.form.*;
    4845import org.proteios.gui.layout.RowLayout;
    49 import org.proteios.gui.ColumnContainer;
    50 
    5146import se.lu.thep.waf.ActionException;
    5247import se.lu.thep.waf.constraints.InvalidParameterValue;
    5348import se.lu.thep.waf.constraints.VBoolean;
    5449import se.lu.thep.waf.constraints.VString;
    55 
    56 import java.util.ArrayList;
    57 import java.util.List;
    5850
    5951/**
     
    9789      properties.add(getFormFactory().selectLocalSampleId(dc, project));
    9890      TextField<String> nameF = new TextField<String>(
    99         FormFactory.VFILENAME);
     91        FileNameField.VPARAM);
    10092      nameF.setValue("ExclusionList.txt");
    10193      nameF.setLabel("OutputFileName");
  • trunk/client/servlet/src/org/proteios/gui/form/ConcentrationField.java

    r3791 r3824  
    11/*
    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*/
    328
    4  Copyright (C) 2006, 2007,2009 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-2.x 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 330,
    26  Boston, MA  02111-1307, USA.
    27  */
    2829package org.proteios.gui.form;
    2930
    3031import se.lu.thep.waf.constraints.VFloat;
    3132
    32 public final class ConcentrationField
    33  extends TextField<Float>
     33/**
     34*/
     35public class ConcentrationField extends TextField<Float>
    3436{
    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  }
    4344}
  • trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java

    r3823 r3824  
    205205  public static final VInteger VPROJECTTYPE = new ProjectTypeID();
    206206  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);
    213210  public static final VInteger VGROUPID = new VInteger("groupId", 1, false);
    214211  public static final VString VNAME = NameField.VPARAM;
    215212  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);
    218214  public static final VString VDESCR = new VString("description", 0, 255);
    219215  public static final VString VEMAIL = new VString("email", 1, 255, true);
     
    226222  public static final VString VLOGIN = new VString("login", 1, 32, true);
    227223  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);
    234227  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);
    239230  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);
    250236  public static final VInteger VDIRID = new VInteger("dirId", 1, true);
    251237  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);
    254239  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);
    277250  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);
    280252  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);
    289257  public static final VInteger VCOUNT = new VInteger("count", 0, true);
    290258  public static final VInteger VDIRCOUNT = new VInteger("dirCount", 0, true);
    291259  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);
    298263  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);
    311270  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);
    322276  public static final VString VDUMMY = new VString("dummy", 0, 255, false);
    323277  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);
    338285  // 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);
    343288  public static final VString VSTAIN = new VString("stain", 0, 255, false);
    344289  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);
    357296  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);
    386311  /**
    387312   * logger to use
     
    23792304      properties.add(new ExternalGelIdSelect(dc, project));
    23802305      properties.add(selectLocalSampleId(dc, project));
    2381       TextField<String> nameF = new TextField<String>(VFILENAME);
     2306      TextField<String> nameF = new FileNameField();
    23822307      nameF.setValue("ProteinReport.tsv");
    23832308      nameF.setLabel("OutputFileName");
     
    29332858      form.addFieldset(properties);
    29342859      // Filename field
    2935       TextField<String> nameF = new TextField<String>(VFILENAME);
     2860      TextField<String> nameF = new FileNameField();
    29362861      nameF.setValue("HitsReport.tsv");
    29372862      nameF.setLabel("OutputFileName");
     
    37253650    }
    37263651    // Mascot Parameters Template File
    3727     TextField<String> parameterFileF = createField(VFILENAME);
     3652    TextField<String> parameterFileF = new FileNameField();
    37283653    fs.add(parameterFileF);
    37293654    parameterFileF.setLabel("MascotParameterTemplateFile");
     
    38393764    }
    38403765    // Mascot Parameters Template File
    3841     TextField<String> parameterFileF = createField(VFILENAME);
     3766    TextField<String> parameterFileF = new FileNameField();
    38423767    fs.add(parameterFileF);
    38433768    parameterFileF.setLabel("MascotParameterTemplateFile");
     
    48614786    }
    48624787    // OMSSA Parameters Template File
    4863     TextField<String> parameterFileF = createField(VFILENAME);
     4788    TextField<String> parameterFileF = new FileNameField();
    48644789    fs.add(parameterFileF);
    48654790    parameterFileF.setLabel("OMSSAParameterTemplateFile");
     
    49564881    }
    49574882    // OMSSA Parameters Template File
    4958     TextField<String> parameterFileF = createField(VFILENAME);
     4883    TextField<String> parameterFileF = new FileNameField();
    49594884    fs.add(parameterFileF);
    49604885    parameterFileF.setLabel("OMSSAParameterTemplateFile");
     
    58825807    }
    58835808    // XTandem Parameters Template File
    5884     TextField<String> parameterFileF = createField(VFILENAME);
     5809    TextField<String> parameterFileF = new FileNameField();
    58855810    fs.add(parameterFileF);
    58865811    parameterFileF.setLabel("XTandemParameterTemplateFile");
     
    59585883    }
    59595884    // XTandem Parameters Template File
    5960     TextField<String> parameterFileF = createField(VFILENAME);
     5885    TextField<String> parameterFileF = new FileNameField();
    59615886    fs.add(parameterFileF);
    59625887    parameterFileF.setLabel("XTandemParameterTemplateFile");
     
    82398164    quantityFS.add(quantityF);
    82408165    //
    8241     TextField<Float> concF = newConcentrationField();
     8166    TextField<Float> concF = new ConcentrationField();
    82428167    quantityFS.add(concF);
    82438168    if (extract != null)
     
    82878212    quantityFS.add(quantityF);
    82888213    //
    8289     TextField<Float> concF = newConcentrationField();
     8214    TextField<Float> concF = new ConcentrationField();
    82908215    quantityFS.add(concF);
    82918216    //
     
    83538278    quantityFS.add(quantityF);
    83548279    //
    8355     TextField<Float> concF = newConcentrationField();
     8280    TextField<Float> concF = new ConcentrationField();
    83568281    quantityFS.add(concF);
    83578282    //
     
    85578482    field.setLabel("StorageLocation");
    85588483  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");
    85688484    return field;
    85698485  }
     
    95449460    fs.add(typeS);
    95459461    // Protocol File
    9546     TextField<String> fileF = createField(VFILENAME);
     9462    TextField<String> fileF = new FileNameField();
    95479463    fs.add(fileF);
    95489464    fileF.setLabel("ProtocolFile");
     
    98399755    if (GelScanEvent.class.equals(cls))
    98409756    {
    9841       TextField<String> fileF = createField(VFILENAME);
     9757      TextField<String> fileF = new FileNameField();
    98429758      fs.add(fileF);
    98439759      fileF.setValue("not specified");
     
    99729888      fs.add(typeS);
    99739889      // Protocol File
    9974       TextField<String> fileF = createField(VFILENAME);
     9890      TextField<String> fileF = new FileNameField();
    99759891      fs.add(fileF);
    99769892      fileF.setLabel("ProtocolFile");
Note: See TracChangeset for help on using the changeset viewer.