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 org.kuali.student.common.ui.client.configurable.mvc.FieldDescriptor; |
19 | |
import org.kuali.student.common.ui.client.mvc.ApplicationEvent; |
20 | |
|
21 | 0 | public class ValidateRequestEvent extends ApplicationEvent<ValidateRequestHandler> { |
22 | 0 | public static final Type<ValidateRequestHandler> TYPE = new Type<ValidateRequestHandler>(); |
23 | |
private FieldDescriptor fieldDescriptor; |
24 | 0 | private boolean validateSingleField = false; |
25 | |
|
26 | |
@Override |
27 | |
protected void dispatch(ValidateRequestHandler handler) { |
28 | 0 | handler.onValidateRequest(this); |
29 | 0 | } |
30 | |
|
31 | |
@Override |
32 | |
public Type<ValidateRequestHandler> getAssociatedType() { |
33 | 0 | return TYPE; |
34 | |
} |
35 | |
|
36 | |
public FieldDescriptor getFieldDescriptor() { |
37 | 0 | return fieldDescriptor; |
38 | |
} |
39 | |
|
40 | |
public void setFieldDescriptor(FieldDescriptor fieldDescriptor) { |
41 | 0 | this.fieldDescriptor = fieldDescriptor; |
42 | 0 | } |
43 | |
|
44 | |
public boolean validateSingleField() { |
45 | 0 | return validateSingleField; |
46 | |
} |
47 | |
|
48 | |
public void setValidateSingleField(boolean validateSingleField) { |
49 | 0 | this.validateSingleField = validateSingleField; |
50 | 0 | } |
51 | |
} |