コード例 #1
0
 /**
  * Tries to set the values of all the inputs in the TablePanel to the corresponding ones in the
  * request tuple.
  *
  * @param request
  */
 @SuppressWarnings("unchecked")
 public void setValuesFromRequest(Tuple request) {
   Object object;
   List<HtmlInput<?>> inputList = new ArrayList<HtmlInput<?>>();
   fillList(inputList, this);
   for (@SuppressWarnings("rawtypes") HtmlInput input : inputList) {
     object = request.getObject(input.getName());
     if (object != null) {
       input.setValue(object);
     }
   }
 }