Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
    • Constructor Summary

      Constructors 
      Constructor Description
      NewsFeedPanel()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addJustAddedFeed​(org.gcube.portal.databook.shared.ClientPost cFeed)
      used when adding directly a feed from the UI (IPC)
      protected void doDeleteComment​(TweetTemplate owner, String commentId)  
      protected void doShowCachedNewUpdates()
      called when a user click on the are new updates
      protected void doShowMoreUpdates()
      called when a user scroll down the page to the bottom
      protected void doUnLike​(TweetTemplate owner, String feedId)  
      static String extractOrgFriendlyURL​(String portalURL)  
      int getAllUpdatesSize()  
      static String getCurrentScope()  
      void loadMorePosts​(int quantity, boolean isSortingByLastCommentedposts)  
      void setCurrentFilter​(FilterType currentFilter)
      set the filter type status for automatic reloading of tweets
      void showAllUpdatesFeeds()
      All Updates
      void showOnlyConnectionsFeeds()
      Only User Connections
      void showOnlyLikedPosts()
      Only User Liked Posts
      void showOnlyMyPosts()
      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
    • Constructor Detail

      • NewsFeedPanel

        public NewsFeedPanel()
    • 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
      • 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
      • extractOrgFriendlyURL

        public static String extractOrgFriendlyURL​(String portalURL)