[]
        
(Showing Draft Content)

IListBoxItemList

Interface IListBoxItemList

All Superinterfaces:
IItemCollection<ListBoxItem>, IItemList<ListBoxItem>, Iterable<ListBoxItem>

public interface IListBoxItemList extends IItemList<ListBoxItem>
Represents a typed list of ListBoxItem objects for an IListBox.

This interface preserves the ListBoxItem type information for IItemList collections and is typically returned by ISelectorT.getItems(). It provides list operations such as adding, retrieving, inserting, replacing, and removing list box items.


 IListBox listBox = worksheet.getControls().addListBox(20, 20, 120, 80);
 IListBoxItemList items = listBox.getItems();
 items.add(new ListBoxItem("Apple"));
 items.add(new ListBoxItem("Orange"));
 ListBoxItem firstItem = items.get(0);