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.mvc.ActionCompleteCallback;
19 import org.kuali.student.common.ui.client.mvc.ApplicationEvent;
20 import org.kuali.student.common.ui.client.mvc.ApplicationEventHandler;
21
22
23
24
25
26
27
28
29 public abstract class ActionEvent<H extends ApplicationEventHandler> extends ApplicationEvent<H>{
30 private ActionCompleteCallback actionCompleteCallback;
31
32 public ActionCompleteCallback getActionCompleteCallback() {
33 return actionCompleteCallback;
34 }
35
36 public void setActionCompleteCallback(ActionCompleteCallback actionCompleteCallback) {
37 this.actionCompleteCallback = actionCompleteCallback;
38 }
39
40 public void doActionComplete(){
41 if (actionCompleteCallback != null){
42 actionCompleteCallback.onActionComplete(this);
43 }
44 }
45
46 }