[]
        
(Showing Draft Content)

IItemList

Interface IItemList

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

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

    Modifier and Type
    Method
    Description
    get(int index)
    Gets the item at the given zero-based index.
    int
    indexOf(T item)
    Returns the index in this collection where the specified item is located.
    void
    insert(int index, T item)
    Inserts an element into the collection at the specified index.
    void
    removeAt(int index)
    Removes the element at the specified index of the collection.
    void
    set(int index, T value)
    Sets the item at the given zero-based index.

    Methods inherited from interface com.grapecity.documents.excel.forms.IItemCollection

    add, clear, contains, getCount, remove

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • get

      T get(int index)
      Gets the item at the given zero-based index.
      Parameters:
      index - The zero-based index of the item.
      Returns:
      The object retrieved.
    • set

      void set(int index, T value)
      Sets the item at the given zero-based index.
      Parameters:
      index - The zero-based index of the item.
      value - The object is being set to the specified index.
    • indexOf

      int indexOf(T item)
      Returns the index in this collection where the specified item is located.
      Parameters:
      item - The object to look for in the collection.
      Returns:
      The index of the item in the collection, or -1 if the item does not exist in the collection.
    • insert

      void insert(int index, T item)
      Inserts an element into the collection at the specified index.
      Parameters:
      index - The zero-based index at which to insert the item.
      item - The item to insert.
    • removeAt

      void removeAt(int index)
      Removes the element at the specified index of the collection.
      Parameters:
      index - The zero-based index of the element to remove.