Class NewsFeedPanel
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.gcube.portlets.user.newsfeed.client.panels.NewsFeedPanel
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget
public class NewsFeedPanel extends com.google.gwt.user.client.ui.Composite- Author:
- Massimiliano Assante, ISTI-CNR
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMENT_LABELprotected StringcurrentQuerystatic StringGET_OID_PARAMETERstatic StringLIKE_LABELstatic StringLIKED_LABELstatic Stringloadingprotected org.gcube.portal.databook.shared.ShowUserStatisticActionrelatedFeedsToUserStatisticsToShowstatic StringSHARE_FWD_LABEL
-
Constructor Summary
Constructors Constructor Description NewsFeedPanel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddJustAddedFeed(org.gcube.portal.databook.shared.ClientPost cFeed)used when adding directly a feed from the UI (IPC)protected voiddoDeleteComment(TweetTemplate owner, String commentId)protected voiddoShowCachedNewUpdates()called when a user click on the are new updatesprotected voiddoShowMoreUpdates()called when a user scroll down the page to the bottomprotected voiddoUnLike(TweetTemplate owner, String feedId)static StringextractOrgFriendlyURL(String portalURL)intgetAllUpdatesSize()static StringgetCurrentScope()voidloadMorePosts(int quantity, boolean isSortingByLastCommentedposts)voidsetCurrentFilter(FilterType currentFilter)set the filter type status for automatic reloading of tweetsvoidshowAllUpdatesFeeds()All UpdatesvoidshowOnlyConnectionsFeeds()Only User ConnectionsvoidshowOnlyLikedPosts()Only User Liked PostsvoidshowOnlyMyPosts()Only User Feeds-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Field Detail
-
loading
public static final String loading
-
GET_OID_PARAMETER
public static final String GET_OID_PARAMETER
- See Also:
- Constant Field Values
-
LIKE_LABEL
public static final String LIKE_LABEL
- See Also:
- Constant Field Values
-
LIKED_LABEL
public static final String LIKED_LABEL
- See Also:
- Constant Field Values
-
COMMENT_LABEL
public static final String COMMENT_LABEL
- See Also:
- Constant Field Values
-
SHARE_FWD_LABEL
public static final String SHARE_FWD_LABEL
- See Also:
- Constant Field Values
-
currentQuery
protected String currentQuery
-
relatedFeedsToUserStatisticsToShow
protected org.gcube.portal.databook.shared.ShowUserStatisticAction relatedFeedsToUserStatisticsToShow
-
-
Method Detail
-
doShowCachedNewUpdates
protected void doShowCachedNewUpdates()
called when a user click on the are new updates
-
addJustAddedFeed
public void addJustAddedFeed(org.gcube.portal.databook.shared.ClientPost cFeed)
used when adding directly a feed from the UI (IPC)- Parameters:
userid-fullName-thumbURL-description-
-
showAllUpdatesFeeds
public void showAllUpdatesFeeds()
All Updates
-
doShowMoreUpdates
protected void doShowMoreUpdates()
called when a user scroll down the page to the bottom
-
loadMorePosts
public void loadMorePosts(int quantity, boolean isSortingByLastCommentedposts)- Parameters:
quantity-
-
showOnlyConnectionsFeeds
public void showOnlyConnectionsFeeds()
Only User Connections
-
showOnlyMyPosts
public void showOnlyMyPosts()
Only User Feeds
-
showOnlyLikedPosts
public void showOnlyLikedPosts()
Only User Liked Posts
-
doUnLike
protected void doUnLike(TweetTemplate owner, String feedId)
-
doDeleteComment
protected void doDeleteComment(TweetTemplate owner, String commentId)
-
getAllUpdatesSize
public int getAllUpdatesSize()
-
setCurrentFilter
public void setCurrentFilter(FilterType currentFilter)
set the filter type status for automatic reloading of tweets- Parameters:
currentFilter-
-
getCurrentScope
public static String getCurrentScope()
- Returns:
- the current scope on the client
-
-