[]
IListBox. A ListBoxItem stores the display value used by a list box control. Create instances of this class and add them to ISelectorT.getItems() to populate the available choices.
IListBox listBox = worksheet.getControls().addListBox(20, 20, 120, 80);
ListBoxItem item = new ListBoxItem("Item 1");
listBox.getItems().add(item);
ListBoxItem(String value) getValue, isReadOnly, setReadOnly, setValue, UpdateBindingValueUse this constructor to create a ListBoxItem without an initial value, and then assign its content by calling SelectorItem.setValue(String) before adding it to ISelectorT.getItems().
IListBox listBox = worksheet.getControls().addListBox(20, 20, 120, 80);
ListBoxItem item = new ListBoxItem();
item.setValue("North");
listBox.getItems().add(item);
This constructor initializes the item by passing value to SelectorItem.setValue(String).
IListBox listBox = worksheet.getControls().addListBox(20, 20, 120, 80);
listBox.getItems().add(new ListBoxItem("North"));
value - The item value. Can be null.