view.minimalView
Class MinimalView

java.lang.Object
  extended by view.minimalView.MinimalView
All Implemented Interfaces:
View

public class MinimalView
extends java.lang.Object
implements View


Field Summary
private  Controller control
           
 
Constructor Summary
MinimalView(Controller c)
           
 
Method Summary
 org.eclipse.swt.widgets.Composite getComposite(org.eclipse.swt.widgets.Composite parent)
          getComposite returns a Composite instance that is displayed by the controller.
 Folder getParentOfSelected()
          gets the parent folder of the selected item
 Article getSelectedArticle()
          gets the currently selected article in the view.
 java.util.List<Article> getSelectedArticles()
          Gets the selected articles
 Feed getSelectedFeed()
          gets the currently selected feed in the view.
 java.util.List<Feed> getSelectedFeeds()
          Gets the selected feeds
 Folder getSelectedFolder()
          gets the currently selected folder in the view.
 java.util.List<Folder> getSelectedFolders()
          Gets the selected folders
 void setURL(java.lang.String url)
          Sets the url of a view's browser, if it has one.
 void update()
          The update method is called when the Controller wants the view to refresh.
 void updateArticle(Article a)
          updates the view of a particular article
 void updateArticles(Feed f)
          Updates the articles of the specified feed.
 void updateFeed(Feed f)
          updates the view of a particular feed
 void updateFolder(Folder f)
           
 void updateFolderContents(Folder f)
          updates the specified folder's contents
 void updateOutbox()
          updates the view of the outbox
 void updateTrash()
          updates the view of the trash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

control

private Controller control
Constructor Detail

MinimalView

public MinimalView(Controller c)
Method Detail

getComposite

public org.eclipse.swt.widgets.Composite getComposite(org.eclipse.swt.widgets.Composite parent)
Description copied from interface: View
getComposite returns a Composite instance that is displayed by the controller.

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

update

public void update()
Description copied from interface: View
The update method is called when the Controller wants the view to refresh.

Specified by:
update in interface View

updateArticles

public void updateArticles(Feed f)
Description copied from interface: View
Updates the articles of the specified feed.

Specified by:
updateArticles in interface View

getSelectedFeed

public Feed getSelectedFeed()
                     throws NoItemSelectedException
Description copied from interface: View
gets the currently selected feed in the 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
Description copied from interface: View
gets the currently selected article in the 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
Description copied from interface: View
gets the currently selected folder in the view.

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

updateFolderContents

public void updateFolderContents(Folder f)
Description copied from interface: View
updates the specified folder's contents

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

getParentOfSelected

public Folder getParentOfSelected()
                           throws NoItemSelectedException
Description copied from interface: View
gets the parent folder of the selected item

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

updateArticle

public void updateArticle(Article a)
Description copied from interface: View
updates the view of a particular article

Specified by:
updateArticle in interface View

updateFeed

public void updateFeed(Feed f)
Description copied from interface: View
updates the view of a particular feed

Specified by:
updateFeed in interface View

updateFolder

public void updateFolder(Folder f)

setURL

public void setURL(java.lang.String url)
Description copied from interface: View
Sets the url of a view's browser, if it has one.

Specified by:
setURL in interface View

updateOutbox

public void updateOutbox()
Description copied from interface: View
updates the view of the outbox

Specified by:
updateOutbox in interface View

updateTrash

public void updateTrash()
Description copied from interface: View
updates the view of the trash

Specified by:
updateTrash in interface View

getSelectedArticles

public java.util.List<Article> getSelectedArticles()
                                            throws NoItemSelectedException
Description copied from interface: View
Gets the selected articles

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
Description copied from interface: View
Gets the selected feeds

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
Description copied from interface: View
Gets the selected folders

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