|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.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.
| 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()
|
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 |
|---|
public static final String BANKING
public static final String BONDS
public static final String COMMODITIES
public static final String CURRENCIES
public static final String FUNDS
public static final String INTERNATIONAL_FINANCE
public static final String MORTGAGES
public static final String MOST_POPULAR
public static final String RETIREMENT
public static final String TAXES
public static final String US_MARKETS
private String feedName
| Constructor Detail |
|---|
public YahooFinanceNews()
| Method Detail |
|---|
public String getFeedName()
protected Map getParameters()
protected String getUrlPrefix()
public void setFeedName(String feedName)
feedName - name of a Yahoo! finance feed. This cannot be null or contain only whitespace
Groovy Documentation