A Rich UI textLabel widget displays a string that the user cannot change. The widget is different from a span because inclusion of an HTML segment (such as <b>this code</b>) is displayed as is, including the angle brackets.
package client;
import org.eclipse.edt.rui.widgets.Div;
import org.eclipse.edt.rui.widgets.TextLabel;
handler MyHandler type RUIHandler{initialUI =[myDiv]}
myDiv Div{children = [myLabel01, myLabel02, myLabel03]};
myLabel01 TextLabel{text = "mix blue ", color = "blue"};
myLabel02 TextLabel{text = " and yellow ",
backgroundColor = "black",
color = "yellow"};
myLabel03 TextLabel{text = " to see green", color = "green"};
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.TextLabel;