|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentList
This interface represents a list of filtered ContentEntry objects.
Method Summary | |
---|---|
void |
addContentListListener(ContentListListener listener)
Adds a ContentListListener to this ContentList. |
ContentList |
filterContentList(ContentDatabaseFilter filter)
Filters the ContentList. |
ContentEntry |
find(String[] keys,
Object[] values)
Finds the first ContentEntry which matches the search. |
ContentEntry |
find(String key,
Object value)
Finds the first ContentEntry which identifier for the key
'key ' equals the given object obj . |
ContentList |
findAll(String[] keys,
Object[] values)
Finds all ContentEntry objects which match the search. |
String[] |
getSortOrder()
Gets the sort order set by the #setSortOrder method. |
void |
removeContentListListener(ContentListListener listener)
Removes the specified ContentListListener. |
void |
setSortOrder(String[] keys)
Sets the metadata sort order of the items in this list based on metadata key identifiers using signed property values. |
int |
size()
Gets the number of ContentEntry objects in this ContentList. |
Methods inherited from interface java.util.Enumeration |
---|
hasMoreElements, nextElement |
Method Detail |
---|
int size()
void setSortOrder(String[] keys)
String[] sort = {"+Artist","-CD","+Title"};
Where the plus sign causes an ascending sort and the minus sign causes
a descending sort.
keys
- Array of metadata keys containing the sort order.String[] getSortOrder()
ContentEntry find(String key, Object value)
ContentEntry
which identifier for the key
'key
' equals the given object obj
. For
instance, if key == "Title" then obj represents the title, e.g.
"Best movie ever" and this method will return the first ContentEntry in
the list than contains a match for the (key, value) pair.
key
- The identifier key.value
- The object to compare to
ContentEntry find(String[] keys, Object[] values)
keys
- Array of identifier keys.values
- Array of values.
ContentList findAll(String[] keys, Object[] values)
keys
- Array of identifier keys.values
- Array of values.
void addContentListListener(ContentListListener listener)
listener
- the Listener that will receive ContentListEvents.void removeContentListListener(ContentListListener listener)
listener
- the Listener to removeContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException
filter
- the ContentDatabaseFilter
DatabaseException;
- see DatabaseException for exception reasons.
DatabaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |