[]
        
(Showing Draft Content)

IItemCollection

Interface IItemCollection

All Superinterfaces:
Iterable<T>
All Known Subinterfaces:
IDropDownItemList, IItemList<T>, IListBoxItemCollection, IListBoxItemList

public interface IItemCollection<T> extends Iterable<T>
Holds the collection of items that constitute the content of an ISelector.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T newItem)
    Adds an item to the collection.
    void
    Clears the collection and releases the references on all items currently in the collection.
    boolean
    contains(T containItem)
    Returns a value that indicates whether the specified item is in this view.
    int
    Gets the number of records in the collection.
    boolean
    remove(T removeItem)
    Removes 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

      void add(T newItem)
      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

      boolean contains(T containItem)
      Returns a value that indicates whether the specified item is in this view.
      Parameters:
      containItem - The object to check.
      Returns:
      true to indicate that the item belongs to this collection and passes the active filter; otherwise, false.
    • remove

      boolean remove(T removeItem)
      Removes the specified item reference from the collection or view.
      Parameters:
      removeItem - The object to remove.
      Returns:
      true if item is successfully removed; otherwise, false.