net.sourceforge.rssowl.controller.panel
Class NewsfeedPanel

java.lang.Object
  extended bynet.sourceforge.rssowl.controller.panel.NewsfeedPanel

public class NewsfeedPanel
extends Object

The newsfeed panel is showing all news-title from the given Channel inside a Table. A selection on a newstitle will open it inside the Newstext panel.

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
private  int[] columnWidths
           
(package private)  EventManager eventManager
           
private  org.eclipse.swt.custom.CTabItem feedTabItem
           
private  org.eclipse.swt.widgets.Composite newsHeaderHolderAll
           
private  boolean performSearch
           
private  Channel rssChannel
           
(package private)  GUI rssOwlGui
           
private  String searchPattern
           
private  String selectedNews
           
private  String title
           
private  String url
           
 
Constructor Summary
NewsfeedPanel(GUI rssOwlGui, org.eclipse.swt.custom.CTabItem feedTabItem, Channel rssChannel, String url, String title, String searchPattern, String selectedNews, int[] columnWidths)
          Instantiate a new NewsfeedPanel
 
Method Summary
private  void createEmptyNewsPopup(org.eclipse.swt.widgets.Control control)
          Create the popup that is shown when no news where found or are available to display
private  void createInfoArea(org.eclipse.swt.widgets.Composite parent, String text, String url)
          Create a small info area on top of the newsheader table.
 org.eclipse.swt.widgets.Composite getNewsfeedPanel()
          Get the newsfeed panel
private  void initComponents()
          Init the components of the newsfeed panel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnWidths

private int[] columnWidths

feedTabItem

private org.eclipse.swt.custom.CTabItem feedTabItem

newsHeaderHolderAll

private org.eclipse.swt.widgets.Composite newsHeaderHolderAll

performSearch

private boolean performSearch

rssChannel

private Channel rssChannel

searchPattern

private String searchPattern

selectedNews

private String selectedNews

title

private String title

url

private String url

eventManager

EventManager eventManager

rssOwlGui

GUI rssOwlGui
Constructor Detail

NewsfeedPanel

public NewsfeedPanel(GUI rssOwlGui,
                     org.eclipse.swt.custom.CTabItem feedTabItem,
                     Channel rssChannel,
                     String url,
                     String title,
                     String searchPattern,
                     String selectedNews,
                     int[] columnWidths)
Instantiate a new NewsfeedPanel

Parameters:
rssOwlGui - The maincontroller
feedTabItem - The tabitem this newsfeedpanel will be placed in
rssChannel - The channel to display news from
url - The URL of the newsfeed
title - The Title of the newsfeed
searchPattern - The search pattern that was used, if set
selectedNews - The previous selected news, if set, to restore selection
columnWidths - The previoud column widths, if set, to restore them
Method Detail

getNewsfeedPanel

public org.eclipse.swt.widgets.Composite getNewsfeedPanel()
Get the newsfeed panel

Returns:
Composite The newsfeed panel

createEmptyNewsPopup

private void createEmptyNewsPopup(org.eclipse.swt.widgets.Control control)
Create the popup that is shown when no news where found or are available to display

Parameters:
control - The control for the popup

createInfoArea

private void createInfoArea(org.eclipse.swt.widgets.Composite parent,
                            String text,
                            String url)
Create a small info area on top of the newsheader table. This info area is used after a search to GUI.display the search results and in case no news are there to GUI.display.

Parameters:
parent - The parent Composite of the info area
text - The info text to GUI.display
url - In case the URL is given, a toolitem will allow to close the search and return to all items of the newsfed

initComponents

private void initComponents()
Init the components of the newsfeed panel



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo