66 lines
1.8 KiB
Java
66 lines
1.8 KiB
Java
package org.gcube.portlets.user.dataminermanager.client.events;
|
|
|
|
import org.gcube.portlets.user.dataminermanager.shared.workspace.ItemDescription;
|
|
|
|
import com.google.gwt.event.shared.EventHandler;
|
|
import com.google.gwt.event.shared.GwtEvent;
|
|
import com.google.gwt.event.shared.HandlerRegistration;
|
|
import com.google.gwt.event.shared.HasHandlers;
|
|
|
|
/**
|
|
* Output Show Request Event
|
|
*
|
|
*
|
|
* @author "Giancarlo Panichi" <a
|
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
*
|
|
*/
|
|
public class OutputShowRequestEvent extends
|
|
GwtEvent<OutputShowRequestEvent.OutputShowRequestEventHandler> {
|
|
|
|
public static Type<OutputShowRequestEventHandler> TYPE = new Type<OutputShowRequestEventHandler>();
|
|
private ItemDescription itemDescription;
|
|
|
|
public interface OutputShowRequestEventHandler extends EventHandler {
|
|
void onOutputShowRequest(OutputShowRequestEvent event);
|
|
}
|
|
|
|
public interface HasOutputShowResourceRequestEventHandler extends HasHandlers {
|
|
public HandlerRegistration addOutputShowResourceRequestEventHandler(
|
|
OutputShowRequestEventHandler handler);
|
|
}
|
|
|
|
public OutputShowRequestEvent(ItemDescription itemDescription) {
|
|
this.itemDescription = itemDescription;
|
|
}
|
|
|
|
@Override
|
|
protected void dispatch(OutputShowRequestEventHandler handler) {
|
|
handler.onOutputShowRequest(this);
|
|
}
|
|
|
|
@Override
|
|
public Type<OutputShowRequestEventHandler> getAssociatedType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public static Type<OutputShowRequestEventHandler> getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public static void fire(HasHandlers source, OutputShowRequestEvent event) {
|
|
source.fireEvent(event);
|
|
}
|
|
|
|
public ItemDescription getItemDescription() {
|
|
return itemDescription;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "OutputShowRequestEvent [itemDescription=" + itemDescription
|
|
+ "]";
|
|
}
|
|
|
|
}
|