|
JSR-927 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.tv.service.navigation.ServiceFilter javax.tv.service.navigation.PreferenceFilter
PreferenceFilter
represents a
ServiceFilter
based on a user preference for favorite
services. A ServiceList
resulting from this filter
will include only user favorite services contained in the specified
preference.
FavoriteServicesName
,
ServiceList
Constructor Summary | |
PreferenceFilter(FavoriteServicesName preference)
Constructs the filter based on a particular user preference for favorite services. |
Method Summary | |
boolean |
accept(Service service)
Tests if the given service passes the filter. |
FavoriteServicesName |
getFilterValue()
Reports the user preference used to create this filter. |
static FavoriteServicesName[] |
listPreferences()
Reports the available favorite service preferences that can be used to create this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PreferenceFilter(FavoriteServicesName preference)
preference
- A named user preference, obtained from
the listPreferences()
method, representing favorite
Services to be included in a resulting service list.
java.lang.IllegalArgumentException
- If the specified preference is
not obtainable from the listPreferences()
method.listPreferences()
Method Detail |
public static FavoriteServicesName[] listPreferences()
public FavoriteServicesName getFilterValue()
public boolean accept(Service service)
accept
in class ServiceFilter
service
- An individual Service
to be evaluated
against the filtering algorithm.
true
if service
is part of the
favorite services indicated by the filter value; false
otherwise.
|
JSR-927 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |