Changeset 3893


Ignore:
Timestamp:
Oct 19, 2010, 2:40:01 PM (13 years ago)
Author:
olle
Message:

Refs #700. Class/file gui/form/XTandemParameterSetForm.java in client/servlet/
updated to comply with some requests for Ticket #700 (New X!Tandem form):

  1. Entry for fragment monoisotopic mass error units should be placed directly

after entry for fragment monoisotopic mass error. In order to keep the
correspondence between source code and displayed form high, the order of
variables has been changed also in places not directly involved with
the visual elements of the form.

  1. List path default paraameters are left out, and list path taxonomy information

should be submitted, but not shown in the form.

  1. Since none of the list path entries should be shown, field set "List Path"

is removed. Hidden field for list path taxonomy information is instead added
to the "Spectrum" field set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/src/org/proteios/gui/form/XTandemParameterSetForm.java

    r3881 r3893  
    4848  public static final VString VXTANDEM_SPECTRUM_FRAG_MI_MASS_ERROR = new VString("XTandemSpectrumFragmentMonoisotopicMassError", 0,
    4949    32, false);
     50  public static final VString VXTANDEM_SPECTRUM_FRAG_MI_MASS_ERROR_UNITS = new VString("XTandemSpectrumFragmentMonoisotopicMassErrorUnits", 0,
     51    32, false);
    5052  public static final VString VXTANDEM_SPECTRUM_PARENT_MI_MASS_ERROR_PLUS = new VString("XTandemSpectrumParentMonoisotopicMassErrorPlus", 0,
    5153    32, false);
     
    5355    32, false);
    5456  public static final VString VXTANDEM_SPECTRUM_PARENT_MI_MASS_ISOTOPE_ERROR = new VString("XTandemSpectrumParentMonoisotopicMassIsotopeError", 0,
    55     32, false);
    56   public static final VString VXTANDEM_SPECTRUM_FRAG_MI_MASS_ERROR_UNITS = new VString("XTandemSpectrumFragmentMonoisotopicMassErrorUnits", 0,
    5757    32, false);
    5858  public static final VString VXTANDEM_SPECTRUM_PARENT_MI_MASS_ERROR_UNITS = new VString("XTandemSpectrumParentMonoisotopicMassErrorUnits", 0,
     
    201201
    202202  // Form field sets, fields, menus, and select boxes
    203   public Fieldset listPathFS;
     203  public Fieldset hiddenFieldContainerFS;
     204  //public Fieldset listPathFS;
    204205  public Select<VString> listPathDefaultParametersSB;
    205206  public TextField<String> taxonomyInformationListPathF;
     
    207208  public TextField<String> spectrumPathF;
    208209  public TextField<String> fragMiMassErrorF;
     210  public Select<VString> fragMiMassErrorUnitsM;
    209211  public TextField<String> parentMiMassErrorPlusF;
    210212  public TextField<String> parentMiMassErrorMinusF;
    211213  public Select<VString> parentMiMassIsotopeErrorM;
    212   public Select<VString> fragMiMassErrorUnitsM;
    213214  public Select<VString> parentMiMassErrorUnitsM;
    214215  public Select<VString> fragMassTypeM;
     
    321322    //List<String> selectedList = null;
    322323    /*
     324     * Spectrum field set is used for hidden fields from other field sets
     325     */
     326    spectrumFS = new Fieldset();
     327    spectrumFS.setTitle("XTandemParameterSetSpectrum");
     328    addFieldset(spectrumFS);
     329    hiddenFieldContainerFS = spectrumFS;
     330    /*
    323331     * List path field set
    324332     */
     333    /*
    325334    listPathFS = new Fieldset();
    326335    listPathFS.setTitle("XTandemParameterSetListPath");
    327336    addFieldset(listPathFS);
     337    */
    328338    // List path, default parameters
     339    /*
    329340    listPathDefaultParametersSB = createSingleSelectBox(
    330341      VXTANDEM_LIST_PATH_DEFAULT_PARAMETERS,
     
    334345      null);
    335346    listPathFS.add(listPathDefaultParametersSB);
     347    */
    336348    // List path, taxonomy information
    337349    taxonomyInformationListPathF = new TextField<String>(VXTANDEM_LIST_PATH_TAXONOMY_INFORMATION);
    338     listPathFS.add(taxonomyInformationListPathF);
     350    //listPathFS.add(taxonomyInformationListPathF);
     351    taxonomyInformationListPathF.setHidden(true);
     352    hiddenFieldContainerFS.add(taxonomyInformationListPathF);
    339353    /*
    340354     * Spectrum field set
    341355     */
     356    // Spectrum field set already created
     357    /*
    342358    spectrumFS = new Fieldset();
    343359    spectrumFS.setTitle("XTandemParameterSetSpectrum");
    344360    addFieldset(spectrumFS);
     361    */
    345362    // Spectrum, path
    346363    spectrumPathF = new TextField<String>(VXTANDEM_SPECTRUM_PATH);
     
    349366    fragMiMassErrorF = new TextField<String>(VXTANDEM_SPECTRUM_FRAG_MI_MASS_ERROR);
    350367    spectrumFS.add(fragMiMassErrorF);
     368    // Spectrum, fragment monoisotopic mass error units
     369    validStringParam = VXTANDEM_SPECTRUM_FRAG_MI_MASS_ERROR_UNITS;
     370    stringList = new ArrayList<String>();
     371    stringList.add("Daltons");
     372    stringList.add("ppm");
     373    fragMiMassErrorUnitsM = new Select<VString>(validStringParam, stringList, null);
     374    spectrumFS.add(fragMiMassErrorUnitsM);
    351375    // Spectrum, parent monoisotopic mass error plus
    352376    parentMiMassErrorPlusF = new TextField<String>(VXTANDEM_SPECTRUM_PARENT_MI_MASS_ERROR_PLUS);
     
    362386    parentMiMassIsotopeErrorM = new Select<VString>(validStringParam, stringList, null);
    363387    spectrumFS.add(parentMiMassIsotopeErrorM);
    364     // Spectrum, fragment monoisotopic mass error units
    365     validStringParam = VXTANDEM_SPECTRUM_FRAG_MI_MASS_ERROR_UNITS;
    366     stringList = new ArrayList<String>();
    367     stringList.add("Daltons");
    368     stringList.add("ppm");
    369     fragMiMassErrorUnitsM = new Select<VString>(validStringParam, stringList, null);
    370     spectrumFS.add(fragMiMassErrorUnitsM);
    371388    // Spectrum, parent monoisotopic mass error units
    372389    validStringParam = VXTANDEM_SPECTRUM_PARENT_MI_MASS_ERROR_UNITS;
     
    811828     */
    812829    // List path, default parameters
    813     listPathDefaultParametersSB.selectOption(obj.getListPathDefaultParameters());
     830    //listPathDefaultParametersSB.selectOption(obj.getListPathDefaultParameters());
    814831    // List path, taxonomy information
    815832    taxonomyInformationListPathF.setValue(obj.getListPathTaxonomyInformation());
     
    821838    // Spectrum, fragment monoisotopic mass error
    822839    fragMiMassErrorF.setValue(obj.getSpectrumFragmentMonoisotopicMassError());
     840    // Spectrum, fragment monoisotopic mass error units
     841    fragMiMassErrorUnitsM.selectOption(obj.getSpectrumFragmentMonoisotopicMassErrorUnits());
    823842    // Spectrum, parent monoisotopic mass error plus
    824843    parentMiMassErrorPlusF.setValue(obj.getSpectrumParentMonoisotopicMassErrorPlus());
     
    827846    // Spectrum, parent monoisotopic mass isotope error
    828847    parentMiMassIsotopeErrorM.selectOption(obj.getSpectrumParentMonoisotopicMassIsotopeError());
    829     // Spectrum, fragment monoisotopic mass error units
    830     fragMiMassErrorUnitsM.selectOption(obj.getSpectrumFragmentMonoisotopicMassErrorUnits());
    831848    // Spectrum, parent monoisotopic mass error units
    832849    parentMiMassErrorUnitsM.selectOption(obj.getSpectrumParentMonoisotopicMassErrorUnits());
     
    14771494    Integer maxDisplaySize,
    14781495    String selected)
    1479   {
    1480    
     1496  {   
    14811497    Select<VString> selectBox = new Select<VString>(validStringParam, optionList);
    14821498    selectBox.setLabel(label);
Note: See TracChangeset for help on using the changeset viewer.