setItems(List< KeyValuePair< String, String >>) method

Set the list of items to be used in populating the dropdown list.

Syntax

void setItems ( List< KeyValuePair< String, String >> list )

Parameters

Usage

In the state implementations, this method can be called from the StatePlugin#getInputAttributes() method to set the list, as shown on the following. 

		List<KeyValuePair<String, String>> list = new ArrayList<KeyValuePair<String, String>>();
		list.add(new KeyValuePair<String, String>("key1", "value1"));
		list.add(new KeyValuePair<String, String>("key2", "value2"));
		list.add(new KeyValuePair<String, String>("key3", "value3"));
		if (list.size()>0) inInputAttr.setItems(credTypes);
 

list


List of KeyValuePair items for the dropdown list.