|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.mailBoxView.MailBoxView
public class MailBoxView
The MailBoxView is a pluggable view for the RSS Reader that is visually similar to an e-mail client.
| Field Summary | |
|---|---|
private AddToOutbox |
addToOutbox
|
private org.eclipse.swt.browser.Browser |
browser
|
private Controller |
control
|
private DeleteFolderAction |
deleteFolderAction
|
private DeliciousAction |
deliciousAction
|
private DiggAction |
diggAction
|
private EmptyTrashAction |
emptyTrashAction
|
private ExportOutboxAction |
exportOutboxAction
|
private FeedPropertiesAction |
feedPropertiesAction
|
private MarkNewAction |
markNewAction
|
private MarkReadAction |
markReadAction
|
private Feed |
mostRecentFeed
|
private NewArticleAction |
newArticleAction
|
private NewFolderAction |
newFolderAction
|
private SubscribeAction |
subscribeAction
|
private org.eclipse.jface.viewers.TableViewer |
tableViewer
|
private TrashAction |
trashAction
|
private org.eclipse.jface.viewers.TreeViewer |
treeViewer
|
private UnSubscribeFeedAction |
unSubscribeAction
|
private UnTrashAction |
unTrashAction
|
private UpdateFeedAction |
updateFeedAction
|
| Constructor Summary | |
|---|---|
MailBoxView(Controller c)
Constructs a new MailBoxView. |
|
| Method Summary | |
|---|---|
org.eclipse.swt.widgets.Composite |
getComposite(org.eclipse.swt.widgets.Composite parent)
Creates and returns the composite of the view. |
Folder |
getParentOfSelected()
gets the parent folder of the selected item in the tree. |
Article |
getSelectedArticle()
gets the currently selected article in the view. |
java.util.List<Article> |
getSelectedArticles()
Returns a list of all selected articles |
Feed |
getSelectedFeed()
Gets the currently selected feed in the view. |
java.util.List<Feed> |
getSelectedFeeds()
Returns a list of the selected feeds |
Folder |
getSelectedFolder()
Gets the currently selected folder in the view. |
java.util.List<Folder> |
getSelectedFolders()
Gets selected folders. |
void |
setURL(java.lang.String url)
Sets the url of the browser. |
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 in the table |
void |
updateArticles(Feed f)
Updates the view of the articles of the specified feed. |
void |
updateFeed(Feed f)
updates the view of a feed in the tree. |
void |
updateFolderContents(Folder f)
Updates the view of the children of the specified folder. |
void |
updateOutbox()
Updates the view of the outbox in the tree |
private void |
updateTable()
Updates the table |
void |
updateTrash()
Updates the view of the trash in the tree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Controller control
private org.eclipse.jface.viewers.TreeViewer treeViewer
private org.eclipse.jface.viewers.TableViewer tableViewer
private org.eclipse.swt.browser.Browser browser
private SubscribeAction subscribeAction
private UnSubscribeFeedAction unSubscribeAction
private DeleteFolderAction deleteFolderAction
private EmptyTrashAction emptyTrashAction
private NewFolderAction newFolderAction
private UpdateFeedAction updateFeedAction
private MarkReadAction markReadAction
private MarkNewAction markNewAction
private AddToOutbox addToOutbox
private TrashAction trashAction
private UnTrashAction unTrashAction
private DiggAction diggAction
private DeliciousAction deliciousAction
private NewArticleAction newArticleAction
private FeedPropertiesAction feedPropertiesAction
private ExportOutboxAction exportOutboxAction
private Feed mostRecentFeed
| Constructor Detail |
|---|
public MailBoxView(Controller c)
c - Controller to be associated with this view.| Method Detail |
|---|
public org.eclipse.swt.widgets.Composite getComposite(org.eclipse.swt.widgets.Composite parent)
getComposite in interface Viewparent - Composite
public void update()
update in interface Viewprivate void updateTable()
public Feed getSelectedFeed()
throws NoItemSelectedException
getSelectedFeed in interface ViewNoItemSelectedException - If no feed is currently selected.
public Article getSelectedArticle()
throws NoItemSelectedException
getSelectedArticle in interface ViewNoItemSelectedException - If no article is currently selected.
public Folder getSelectedFolder()
throws NoItemSelectedException
getSelectedFolder in interface ViewNoItemSelectedException - If no folder is currently selected.
public java.util.List<Article> getSelectedArticles()
throws NoItemSelectedException
getSelectedArticles in interface ViewNoItemSelectedException - if no articles are selected
public java.util.List<Feed> getSelectedFeeds()
throws NoItemSelectedException
getSelectedFeeds in interface ViewNoItemSelectedException - if no feeds are selected
public java.util.List<Folder> getSelectedFolders()
throws NoItemSelectedException
getSelectedFolders in interface ViewNoItemSelectedException
public Folder getParentOfSelected()
throws NoItemSelectedException
getParentOfSelected in interface ViewNoItemSelectedException - if no item in the tree is selected, of if the selected item
has no parent (Subcribed Feeds folder, outbox or trash)public void updateArticles(Feed f)
updateArticles in interface Viewf - Feedpublic void updateFolderContents(Folder f)
updateFolderContents in interface Viewf - Folder parentpublic void updateOutbox()
updateOutbox in interface Viewpublic void updateTrash()
updateTrash in interface Viewpublic void updateArticle(Article a)
updateArticle in interface Viewa - Articlepublic void updateFeed(Feed f)
updateFeed in interface Viewf - Feedpublic void setURL(java.lang.String url)
setURL in interface Viewurl - String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||