Interface IItemCollection<T>
- All Superinterfaces:
Iterable<T>
- All Known Subinterfaces:
IDropDownItemList,IItemList<T>,IListBoxItemCollection,IListBoxItemList
Holds the collection of items that constitute the content of an
ISelector.-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an item to the collection.voidclear()Clears the collection and releases the references on all items currently in the collection.booleanReturns a value that indicates whether the specified item is in this view.intgetCount()Gets the number of records in the collection.booleanRemoves the specified item reference from the collection or view.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getCount
int getCount()Gets the number of records in the collection. -
add
Adds an item to the collection.- Parameters:
newItem- The item to add to the collection.
-
clear
void clear()Clears the collection and releases the references on all items currently in the collection. -
contains
Returns a value that indicates whether the specified item is in this view.- Parameters:
containItem- The object to check.- Returns:
trueto indicate that the item belongs to this collection and passes the active filter; otherwise,false.
-
remove
Removes the specified item reference from the collection or view.- Parameters:
removeItem- The object to remove.- Returns:
trueif item is successfully removed; otherwise,false.
-