|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.feednread.frontend.components.NewsContentView
Displays the content fo a single NewsFeedEntry in a internal
Browser. Optionally creates a drop down menu from which an
enclosure or podcast, if any, may be selected for download by the end-user.
| Field Summary | |
private ToolBar |
enclosureToolBar
The ToolBar component to show a drop down menu of all
embedded enclosures
|
private ToolBarManager |
enclosureToolBarManager
The ToolBarManager responsible of managing the
EnclosureListAction which defines all single
EnclosureActions
|
private MainApplicationWindow |
mainWindow
The Feed'n Read main window |
private Browser |
newsBrowser
The internal Browser shoing the news content |
private ViewForm |
newsContentForm
The container holding the component itself |
private Composite |
newsContentPanel
The container holding all components |
private Hyperlink |
newsHyperlink
The Hyperlink showing the news link |
private Label |
newsTitle
The Label<(code> showing the news title |
| Constructor Summary | |
NewsContentView(Composite parent,
MainApplicationWindow mainWindow)
Creates a new NewsContentView instance which is used to
display a single news. |
|
| Method Summary | |
void |
clear()
Clears this NewsContentView.
|
private void |
createComponents(Composite parent)
Creates the components used in the context of this NewsContentView.
|
boolean |
isVisible()
Gets the visibility status of this NewsContentView
component.
|
void |
setNews(NewsFeedEntry news)
Sets the news displayed in this NewsContentView.
|
void |
setVisible(boolean visible)
Sets the visibility status of this NewsContentView
component.
|
private void |
showEnclosures(NewsFeedEntry entry)
Shows the enclosures embedded in the specified NewsFeedEntry.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private MainApplicationWindow mainWindow
The Feed'n Read main window
private ViewForm newsContentForm
The container holding the component itself
private Label newsTitle
The Label<(code> showing the news title
private Hyperlink newsHyperlink
The Hyperlink showing the news link
private Browser newsBrowser
The internal Browser shoing the news content
private Composite newsContentPanel
The container holding all components
private ToolBar enclosureToolBar
The ToolBar component to show a drop down menu of all
embedded enclosures
private ToolBarManager enclosureToolBarManager
The ToolBarManager responsible of managing the
EnclosureListAction which defines all single
EnclosureActions
| Constructor Detail |
public NewsContentView(Composite parent,
MainApplicationWindow mainWindow)
Creates a new NewsContentView instance which is used to
display a single news. This component shows the news title and url in
it's header and the news content in it's body.
parent - Composite the component that this
NewsContentView should be placed in| Method Detail |
private void createComponents(Composite parent)
Creates the components used in the context of this
NewsContentView.
parent - Composite the component that this
NewsContentView and its children should be placed inpublic void setNews(NewsFeedEntry news)
Sets the news displayed in this NewsContentView.
news - NewsFeedEntry the news to displaypublic void clear()
Clears this NewsContentView.
public void setVisible(boolean visible)
Sets the visibility status of this NewsContentView
component.
visible - true for visible; false
for invisiblepublic boolean isVisible()
Gets the visibility status of this NewsContentView
component.
true if visible; false
if invisibleprivate void showEnclosures(NewsFeedEntry entry)
Shows the enclosures embedded in the specified
NewsFeedEntry.
entry - the NewsFeedEbtry to show the enclosures for
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||