2018-10-05 16:30:52 +02:00
|
|
|
package org.gcube.portlets.user.workspace.client.gridevent;
|
2013-02-08 10:56:27 +01:00
|
|
|
|
|
|
|
import com.google.gwt.event.shared.GwtEvent;
|
|
|
|
|
|
|
|
/**
|
2019-02-22 14:40:30 +01:00
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa{@literal @}isti.cnr.it
|
2013-02-08 10:56:27 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class ScopeChangeEvent extends GwtEvent<ScopeChangeEventHandler> {
|
|
|
|
public static Type<ScopeChangeEventHandler> TYPE = new Type<ScopeChangeEventHandler>();
|
|
|
|
|
|
|
|
private String scopeId;
|
|
|
|
|
|
|
|
|
|
|
|
public ScopeChangeEvent(String scopeId) {
|
|
|
|
this.scopeId = scopeId;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Type<ScopeChangeEventHandler> getAssociatedType() {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
return TYPE;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void dispatch(ScopeChangeEventHandler handler) {
|
|
|
|
handler.onLoadScope(this);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getScopeId() {
|
|
|
|
return scopeId;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|