1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.event;
17
18 import java.util.ArrayList;
19 import java.util.List;
20
21 import org.kuali.student.common.ui.client.mvc.UncheckedApplicationEvent;
22 import org.kuali.student.common.validation.dto.ValidationResultInfo;
23
24
25
26
27
28
29
30 public class ValidateResultEvent extends UncheckedApplicationEvent<ValidateResultHandler> {
31 public static final Type<ValidateResultHandler> TYPE = new Type<ValidateResultHandler>();
32 private List<ValidationResultInfo> validationResultList = new ArrayList<ValidationResultInfo>();
33 @Override
34 protected void dispatch(ValidateResultHandler handler) {
35 handler.onValidateResult(this);
36 }
37
38 @Override
39 public Type<ValidateResultHandler> getAssociatedType() {
40 return TYPE;
41 }
42
43 public void setValidationResult(List<ValidationResultInfo> l){
44 validationResultList = l;
45 }
46
47 public void addValidationResult(List<ValidationResultInfo> l){
48 validationResultList.addAll(l);
49 }
50 public List<ValidationResultInfo> getValidationResult(){
51 return validationResultList;
52 }
53 }