2013-01-26 20:02:51 +01:00
|
|
|
package org.gcube.portlets.user.shareupdates.client;
|
|
|
|
|
2014-01-20 12:48:21 +01:00
|
|
|
import org.gcube.portlets.user.shareupdates.client.view.ShareUpdateForm;
|
2013-01-26 20:02:51 +01:00
|
|
|
|
|
|
|
import com.google.gwt.core.client.EntryPoint;
|
|
|
|
import com.google.gwt.user.client.ui.RootPanel;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Entry point classes define <code>onModuleLoad()</code>.
|
2016-01-12 19:06:10 +01:00
|
|
|
* @author Massimiliano Assante at ISTI CNR
|
|
|
|
* @author Costantino Perciante at ISTI CNR
|
2013-01-26 20:02:51 +01:00
|
|
|
*/
|
|
|
|
public class ShareUpdates implements EntryPoint {
|
2014-12-12 11:29:35 +01:00
|
|
|
|
2013-01-26 20:02:51 +01:00
|
|
|
public void onModuleLoad() {
|
2016-11-14 18:03:55 +01:00
|
|
|
RootPanel.get("shareUpdateDiv").add(new ShareUpdateForm());
|
2013-01-26 20:02:51 +01:00
|
|
|
}
|
2018-03-07 14:30:54 +01:00
|
|
|
/**
|
|
|
|
* fire the event to the News Feed portlet
|
|
|
|
* @param json
|
|
|
|
*/
|
|
|
|
public static native void sendLiferayIPCEvent(String json) /*-{
|
|
|
|
$wnd.Liferay.fire('newPostCreated',{
|
|
|
|
payload: json
|
|
|
|
});
|
|
|
|
}-*/;
|
|
|
|
|
2013-01-26 20:02:51 +01:00
|
|
|
}
|