This repository has been archived on 2021-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
vmereports-manager-portlet/src/main/java/org/gcube/portlets/user/reportgenerator/client/events/SelectedReportEvent.java

42 lines
1006 B
Java

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