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.core.validation.dto.ValidationResultInfo; |
23 | |
|
24 | 0 | public class ValidateResultEvent extends UncheckedApplicationEvent<ValidateResultHandler> { |
25 | 0 | public static final Type<ValidateResultHandler> TYPE = new Type<ValidateResultHandler>(); |
26 | 0 | private List<ValidationResultInfo> validationResultList = new ArrayList<ValidationResultInfo>(); |
27 | |
@Override |
28 | |
protected void dispatch(ValidateResultHandler handler) { |
29 | 0 | handler.onValidateResult(this); |
30 | 0 | } |
31 | |
|
32 | |
@Override |
33 | |
public Type<ValidateResultHandler> getAssociatedType() { |
34 | 0 | return TYPE; |
35 | |
} |
36 | |
|
37 | |
public void setValidationResult(List<ValidationResultInfo> l){ |
38 | 0 | validationResultList = l; |
39 | 0 | } |
40 | |
|
41 | |
public void addValidationResult(List<ValidationResultInfo> l){ |
42 | 0 | validationResultList.addAll(l); |
43 | 0 | } |
44 | |
public List<ValidationResultInfo> getValidationResult(){ |
45 | 0 | return validationResultList; |
46 | |
} |
47 | |
} |