Changeset 3838


Ignore:
Timestamp:
Sep 8, 2010, 1:43:59 PM (13 years ago)
Author:
Gregory Vincic
Message:

Refs #698. Using OrganisationField and NextButtonNameField

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  
    315315    String nextButtonName = fetchNextButtonName(select, selectMoveDir);
    316316    fileTable.add(getFormFactory().createField(
    317       FormFactory.VFILESELECTIONNEXTBUTTONNAME).setValue(nextButtonName));
     317      NextButtonNameField.VPARAM).setValue(nextButtonName));
    318318    // Use getRequest().getAttribute("table") in a
    319319    // subsequent action to get the created table.
     
    717717      try
    718718      {
    719         nextButtonName = getString(FormFactory.VFILESELECTIONNEXTBUTTONNAME);
     719        nextButtonName = getString(NextButtonNameField.VPARAM);
    720720      }
    721721      catch (InvalidParameterValue e)
     
    723723      if (nextButtonName == null || nextButtonName.equals(""))
    724724      {
    725         nextButtonName = getSessionAttribute(FormFactory.VFILESELECTIONNEXTBUTTONNAME);
     725        nextButtonName = getSessionAttribute(NextButtonNameField.VPARAM);
    726726      }
    727727      if (nextButtonName == null || nextButtonName.equals(""))
     
    791791      clickAction
    792792        .addParameter(TitleField.VPARAM, formTitle);
    793       clickAction.addParameter(FormFactory.VFILESELECTIONNEXTBUTTONNAME,
     793      clickAction.addParameter(NextButtonNameField.VPARAM,
    794794        nextButtonName);
    795795      if (moveFilesMode)
  • trunk/client/servlet/src/org/proteios/action/file/PerformMascotSearch.java

    r3823 r3838  
    6161    setSessionAttribute(ViewActiveDirectory.VSELECT, true);
    6262    setSessionAttribute(TitleField.VPARAM, "SelectMascotSearchSpectrumFiles");
    63     setSessionAttribute(FormFactory.VFILESELECTIONNEXTBUTTONNAME, "NextSelectMascotSearchUserData");
     63    setSessionAttribute(NextButtonNameField.VPARAM, "NextSelectMascotSearchUserData");
    6464    setForwardTo(ViewActiveDirectory.class);
    6565  }
  • trunk/client/servlet/src/org/proteios/action/file/PerformOMSSASearch.java

    r3823 r3838  
    6161    setSessionAttribute(ViewActiveDirectory.VSELECT, true);
    6262    setSessionAttribute(TitleField.VPARAM, "SelectOMSSASearchSpectrumFiles");
    63     setSessionAttribute(FormFactory.VFILESELECTIONNEXTBUTTONNAME, "NextSelectOMSSAParameterSet");
     63    setSessionAttribute(NextButtonNameField.VPARAM, "NextSelectOMSSAParameterSet");
    6464    setForwardTo(ViewActiveDirectory.class);
    6565  }
  • trunk/client/servlet/src/org/proteios/action/file/PerformXTandemSearch.java

    r3823 r3838  
    6161    setSessionAttribute(ViewActiveDirectory.VSELECT, true);
    6262    setSessionAttribute(TitleField.VPARAM, "SelectXTandemSearchSpectrumFiles");
    63     setSessionAttribute(FormFactory.VFILESELECTIONNEXTBUTTONNAME, "NextSelectXTandemParameterSet");
     63    setSessionAttribute(NextButtonNameField.VPARAM, "NextSelectXTandemParameterSet");
    6464    setForwardTo(ViewActiveDirectory.class);
    6565  }
  • trunk/client/servlet/src/org/proteios/action/hit/SelectPrideProtocolFileStep1a.java

    r3823 r3838  
    125125    setSessionAttribute(ViewActiveDirectory.VSELECT, true);
    126126    setSessionAttribute(TitleField.VPARAM, "SelectPrideProtocolFile");
    127     setSessionAttribute(FormFactory.VFILESELECTIONNEXTBUTTONNAME, "NextCreateExportJobs");
     127    setSessionAttribute(NextButtonNameField.VPARAM, "NextCreateExportJobs");
    128128    setSessionAttribute(FormFactory.VFWD2ACTION, forward2Id);
    129129    setSessionAttribute(ForwardField.VPARAM, forwardId);
  • trunk/client/servlet/src/org/proteios/action/mascot/SelectMascotParameterFileStep1a.java

    r3828 r3838  
    9797    setSessionAttribute(ViewActiveDirectory.VSELECT, true);
    9898    setSessionAttribute(TitleField.VPARAM, "SelectMascotParameterTemplateFile");
    99     setSessionAttribute(FormFactory.VFILESELECTIONNEXTBUTTONNAME, "Next");
     99    setSessionAttribute(NextButtonNameField.VPARAM, "Next");
    100100    setSessionAttribute(FormFactory.VFWD2ACTION, forward2Id);
    101101    setSessionAttribute(ForwardField.VPARAM, forwardId);
  • trunk/client/servlet/src/org/proteios/action/omssa/SelectOMSSAParameterFileStep1a.java

    r3828 r3838  
    9797    setSessionAttribute(ViewActiveDirectory.VSELECT, true);
    9898    setSessionAttribute(TitleField.VPARAM, "SelectOMSSAParameterTemplateFile");
    99     setSessionAttribute(FormFactory.VFILESELECTIONNEXTBUTTONNAME, "Next");
     99    setSessionAttribute(NextButtonNameField.VPARAM, "Next");
    100100    setSessionAttribute(FormFactory.VFWD2ACTION, forward2Id);
    101101    setSessionAttribute(ForwardField.VPARAM, forwardId);
  • trunk/client/servlet/src/org/proteios/action/user/SaveMyProfileProperties.java

    r3836 r3838  
    5858    phone = getString(PhoneField.VPARAM);
    5959    address = getString(AddressField.VPARAM);
    60   organisation = getString(FormFactory.VORGANISATION);
     60  organisation = getString(OrganisationField.VPARAM);
    6161
    6262    // Save user
  • trunk/client/servlet/src/org/proteios/action/user/SaveUserProperties.java

    r3836 r3838  
    6060    phone = getString(PhoneField.VPARAM);
    6161    address = getString(AddressField.VPARAM);
    62   organisation = getString(FormFactory.VORGANISATION);
     62  organisation = getString(OrganisationField.VPARAM);
    6363
    6464    // Save user
  • trunk/client/servlet/src/org/proteios/action/xTandemInput/SelectXTandemParameterFileStep1a.java

    r3828 r3838  
    9797    setSessionAttribute(ViewActiveDirectory.VSELECT, true);
    9898    setSessionAttribute(TitleField.VPARAM, "SelectXTandemParameterTemplateFile");
    99     setSessionAttribute(FormFactory.VFILESELECTIONNEXTBUTTONNAME, "Next");
     99    setSessionAttribute(NextButtonNameField.VPARAM, "Next");
    100100    setSessionAttribute(FormFactory.VFWD2ACTION, forward2Id);
    101101    setSessionAttribute(ForwardField.VPARAM, forwardId);
  • trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java

    r3837 r3838  
    132132  public static final VInteger VSPECTRUMSEARCHCOUNT = new VInteger("spectrumSearchCount", 0, true);
    133133  public static final VBoolean VREADONLYFORM = new VBoolean("readOnlyForm",false);
    134   public static final VString VFILESELECTIONNEXTBUTTONNAME = new VString("fileSelectionNextButtonName", 0, 255, false);
    135134  public static final VBoolean VCONFIRM = new VBoolean("confirm", false);
    136135  public static final VString VCONFIRMMESSAGE = new VString("confirmMessage",0, 255, false);
     
    485484    TextField<Boolean> field = new TextField<Boolean>(VREADONLYFORM)
    486485      .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);
    495486    return field;
    496487  }
     
    21932184       * in the file selection form.
    21942185       */
    2195       TextField<String> buttonNameF = newHiddenFileSelectionNextButtonNameField();
     2186      TextField<String> buttonNameF = new NextButtonNameField();
    21962187      buttonNameF.setValue("Import");
    21972188      properties.add(buttonNameF);
     
    22322223       * in the file selection form.
    22332224       */
    2234       TextField<String> buttonNameF = newHiddenFileSelectionNextButtonNameField();
     2225      TextField<String> buttonNameF = new NextButtonNameField();
    22352226      buttonNameF.setValue("Import");
    22362227      properties.add(buttonNameF);
     
    22992290       * in the file selection form.
    23002291       */
    2301       TextField<String> buttonNameF = newHiddenFileSelectionNextButtonNameField();
     2292      TextField<String> buttonNameF = new NextButtonNameField();
    23022293      buttonNameF.setValue("Import");
    23032294      properties.add(buttonNameF);
     
    23462337       * in the file selection form.
    23472338       */
    2348       TextField<String> buttonNameF = newHiddenFileSelectionNextButtonNameField();
     2339      TextField<String> buttonNameF = new NextButtonNameField();
    23492340      buttonNameF.setValue("Import");
    23502341      properties.add(buttonNameF);
     
    24202411       * in the file selection form.
    24212412       */
    2422       TextField<String> buttonNameF = newHiddenFileSelectionNextButtonNameField();
     2413      TextField<String> buttonNameF = new NextButtonNameField();
    24232414      buttonNameF.setValue("Import");
    24242415      properties.add(buttonNameF);
  • trunk/client/servlet/src/org/proteios/gui/form/OrganisationField.java

    r3837 r3838  
    2929package org.proteios.gui.form;
    3030
    31 import org.proteios.gui.form.*;
    3231import se.lu.thep.waf.constraints.VString;
    3332
    3433/**
    3534*/
    36 public class TestField extends TextField<String>
     35public class OrganisationField extends TextField<String>
    3736{
    3837  public static final VString VPARAM = new VString("organisation", 0, 255);
    3938 
    40   public Test()
     39  public OrganisationField()
    4140  {
    42     super(Test.VPARAM);
     41    super(OrganisationField.VPARAM);
    4342    setLabel("Organisation");
    4443  }
Note: See TracChangeset for help on using the changeset viewer.