|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.fightView.FightView
public class FightView
The Fight is a pluggable view for the RSS Reader that allows the user to get a 'google fights' illustration of how many hits there are for two search terms in their articles.
| Field Summary | |
|---|---|
private org.eclipse.swt.browser.Browser |
browser
|
private Controller |
control
|
private DeleteFolderAction |
deleteFolderAction
|
private EmptyTrashAction |
emptyTrashAction
|
private ExportOutboxAction |
exportOutboxAction
|
private FeedPropertiesAction |
feedPropertiesAction
|
private org.eclipse.swt.widgets.Label |
label
|
private Feed |
mostRecentFeed
|
private NewArticleAction |
newArticleAction
|
private NewFolderAction |
newFolderAction
|
private org.eclipse.swt.widgets.Text |
searchText
|
private org.eclipse.swt.widgets.Text |
searchText2
|
private SubscribeAction |
subscribeAction
|
private org.eclipse.jface.viewers.TreeViewer |
treeViewer
|
private UnSubscribeFeedAction |
unSubscribeAction
|
private UpdateFeedAction |
updateFeedAction
|
| Constructor Summary | |
|---|---|
FightView(Controller c)
Constructs a new FightView. |
|
| Method Summary | |
|---|---|
private void |
fight()
Executes to start fight animation. |
org.eclipse.swt.widgets.Composite |
getComposite(org.eclipse.swt.widgets.Composite parent)
Creates and returns the composite of the view. |
private org.eclipse.swt.widgets.Composite |
getFightPane(org.eclipse.swt.widgets.Composite parent)
|
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()
Gets 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. |
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 |
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.swt.browser.Browser browser
private org.eclipse.swt.widgets.Text searchText2
private org.eclipse.swt.widgets.Text searchText
private org.eclipse.swt.widgets.Label label
private SubscribeAction subscribeAction
private UnSubscribeFeedAction unSubscribeAction
private DeleteFolderAction deleteFolderAction
private EmptyTrashAction emptyTrashAction
private NewFolderAction newFolderAction
private UpdateFeedAction updateFeedAction
private NewArticleAction newArticleAction
private FeedPropertiesAction feedPropertiesAction
private ExportOutboxAction exportOutboxAction
private Feed mostRecentFeed
| Constructor Detail |
|---|
public FightView(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
private org.eclipse.swt.widgets.Composite getFightPane(org.eclipse.swt.widgets.Composite parent)
public void update()
update in interface View
public Feed getSelectedFeed()
throws NoItemSelectedException
getSelectedFeed in interface ViewNoItemSelectedException - If no feed is currently selected.
public Article getSelectedArticle()
throws NoItemSelectedException
getSelectedArticle in interface ViewNoItemSelectedException - always
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 - Stringprivate void fight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||