public interface IItemAdapter<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 |
|---|---|
void |
add(int position,
Item... items)
add an array of items at the given position within the existing items
|
void |
add(int position,
java.util.List<Item> items)
add a list of items at the given position within the existing items
|
void |
add(Item... items)
add an array of items to the end of the existing items
|
void |
add(java.util.List<Item> items)
add a list of items to the end of the existing items
|
void |
clear()
removes all items of this adapter
|
void |
remove(int position)
removes an item at the given position within the existing icons
|
void |
removeRange(int position,
int itemCount)
removes a range of items starting with the given position within the existing icons
|
void |
set(int position,
Item item)
sets an item at the given position, overwriting the previous item
|
void |
set(java.util.List<Item> items)
set a new list of items and apply it to the existing list (clear - add) for this adapter
|
void |
setNewList(java.util.List<Item> items)
sets a complete new list of items onto this adapter, using the new list.
|
<T> T |
setSubItems(IExpandable<T,Item> collapsible,
java.util.List<Item> subItems)
sets the subItems of the given collapsible
|
getAdapterItem, getAdapterItemCount, getAdapterItems, getAdapterPosition, getFastAdapter, getGlobalPosition, getItem, getItemCount, getOrder<T> T setSubItems(IExpandable<T,Item> collapsible, java.util.List<Item> subItems)
collapsible - the collapsible which gets the subItems setsubItems - the subItems for this collapsible itemvoid set(java.util.List<Item> items)
items - void setNewList(java.util.List<Item> items)
items - void add(Item... items)
items - void add(java.util.List<Item> items)
items - void add(int position,
Item... items)
position - the relative position (position of this adapter)items - void add(int position,
java.util.List<Item> items)
position - the relative position (position of this adapter)items - void set(int position,
Item item)
position - the relative position (position of this adapter)item - void remove(int position)
position - the relative position (position of this adapter)void removeRange(int position,
int itemCount)
position - the relative position (position of this adapter)itemCount - void clear()