A Rich UI textArea widget defines a rectangle containing one or more lines of text.
package client;
import eglx.ui.rui.Event;
import org.eclipse.edt.rui.widgets.RadioGroup;
import org.eclipse.edt.rui.widgets.TextArea;
handler MyHandler type RUIHandler{initialUI =[myTextArea, myRadioGroup]}
myTextArea TextArea{
text = "Monday? I'm really busy on Monday. How about Tuesday?",
numColumns = 15,
numRows = 5};
myRadioGroup RadioGroup{
groupName = "abc",
options =["Monday", "Tuesday"],
onClick ::= myRadio};
function myRadio(e Event in)
if (myRadioGroup.selected == "Tuesday")
myTextArea.text = "No, on Monday!";
else
myTextArea.text = "No, on Tuesday!";
end
end
end
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.”
import org.eclipse.edt.rui.widgets.TextArea;