|
|||||||||||
| 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.NewsFeedMetaDataView
Displays the meta data of a NewsFeed.
| Nested Class Summary | |
private class |
NewsFeedMetaDataView.HyperlinkHandler
|
| Field Summary | |
private Label |
authorInfoLabel
The description Label for the NewsFeed
author
|
private Label |
authorLabel
The Label for the NewsFeed author
|
private Composite |
contentContainer
The container holding all components of the NewsFeedMetaDataView
|
private Label |
copyrightInfoLabel
The description Label for the NewsFeed
copyright
|
private Label |
copyrightLabel
The Label for the NewsFeed copyright
|
private static DateFormat |
DEFAULT_DATE_FORMATTER
The default DateFormat object to format the publishing
date
|
private Label |
descriptionInfoLabel
The description Label for the NewsFeed
description
|
private Label |
descriptionLabel
The Label for the NewsFeed description
|
private Label |
homepageInfoLabel
* The description Label of the NewsFeed
homepage
|
private Hyperlink |
homepageLink
The NewsFeed homepage (written out) that links the
newsfeed provider homepage
|
private NewsFeedMetaDataView.HyperlinkHandler |
hyperlinkHandler
Event handler for hyperlink activations |
private Label |
languageInfoLabel
The description Label for the NewsFeed
language
|
private Label |
languageLabel
The Label for the NewsFeed language
|
private MainApplicationWindow |
mainWindow
The Feed'n Read main window |
(package private) ScrolledComposite |
metaDataContainerScroller
The scrollable container holding the content container to enable scrolling |
private ImageHyperlink |
newsFeedImageLink
The NewsFeed Image that links the
NewsFeedprovider homepage
|
private Image |
newsFeedImg
The Image of the NewsFeed, e.g. the
website logo
|
private Hyperlink |
newsFeedTitleLink
The NewsFeed title that links the NewsFeed
provider homepage
|
private Label |
newsfeedTypeInfoLabel
The description Label for the NewsFeed type
|
private Label |
newsfeedTypeLabel
The Label holding the NewsFeed type as
Image representation
|
private Label |
publishedDateInfoLabel
The description Label for the NewsFeed
published date
|
private Label |
publishedDateLabel
The Label for the NewsFeed published date
|
| Constructor Summary | |
NewsFeedMetaDataView(Composite parent,
MainApplicationWindow mainWindow,
NewsFeed newsFeed)
Creates a new NewsFeedMetaDataView instance showing the
meta data of the specified newsfeed.
|
|
| Method Summary | |
private String |
convertAuthors(List authors)
Converts the specified List of authors to a single
String that separates the SyndPerson
instances by commas.
|
private void |
createComponents(Composite parent,
NewsFeed newsFeed)
Creates the components used in the context of this NewsFeedMetaDataView.
|
private static Image |
createImage(SyndImage image)
Gets the Image for the specified NewsFeed
related SyndImage.
|
void |
defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes. |
void |
dispose()
Disposes this NewsFeedMetaDataView and all of its
components and allocated resources.
|
private static String |
getLanguage(String languageCode)
Gets the display language for the specified iso languageCode, e.g. de-de or en-us.
|
private void |
registerEventHandler()
Creates and registers all Event Handler required in this NewsFeedMetaDataView context.
|
private void |
unregisterEventHandler()
Unregisters and destroys all Event Handler used in this NewsFeedMetaDataView context.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final DateFormat DEFAULT_DATE_FORMATTER
The default DateFormat object to format the publishing
date
private MainApplicationWindow mainWindow
The Feed'n Read main window
private Image newsFeedImg
The Image of the NewsFeed, e.g. the
website logo
private Hyperlink newsFeedTitleLink
The NewsFeed title that links the NewsFeed
provider homepage
private ImageHyperlink newsFeedImageLink
The NewsFeed Image that links the
NewsFeedprovider homepage
private Label homepageInfoLabel
* The description Label of the NewsFeed
homepage
private Hyperlink homepageLink
The NewsFeed homepage (written out) that links the
newsfeed provider homepage
private Label descriptionInfoLabel
The description Label for the NewsFeed
description
private Label descriptionLabel
The Label for the NewsFeed description
private Label copyrightInfoLabel
The description Label for the NewsFeed
copyright
private Label copyrightLabel
The Label for the NewsFeed copyright
private Label authorInfoLabel
The description Label for the NewsFeed
author
private Label authorLabel
The Label for the NewsFeed author
private Label publishedDateInfoLabel
The description Label for the NewsFeed
published date
private Label publishedDateLabel
The Label for the NewsFeed published date
private Label languageInfoLabel
The description Label for the NewsFeed
language
private Label languageLabel
The Label for the NewsFeed language
private Label newsfeedTypeInfoLabel
The description Label for the NewsFeed type
private Label newsfeedTypeLabel
The Label holding the NewsFeed type as
Image representation
ScrolledComposite metaDataContainerScroller
The scrollable container holding the content container to enable scrolling
private Composite contentContainer
The container holding all components of the
NewsFeedMetaDataView
private NewsFeedMetaDataView.HyperlinkHandler hyperlinkHandler
Event handler for hyperlink activations
| Constructor Detail |
public NewsFeedMetaDataView(Composite parent,
MainApplicationWindow mainWindow,
NewsFeed newsFeed)
Creates a new NewsFeedMetaDataView instance showing the
meta data of the specified newsfeed.
parent - the Component to place this
NewsFeedMetaDataView inmainWindow - the Feed'n Read main windownewsFeed - the NewsFeed to display the meta data for| Method Detail |
public void defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes.
defaultLanguageChanged in interface ILanguageResourceChangeListenerlrce - the triggered LanguageResourceChangeEventpublic void dispose()
Disposes this NewsFeedMetaDataView and all of its
components and allocated resources.
private void createComponents(Composite parent,
NewsFeed newsFeed)
Creates the components used in the context of this
NewsFeedMetaDataView.
parent - Composite the component that this
NewsFeedMetaDataView and its children should be placed innewsFeed - the NewsFeed for which to display the meta dataprivate String convertAuthors(List authors)
Converts the specified List of authors to a single
String that separates the SyndPerson
instances by commas.
private void registerEventHandler()
Creates and registers all Event Handler required in this
NewsFeedMetaDataView context.
private void unregisterEventHandler()
Unregisters and destroys all Event Handler used in this
NewsFeedMetaDataView context.
private static String getLanguage(String languageCode)
Gets the display language for the specified
iso languageCode, e.g. de-de or en-us.
languageCode - the iso language code, e.g. de-de or en-us
private static Image createImage(SyndImage image)
Gets the Image for the specified NewsFeed
related SyndImage.
image - the SyndImage describing the
NewsFeed related image
Image for the specified
SyndImage; null if no Image
available
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||