Changeset 3901
- Timestamp:
- Oct 20, 2010, 2:13:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/gui/form/XTandemParameterSetForm.java
r3900 r3901 1121 1121 1122 1122 /** 1123 * Creates a single choice select box1124 *1125 * @param validStringParam VString Valid parameter coupled to select box1126 * @param label String The select box label1127 * @param optionList List<Option> List of options for the select box1128 * @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 box1131 */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 /**1154 1123 * Creates a multiple choice select box 1155 1124 * … … 1170 1139 Select<VString> selectBox = new Select<VString>(validStringParam, optionList, selectList); 1171 1140 selectBox.setLabel(label); 1172 selectBox.setMultiple(true);1173 1141 int maxSize = 4; 1174 1142 if (maxDisplaySize != null)
Note: See TracChangeset
for help on using the changeset viewer.