Changeset 3838
- Timestamp:
- Sep 8, 2010, 1:43:59 PM (13 years ago)
- Location:
- trunk/client/servlet/src/org/proteios
- Files:
-
- 2 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/action/directory/ViewActiveDirectory.java
r3823 r3838 315 315 String nextButtonName = fetchNextButtonName(select, selectMoveDir); 316 316 fileTable.add(getFormFactory().createField( 317 FormFactory.VFILESELECTIONNEXTBUTTONNAME).setValue(nextButtonName));317 NextButtonNameField.VPARAM).setValue(nextButtonName)); 318 318 // Use getRequest().getAttribute("table") in a 319 319 // subsequent action to get the created table. … … 717 717 try 718 718 { 719 nextButtonName = getString( FormFactory.VFILESELECTIONNEXTBUTTONNAME);719 nextButtonName = getString(NextButtonNameField.VPARAM); 720 720 } 721 721 catch (InvalidParameterValue e) … … 723 723 if (nextButtonName == null || nextButtonName.equals("")) 724 724 { 725 nextButtonName = getSessionAttribute( FormFactory.VFILESELECTIONNEXTBUTTONNAME);725 nextButtonName = getSessionAttribute(NextButtonNameField.VPARAM); 726 726 } 727 727 if (nextButtonName == null || nextButtonName.equals("")) … … 791 791 clickAction 792 792 .addParameter(TitleField.VPARAM, formTitle); 793 clickAction.addParameter( FormFactory.VFILESELECTIONNEXTBUTTONNAME,793 clickAction.addParameter(NextButtonNameField.VPARAM, 794 794 nextButtonName); 795 795 if (moveFilesMode) -
trunk/client/servlet/src/org/proteios/action/file/PerformMascotSearch.java
r3823 r3838 61 61 setSessionAttribute(ViewActiveDirectory.VSELECT, true); 62 62 setSessionAttribute(TitleField.VPARAM, "SelectMascotSearchSpectrumFiles"); 63 setSessionAttribute( FormFactory.VFILESELECTIONNEXTBUTTONNAME, "NextSelectMascotSearchUserData");63 setSessionAttribute(NextButtonNameField.VPARAM, "NextSelectMascotSearchUserData"); 64 64 setForwardTo(ViewActiveDirectory.class); 65 65 } -
trunk/client/servlet/src/org/proteios/action/file/PerformOMSSASearch.java
r3823 r3838 61 61 setSessionAttribute(ViewActiveDirectory.VSELECT, true); 62 62 setSessionAttribute(TitleField.VPARAM, "SelectOMSSASearchSpectrumFiles"); 63 setSessionAttribute( FormFactory.VFILESELECTIONNEXTBUTTONNAME, "NextSelectOMSSAParameterSet");63 setSessionAttribute(NextButtonNameField.VPARAM, "NextSelectOMSSAParameterSet"); 64 64 setForwardTo(ViewActiveDirectory.class); 65 65 } -
trunk/client/servlet/src/org/proteios/action/file/PerformXTandemSearch.java
r3823 r3838 61 61 setSessionAttribute(ViewActiveDirectory.VSELECT, true); 62 62 setSessionAttribute(TitleField.VPARAM, "SelectXTandemSearchSpectrumFiles"); 63 setSessionAttribute( FormFactory.VFILESELECTIONNEXTBUTTONNAME, "NextSelectXTandemParameterSet");63 setSessionAttribute(NextButtonNameField.VPARAM, "NextSelectXTandemParameterSet"); 64 64 setForwardTo(ViewActiveDirectory.class); 65 65 } -
trunk/client/servlet/src/org/proteios/action/hit/SelectPrideProtocolFileStep1a.java
r3823 r3838 125 125 setSessionAttribute(ViewActiveDirectory.VSELECT, true); 126 126 setSessionAttribute(TitleField.VPARAM, "SelectPrideProtocolFile"); 127 setSessionAttribute( FormFactory.VFILESELECTIONNEXTBUTTONNAME, "NextCreateExportJobs");127 setSessionAttribute(NextButtonNameField.VPARAM, "NextCreateExportJobs"); 128 128 setSessionAttribute(FormFactory.VFWD2ACTION, forward2Id); 129 129 setSessionAttribute(ForwardField.VPARAM, forwardId); -
trunk/client/servlet/src/org/proteios/action/mascot/SelectMascotParameterFileStep1a.java
r3828 r3838 97 97 setSessionAttribute(ViewActiveDirectory.VSELECT, true); 98 98 setSessionAttribute(TitleField.VPARAM, "SelectMascotParameterTemplateFile"); 99 setSessionAttribute( FormFactory.VFILESELECTIONNEXTBUTTONNAME, "Next");99 setSessionAttribute(NextButtonNameField.VPARAM, "Next"); 100 100 setSessionAttribute(FormFactory.VFWD2ACTION, forward2Id); 101 101 setSessionAttribute(ForwardField.VPARAM, forwardId); -
trunk/client/servlet/src/org/proteios/action/omssa/SelectOMSSAParameterFileStep1a.java
r3828 r3838 97 97 setSessionAttribute(ViewActiveDirectory.VSELECT, true); 98 98 setSessionAttribute(TitleField.VPARAM, "SelectOMSSAParameterTemplateFile"); 99 setSessionAttribute( FormFactory.VFILESELECTIONNEXTBUTTONNAME, "Next");99 setSessionAttribute(NextButtonNameField.VPARAM, "Next"); 100 100 setSessionAttribute(FormFactory.VFWD2ACTION, forward2Id); 101 101 setSessionAttribute(ForwardField.VPARAM, forwardId); -
trunk/client/servlet/src/org/proteios/action/user/SaveMyProfileProperties.java
r3836 r3838 58 58 phone = getString(PhoneField.VPARAM); 59 59 address = getString(AddressField.VPARAM); 60 organisation = getString( FormFactory.VORGANISATION);60 organisation = getString(OrganisationField.VPARAM); 61 61 62 62 // Save user -
trunk/client/servlet/src/org/proteios/action/user/SaveUserProperties.java
r3836 r3838 60 60 phone = getString(PhoneField.VPARAM); 61 61 address = getString(AddressField.VPARAM); 62 organisation = getString( FormFactory.VORGANISATION);62 organisation = getString(OrganisationField.VPARAM); 63 63 64 64 // Save user -
trunk/client/servlet/src/org/proteios/action/xTandemInput/SelectXTandemParameterFileStep1a.java
r3828 r3838 97 97 setSessionAttribute(ViewActiveDirectory.VSELECT, true); 98 98 setSessionAttribute(TitleField.VPARAM, "SelectXTandemParameterTemplateFile"); 99 setSessionAttribute( FormFactory.VFILESELECTIONNEXTBUTTONNAME, "Next");99 setSessionAttribute(NextButtonNameField.VPARAM, "Next"); 100 100 setSessionAttribute(FormFactory.VFWD2ACTION, forward2Id); 101 101 setSessionAttribute(ForwardField.VPARAM, forwardId); -
trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java
r3837 r3838 132 132 public static final VInteger VSPECTRUMSEARCHCOUNT = new VInteger("spectrumSearchCount", 0, true); 133 133 public static final VBoolean VREADONLYFORM = new VBoolean("readOnlyForm",false); 134 public static final VString VFILESELECTIONNEXTBUTTONNAME = new VString("fileSelectionNextButtonName", 0, 255, false);135 134 public static final VBoolean VCONFIRM = new VBoolean("confirm", false); 136 135 public static final VString VCONFIRMMESSAGE = new VString("confirmMessage",0, 255, false); … … 485 484 TextField<Boolean> field = new TextField<Boolean>(VREADONLYFORM) 486 485 .setHidden(true); 487 return field;488 }489 490 491 private TextField<String> newHiddenFileSelectionNextButtonNameField()492 {493 TextField<String> field = new TextField<String>(494 VFILESELECTIONNEXTBUTTONNAME).setHidden(true);495 486 return field; 496 487 } … … 2193 2184 * in the file selection form. 2194 2185 */ 2195 TextField<String> buttonNameF = new HiddenFileSelectionNextButtonNameField();2186 TextField<String> buttonNameF = new NextButtonNameField(); 2196 2187 buttonNameF.setValue("Import"); 2197 2188 properties.add(buttonNameF); … … 2232 2223 * in the file selection form. 2233 2224 */ 2234 TextField<String> buttonNameF = new HiddenFileSelectionNextButtonNameField();2225 TextField<String> buttonNameF = new NextButtonNameField(); 2235 2226 buttonNameF.setValue("Import"); 2236 2227 properties.add(buttonNameF); … … 2299 2290 * in the file selection form. 2300 2291 */ 2301 TextField<String> buttonNameF = new HiddenFileSelectionNextButtonNameField();2292 TextField<String> buttonNameF = new NextButtonNameField(); 2302 2293 buttonNameF.setValue("Import"); 2303 2294 properties.add(buttonNameF); … … 2346 2337 * in the file selection form. 2347 2338 */ 2348 TextField<String> buttonNameF = new HiddenFileSelectionNextButtonNameField();2339 TextField<String> buttonNameF = new NextButtonNameField(); 2349 2340 buttonNameF.setValue("Import"); 2350 2341 properties.add(buttonNameF); … … 2420 2411 * in the file selection form. 2421 2412 */ 2422 TextField<String> buttonNameF = new HiddenFileSelectionNextButtonNameField();2413 TextField<String> buttonNameF = new NextButtonNameField(); 2423 2414 buttonNameF.setValue("Import"); 2424 2415 properties.add(buttonNameF); -
trunk/client/servlet/src/org/proteios/gui/form/OrganisationField.java
r3837 r3838 29 29 package org.proteios.gui.form; 30 30 31 import org.proteios.gui.form.*;32 31 import se.lu.thep.waf.constraints.VString; 33 32 34 33 /** 35 34 */ 36 public class TestField extends TextField<String>35 public class OrganisationField extends TextField<String> 37 36 { 38 37 public static final VString VPARAM = new VString("organisation", 0, 255); 39 38 40 public Test()39 public OrganisationField() 41 40 { 42 super( Test.VPARAM);41 super(OrganisationField.VPARAM); 43 42 setLabel("Organisation"); 44 43 }
Note: See TracChangeset
for help on using the changeset viewer.