net.sourceforge.rssowl.controller.panel
Class NewsfeedPanel

java.lang.Object
  extended by net.sourceforge.rssowl.controller.panel.NewsfeedPanel

public class NewsfeedPanel
extends java.lang.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.2.4
Author:
Benjamin Pasero

Field Summary
private  int[] columnWidths
           
(package private)  EventManager eventManager
           
private  Composite newsHeaderHolderAll
           
private  boolean performSearch
           
private  Channel rssChannel
           
(package private)  GUI rssOwlGui
           
private  java.lang.String searchPattern
           
private  java.lang.String selectedNews
           
private  java.lang.String title
           
private  java.lang.String url
           
 
Constructor Summary
NewsfeedPanel(GUI rssOwlGui, CTabItem feedTabItem, Channel rssChannel, java.lang.String url, java.lang.String title, java.lang.String searchPattern, java.lang.String selectedNews, int[] columnWidths)
          Instantiate a new NewsfeedPanel
 
Method Summary
private  void createEmptyNewsPopup(Control control)
          Create the popup that is shown when no news where found or are available to display
private  void createInfoArea(Composite parent, java.lang.String text, java.lang.String url)
          Create a small info area on top of the newsheader table.
 Composite getNewsfeedPanel()
          Get the newsfeed panel
private  void initComponents(CTabItem feedTabItem)
          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

newsHeaderHolderAll

private Composite newsHeaderHolderAll

performSearch

private boolean performSearch

rssChannel

private Channel rssChannel

searchPattern

private java.lang.String searchPattern

selectedNews

private java.lang.String selectedNews

title

private java.lang.String title

url

private java.lang.String url

eventManager

EventManager eventManager

rssOwlGui

GUI rssOwlGui
Constructor Detail

NewsfeedPanel

public NewsfeedPanel(GUI rssOwlGui,
                     CTabItem feedTabItem,
                     Channel rssChannel,
                     java.lang.String url,
                     java.lang.String title,
                     java.lang.String searchPattern,
                     java.lang.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 Composite getNewsfeedPanel()
Get the newsfeed panel

Returns:
Composite The newsfeed panel

createEmptyNewsPopup

private void createEmptyNewsPopup(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(Composite parent,
                            java.lang.String text,
                            java.lang.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(CTabItem feedTabItem)
Init the components of the newsfeed panel



RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo