|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.timelineView.TimelineView
public class TimelineView
Timeline View is an implementation of the View interface that allows the user to perform a search, and organizes as a timeline
| Field Summary | |
|---|---|
private java.util.List<Article> |
articles
|
private org.eclipse.swt.browser.Browser |
browser
|
private Controller |
control
|
private org.eclipse.swt.widgets.Label |
label
|
private org.eclipse.swt.widgets.Slider |
mySlider
|
private org.eclipse.swt.widgets.Text |
searchText
|
| Constructor Summary | |
|---|---|
TimelineView(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()
Not implemented for this view |
Article |
getSelectedArticle()
Not implemented for this view |
java.util.List<Article> |
getSelectedArticles()
Not implemented for this view |
Feed |
getSelectedFeed()
Not implemented for this view |
java.util.List<Feed> |
getSelectedFeeds()
Not implemented for this view |
Folder |
getSelectedFolder()
Not implemented for this view |
java.util.List<Folder> |
getSelectedFolders()
Not implemented for this view |
private void |
processSearch()
Ensures that there is text before search is performed, then performs search and sets up the slider to behave properly |
private void |
setupSlider()
Sets min and max value of slider so there are the right number of locations for each article. |
void |
setURL(java.lang.String url)
Sets the url of the browser |
void |
update()
Not implemented for this view |
void |
updateArticle(Article a)
Not implemented for this view |
void |
updateArticles(Feed f)
Not implemented for this view |
void |
updateFeed(Feed f)
Not implemented for this view |
void |
updateFolderContents(Folder f)
Not implemented for this view |
void |
updateOutbox()
Not implemented for this view |
void |
updateTrash()
Not implemented for this view |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.eclipse.swt.browser.Browser browser
private Controller control
private java.util.List<Article> articles
private org.eclipse.swt.widgets.Slider mySlider
private org.eclipse.swt.widgets.Text searchText
private org.eclipse.swt.widgets.Label label
| Constructor Detail |
|---|
public TimelineView(Controller c)
| Method Detail |
|---|
public org.eclipse.swt.widgets.Composite getComposite(org.eclipse.swt.widgets.Composite parent)
View
getComposite in interface Viewparent - Composite
private void processSearch()
private void setupSlider()
public void setURL(java.lang.String url)
setURL in interface Viewurl - String url
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 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 getSelectedFolder()
throws NoItemSelectedException
getSelectedFolder in interface ViewNoItemSelectedException - If no folder is currently selected.
public Folder getParentOfSelected()
throws NoItemSelectedException
getParentOfSelected in interface ViewNoItemSelectedExceptionpublic void updateFolderContents(Folder f)
updateFolderContents in interface Viewf - Folder whose contents will be updatedpublic void update()
update in interface Viewpublic void updateArticles(Feed f)
updateArticles in interface Viewpublic void updateArticle(Article a)
updateArticle in interface Viewpublic void updateFeed(Feed f)
updateFeed in interface Viewpublic void updateOutbox()
updateOutbox in interface Viewpublic void updateTrash()
updateTrash in interface View
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||