2013-04-04 15:41:17 +02:00
|
|
|
package org.gcube.portlets.user.newsfeed.client.event;
|
|
|
|
|
2014-04-11 13:02:15 +02:00
|
|
|
import org.gcube.portlets.user.newsfeed.client.ui.TweetTemplate;
|
2013-04-04 15:41:17 +02:00
|
|
|
|
|
|
|
import com.google.gwt.event.shared.GwtEvent;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class DeleteCommentEvent extends GwtEvent<DeleteCommentEventHandler> {
|
|
|
|
public static Type<DeleteCommentEventHandler> TYPE = new Type<DeleteCommentEventHandler>();
|
|
|
|
|
|
|
|
private TweetTemplate owner;
|
|
|
|
private String commentid;
|
|
|
|
|
|
|
|
public TweetTemplate getOwner() {
|
|
|
|
return owner;
|
|
|
|
}
|
|
|
|
public String getCommentId() {
|
|
|
|
return commentid;
|
|
|
|
}
|
|
|
|
public DeleteCommentEvent(TweetTemplate owner, String commentid) {
|
|
|
|
this.owner = owner;
|
|
|
|
this.commentid = commentid;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Type<DeleteCommentEventHandler> getAssociatedType() {
|
|
|
|
return TYPE;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void dispatch(DeleteCommentEventHandler handler) {
|
|
|
|
handler.onDeleteComment(this);
|
|
|
|
}
|
|
|
|
}
|