List widget

A Rich UI list widget defines a list from which the user can select a single entry.

Here is example code, which displays the list value in a text field:
import org.eclipse.edt.rui.widgets.List;
import org.eclipse.edt.rui.widgets.TextField;
import eglx.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 following fields are supported:

Other supported fields and functions are described in the following topics in the EGL Programmer’s Guide: “Rich UI widget fields” and ”Rich UI widget functions.”

Use of this widget requires the following statement:
import org.eclipse.edt.rui.widgets.List;