| 1 | |
package org.kuali.student.lum.program.client.events; |
| 2 | |
|
| 3 | |
import org.kuali.student.common.assembly.data.Data; |
| 4 | |
|
| 5 | |
import com.google.gwt.event.shared.EventHandler; |
| 6 | |
import com.google.gwt.event.shared.GwtEvent; |
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | 0 | public class SpecializationUpdateEvent extends GwtEvent<SpecializationUpdateEvent.Handler> { |
| 12 | |
|
| 13 | 0 | public static Type<Handler> TYPE = new Type<Handler>(); |
| 14 | |
|
| 15 | |
private final Data specializations; |
| 16 | |
|
| 17 | 0 | public SpecializationUpdateEvent(Data specs) { |
| 18 | 0 | this.specializations = specs; |
| 19 | 0 | } |
| 20 | |
|
| 21 | |
@Override |
| 22 | |
public Type<Handler> getAssociatedType() { |
| 23 | 0 | return TYPE; |
| 24 | |
} |
| 25 | |
|
| 26 | |
public Data getSpecializations() { |
| 27 | 0 | return specializations; |
| 28 | |
} |
| 29 | |
|
| 30 | |
@Override |
| 31 | |
protected void dispatch(Handler handler) { |
| 32 | 0 | handler.onEvent(this); |
| 33 | 0 | } |
| 34 | |
|
| 35 | |
public static interface Handler extends EventHandler { |
| 36 | |
void onEvent(SpecializationUpdateEvent event); |
| 37 | |
} |
| 38 | |
} |