Skip to content

Instantly share code, notes, and snippets.

@Pacane
Created February 12, 2016 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pacane/89838afe5d793d1c37fc to your computer and use it in GitHub Desktop.
Save Pacane/89838afe5d793d1c37fc to your computer and use it in GitHub Desktop.
package com.arcbees.client.application.events;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.HasHandlers;
public class UserDeletedEvent extends GwtEvent<UserDeletedEventHandler> {
public static Type<UserDeletedEventHandler> TYPE = new Type<>();
@Override
public Type<UserDeletedEventHandler> getAssociatedType() {
return TYPE;
}
protected void dispatch(UserDeletedEventHandler handler) {
handler.onUserDeleted(this);
}
public static void fire(HasHandlers source) {
source.fireEvent(new UserDeletedEvent());
}
}
public interface UserDeletedEventHandler extends EventHandler {
void onUserDeleted(UserDeletedEvent event);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment