package org.gcube.portlets.user.reportgenerator.client.events; import org.gcube.portlets.user.reportgenerator.shared.VMETypeIdentifier; import com.google.gwt.event.shared.GwtEvent; public class SelectedReportEvent extends GwtEvent{ public static Type TYPE = new Type(); private final String id; private final VMETypeIdentifier type; public SelectedReportEvent(String id, VMETypeIdentifier type) { super(); this.id = id; this.type = type; } public String getId() { return id; } public VMETypeIdentifier getType() { return type; } @Override public Type getAssociatedType() { return TYPE; } @Override protected void dispatch(SelectedReportEventHandler handler) { handler.onReportSelected(this); } }