001 package org.kuali.student.lum.program.client.events; 002 003 import com.google.gwt.event.shared.EventHandler; 004 import com.google.gwt.event.shared.GwtEvent; 005 006 import org.kuali.student.r1.common.assembly.data.Data; 007 008 /** 009 * @author Igor 010 */ 011 public class SpecializationSaveEvent extends GwtEvent<SpecializationSaveEvent.Handler> { 012 013 public static Type<Handler> TYPE = new Type<Handler>(); 014 015 private Data data; 016 017 public SpecializationSaveEvent(Data data) { 018 this.data = data; 019 } 020 021 public Data getData() { 022 return data; 023 } 024 025 @Override 026 public Type<Handler> getAssociatedType() { 027 return TYPE; 028 } 029 030 @Override 031 protected void dispatch(Handler handler) { 032 handler.onEvent(this); 033 } 034 035 public static interface Handler extends EventHandler { 036 void onEvent(SpecializationSaveEvent event); 037 } 038 }