[]
Iterable<T>IDropDownItemList, IItemList<T>, IListBoxItemCollection, IListBoxItemListISelector. This interface defines the common collection operations for selector items, including iteration, counting, adding, clearing, testing for membership, and removing item references. It is typically obtained from a selector control through ISelectorT.getItems().
IDropDown dropDown = worksheet.getControls().addDropDown(20, 20, 120, 20);
IItemCollection<DropDownItem> items = dropDown.getItems();
items.add(new DropDownItem("Pending"));
items.add(new DropDownItem("Approved"));
voidvoidclear()booleanintgetCount()booleanforEach, iterator, spliteratorUse this method to retrieve the current number of items stored in an IItemCollection.
IDropDown dropDown = worksheet.getControls().addDropDown(20, 20, 120, 20);
IItemCollection<DropDownItem> items = dropDown.getItems();
items.add(new DropDownItem("Pending"));
items.add(new DropDownItem("Approved"));
int count = items.getCount();
Use this method to append an item to a mutable IItemCollection returned by a selector control such as IDropDown.
IDropDown dropDown = worksheet.getControls().addDropDown(20, 20, 120, 20);
IItemCollection<DropDownItem> items = dropDown.getItems();
items.add(new DropDownItem("Pending"));
newItem - The item to add to the collection.Use this method to remove every item reference from the collection in a single call.
IDropDown dropDown = worksheet.getControls().addDropDown(20, 20, 120, 20);
IItemCollection<DropDownItem> items = dropDown.getItems();
items.add(new DropDownItem("Pending"));
items.add(new DropDownItem("Approved"));
items.clear();
Use this method to determine whether an item belongs to the current collection view and passes the active filter.
IDropDown dropDown = worksheet.getControls().addDropDown(20, 20, 120, 20);
IItemCollection<DropDownItem> items = dropDown.getItems();
DropDownItem approved = new DropDownItem("Approved");
items.add(new DropDownItem("Pending"));
items.add(approved);
boolean containsApproved = items.contains(approved);
containItem - The object to check.true to indicate that the item belongs to this collection and passes the active filter; otherwise, false.Use this method to remove an existing item object from a selector item's collection, such as the items returned by ISelectorT.getItems().
IDropDown dropDown = worksheet.getControls().addDropDown(20, 20, 120, 20);
IItemCollection<DropDownItem> items = dropDown.getItems();
DropDownItem approved = new DropDownItem("Approved");
items.add(new DropDownItem("Pending"));
items.add(approved);
boolean removed = items.remove(approved);
removeItem - The object to remove.true if item is successfully removed; otherwise, false.