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 String name; private final VMETypeIdentifier type; private final boolean isAssociation; public SelectedReportEvent(String id, String name, VMETypeIdentifier type, boolean isAssociation) { super(); this.id = id; this.name = name; this.type = type; this.isAssociation = isAssociation; } public String getId() { return id; } public String getName() { return name; } public VMETypeIdentifier getType() { return type; } public boolean isAssociation() { return isAssociation; } @Override public Type getAssociatedType() { return TYPE; } @Override protected void dispatch(SelectedReportEventHandler handler) { handler.onReportSelected(this); } }