1
2
3
4
5
6
7
8
9 package org.kuali.student.common.ui.client.event;
10
11 import org.kuali.student.common.ui.client.mvc.ApplicationEvent;
12
13 public class ExportEvent extends ApplicationEvent<ExportEventHandler> {
14 public static final Type<ExportEventHandler> TYPE = new Type<ExportEventHandler>();
15 private Object currentView;
16
17 public ExportEvent(Object currentView) {
18 super();
19 this.currentView = currentView;
20 System.out.println("Constructor for ExportEvent....");
21 }
22
23 @Override
24 protected void dispatch(ExportEventHandler handler) {
25 handler.onExport(this);
26
27 }
28
29 @Override
30 public com.google.gwt.event.shared.GwtEvent.Type<ExportEventHandler> getAssociatedType() {
31
32 return null;
33 }
34
35 public Object getCurrentView() {
36 return currentView;
37 }
38
39 public void setCurrentView(Object currentView) {
40 this.currentView = currentView;
41 }
42 }