1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.mvc.history;
17
18 import org.kuali.student.common.ui.client.mvc.UncheckedApplicationEvent;
19
20 import com.google.gwt.user.client.ui.Widget;
21
22
23
24
25
26
27
28 public class NavigationEvent extends UncheckedApplicationEvent<NavigationEventHandler>{
29 public static final Type<NavigationEventHandler> TYPE = new Type<NavigationEventHandler>();
30
31 private final Widget originatingWidget;
32
33 public NavigationEvent(final Widget originatingWidget) {
34 this.originatingWidget = originatingWidget;
35 }
36
37 @Override
38 protected void dispatch(NavigationEventHandler handler) {
39 handler.onNavigationEvent(this);
40 }
41
42 @Override
43 public com.google.gwt.event.shared.GwtEvent.Type<NavigationEventHandler> getAssociatedType() {
44 return TYPE;
45 }
46
47 public Widget getOriginatingWidget() {
48 return originatingWidget;
49 }
50
51 }