view.randomView
Class RandomView

java.lang.Object
  extended by view.randomView.RandomView
All Implemented Interfaces:
View

public class RandomView
extends java.lang.Object
implements View

Random View is a simple view that lets the user view a random article that is in one of the feeds that they've subscribed to.

Author:
pgroudas

Field Summary
private  org.eclipse.swt.browser.Browser browser
           
private  Controller control
           
 
Constructor Summary
RandomView(Controller c)
          Constructs a new randomView.
 
Method Summary
 org.eclipse.swt.widgets.Composite getComposite(org.eclipse.swt.widgets.Composite parent)
          Generates and returns the composite for this view.
 Folder getParentOfSelected()
          Not implemented in this view
 Article getSelectedArticle()
          Not implemented in this view
 java.util.List<Article> getSelectedArticles()
          Not implemented in this view
 Feed getSelectedFeed()
          Not implemented in this view
 java.util.List<Feed> getSelectedFeeds()
          Not implemented in this view
 Folder getSelectedFolder()
          Not implemented in this view
 java.util.List<Folder> getSelectedFolders()
          Not implemented in this view
 void setURL(java.lang.String url)
          Sets the browser's url to the specified url
 void update()
          Not implemented in this view
 void updateArticle(Article a)
          Not implemented in this view
 void updateArticles(Feed f)
          Not implemented in this view
 void updateFeed(Feed f)
          Not implemented in this view
 void updateFolder(Folder f)
          Not implemented in this view
 void updateFolderContents(Folder f)
          Not implemented in this view
 void updateOutbox()
          Not implemented in this view
 void updateTrash()
          Not implemented in this view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

control

private Controller control

browser

private org.eclipse.swt.browser.Browser browser
Constructor Detail

RandomView

public RandomView(Controller c)
Constructs a new randomView.

Parameters:
c -
Method Detail

getComposite

public org.eclipse.swt.widgets.Composite getComposite(org.eclipse.swt.widgets.Composite parent)
Generates and returns the composite for this view.

Specified by:
getComposite in interface View
Parameters:
parent - Composite
Returns:
Composite

setURL

public void setURL(java.lang.String url)
Sets the browser's url to the specified url

Specified by:
setURL in interface View
Parameters:
url - String url

getSelectedFeed

public Feed getSelectedFeed()
                     throws NoItemSelectedException
Not implemented in this view

Specified by:
getSelectedFeed in interface View
Returns:
Feed selected feed.
Throws:
NoItemSelectedException - If no feed is currently selected.

getSelectedArticle

public Article getSelectedArticle()
                           throws NoItemSelectedException
Not implemented in this view

Specified by:
getSelectedArticle in interface View
Returns:
Article selected article.
Throws:
NoItemSelectedException - If no article is currently selected.

getSelectedFolder

public Folder getSelectedFolder()
                         throws NoItemSelectedException
Not implemented in this view

Specified by:
getSelectedFolder in interface View
Returns:
Folder selected folder.
Throws:
NoItemSelectedException - If no folder is currently selected.

update

public void update()
Not implemented in this view

Specified by:
update in interface View

updateArticles

public void updateArticles(Feed f)
Not implemented in this view

Specified by:
updateArticles in interface View

updateFolderContents

public void updateFolderContents(Folder f)
Not implemented in this view

Specified by:
updateFolderContents in interface View
Parameters:
f - Folder whose contents will be updated

getParentOfSelected

public Folder getParentOfSelected()
                           throws NoItemSelectedException
Not implemented in this view

Specified by:
getParentOfSelected in interface View
Returns:
Throws:
NoItemSelectedException

updateArticle

public void updateArticle(Article a)
Not implemented in this view

Specified by:
updateArticle in interface View

updateFeed

public void updateFeed(Feed f)
Not implemented in this view

Specified by:
updateFeed in interface View

updateFolder

public void updateFolder(Folder f)
Not implemented in this view


updateOutbox

public void updateOutbox()
Not implemented in this view

Specified by:
updateOutbox in interface View

updateTrash

public void updateTrash()
Not implemented in this view

Specified by:
updateTrash in interface View

getSelectedArticles

public java.util.List<Article> getSelectedArticles()
                                            throws NoItemSelectedException
Not implemented in this view

Specified by:
getSelectedArticles in interface View
Returns:
List of Articles selected articles
Throws:
NoItemSelectedException - if no articles are selected

getSelectedFeeds

public java.util.List<Feed> getSelectedFeeds()
                                      throws NoItemSelectedException
Not implemented in this view

Specified by:
getSelectedFeeds in interface View
Returns:
List of feeds selected feeds
Throws:
NoItemSelectedException - if no Feeds are selected

getSelectedFolders

public java.util.List<Folder> getSelectedFolders()
                                          throws NoItemSelectedException
Not implemented in this view

Specified by:
getSelectedFolders in interface View
Returns:
List of Folders selected folders
Throws:
NoItemSelectedException