public interface IItemAdapter<Model,Item extends IItem> extends IAdapter<Item>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IItemAdapter.Predicate<Item extends IItem>
the interface used to filter the list inside the ItemFilter
|
| Modifier and Type | Method and Description |
|---|---|
IItemAdapter<Model,Item> |
add(int position,
java.util.List<Model> items)
add a list of items at the given position within the existing items
|
IItemAdapter<Model,Item> |
add(int position,
Model... items)
add an array of items at the given position within the existing items
|
IItemAdapter<Model,Item> |
add(java.util.List<Model> items)
add a list of items to the end of the existing items
|
IItemAdapter<Model,Item> |
add(Model... items)
add an array of items to the end of the existing items
|
IItemAdapter<Model,Item> |
addInternal(int position,
java.util.List<Item> items)
add a list of items at the given position within the existing items
|
IItemAdapter<Model,Item> |
addInternal(java.util.List<Item> items)
add a list of items to the end of the existing items
|
IItemAdapter<Model,Item> |
clear()
removes all items of this adapter
|
IItemAdapter<Model,Item> |
remove(int position)
removes an item at the given position within the existing icons
|
IItemAdapter<Model,Item> |
removeRange(int position,
int itemCount)
removes a range of items starting with the given position within the existing icons
|
IItemAdapter<Model,Item> |
set(int position,
Model item)
sets an item at the given position, overwriting the previous item
|
IItemAdapter<Model,Item> |
set(java.util.List<Model> items)
set a new list of items and apply it to the existing list (clear - add) for this adapter
|
IItemAdapter<Model,Item> |
setInternal(int position,
Item item)
sets an item at the given position, overwriting the previous item
|
IItemAdapter<Model,Item> |
setNewList(java.util.List<Model> items)
sets a complete new list of items onto this adapter, using the new list.
|
getAdapterItem, getAdapterItemCount, getAdapterItems, getAdapterPosition, getAdapterPosition, getFastAdapter, getGlobalPosition, getOrder, mapPossibleTypes, setOrder, withFastAdapterIItemAdapter<Model,Item> set(java.util.List<Model> items)
items - IItemAdapter<Model,Item> setNewList(java.util.List<Model> items)
items - IItemAdapter<Model,Item> add(Model... items)
items - IItemAdapter<Model,Item> add(java.util.List<Model> items)
items - IItemAdapter<Model,Item> addInternal(java.util.List<Item> items)
items - IItemAdapter<Model,Item> add(int position, Model... items)
position - the global positionitems - IItemAdapter<Model,Item> add(int position, java.util.List<Model> items)
position - the global positionitems - IItemAdapter<Model,Item> addInternal(int position, java.util.List<Item> items)
position - the global positionitems - IItemAdapter<Model,Item> set(int position, Model item)
position - the global positionitem - IItemAdapter<Model,Item> setInternal(int position, Item item)
position - the global positionitem - IItemAdapter<Model,Item> remove(int position)
position - the global positionIItemAdapter<Model,Item> removeRange(int position, int itemCount)
position - the global positionitemCount - IItemAdapter<Model,Item> clear()