33 lines
1.0 KiB
Java
33 lines
1.0 KiB
Java
package org.gcube.portlet.user.userstatisticsportlet.client.events;
|
|
|
|
import org.gcube.portal.databook.shared.ShowUserStatisticAction;
|
|
|
|
import com.google.gwt.event.shared.GwtEvent;
|
|
|
|
/**
|
|
* Event fired when the user wants to see feeds related to certain statistics.
|
|
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
|
*/
|
|
public class ShowFeedsRelatedToUserStatisticsEvent extends GwtEvent<ShowFeedsRelatedToUserStatisticsEventHandler> {
|
|
public static Type<ShowFeedsRelatedToUserStatisticsEventHandler> TYPE = new Type<ShowFeedsRelatedToUserStatisticsEventHandler>();
|
|
|
|
private ShowUserStatisticAction action;
|
|
public ShowFeedsRelatedToUserStatisticsEvent(ShowUserStatisticAction actionToTake) {
|
|
this.action = actionToTake;
|
|
}
|
|
|
|
public ShowUserStatisticAction getAction() {
|
|
return action;
|
|
}
|
|
|
|
@Override
|
|
public Type<ShowFeedsRelatedToUserStatisticsEventHandler> getAssociatedType() {
|
|
return TYPE;
|
|
}
|
|
|
|
@Override
|
|
protected void dispatch(ShowFeedsRelatedToUserStatisticsEventHandler handler) {
|
|
handler.onShowRelatedFeeds(this);
|
|
}
|
|
}
|