This repository has been archived on 2024-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
species-discovery/src/main/java/org/gcube/portlets/user/speciesdiscovery/client/event/CreateGisLayerJobEvent.java

65 lines
1.3 KiB
Java

/**
*
*/
package org.gcube.portlets.user.speciesdiscovery.client.event;
import com.google.gwt.event.shared.GwtEvent;
/**
* The Class CreateGisLayerJobEvent.
*
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
* Feb 9, 2017
*/
public class CreateGisLayerJobEvent extends GwtEvent<CreateGisLayerJobEventHandler> {
public static final GwtEvent.Type<CreateGisLayerJobEventHandler> TYPE = new Type<CreateGisLayerJobEventHandler>();
private String jobName;
/**
* @return the jobName
*/
public String getJobName() {
return jobName;
}
/**
* @return the jobDescription
*/
public String getJobDescription() {
return jobDescription;
}
private String jobDescription;
/**
* @param jobName
* @param string
*/
public CreateGisLayerJobEvent(String jobName, String descr) {
this.jobName = jobName;
this.jobDescription = descr;
}
/* (non-Javadoc)
* @see com.google.gwt.event.shared.GwtEvent#getAssociatedType()
*/
@Override
public Type<CreateGisLayerJobEventHandler> getAssociatedType() {
return TYPE;
}
/* (non-Javadoc)
* @see com.google.gwt.event.shared.GwtEvent#dispatch(com.google.gwt.event.shared.EventHandler)
*/
@Override
protected void dispatch(CreateGisLayerJobEventHandler handler) {
handler.onCreateGisLayerJob(this);
}
}