Changeset 3901


Ignore:
Timestamp:
Oct 20, 2010, 2:13:43 PM (13 years ago)
Author:
olle
Message:

Refs #700. Class/file gui/form/XTandemParameterSetForm.java in
client/servlet/ updated:

  1. Private method Select<VString> createMultipleSelectBox(...)

updated by removing command setting the select box attribute
multiple to true, since the used constructor for the
select box now automatically does this.

  1. Private method Select<VString> createSingleSelectBox(...)

removed, since it is no longer called.

File:
1 edited

Legend:

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

    r3900 r3901  
    11211121
    11221122  /**
    1123    * Creates a single choice select box
    1124    *
    1125    * @param validStringParam VString Valid parameter coupled to select box
    1126    * @param label String The select box label
    1127    * @param optionList List<Option> List of options for the select box
    1128    * @param maxDisplaySize Integer The maximal number of options displayed at once.
    1129    * @param selected String The selected option.
    1130    * @return Select<String> A single choice select box
    1131    */
    1132   private Select<VString> createSingleSelectBox(
    1133     VString validStringParam,
    1134     String label,
    1135     List<Option> optionList,
    1136     Integer maxDisplaySize,
    1137     String selected)
    1138   {   
    1139     Select<VString> selectBox = new Select<VString>(validStringParam, optionList);
    1140     selectBox.setLabel(label);
    1141     selectBox.setMultiple(false);
    1142     int maxSize = 4;
    1143     if (maxDisplaySize != null)
    1144     {
    1145       maxSize = maxDisplaySize;
    1146     }
    1147     selectBox.setMaxSize(maxSize);
    1148     selectBox.selectOption(selected);
    1149     return selectBox;
    1150   }
    1151 
    1152 
    1153   /**
    11541123   * Creates a multiple choice select box
    11551124   *
     
    11701139    Select<VString> selectBox = new Select<VString>(validStringParam, optionList, selectList);
    11711140    selectBox.setLabel(label);
    1172     selectBox.setMultiple(true);
    11731141    int maxSize = 4;
    11741142    if (maxDisplaySize != null)
Note: See TracChangeset for help on using the changeset viewer.