Changeset 3852
- Timestamp:
- Sep 15, 2010, 1:39:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java
r3851 r3852 735 735 private Select<VInteger> getNotificationModeSelectBox(int modeValue) 736 736 { 737 log.debug("modeValue = " + modeValue);738 737 Select<VInteger> modeS = new Select<VInteger>( 739 738 SavePreferences.VNOTIFICATIONMODE); … … 801 800 private Select<VInteger> getTablePreferencesModeSelectBox(int modeValue) 802 801 { 803 log.debug("modeValue = " + modeValue);804 802 Select<VInteger> modeS = new Select<VInteger>( 805 803 SavePreferences.VTABLEPREFERENCESMODE); … … 1271 1269 timeInMinutesStr = retentionTimeInMinutes.toString(); 1272 1270 } 1273 log.debug("retentionTimeInMinutes = " + retentionTimeInMinutes);1274 1271 } 1275 1272 addTableRow(propertiesTable, "RetentionTimeInMinutes", … … 2216 2213 List<String> localSampleIdList = Hit.getUniqueLocalSampleIds( 2217 2214 project, dc); 2218 log.debug("localSampleIdList = " + localSampleIdList);2219 2215 // Check if valid local sample id values exist 2220 2216 boolean validValuesExist = false; 2221 2217 if (localSampleIdList != null) 2222 2218 { 2223 log.debug("localSampleIdList.size() = " + localSampleIdList2224 .size());2225 2219 for (int i = 0; i < localSampleIdList.size(); i++) 2226 2220 { … … 2282 2276 { 2283 2277 List<String> fractionIdList = Hit.getUniqueFractionIds(project, dc); 2284 log.debug("fractionIdList = " + fractionIdList);2285 2278 // Check if valid fraction id values exist 2286 2279 boolean validValuesExist = false; 2287 2280 if (fractionIdList != null) 2288 2281 { 2289 log.debug("fractionIdList.size() = " + fractionIdList.size());2290 2282 for (int i = 0; i < fractionIdList.size(); i++) 2291 2283 { 2292 log2293 .debug("fractionIdList.get(" + i + ") = " + fractionIdList2294 .get(i));2295 2284 // Get fraction id 2296 2285 String fractionId = fractionIdList.get(i); … … 2497 2486 List<String> scoreTypeList1 = Hit.getUniqueScoreTypes(project1, dc); 2498 2487 List<String> scoreTypeList2 = Hit.getUniqueScoreTypes(project2, dc); 2499 log.debug("scoreTypeList1 = " + scoreTypeList1);2500 log.debug("scoreTypeList2 = " + scoreTypeList2);2501 2488 // Combine score type lists 2502 2489 List<String> scoreTypeList = new ArrayList<String>(0); … … 2528 2515 } 2529 2516 } 2530 log.debug("scoreTypeList = " + scoreTypeList);2531 2517 // Add score type settings select boxes 2532 2518 validStringParam = HitsComparisonReport.VHITSCOMPARISONSCORETYPE; … … 2824 2810 private boolean itemInOptionList(List<Option> optionList, String item) 2825 2811 { 2826 log.debug("item = \"" + item + "\"");2827 2812 boolean isFound = false; 2828 2813 // Check if item if found as option value in option list … … 2841 2826 } 2842 2827 } 2843 log.debug("End - return " + isFound);2844 2828 return isFound; 2845 2829 } … … 2858 2842 List<String> itemList) 2859 2843 { 2860 log.debug("itemList = " + itemList);2861 2844 // Check if all items are found among option values 2862 2845 if (itemList != null) … … 2892 2875 } 2893 2876 } 2894 log.debug("End - return true");2895 2877 return true; 2896 2878 } … … 3431 3413 // Make sure that search type is one of "MIS" (default), "SQ", "PMF" 3432 3414 String searchTypeInput = mascotParameterSet.getSearchType(); 3433 log.debug("(1) searchTypeInput = " + searchTypeInput);3434 3415 if (searchTypeInput == null) 3435 3416 { … … 3441 3422 searchTypeInput = new String("MIS"); 3442 3423 } 3443 log.debug("(2) searchTypeInput = " + searchTypeInput);3444 3424 // Get field set legend title 3445 3425 String generalFSTitle = new String("MascotParameterSetGeneral"); … … 3456 3436 generalFSTitle = new String("MascotParameterSetGeneralPMF"); 3457 3437 } 3458 log.debug("generalFSTitle = " + generalFSTitle);3438 3459 3439 generalFS.setTitle(generalFSTitle); 3460 3440 form.addFieldset(generalFS); … … 3486 3466 { 3487 3467 optionList = sequenceLibraryOptionList; 3488 log.debug("Input sequence library option list used");3489 3468 } 3490 3469 selected = mascotParameterSet.getDb(); 3491 log.debug("sequence library selected = \"" + selected + "\"");3492 3470 Select<VString> sequenceLibrarySelectBox = newStringSelectBox2( 3493 3471 validStringParam, optionList, selected); … … 3507 3485 { 3508 3486 optionList = speciesOptionList; 3509 log.debug("Input species option list used");3510 3487 } 3511 3488 selected = mascotParameterSet.getSpecies(); 3512 log.debug("species selected = \"" + selected + "\"");3513 3489 Select<VString> speciesSelectBox = newStringSelectBox2(validStringParam, optionList, selected); 3514 3490 speciesSelectBox.setLabel("MascotSpecies"); … … 3527 3503 { 3528 3504 optionList = enzymeOptionList; 3529 log.debug("Input enzyme option list used");3530 3505 } 3531 3506 selected = mascotParameterSet.getEnzyme(); … … 3546 3521 { 3547 3522 optionList = missedCleavagesOptionList; 3548 log.debug("Input missed cleavages option list used");3549 3523 } 3550 3524 selected = mascotParameterSet.getMissedCleavages(); 3551 log.debug("missed cleavages selected = \"" + selected + "\"");3552 3525 Select<VString> missedCleavagesSelectBox = newStringSelectBox2(validStringParam, optionList, selected); 3553 3526 missedCleavagesSelectBox.setLabel("MascotMissedCleavagesSelect"); … … 3565 3538 { 3566 3539 optionList = fixedModsOptionList; 3567 log.debug("Input fixed mods option list used");3568 3540 } 3569 3541 selected = mascotParameterSet.getFixed(); 3570 3542 selectedList = listStringToStringList(selected, delimRegex); 3571 log.debug("fixed mods selectedList = " + selectedList);3572 3543 Select<VString> fixedMods = newStringMultipleSelectBox(validStringParam, optionList, selectedList); 3573 3544 fixedMods.setLabel("MascotFixedMods"); … … 3587 3558 { 3588 3559 optionList = variableModsOptionList; 3589 log.debug("Input variable mods option list used");3590 3560 } 3591 3561 selected = mascotParameterSet.getVariable(); 3592 3562 selectedList = listStringToStringList(selected, delimRegex); 3593 log.debug("variable mods selectedList = " + selectedList);3594 3563 Select<VString> variableMods = newStringMultipleSelectBox( 3595 3564 validStringParam, optionList, selectedList); … … 3611 3580 { 3612 3581 optionList = quantitationOptionList; 3613 log.debug("Input quantitation option list used");3614 3582 } 3615 3583 selected = mascotParameterSet.getQuantitation(); 3616 log.debug("quantitation selected = \"" + selected + "\"");3617 3584 Select<VString> quantitationSelectBox = newStringSelectBox2(validStringParam, optionList, selected); 3618 3585 quantitationSelectBox.setLabel("MascotQuantitationSelect"); … … 3643 3610 { 3644 3611 optionList = peptideTolUnitOptionList; 3645 log.debug("Input peptide tolerance unit option list used");3646 3612 } 3647 3613 selected = mascotParameterSet.getPepTolUnit(); 3648 log.debug("peptide tolerance unit selected = \"" + selected + "\"");3649 3614 Select<VString> peptideTolUnitSelectBox = newStringSelectBox2(validStringParam, optionList, selected); 3650 3615 peptideTolUnitSelectBox.setLabel("MascotPeptideToleranceUnitSelect"); … … 3665 3630 { 3666 3631 optionList = peptideIsotopeErrorOptionList; 3667 log.debug("Input peptide isotope error option list used");3668 3632 } 3669 3633 selected = mascotParameterSet.getPeptideIsotopeError(); 3670 log.debug("peptide isotope error selected = \"" + selected + "\"");3671 3634 Select<VString> peptideIsotopeErrorSelectBox = newStringSelectBox2( 3672 3635 validStringParam, optionList, selected); … … 3692 3655 { 3693 3656 optionList = msMsTolUnitOptionList; 3694 log.debug("Input MS/MS tolerance unit option list used");3695 3657 } 3696 3658 selected = mascotParameterSet.getMsMsTolUnit(); 3697 log.debug("MS/MS tolerance unit selected = \"" + selected + "\"");3698 3659 Select<VString> msMsTolUnitSelectBox = newStringSelectBox2( 3699 3660 validStringParam, optionList, selected); … … 3713 3674 { 3714 3675 optionList = peptideChargeOptionList; 3715 log.debug("Input peptide charge option list used");3716 }3717 else3718 {3719 log.debug("Default peptide charge option list used");3720 3676 } 3721 3677 selected = mascotParameterSet.getPeptideCharge(); 3722 log.debug("Peptide charge selected = \"" + selected + "\"");3723 3678 Select<VString> peptideChargeSelectBox = newStringSelectBox2( 3724 3679 validStringParam, optionList, selected); … … 3737 3692 } 3738 3693 selected = mascotParameterSet.getMassIonType(); 3739 log.debug("Mass ion type selected = \"" + selected + "\"");3740 3694 Select<VString> massIonTypeSelectBox = newStringSelectBox2( 3741 3695 validStringParam, optionList, selected); … … 3752 3706 } 3753 3707 selected = mascotParameterSet.getMassType(); 3754 log.debug("Mass type selected = \"" + selected + "\"");3755 3708 Select<VString> massTypeSelectBox = newStringSelectBox2( 3756 3709 validStringParam, optionList, selected); … … 3770 3723 { 3771 3724 optionList = dataFormatOptionList; 3772 log.debug("Input data format option list used");3773 3725 } 3774 3726 selected = mascotParameterSet.getDataFormat(); 3775 log.debug("Data format selected = \"" + selected + "\"");3776 3727 Select<VString> dataFormatSelectBox = newStringSelectBox2( 3777 3728 validStringParam, optionList, selected); … … 3807 3758 { 3808 3759 optionList = instrumentOptionList; 3809 log.debug("Input instrument option list used");3810 3760 } 3811 3761 selected = mascotParameterSet.getInstrument(); 3812 log.debug("Instrument selected = \"" + selected + "\"");3813 3762 Select<VString> instrumentSelectBox = newStringSelectBox2(validStringParam, optionList, selected); 3814 3763 instrumentSelectBox.setLabel("MascotInstrumentSelect"); … … 3823 3772 errorTolerantCB.setValue("1"); 3824 3773 selected = mascotParameterSet.getErrorTolerant(); 3825 log.debug("Error tolerant selected = \"" + selected + "\"");3826 3774 errorTolerantCB.isChecked(false); 3827 3775 if (selected != null && selected.equals("1")) … … 3837 3785 decoyCB.setValue("1"); 3838 3786 selected = mascotParameterSet.getDecoy(); 3839 log.debug("Decoy selected = \"" + selected + "\"");3840 3787 decoyCB.isChecked(false); 3841 3788 if (selected != null && selected.equals("1")) … … 3855 3802 { 3856 3803 optionList = reportTopOptionList; 3857 log.debug("Input report top option list used");3858 3804 } 3859 3805 selected = mascotParameterSet.getReportTop(); 3860 log.debug("Report top selected = \"" + selected + "\"");3861 3806 Select<VString> reportTopSelectBox = newStringSelectBox2(validStringParam, optionList, selected); 3862 3807 reportTopSelectBox.setLabel("MascotReportTopSelect"); … … 4358 4303 } 4359 4304 // Use input enzyme option list if present 4360 if (enzymeOptionList != null)4361 {4362 log.debug("Input enzyme option list size = " + enzymeOptionList4363 .size() + " optionList.size() = " + optionList.size());4364 }4365 else4366 {4367 log4368 .debug("Input enzyme option list = null optionList.size() = " + optionList4369 .size());4370 }4371 4305 if (enzymeOptionList != null && enzymeOptionList.size() >= optionList 4372 4306 .size()) 4373 4307 { 4374 4308 optionList = enzymeOptionList; 4375 log.debug("Input enzyme option list used");4376 }4377 else4378 {4379 log.debug("Default enzyme option list used");4380 4309 } 4381 4310 selected = omssaParameterSet.getEnzyme(); 4382 log.debug("enzyme selected = \"" + selected + "\"");4383 // selectedList = listStringToStringList(selected, delimRegex);4384 // log.debug("enzyme selectedList = " + selectedList);4385 4311 Select<VString> enzymeSelectBox = newStringSelectBox2(validStringParam, 4386 4312 optionList, selected); … … 4397 4323 optionList.add(new Option("refseq_protein", "refseq_protein")); 4398 4324 // Use input sequence library option list if present 4399 if (sequenceLibraryOptionList != null)4400 {4401 log4402 .debug("Input sequence library option list size = " + sequenceLibraryOptionList4403 .size() + " optionList.size() = " + optionList.size());4404 }4405 else4406 {4407 log4408 .debug("Input sequence library option list = null optionList.size() = " + optionList4409 .size());4410 }4411 4325 if (sequenceLibraryOptionList != null && sequenceLibraryOptionList 4412 4326 .size() >= optionList.size()) 4413 4327 { 4414 4328 optionList = sequenceLibraryOptionList; 4415 log.debug("Input sequence library option list used");4416 }4417 else4418 {4419 log.debug("Default sequence library option list used");4420 4329 } 4421 4330 selected = omssaParameterSet.getDb(); 4422 log.debug("sequence library selected = \"" + selected + "\"");4423 4331 Select<VString> sequenceLibrarySelectBox = newStringSelectBox2( 4424 4332 validStringParam, optionList, selected); … … 4442 4350 { 4443 4351 optionList = speciesOptionList; 4444 log.debug("Input species option list used");4445 4352 } 4446 4353 selected = omssaParameterSet.getSpecies(); … … 4478 4385 { 4479 4386 optionList = fixedModsOptionList; 4480 log.debug("Input fixed mods option list used");4481 4387 } 4482 4388 selected = omssaParameterSet.getFixed(); … … 4504 4410 { 4505 4411 optionList = variableModsOptionList; 4506 log.debug("Input variable mods option list used");4507 4412 } 4508 4413 selected = omssaParameterSet.getVariable(); 4509 4414 selectedList = listStringToStringList(selected, delimRegex); 4510 log.debug("variable mods selectedList = " + selectedList);4511 4415 Select<VString> variableMods = newStringMultipleSelectBox( 4512 4416 validStringParam, optionList, selectedList); … … 4535 4439 } 4536 4440 selected = omssaParameterSet.getPrecursorSearchType(); 4537 log.debug("precursor mass search type selected = \"" + selected + "\"");4538 4441 Select<VString> precursorMassSearchTypeSelectBox = newStringSelectBox2( 4539 4442 validStringParam, optionList, selected); … … 4548 4451 } 4549 4452 selected = omssaParameterSet.getProductSearchType(); 4550 log.debug("product mass search type selected = \"" + selected + "\"");4551 // selectedList = listStringToStringList(selected, delimRegex);4552 // log.debug("product mass search type selectedList = " + selectedList);4553 4453 Select<VString> productMassSearchTypeSelectBox = newStringSelectBox2( 4554 4454 validStringParam, optionList, selected); … … 5618 5518 { 5619 5519 optionList = listPathDefaultParametersOptionList; 5620 log.debug("Input list path default parameters option list used");5621 5520 } 5622 5521 selected = xTandemParameterSet.getListPathDefaultParameters(); … … 5779 5678 { 5780 5679 optionList = residueModificationMassOptionList; 5781 log.debug("Input residue modification mass option list used");5782 5680 } 5783 5681 selected = xTandemParameterSet.getResidueModificationMass(); … … 5801 5699 else 5802 5700 { 5803 log.debug("residue modification mass, no inserted value"); 5701 5804 5702 modificationMass.setValue(""); 5805 5703 } … … 5876 5774 else 5877 5775 { 5878 log.debug("residue potential modification mass, no inserted value");5879 5776 potentialModificationMass.setValue(""); 5880 5777 } 5881 log5882 .debug("residue potential modification mass, potentialModificationMass.getValue() = \"" + potentialModificationMass5883 .getValue() + "\"");5884 5778 residueFS.add(potentialModificationMass); 5885 5779 // Residue, potential modification motif … … 5932 5826 { 5933 5827 optionList = speciesOptionList; 5934 log.debug("Input species option list used");5935 }5936 else5937 {5938 log.debug("Default species option list used");5939 5828 } 5940 5829 selected = xTandemParameterSet.getProteinTaxon(); 5941 log.debug("taxon selected = \"" + selected + "\"");5942 5830 // Select<VString> taxon = newStringSelectBox2(validStringParam, 5943 5831 // optionList, selected); 5944 5832 selectedList = listStringToStringList(selected, ",\\ "); 5945 log.debug("taxon selectedList = " + selectedList);5946 5833 Select<VString> taxon = newStringMultipleSelectBox(validStringParam, 5947 5834 optionList, selectedList); … … 5986 5873 { 5987 5874 optionList = proSpeciesOptionList; 5988 log.debug("Input Prokaryotes species option list used");5989 }5990 else5991 {5992 log.debug("Default Prokaryotes species option list used");5993 5875 } 5994 5876 // Same selection list as for Eukaryotes taxon is used for Prokaryotes 5995 log.debug("taxon selectedList = " + selectedList);5996 5877 Select<VString> taxon1 = newStringMultipleSelectBox(validStringParam, 5997 5878 optionList, selectedList); … … 6020 5901 { 6021 5902 optionList = proteinCleavageSiteOptionList; 6022 log.debug("Input protein cleavage site option list used");6023 }6024 else6025 {6026 log.debug("Default protein cleavage site option list used");6027 5903 } 6028 5904 selected = xTandemParameterSet.getProteinCleavageSite(); 6029 log.debug("protein cleavage site selected = \"" + selected + "\"");6030 // selectedList = listStringToStringList(selected, ",\\ ");6031 // log.debug(""protein cleavage site selectedList = " + selectedList);6032 5905 Select<VString> proteinCleavageSiteSelectBox = newStringSelectBox2( 6033 5906 validStringParam, optionList, selected); … … 6041 5914 if (!itemInOptionList(optionList, selected)) 6042 5915 { 6043 log6044 .debug("protein cleavage site, inserted value = \"" + xTandemParameterSet6045 .getProteinCleavageSite() + "\"");6046 5916 cleavageSite.setValue(xTandemParameterSet.getProteinCleavageSite()); 6047 5917 } 6048 5918 else 6049 5919 { 6050 log.debug("protein cleavage site, no inserted value");6051 5920 cleavageSite.setValue(""); 6052 5921 } 6053 log6054 .debug("protein cleavage site, cleavageSite.getValue() = \"" + cleavageSite6055 .getValue() + "\"");6056 5922 proteinFS.add(cleavageSite); 6057 5923 // Protein, modified residue mass file … … 6219 6085 else 6220 6086 { 6221 log.debug("refine potential modification mass, no inserted value");6222 6087 refinePotentialModificationMass.setValue(""); 6223 6088 } 6224 log6225 .debug("refine potential modification mass, refinePotentialModificationMass.getValue() = \"" + refinePotentialModificationMass6226 .getValue() + "\"");6227 6089 refineFS.add(refinePotentialModificationMass); 6228 6090 /** **************************************** */ … … 6528 6390 { 6529 6391 optionList = sourceDatabaseOptionList; 6530 log.debug("Input source database option list used");6531 }6532 else6533 {6534 log.debug("Default source database option list used");6535 6392 } 6536 6393 selected = pikeSourceDatabase; 6537 log.debug("source database selected = \"" + selected + "\"");6538 6394 Select<VString> sourceDatabaseSelectBox = newStringSelectBox2( 6539 6395 validStringParam, optionList, selected); … … 6561 6417 { 6562 6418 optionList = fieldSelectOptionList; 6563 log.debug("Input field select option list used");6564 }6565 else6566 {6567 log.debug("Default field select option list used");6568 6419 } 6569 6420 selectedList = pikeFieldSelectList; 6570 log.debug("field select selectedList = " + selectedList);6571 6421 Select<VString> fieldSelect = newStringMultipleSelectBox( 6572 6422 validStringParam, optionList, selectedList); … … 6582 6432 optionList.add(new Option("0", "no")); 6583 6433 selected = pikeGeneOntologyCheck; 6584 log.debug("gene ontology check selected = \"" + selected + "\"");6585 6434 Select<VString> geneOntologyCheckSelectBox = newStringSelectBox2( 6586 6435 validStringParam, optionList, selected); … … 6604 6453 { 6605 6454 optionList = inputFileTypeOptionList; 6606 log.debug("Input input file type option list used");6607 }6608 else6609 {6610 log.debug("Default input file type option list used");6611 6455 } 6612 6456 selected = pikeInputFileType; 6613 log.debug("input file type selected = \"" + selected + "\"");6614 6457 Select<VString> inputFileTypeSelectBox = newStringSelectBox2( 6615 6458 validStringParam, optionList, selected); … … 6632 6475 { 6633 6476 optionList = outputFileTypeOptionList; 6634 log.debug("Input output file type option list used");6635 }6636 else6637 {6638 log.debug("Default output file type option list used");6639 6477 } 6640 6478 selectedList = pikeOutputFileTypeList; 6641 log.debug("output file type selectedList = " + selectedList);6642 6479 Select<VString> outputFileTypeSelect = newStringMultipleSelectBox( 6643 6480 validStringParam, optionList, selectedList); … … 7178 7015 */ 7179 7016 Form form = null; 7180 log7181 .debug("FormFactory::getForm(): Start =====================================");7182 if (template == null)7183 {7184 log.debug("FormFactory::getForm(): template == null");7185 }7186 7017 if (template instanceof FormTemplateImpl) 7187 7018 { 7188 log7189 .debug("FormFactory::getForm(): template instance of FormTemplateImpl");7190 7019 FormTemplateImpl formTemplate = (FormTemplateImpl) template; 7191 7020 form = getFormImpl(formTemplate); 7192 7021 } 7193 else7194 {7195 log7196 .debug("FormFactory::getForm(): template not instance of FormTemplateImpl");7197 }7198 /*7199 * Return generated form.7200 */7201 7022 return form; 7202 7023 } … … 7214 7035 * Analyze object class 7215 7036 */ 7216 if (formTemplate == null) 7217 { 7218 log.debug("FormFactory::getFormImpl(): formTemplate == null"); 7219 return null; 7220 } 7221 log 7222 .debug("FormFactory::getFormImpl(): Start ====================================="); 7223 log 7224 .debug("FormFactory::getFormImpl(): formTemplate.getItemObject() = \"" + formTemplate 7225 .getItemObject() + "\""); 7226 log 7227 .debug("FormFactory::getFormImpl(): formTemplate.getItemClass() = \"" + formTemplate 7228 .getItemClass() + "\""); 7229 log 7230 .debug("FormFactory::getFormImpl(): formTemplate.isReadOnlyForm = " + formTemplate 7231 .isReadOnlyForm()); 7232 if (formTemplate.getExcludedDeclMethods() == null) 7233 { 7234 log 7235 .debug("FormFactory::getFormImpl(): formTemplate.getExcludedDeclMethods() == null"); 7236 } 7237 else 7238 { 7239 log 7240 .debug("FormFactory::getFormImpl(): formTemplate.getExcludedDeclMethods().size() = " + formTemplate 7241 .getExcludedDeclMethods().size()); 7242 for (int i = 0; i < formTemplate.getExcludedDeclMethods().size(); i++) 7243 { 7244 log 7245 .debug("FormFactory::getFormImpl(): formTemplate.getExcludedDeclMethods().get(" + i + ") = \"" + formTemplate 7246 .getExcludedDeclMethods().get(i) + "\""); 7247 } 7248 } 7037 7249 7038 /* 7250 7039 * Get class from formTemplate itemObject or itemClass. … … 7268 7057 addExcludedDeclMethods(formTemplate.getExcludedDeclMethods()); 7269 7058 } 7270 log7271 .debug("FormFactory::getFormImpl(): (After checking for itemObject) itemClass = \"" + itemClass + "\"");7272 7059 String clsName = new String(""); 7273 7060 if (itemClass != null) … … 7275 7062 clsName = itemClass.getSimpleName(); 7276 7063 } 7277 log.debug("FormFactory::getFormImpl(): clsName = \"" + clsName + "\""); 7064 7278 7065 /*********************************************************************** 7279 7066 * Main fieldset … … 7281 7068 Fieldset mainFS = new Fieldset(); 7282 7069 String mainFsName = new String("Properties"); 7283 // if (clsName != null && !clsName.equals(""))7284 // {7285 // mainFsName = clsName;7286 // }7287 7070 mainFS.setTitle(mainFsName); 7288 7071 /* … … 7309 7092 catch (InvocationTargetException e) 7310 7093 { 7311 log7312 .warn("FormFactory::getFormImpl(): InvocationTargetException when invoking method \"" + getIdMethodName + "\":" + e);7313 7094 itemId = 0; 7314 7095 } 7315 7096 catch (IllegalAccessException e) 7316 7097 { 7317 log7318 .warn("FormFactory::getFormImpl(): IllegalAccessException when invoking method \"" + getIdMethodName + "\":" + e);7319 7098 itemId = 0; 7320 7099 } 7321 7100 catch (java.lang.NumberFormatException e) 7322 7101 { 7323 log7324 .warn("FormFactory::getFormImpl(): NumberFormatException when invoking method \"" + getIdMethodName + "\":" + e);7325 7102 itemId = 0; 7326 7103 } … … 7336 7113 idF.setValue(itemId); 7337 7114 idF.setDisabled(true); 7338 log7339 .debug("FormFactory::getFormImpl(): Hidden TextField idF set to " + itemId);7340 }7341 else7342 {7343 log7344 .debug("FormFactory::getFormImpl(): Hidden TextField idF NOT set, itemId = " + itemId);7345 7115 } 7346 7116 /* … … 7358 7128 cnF.setValue(classNameFull); 7359 7129 cnF.setDisabled(true); 7360 log7361 .debug("FormFactory::getFormImpl(): Hidden TextField cnF set to \"" + classNameFull + "\"");7362 7130 /* 7363 7131 * Add readOnlyForm field rofF (hidden). … … 7368 7136 rofF.setValue(formTemplate.isReadOnlyForm()); 7369 7137 rofF.setDisabled(true); 7370 log7371 .debug("FormFactory::getFormImpl(): Hidden TextField rofF (readOnlyForm field) set to " + formTemplate7372 .isReadOnlyForm());7373 7138 /* 7374 7139 * Keep track on whether public setter methods exist, in order to know … … 7461 7226 } 7462 7227 } 7463 log7464 .debug("FormFactory::getFormImpl(): methodName = \"" + methodName + "\" returnTypeOfGetterMethod = \"" + returnTypeOfGetterMethod + "\" returnTypeStr = \"" + returnTypeStr + "\" returnTypeOK = " + returnTypeOK);7465 7228 if (returnTypeOK) 7466 7229 { … … 7566 7329 } 7567 7330 } 7568 for (int i = 0; i < declaredMethodArr.length; i++) 7569 { 7570 Method method = declaredMethodArr[i]; 7571 String modStr = methodModifierString(method); 7572 String methodName = method.getName(); 7573 String methodReturnType = method.getReturnType().getName(); 7574 if (getExcludedDeclMethods().contains(methodName)) 7575 { 7576 log 7577 .debug("FormFactory::getFormImpl(): *Excluded* " + modStr + " " + methodReturnType + " declaredMethodArr[" + i + "].getName() = \"" + methodName + "\""); 7578 } 7579 } 7331 7580 7332 /* 7581 7333 * Check if object supports method getAnnotationSet(). … … 7587 7339 methodGeneralArr = itemClass.getMethods(); 7588 7340 } 7589 log7590 .debug("FormFactory::getFormImpl(): methodGeneralArr.length = " + methodGeneralArr.length);7591 7341 for (int i = 0; i < methodGeneralArr.length; i++) 7592 7342 { … … 7658 7408 .substring(1, clsName.length()) + "Form"; 7659 7409 } 7660 log7661 .debug("FormFactory::getFormImpl(): formName = \"" + formName + "\"");7662 7410 Form form = new Form(formName); 7663 7411 form.setTitle(clsName); … … 7670 7418 form.addFieldset(annotationFS); 7671 7419 } 7672 log7673 .debug("FormFactory::getFormImpl(): hasSetterMethods = " + hasSetterMethods);7674 7420 /* 7675 7421 * Return generated form. … … 7699 7445 } 7700 7446 String clsName = cls.getSimpleName(); 7701 log7702 .debug("FormFactory::getDbControlForObject(): clsName = \"" + clsName + "\"");7703 7447 /* 7704 7448 * Check if object supports method getDbControl(). … … 7706 7450 DbControl dc = null; 7707 7451 Method[] methodGeneralArr = cls.getMethods(); 7708 log7709 .debug("FormFactory::getDbControlForObject(): methodGeneralArr.length = " + methodGeneralArr.length);7710 7452 for (int i = 0; i < methodGeneralArr.length; i++) 7711 7453 { … … 7752 7494 Class<? extends Object> cls) 7753 7495 { 7754 log7755 .debug("FormFactory::fetchPublicMethodForObject(): publMethodName = \"" + publMethodName + "\"");7756 7496 if (cls == null) 7757 7497 { … … 7759 7499 } 7760 7500 String clsName = cls.getSimpleName(); 7761 log7762 .debug("FormFactory::fetchPublicMethodForObject(): clsName = \"" + clsName + "\"");7763 7501 /* 7764 7502 * Check if object supports public method with desired name. … … 7782 7520 } 7783 7521 } 7784 /*7785 * Return method.7786 */7787 if (publMethod == null)7788 {7789 log7790 .debug("FormFactory::fetchPublicMethodForObject(): publMethod == null");7791 }7792 else7793 {7794 log7795 .debug("FormFactory::fetchPublicMethodForObject(): publMethod.getName() = \"" + publMethod7796 .getName() + "\"");7797 }7798 7522 return publMethod; 7799 7523 } … … 7868 7592 count += spectrumSearchCount; 7869 7593 } 7870 log.debug("FormFactory::getTrashCanForm(): dirCount = " + dirCount);7871 log.debug("FormFactory::getTrashCanForm(): fileCount = " + fileCount);7872 log.debug("FormFactory::getTrashCanForm(): jobCount = " + jobCount);7873 log7874 .debug("FormFactory::getTrashCanForm(): spectrumSearchCount = " + spectrumSearchCount);7875 log.debug("FormFactory::getTrashCanForm(): count = " + count);7876 7594 // Add info line(s) on number of items of each class to delete 7877 7595 if (count == 0) … … 8601 8319 private Select<VInteger> getProtocolSelectBox(Class cls, Object obj) 8602 8320 { 8603 log.debug("cls = " + cls + " obj = " + obj);8604 8321 Select<VInteger> protocolS = new Select<VInteger>(VPROTOCOLID); 8605 8322 protocolS.setLabel("Protocol"); … … 8635 8352 if (mbm instanceof Extract) 8636 8353 { 8637 log.debug("MeasuredBioMaterial instanceof Extract");8638 8354 pTypeList.add(ProtocolType.EXTRACTION); 8639 8355 } 8640 8356 if (mbm instanceof LabeledExtract) 8641 8357 { 8642 log8643 .debug("MeasuredBioMaterial instanceof LabeledExtract");8644 8358 pTypeList.add(ProtocolType.LABELING); 8645 }8646 if (mbm instanceof MeasuredArea)8647 {8648 log8649 .debug("MeasuredBioMaterial instanceof MeasuredArea");8650 // pTypeList.add(ProtocolType.EXTRACTION);8651 8359 } 8652 8360 if (mbm instanceof Sample) 8653 8361 { 8654 log.debug("MeasuredBioMaterial instanceof Sample");8655 8362 pTypeList.add(ProtocolType.SAMPLING); 8656 8363 } 8657 log.debug("MeasuredBioMaterial is pooled = " + mbm8658 .isPooled());8659 8364 if (mbm.isPooled()) 8660 8365 { … … 8664 8369 } 8665 8370 } 8666 log.debug("pTypeList = " + pTypeList);8667 8371 // Get optional input protocol 8668 8372 Protocol inProtocol = null; … … 8671 8375 BioMaterialEvent<?> bme = (BioMaterialEvent<?>) obj; 8672 8376 inProtocol = bme.getProtocol(); 8673 }8674 if (inProtocol != null)8675 {8676 log8677 .debug("inProtocol = " + inProtocol + " inProtocol.isRemoved() = " + inProtocol8678 .isRemoved());8679 }8680 else8681 {8682 log.debug("inProtocol = " + inProtocol);8683 8377 } 8684 8378 // Get protocols … … 8824 8518 { 8825 8519 List<String> stringList = null; 8826 log8827 .debug("listString = \"" + listString + "\" delimiterRegex = \"" + delimiterRegex + "\"");8828 8520 if (listString != null) 8829 8521 { … … 8831 8523 for (String part : listString.split(delimiterRegex, -1)) 8832 8524 { 8833 log.debug("part = \"" + part + "\"");8834 8525 // Add list part if not already in list 8835 8526 if (part != null && !stringList.contains(part)) … … 8839 8530 } 8840 8531 } 8841 log.debug("stringList = " + stringList);8842 8532 return stringList; 8843 8533 }
Note: See TracChangeset
for help on using the changeset viewer.