87 lines
1.8 KiB
Java
87 lines
1.8 KiB
Java
/*
|
|
*
|
|
*/
|
|
package org.gcube.portlets.widgets.wstaskexecutor.client.event;
|
|
|
|
import org.gcube.common.workspacetaskexecutor.shared.dataminer.TaskConfiguration;
|
|
import org.gcube.portlets.widgets.wstaskexecutor.shared.WsFolder;
|
|
|
|
import com.google.gwt.event.shared.GwtEvent;
|
|
|
|
|
|
|
|
/**
|
|
* The Class CreateTaskConfigurationEvent.
|
|
*
|
|
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
|
|
* May 9, 2018
|
|
*/
|
|
public class CreateTaskConfigurationEvent extends GwtEvent<CreateTaskConfigurationEventHandler> {
|
|
|
|
/** The type. */
|
|
public static Type<CreateTaskConfigurationEventHandler> TYPE = new Type<CreateTaskConfigurationEventHandler>();
|
|
private TaskConfiguration conf;
|
|
private WsFolder folder;
|
|
private boolean isUpdate;
|
|
|
|
/**
|
|
* Instantiates a new creates the task configuration event.
|
|
*
|
|
* @param folder the folder
|
|
* @param conf the conf
|
|
* @param isUpdate the is update
|
|
*/
|
|
public CreateTaskConfigurationEvent(WsFolder folder, TaskConfiguration conf, boolean isUpdate) {
|
|
this.folder = folder;
|
|
this.conf = conf;
|
|
this.isUpdate = isUpdate;
|
|
|
|
}
|
|
|
|
/* (non-Javadoc)
|
|
* @see com.google.gwt.event.shared.GwtEvent#getAssociatedType()
|
|
*/
|
|
@Override
|
|
public Type<CreateTaskConfigurationEventHandler> getAssociatedType() {
|
|
return TYPE;
|
|
}
|
|
|
|
/* (non-Javadoc)
|
|
* @see com.google.gwt.event.shared.GwtEvent#dispatch(com.google.gwt.event.shared.EventHandler)
|
|
*/
|
|
@Override
|
|
protected void dispatch(CreateTaskConfigurationEventHandler handler) {
|
|
handler.onCreateConfiguration(this);
|
|
}
|
|
|
|
|
|
/**
|
|
* @return the isUpdate
|
|
*/
|
|
public boolean isUpdate() {
|
|
|
|
return isUpdate;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the conf.
|
|
*
|
|
* @return the conf
|
|
*/
|
|
public TaskConfiguration getConf() {
|
|
return conf;
|
|
|
|
}
|
|
|
|
/**
|
|
* Gets the folder.
|
|
*
|
|
* @return the folder
|
|
*/
|
|
public WsFolder getFolder() {
|
|
return folder;
|
|
}
|
|
|
|
}
|