Class NewsFeed
- java.lang.Object
-
- org.gcube.portlets.user.newsfeed.client.NewsFeed
-
- All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint
public class NewsFeed extends Object implements com.google.gwt.core.client.EntryPoint
- Author:
- Massimiliano Assante, CNR-ISTI This class uses Liferay's Client-side+Inter-Portlet-Communication for displaying post created in the Share Updates portlet
-
-
Constructor Summary
Constructors Constructor Description NewsFeed()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidexportReceiveEventJavascriptFunction()this is a JSNI method mapping the Javascript function handleReceiveEvent to the Java method handleReceiveEventstatic NewsFeedPanelgetInstance()static voidhandleReceiveEvent(String jsonizedClientPostInstance)the Java method handleReceiveEventstatic voidinjectLiferayIPCEventReceiver()this is a JSNI method that injects the Liferay Javascript function listening for events from ShareUpdatesvoidonModuleLoad()
-
-
-
Method Detail
-
getInstance
public static NewsFeedPanel getInstance()
-
onModuleLoad
public void onModuleLoad()
- Specified by:
onModuleLoadin interfacecom.google.gwt.core.client.EntryPoint
-
injectLiferayIPCEventReceiver
public static void injectLiferayIPCEventReceiver()
this is a JSNI method that injects the Liferay Javascript function listening for events from ShareUpdates
-
exportReceiveEventJavascriptFunction
public static void exportReceiveEventJavascriptFunction()
this is a JSNI method mapping the Javascript function handleReceiveEvent to the Java method handleReceiveEvent
-
handleReceiveEvent
public static void handleReceiveEvent(String jsonizedClientPostInstance)
the Java method handleReceiveEvent- Parameters:
jsonizedClientPostInstance- the jsonizedClientPostsent by ShareUpdates
-
-