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