| 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 | 0 | public class ExportEvent extends ApplicationEvent<ExportEventHandler> { |
| 14 | 0 | public static final Type<ExportEventHandler> TYPE = new Type<ExportEventHandler>(); |
| 15 | |
private Object currentView; |
| 16 | |
|
| 17 | |
public ExportEvent(Object currentView) { |
| 18 | 0 | super(); |
| 19 | 0 | this.currentView = currentView; |
| 20 | 0 | System.out.println("Constructor for ExportEvent...."); |
| 21 | 0 | } |
| 22 | |
|
| 23 | |
@Override |
| 24 | |
protected void dispatch(ExportEventHandler handler) { |
| 25 | 0 | handler.onExport(this); |
| 26 | |
|
| 27 | 0 | } |
| 28 | |
|
| 29 | |
@Override |
| 30 | |
public com.google.gwt.event.shared.GwtEvent.Type<ExportEventHandler> getAssociatedType() { |
| 31 | |
|
| 32 | 0 | return null; |
| 33 | |
} |
| 34 | |
|
| 35 | |
public Object getCurrentView() { |
| 36 | 0 | return currentView; |
| 37 | |
} |
| 38 | |
|
| 39 | |
public void setCurrentView(Object currentView) { |
| 40 | 0 | this.currentView = currentView; |
| 41 | 0 | } |
| 42 | |
} |