You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
news-feed/2.8/src/main/java/org/gcube/portlets/user/newsfeed/client/event/AddCommentEvent.java

47 lines
1.1 KiB
Java

package org.gcube.portlets.user.newsfeed.client.event;
import java.util.HashSet;
import org.gcube.portlets.user.newsfeed.client.ui.TweetTemplate;
import org.gcube.portlets.user.newsfeed.shared.MentionedDTO;
import com.google.gwt.event.shared.GwtEvent;
public class AddCommentEvent extends GwtEvent<AddCommentEventHandler> {
public static Type<AddCommentEventHandler> TYPE = new Type<AddCommentEventHandler>();
private TweetTemplate owner;
private String text;
private HashSet<MentionedDTO> mentionedUsers;
public AddCommentEvent(TweetTemplate owner, String text,HashSet<MentionedDTO> mentionedUsers) {
this.owner = owner;
this.text = text;
this.mentionedUsers = mentionedUsers;
}
public TweetTemplate getOwner() {
return owner;
}
public String getText() {
return text;
}
public HashSet<MentionedDTO> getMentionedUsers() {
return mentionedUsers;
}
@Override
public Type<AddCommentEventHandler> getAssociatedType() {
return TYPE;
}
@Override
protected void dispatch(AddCommentEventHandler handler) {
handler.onAddComment(this);
}
}