Rich UI list

A Rich UI list widget defines a list from which the user can select one entry.
This code displays the list value in a text field:
import com.ibm.egl.rui.widgets.List;
import com.ibm.egl.rui.widgets.TextField;
import egl.ui.rui.Event;

Handler MyHandler Type RUIHandler 
   { initialUI = [myList, myTextField]}

   myList List
   {
      values = ["one", "two", "three", "four"],
      selection = 2, onChange ::= changeFunction
   };

   myTextField TextField
      {text = myList.values[myList.selection]};

   Function changeFunction(e Event in)
      myTextField.text = myList.values[myList.selection];
   end
end 
The list widget supports these properties:

For more information about other supported properties and functions, see "Widget properties and functions."

If you use this widget, you must use the following statement:
import com.ibm.egl.rui.widgets.List;

Feedback