|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.feednread.frontend.components.tabbar.NewsFeedView
Displays a NewsFeed in a tab view holding two selectable tabs:
First a NewsFeedTable component that displays the
NewsFeedEntrys in a NewsFeed. Second a
NewsFeedMetaDataView compoents which displays the meta data of
a NewsFeed.
| Nested Class Summary | |
private class |
NewsFeedView.TabSelectionHandler
|
| Field Summary | |
private MainApplicationWindow |
mainWindow
|
private NewsFeedMetaDataView |
metaDataView
|
private CTabItem |
newsFeedMetaDataTabItem
|
private CTabItem |
newsFeedTabItem
|
private CLabel |
newsFeedTitle
|
private Label |
newsFeedType
|
(package private) CTabFolder |
newsFeedViewTabFolder
|
private NewsFeedTable |
newsTable
|
private NewsFeedView.TabSelectionHandler |
tabHandler
|
| Constructor Summary | |
NewsFeedView(Composite parent,
MainApplicationWindow mainWindow,
NewsFeed newsFeed)
Creates a new NewsFeedView instance showing the specified
newsfeed.
|
|
| Method Summary | |
private void |
createComponents(Composite parent,
NewsFeed newsFeed)
Creates the components used in the context of this NewsFeedView.
|
private Composite |
createNewsFeedContainer(NewsFeed newsFeed)
Creates the newsfeed container which holds the newsfeed header and the NewsFeedTable component.
|
void |
defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes. |
void |
dispose()
Disposes this NewsFeedView and all of its components
and allocated resources.
|
NewsFeedEntry[] |
filter(String filterText)
Filters the entries matching the specified filterText
keyword.
|
String |
getFilterText()
Gets the currently set filter text; null if none set.
|
NewsFeed |
getNewsFeed()
Gets the NewsFeed displayed in this
NewsFeedView
|
NewsFeedTable |
getNewsFeedTable()
Gets the NewsFeedTable embedded in this
NewsFeedView.
|
int |
getVisibleEntries()
Gets the number of currently visible NewsFeedEntries
according to the current filter settings in this
NewsFeedView.
|
void |
refresh()
Refreshes this NewsFeedView.
|
private void |
registerEventHandler()
Creates and registers all Event Handler required in this NewsFeedView context.
|
void |
setFilterText(String filterText)
Sets the filter to the specified filterText.
|
void |
setNewsFeed(NewsFeed newsFeed)
Sets the NewsFeed displayed in this
NewsFeedView
|
void |
setTaggedFilterEnabled(boolean enabled)
Sets the enabled status of the tagged news filter. |
void |
setUnreadFilterEnabled(boolean enabled)
Sets the enabled status of the unread news filter. |
private void |
unregisterEventHandler()
Unregisters and destroys all Event Handler used in this NewsFeedView context.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private MainApplicationWindow mainWindow
private NewsFeedTable newsTable
private CLabel newsFeedTitle
private Label newsFeedType
CTabFolder newsFeedViewTabFolder
private CTabItem newsFeedTabItem
private CTabItem newsFeedMetaDataTabItem
private NewsFeedMetaDataView metaDataView
private NewsFeedView.TabSelectionHandler tabHandler
| Constructor Detail |
public NewsFeedView(Composite parent,
MainApplicationWindow mainWindow,
NewsFeed newsFeed)
Creates a new NewsFeedView instance showing the specified
newsfeed.
parent - the Component to place this NewsFeedView inmainWindow - the Feed'n Read main windownewsFeed - the NewsFeed to display| Method Detail |
public void defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes.
defaultLanguageChanged in interface ILanguageResourceChangeListenerlrce - the triggered LanguageResourceChangeEventpublic void dispose()
Disposes this NewsFeedView and all of its components
and allocated resources.
public NewsFeedTable getNewsFeedTable()
Gets the NewsFeedTable embedded in this
NewsFeedView.
NewsFeedTable embedded in this
NewsFeedViewpublic void setNewsFeed(NewsFeed newsFeed)
Sets the NewsFeed displayed in this
NewsFeedView
newsFeed - the NewsFeed to displaypublic NewsFeed getNewsFeed()
Gets the NewsFeed displayed in this
NewsFeedView
NewsFeed displayed in this
NewsFeedViewpublic int getVisibleEntries()
Gets the number of currently visible NewsFeedEntries
according to the current filter settings in this
NewsFeedView.
NewsFeedEntriespublic NewsFeedEntry[] filter(String filterText)
Filters the entries matching the specified filterText
keyword.
filterText - the keyword to use for filtering
filterText keywordpublic void setFilterText(String filterText)
Sets the filter to the specified filterText.
A null value clears the filter.
filterText - the text to use as filter; null to
clear the filterpublic String getFilterText()
Gets the currently set filter text; null if none set.
null if none setpublic void refresh()
Refreshes this NewsFeedView.
public void setUnreadFilterEnabled(boolean enabled)
Sets the enabled status of the unread news filter. If enabled only unread news otherwise all news are shown.
enabled - true to enable the unread news filter;
false to disable itpublic void setTaggedFilterEnabled(boolean enabled)
Sets the enabled status of the tagged news filter. If enabled only tagged news otherwise all news are shown.
enabled - true to enable the
tagged news filter; false to disable it
private void createComponents(Composite parent,
NewsFeed newsFeed)
Creates the components used in the context of this
NewsFeedView.
parent - Composite the component that this NewsFeedView
and its children should be placed innewsFeed - the NewsFeed to displayprivate Composite createNewsFeedContainer(NewsFeed newsFeed)
Creates the newsfeed container which holds the newsfeed header
and the NewsFeedTable component.
newsFeed - the newsfeed to display
private void registerEventHandler()
Creates and registers all Event Handler required in this
NewsFeedView context.
private void unregisterEventHandler()
Unregisters and destroys all Event Handler used in this
NewsFeedView context.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||