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    /**
007     * @author Igor
008     */
009    public class SpecializationCreatedEvent extends GwtEvent<SpecializationCreatedEvent.Handler> {
010    
011        public static Type<Handler> TYPE = new Type<Handler>();
012    
013        private final String specializationId;
014    
015        public SpecializationCreatedEvent(String specializationId) {
016            this.specializationId = specializationId;
017        }
018    
019        public String getSpecializationId() {
020            return specializationId;
021        }
022    
023        @Override
024        public Type<Handler> getAssociatedType() {
025            return TYPE;
026        }
027    
028        @Override
029        protected void dispatch(Handler handler) {
030            handler.onEvent(this);
031        }
032    
033        public static interface Handler extends EventHandler {
034            void onEvent(SpecializationCreatedEvent event);
035        }
036    }