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 | 0 | public class ValidateResultEvent extends UncheckedApplicationEvent<ValidateResultHandler> { |
31 | 0 | public static final Type<ValidateResultHandler> TYPE = new Type<ValidateResultHandler>(); |
32 | 0 | private List<ValidationResultInfo> validationResultList = new ArrayList<ValidationResultInfo>(); |
33 | |
@Override |
34 | |
protected void dispatch(ValidateResultHandler handler) { |
35 | 0 | handler.onValidateResult(this); |
36 | 0 | } |
37 | |
|
38 | |
@Override |
39 | |
public Type<ValidateResultHandler> getAssociatedType() { |
40 | 0 | return TYPE; |
41 | |
} |
42 | |
|
43 | |
public void setValidationResult(List<ValidationResultInfo> l){ |
44 | 0 | validationResultList = l; |
45 | 0 | } |
46 | |
|
47 | |
public void addValidationResult(List<ValidationResultInfo> l){ |
48 | 0 | validationResultList.addAll(l); |
49 | 0 | } |
50 | |
public List<ValidationResultInfo> getValidationResult(){ |
51 | 0 | return validationResultList; |
52 | |
} |
53 | |
} |