package org.gcube.portlets.widgets.wsexplorer.client.event; import org.gcube.portlets.widgets.wsexplorer.shared.ItemDTO; import com.google.gwt.event.shared.GwtEvent; /** * The Class LoadRootEvent. * * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it * Jun 25, 2015 */ public class RootLoadedEvent extends GwtEvent { public static Type TYPE = new Type(); private ItemDTO root; public RootLoadedEvent(ItemDTO root) { this.root = root; } /* (non-Javadoc) * @see com.google.gwt.event.shared.GwtEvent#getAssociatedType() */ @Override public Type getAssociatedType() { return TYPE; } /* (non-Javadoc) * @see com.google.gwt.event.shared.GwtEvent#dispatch(com.google.gwt.event.shared.EventHandler) */ @Override protected void dispatch(RootLoadedEventHandler handler) { handler.onRootLoaded(this); } /** * @return the root */ public ItemDTO getRoot() { return root; } }