Changeset 3893
- Timestamp:
- Oct 19, 2010, 2:40:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/gui/form/XTandemParameterSetForm.java
r3881 r3893 48 48 public static final VString VXTANDEM_SPECTRUM_FRAG_MI_MASS_ERROR = new VString("XTandemSpectrumFragmentMonoisotopicMassError", 0, 49 49 32, false); 50 public static final VString VXTANDEM_SPECTRUM_FRAG_MI_MASS_ERROR_UNITS = new VString("XTandemSpectrumFragmentMonoisotopicMassErrorUnits", 0, 51 32, false); 50 52 public static final VString VXTANDEM_SPECTRUM_PARENT_MI_MASS_ERROR_PLUS = new VString("XTandemSpectrumParentMonoisotopicMassErrorPlus", 0, 51 53 32, false); … … 53 55 32, false); 54 56 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,57 57 32, false); 58 58 public static final VString VXTANDEM_SPECTRUM_PARENT_MI_MASS_ERROR_UNITS = new VString("XTandemSpectrumParentMonoisotopicMassErrorUnits", 0, … … 201 201 202 202 // Form field sets, fields, menus, and select boxes 203 public Fieldset listPathFS; 203 public Fieldset hiddenFieldContainerFS; 204 //public Fieldset listPathFS; 204 205 public Select<VString> listPathDefaultParametersSB; 205 206 public TextField<String> taxonomyInformationListPathF; … … 207 208 public TextField<String> spectrumPathF; 208 209 public TextField<String> fragMiMassErrorF; 210 public Select<VString> fragMiMassErrorUnitsM; 209 211 public TextField<String> parentMiMassErrorPlusF; 210 212 public TextField<String> parentMiMassErrorMinusF; 211 213 public Select<VString> parentMiMassIsotopeErrorM; 212 public Select<VString> fragMiMassErrorUnitsM;213 214 public Select<VString> parentMiMassErrorUnitsM; 214 215 public Select<VString> fragMassTypeM; … … 321 322 //List<String> selectedList = null; 322 323 /* 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 /* 323 331 * List path field set 324 332 */ 333 /* 325 334 listPathFS = new Fieldset(); 326 335 listPathFS.setTitle("XTandemParameterSetListPath"); 327 336 addFieldset(listPathFS); 337 */ 328 338 // List path, default parameters 339 /* 329 340 listPathDefaultParametersSB = createSingleSelectBox( 330 341 VXTANDEM_LIST_PATH_DEFAULT_PARAMETERS, … … 334 345 null); 335 346 listPathFS.add(listPathDefaultParametersSB); 347 */ 336 348 // List path, taxonomy information 337 349 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); 339 353 /* 340 354 * Spectrum field set 341 355 */ 356 // Spectrum field set already created 357 /* 342 358 spectrumFS = new Fieldset(); 343 359 spectrumFS.setTitle("XTandemParameterSetSpectrum"); 344 360 addFieldset(spectrumFS); 361 */ 345 362 // Spectrum, path 346 363 spectrumPathF = new TextField<String>(VXTANDEM_SPECTRUM_PATH); … … 349 366 fragMiMassErrorF = new TextField<String>(VXTANDEM_SPECTRUM_FRAG_MI_MASS_ERROR); 350 367 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); 351 375 // Spectrum, parent monoisotopic mass error plus 352 376 parentMiMassErrorPlusF = new TextField<String>(VXTANDEM_SPECTRUM_PARENT_MI_MASS_ERROR_PLUS); … … 362 386 parentMiMassIsotopeErrorM = new Select<VString>(validStringParam, stringList, null); 363 387 spectrumFS.add(parentMiMassIsotopeErrorM); 364 // Spectrum, fragment monoisotopic mass error units365 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);371 388 // Spectrum, parent monoisotopic mass error units 372 389 validStringParam = VXTANDEM_SPECTRUM_PARENT_MI_MASS_ERROR_UNITS; … … 811 828 */ 812 829 // List path, default parameters 813 listPathDefaultParametersSB.selectOption(obj.getListPathDefaultParameters());830 //listPathDefaultParametersSB.selectOption(obj.getListPathDefaultParameters()); 814 831 // List path, taxonomy information 815 832 taxonomyInformationListPathF.setValue(obj.getListPathTaxonomyInformation()); … … 821 838 // Spectrum, fragment monoisotopic mass error 822 839 fragMiMassErrorF.setValue(obj.getSpectrumFragmentMonoisotopicMassError()); 840 // Spectrum, fragment monoisotopic mass error units 841 fragMiMassErrorUnitsM.selectOption(obj.getSpectrumFragmentMonoisotopicMassErrorUnits()); 823 842 // Spectrum, parent monoisotopic mass error plus 824 843 parentMiMassErrorPlusF.setValue(obj.getSpectrumParentMonoisotopicMassErrorPlus()); … … 827 846 // Spectrum, parent monoisotopic mass isotope error 828 847 parentMiMassIsotopeErrorM.selectOption(obj.getSpectrumParentMonoisotopicMassIsotopeError()); 829 // Spectrum, fragment monoisotopic mass error units830 fragMiMassErrorUnitsM.selectOption(obj.getSpectrumFragmentMonoisotopicMassErrorUnits());831 848 // Spectrum, parent monoisotopic mass error units 832 849 parentMiMassErrorUnitsM.selectOption(obj.getSpectrumParentMonoisotopicMassErrorUnits()); … … 1477 1494 Integer maxDisplaySize, 1478 1495 String selected) 1479 { 1480 1496 { 1481 1497 Select<VString> selectBox = new Select<VString>(validStringParam, optionList); 1482 1498 selectBox.setLabel(label);
Note: See TracChangeset
for help on using the changeset viewer.