share-updates/src/main/java/org/gcube/portlets/user/shareupdates/client/events/PickedUserEvent.java

32 lines
688 B
Java

package org.gcube.portlets.user.shareupdates.client.events;
import org.gcube.portlets.user.shareupdates.shared.PickingUser;
import com.google.gwt.event.shared.GwtEvent;
public class PickedUserEvent extends GwtEvent<PickedUserEventHandler> {
public static Type<PickedUserEventHandler> TYPE = new Type<PickedUserEventHandler>();
private PickingUser user;
public PickingUser getSelectedUser() {
return user;
}
public PickedUserEvent(PickingUser user) {
this.user = user;
}
@Override
public Type<PickedUserEventHandler> getAssociatedType() {
return TYPE;
}
@Override
protected void dispatch(PickedUserEventHandler handler) {
handler.onSelectedUser(this);
}
}