|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.blackledge.david.tivo.multitasker.plugins.LocalStreamedBackgroundImage
public class LocalStreamedBackgroundImage
non-smart implementation of getting local picture URLs for everything in "My Pictures"
| Field Summary | |
|---|---|
static String |
OPTION_LOCAL_IMAGE_FOLDER
|
| 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 | |
|---|---|
LocalStreamedBackgroundImage()
|
|
| Method Summary | |
|---|---|
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. |
String |
getNextImage()
|
com.tivo.hme.bananas.BView |
getUpdatedBrand(com.tivo.hme.bananas.BView brandParent)
Simple impl of brand - just sets brand's resource to result of getNextImage()
Not going to work nicely with simultaneous use of background image for non-shuffle mode. |
void |
init(MultiTaskerApplication app)
initialize the plugin with the current application context. |
| 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_LOCAL_IMAGE_FOLDER
| Constructor Detail |
|---|
public LocalStreamedBackgroundImage()
| Method Detail |
|---|
public String getNextImage()
getNextImage in interface BackgroundImagepublic void init(MultiTaskerApplication app)
BrandBrand.getUpdatedBrand(BView) is ever called.
init in interface BackgroundImageinit in interface Brandpublic Collection getLocalOptionNames()
getLocalOptionPreferences()
getLocalOptionNames in interface LocalOptionProviderpublic 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 LocalOptionProviderLocalOptionProvider.getLocalOptionPreferences()public String getLocalOptionDefault(String key)
LocalOptionProvider
getLocalOptionDefault in interface LocalOptionProviderpublic com.tivo.hme.bananas.BView getUpdatedBrand(com.tivo.hme.bananas.BView brandParent)
getNextImage()
Not going to work nicely with simultaneous use of background image for non-shuffle mode.
Gets called to create the brand and any time the multitasker thinks it
should be updated. Implementors are responsible for cleaning up your old
View if creating a new one!
getUpdatedBrand in interface BrandbrandParent - the parent to use for the brand's view - constrains
height/width/position
Brand.getUpdatedBrand(com.tivo.hme.bananas.BView)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||