fable.gui
Class FeedView

java.lang.Object
  extended by Composite
      extended by fable.gui.AbstractFeedView
          extended by fable.gui.FeedView
All Implemented Interfaces:
StructuralChangeListener, FableListener, CensorshipChangedListener, FeedDeletedListener, FeedSelectedListener, FolderDeletedListener, FolderSelectedListener, java.util.EventListener

public class FeedView
extends AbstractFeedView
implements FeedSelectedListener, FolderSelectedListener, CensorshipChangedListener, FeedDeletedListener, FolderDeletedListener, StructuralChangeListener

FeedView class fully functional with message handling behavior.

Author:
Wonsik Kim, Christopher Moh, Weijie Yuan

Constructor Summary
FeedView(Composite parent, int style, FableManager fbm)
          Construct a new FeedView object with its parent and style.
 
Method Summary
 void censorshipChanged(CensorshipChangedEvent e)
          Do appropriate action according to the event.
 void feedDeleted(FeedDeletedEvent fde)
          Clear the Feed View and Article View when the selected feed is deleted
 void feedSelected(FeedSelectedEvent fse)
          Show the selected feed in this FeedView.
 void folderDeleted(FolderDeletedEvent fde)
          Clear the Feed View and Article View when the selected folder is deleted
 void folderSelected(FolderSelectedEvent fse)
          Show the folder or print out message for the selected folder in this FeedView.
 void structureChanged(StructuralChangeEvent sce)
          Add articles to feedview as the thread updates them
 
Methods inherited from class fable.gui.AbstractFeedView
clearArticleView, clearFeedView, currentArticle, getFeedName, showArticle, showFeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedView

public FeedView(Composite parent,
                int style,
                FableManager fbm)
Construct a new FeedView object with its parent and style.

Parameters:
parent - Composite parent of this FeedListTree.
style - SWT style
fbm - Overall FableManager
Requires:
parent, fbm != null
Effects:
Creates a new FeedView
Modifies:
this
Method Detail

feedSelected

public void feedSelected(FeedSelectedEvent fse)
Show the selected feed in this FeedView.

Specified by:
feedSelected in interface FeedSelectedListener
Parameters:
fse - the event object that should be handled.
Requires:
fse != null

folderSelected

public void folderSelected(FolderSelectedEvent fse)
Show the folder or print out message for the selected folder in this FeedView.

Specified by:
folderSelected in interface FolderSelectedListener
Parameters:
fse - the event object that should be handled.
Requires:
fse != null

censorshipChanged

public void censorshipChanged(CensorshipChangedEvent e)
Description copied from interface: CensorshipChangedListener
Do appropriate action according to the event.

Specified by:
censorshipChanged in interface CensorshipChangedListener
Parameters:
e - an event object contains relevant information about the event.

feedDeleted

public void feedDeleted(FeedDeletedEvent fde)
Clear the Feed View and Article View when the selected feed is deleted

Specified by:
feedDeleted in interface FeedDeletedListener
Parameters:
fde - the event object that should be handled.
Requires:
fde != null

folderDeleted

public void folderDeleted(FolderDeletedEvent fde)
Clear the Feed View and Article View when the selected folder is deleted

Specified by:
folderDeleted in interface FolderDeletedListener
Parameters:
fde - the event object that should be handled.
Requires:
fde != null

structureChanged

public void structureChanged(StructuralChangeEvent sce)
Add articles to feedview as the thread updates them

Specified by:
structureChanged in interface StructuralChangeListener
Parameters:
sce - The structural change event to be handled