|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.blackledge.david.tivo.multitasker.plugins.RSSTicker
public class RSSTicker
TickerTape that provides images, headings, and ticker content based on a list of RSS feed URLs using just SAX and DOM to parse. TODO: support shuffle/random
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.blackledge.david.tivo.multitasker.TickerTape |
---|
TickerTape.TickerTapeSegment, TickerTape.TickerTapeSegmentDefault |
Field Summary | |
---|---|
static String |
OPTION_FEEDS
|
static String |
OPTION_INCLUDE_STORY
|
Fields inherited from interface com.blackledge.david.tivo.multitasker.LocalOptionProvider |
---|
TYPE_BOOLEAN, TYPE_CLASS, TYPE_COLOR, TYPE_FILE, TYPE_FLOAT, TYPE_FOLDER, TYPE_IMAGE, TYPE_INTEGER, TYPE_STRING, TYPE_URL |
Constructor Summary | |
---|---|
RSSTicker()
|
Method Summary | |
---|---|
protected List |
getChildElementsByTagName(Element parentElement,
String name)
Often we want to work with all the subtags of a given name (or just all subtags) - this gets them for us. |
String |
getLocalOptionDefault(String key)
defaults for each of the local option keys. |
Collection |
getLocalOptionNames()
just the keySet of getLocalOptionPreferences() |
Map |
getLocalOptionPreferences()
Add support for #OPTION_LOCAL_IMAGE_FOLDER
map of your option keys where the value is "Type[+],text [range]" per the
MultiTaskerPreferences class. |
TickerTape.TickerTapeSegment |
getNextContent()
|
protected String |
getNodeValue(Node element)
Typically we want the text value contained within a tag... |
protected Element |
getSingleChildElementByTagName(Element parentElement,
String name)
Often we know we want one subtag and it won't appear more than once, this gets it for us. |
void |
init(MultiTaskerApplication app)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OPTION_FEEDS
public static final String OPTION_INCLUDE_STORY
Constructor Detail |
---|
public RSSTicker()
Method Detail |
---|
public TickerTape.TickerTapeSegment getNextContent()
getNextContent
in interface TickerTape
public void init(MultiTaskerApplication app)
init
in interface TickerTape
protected Element getSingleChildElementByTagName(Element parentElement, String name)
parentElement
- name
- may not be null.
protected List getChildElementsByTagName(Element parentElement, String name)
parentElement
- name
- - null means accept all tag names into the list.
protected String getNodeValue(Node element)
element
-
public Collection getLocalOptionNames()
getLocalOptionPreferences()
getLocalOptionNames
in interface LocalOptionProvider
public Map getLocalOptionPreferences()
#OPTION_LOCAL_IMAGE_FOLDER
map of your option keys where the value is "Type[+],text [range]" per the
MultiTaskerPreferences
class. Use a LinkedHashMap
to
maintain the order of your options.
getLocalOptionPreferences
in interface LocalOptionProvider
LocalOptionProvider.getLocalOptionPreferences()
public String getLocalOptionDefault(String key)
LocalOptionProvider
getLocalOptionDefault
in interface LocalOptionProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |