public class ItemAdapter.ItemFilter
extends android.widget.Filter
| Constructor and Description |
|---|
ItemFilter() |
| Modifier and Type | Method and Description |
|---|---|
ItemAdapter<Item> |
add(int position,
Item... items)
add an array of items at the given position within the existing items
|
ItemAdapter<Item> |
add(int position,
java.util.List<Item> items)
add a list of items at the given position within the existing items
|
ItemAdapter<Item> |
add(Item... items)
add an array of items to the end of the existing items
|
ItemAdapter<Item> |
add(java.util.List<Item> items)
add a list of items to the end of the existing items
will prior check if we are currently filtering
|
ItemAdapter<Item> |
clear()
removes all items of this adapter
|
java.lang.CharSequence |
getConstraint() |
java.util.Set<Item> |
getSelectedItems()
helper method to get all selections from the ItemAdapter's original item list
|
java.util.Set<java.lang.Integer> |
getSelections()
helper method to get all selections from the ItemAdapter's original item list
|
ItemAdapter<Item> |
move(int fromPosition,
int toPosition)
moves an item within the list from a position to a position
|
protected android.widget.Filter.FilterResults |
performFiltering(java.lang.CharSequence constraint) |
protected void |
publishResults(java.lang.CharSequence constraint,
android.widget.Filter.FilterResults results) |
ItemAdapter<Item> |
remove(int position)
removes an item at the given position within the existing icons
|
ItemAdapter<Item> |
removeRange(int position,
int itemCount)
removes a range of items starting with the given position within the existing icons
|
ItemAdapter<Item> |
set(int position,
Item item)
sets an item at the given position, overwriting the previous item
|
protected android.widget.Filter.FilterResults performFiltering(java.lang.CharSequence constraint)
performFiltering in class android.widget.Filterpublic java.lang.CharSequence getConstraint()
protected void publishResults(java.lang.CharSequence constraint,
android.widget.Filter.FilterResults results)
publishResults in class android.widget.Filterpublic java.util.Set<java.lang.Integer> getSelections()
public java.util.Set<Item> getSelectedItems()
@SafeVarargs public final ItemAdapter<Item> add(Item... items)
items - the items to addpublic ItemAdapter<Item> add(java.util.List<Item> items)
items - the items to add@SafeVarargs public final ItemAdapter<Item> add(int position, Item... items)
position - the global positionitems - the items to addpublic ItemAdapter<Item> add(int position, java.util.List<Item> items)
position - the global positionitems - the items to addpublic ItemAdapter<Item> set(int position, Item item)
position - the global positionitem - the item to setpublic ItemAdapter<Item> move(int fromPosition, int toPosition)
fromPosition - the position global from which we want to movetoPosition - the global position to which to movepublic ItemAdapter<Item> remove(int position)
position - the global positionpublic ItemAdapter<Item> removeRange(int position, int itemCount)
position - the global positionitemCount - the count of items which were removedpublic ItemAdapter<Item> clear()