[]
IDropDown control.Use this class to create items programmatically and add them to a drop-down item collection. A DropDownItem inherits common selector-item behavior, such as item value and read-only state, from SelectorItem.
IDropDown dropDown = worksheet.getControls().addDropDown(20, 20, 120, 20);
DropDownItem item = new DropDownItem("Pending");
dropDown.getItems().add(item);
DropDownItem(String value) getValue, isReadOnly, setReadOnly, setValue, UpdateBindingValueUse this constructor to create a DropDownItem without an initial value, and then set the item value later before adding it to an IDropDown.
DropDownItem item = new DropDownItem();
item.setValue("Pending");
This constructor initializes the item by setting its value.
IDropDown dropDown = worksheet.getControls().addDropDown(20, 20, 120, 20);
DropDownItem item = new DropDownItem("Pending");
dropDown.getItems().add(item);
value - The value of item.