|
||||||||||
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.GenericImageBrand
public class GenericImageBrand
Essentially a duplicate of GenericBackgroundImage
but it sets the
resource of the Brand view with the images identified via
OPTION_URLS
("GenericImageBrand.urls")
Field Summary | |
---|---|
static String |
OPTION_PREVENT_DUPLICATES
|
static String |
OPTION_URLS
|
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 | |
---|---|
GenericImageBrand()
|
Method Summary | |
---|---|
String |
getLocalOptionDefault(String key)
default for OPTION_URLS - loopback to current tivo's dancing tivo guy animated gif; for OPTION_PREVENT_DUPLICATES - true. |
Collection |
getLocalOptionNames()
just the keySet of getLocalOptionPreferences() |
Map |
getLocalOptionPreferences()
Add support for OPTION_URLS
map of your option keys where the value is "Type[+],text [range]" per the
MultiTaskerPreferences class. |
com.tivo.hme.bananas.BView |
getUpdatedBrand(com.tivo.hme.bananas.BView brandParent)
Gets called to create the brand and any time the multitasker thinks it should be updated. |
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_URLS
public static final String OPTION_PREVENT_DUPLICATES
Constructor Detail |
---|
public GenericImageBrand()
Method Detail |
---|
public void init(MultiTaskerApplication app)
Brand
Brand.getUpdatedBrand(BView)
is ever called.
init
in interface Brand
public com.tivo.hme.bananas.BView getUpdatedBrand(com.tivo.hme.bananas.BView brandParent)
Brand
getUpdatedBrand
in interface Brand
brandParent
- the parent to use for the brand's view - constrains
height/width/position
public String getLocalOptionDefault(String key)
OPTION_URLS
- loopback to current tivo's dancing tivo guy animated gif; for OPTION_PREVENT_DUPLICATES
- true.
getLocalOptionDefault
in interface LocalOptionProvider
LocalOptionProvider.getLocalOptionDefault(java.lang.String)
public Collection getLocalOptionNames()
getLocalOptionPreferences()
getLocalOptionNames
in interface LocalOptionProvider
public Map getLocalOptionPreferences()
OPTION_URLS
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |