Groovy Documentation

org.jdesktop.swingx.ws.yahoo.rss
[Java] Class YahooFinanceNews

java.lang.Object
  org.jdesktop.beans.AbstractBean
      org.jdesktop.swingx.ws.yahoo.rss.YahooRSS
          org.jdesktop.swingx.ws.yahoo.rss.YahooFinanceNews

public class YahooFinanceNews
extends YahooRSS

A simple JavaBean encapsulating access to the Yahoo! Finance News RSS feeds. To use this class, you simply need to set the feedName property and call the readFeed method. readFeed may be a long running operation, so be sure to wrap access to it in some way, such as with SwingWorker or BackgroundWorker.

There are many valid feedNames, and the list is ever growing. Some common popular names are listed as public static Strings in this class. See Yahoo! for more information about specific feeds that are available. By default, the MOST_POPULAR feed is used.

This class is very similar in style an approach to the YahooNews class, it simply maintains a different namespace and URL structure.

Authors:
rbair


Field Summary
static String BANKING

static String BONDS

static String COMMODITIES

static String CURRENCIES

static String FUNDS

static String INTERNATIONAL_FINANCE

static String MORTGAGES

static String MOST_POPULAR

static String RETIREMENT

static String TAXES

static String US_MARKETS

private String feedName

The name of the feed to read

 
Constructor Summary
YahooFinanceNews()

Creates a new instance of YahooNews

 
Method Summary
String getFeedName()

Returns:
the name of the Yahoo!

protected Map getParameters()

@inheritDoc

protected String getUrlPrefix()

@inheritDoc

void setFeedName(String feedName)

Sets the name of the feed to read from Yahoo!

 
Methods inherited from class YahooRSS
constructUrl, getParameters, getUrlPrefix, readFeed
 
Methods inherited from class org.jdesktop.beans.AbstractBean
org.jdesktop.beans.AbstractBean#clone(), org.jdesktop.beans.AbstractBean#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#addPropertyChangeListener(java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#removePropertyChangeListener(java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#getPropertyChangeListeners(java.lang.String), org.jdesktop.beans.AbstractBean#getPropertyChangeListeners(), org.jdesktop.beans.AbstractBean#addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#addVetoableChangeListener(java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#removeVetoableChangeListener(java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#getVetoableChangeListeners(java.lang.String), org.jdesktop.beans.AbstractBean#getVetoableChangeListeners(), org.jdesktop.beans.AbstractBean#wait(), org.jdesktop.beans.AbstractBean#wait(long), org.jdesktop.beans.AbstractBean#wait(long, int), org.jdesktop.beans.AbstractBean#equals(java.lang.Object), org.jdesktop.beans.AbstractBean#toString(), org.jdesktop.beans.AbstractBean#hashCode(), org.jdesktop.beans.AbstractBean#getClass(), org.jdesktop.beans.AbstractBean#notify(), org.jdesktop.beans.AbstractBean#notifyAll()
 

Field Detail

BANKING

public static final String BANKING


BONDS

public static final String BONDS


COMMODITIES

public static final String COMMODITIES


CURRENCIES

public static final String CURRENCIES


FUNDS

public static final String FUNDS


INTERNATIONAL_FINANCE

public static final String INTERNATIONAL_FINANCE


MORTGAGES

public static final String MORTGAGES


MOST_POPULAR

public static final String MOST_POPULAR


RETIREMENT

public static final String RETIREMENT


TAXES

public static final String TAXES


US_MARKETS

public static final String US_MARKETS


feedName

private String feedName
The name of the feed to read


 
Constructor Detail

YahooFinanceNews

public YahooFinanceNews()
Creates a new instance of YahooNews


 
Method Detail

getFeedName

public String getFeedName()
Returns:
the name of the Yahoo! News feed


getParameters

protected Map getParameters()
inheritDoc:


getUrlPrefix

protected String getUrlPrefix()
inheritDoc:


setFeedName

public void setFeedName(String feedName)
Sets the name of the feed to read from Yahoo! Finance News. Several common feednames are listed in this class (such as YahooNews.FUNDS).
Parameters:
feedName - name of a Yahoo! finance feed. This cannot be null or contain only whitespace


 

Groovy Documentation