2018-05-09 16:19:41 +02:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.portlets.widgets.wstaskexecutor.client.event;
|
|
|
|
|
|
|
|
import org.gcube.portlets.widgets.wstaskexecutor.shared.WSItem;
|
|
|
|
|
|
|
|
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 ShowCreateTaskConfigurationEvent extends GwtEvent<ShowCreateTaskConfigurationEventHandler> {
|
|
|
|
|
|
|
|
/** The type. */
|
|
|
|
public static Type<ShowCreateTaskConfigurationEventHandler> TYPE = new Type<ShowCreateTaskConfigurationEventHandler>();
|
2018-05-09 18:00:33 +02:00
|
|
|
private WSItem wsItem;
|
2018-05-09 16:19:41 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new creates the task configuration event.
|
|
|
|
*
|
|
|
|
* @param folder the folder
|
|
|
|
*/
|
2018-05-09 18:00:33 +02:00
|
|
|
public ShowCreateTaskConfigurationEvent(WSItem wsItem) {
|
|
|
|
this.wsItem = wsItem;
|
2018-05-09 16:19:41 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
* @see com.google.gwt.event.shared.GwtEvent#getAssociatedType()
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public Type<ShowCreateTaskConfigurationEventHandler> getAssociatedType() {
|
|
|
|
return TYPE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
* @see com.google.gwt.event.shared.GwtEvent#dispatch(com.google.gwt.event.shared.EventHandler)
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
protected void dispatch(ShowCreateTaskConfigurationEventHandler handler) {
|
|
|
|
handler.onShowCreateConfiguration(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Gets the folder.
|
|
|
|
*
|
|
|
|
* @return the folder
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Gets the folder.
|
|
|
|
*
|
|
|
|
* @return the folder
|
|
|
|
*/
|
2018-05-09 18:00:33 +02:00
|
|
|
public WSItem getWsItem() {
|
|
|
|
return wsItem;
|
2018-05-09 16:19:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|