|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface View
The view interface specifies what methods a view must implement to properly interact with a controller.
| 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 |
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 |
| Method Detail |
|---|
org.eclipse.swt.widgets.Composite getComposite(org.eclipse.swt.widgets.Composite parent)
parent - Composite
Feed getSelectedFeed()
throws NoItemSelectedException
NoItemSelectedException - If no feed is currently selected.
Article getSelectedArticle()
throws NoItemSelectedException
NoItemSelectedException - If no article is currently selected.
java.util.List<Article> getSelectedArticles()
throws NoItemSelectedException
NoItemSelectedException - if no articles are selected
java.util.List<Feed> getSelectedFeeds()
throws NoItemSelectedException
NoItemSelectedException - if no Feeds are selected
java.util.List<Folder> getSelectedFolders()
throws NoItemSelectedException
NoItemSelectedException
Folder getSelectedFolder()
throws NoItemSelectedException
NoItemSelectedException - If no folder is currently selected.
Folder getParentOfSelected()
throws NoItemSelectedException
NoItemSelectedExceptionvoid updateFolderContents(Folder f)
f - Folder whose contents will be updatedvoid update()
void updateArticles(Feed f)
f - void updateArticle(Article a)
a - void updateFeed(Feed f)
f - void updateOutbox()
void updateTrash()
void setURL(java.lang.String url)
url -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||