A Rich UI textArea widget defines a rectangle that contains
one or more lines of text.
Here is an example:
import com.ibm.egl.ui.rui.Event;
import com.ibm.egl.rui.widgets.RadioButton;
import com.ibm.egl.rui.widgets.TextArea
Handler OneRadioButton Type RUIHandler
{ children = [myTextArea, myRadioButton] }
myTextArea TextArea
{ text = "Monday? I'm really busy on Monday. How about Tuesday?"
numColumns = 15, numRows = 5 };
myRadioButton RadioButton
{ text = "Tuesday", selected = false, onClick ::= myRadio };
Function myRadio(e Event)
myTextField.text = "Tuesday!";
end
end
The textArea widget supports these properties:
- numColumns, which holds an integer that
represents the number of columns in the text area
- numRows, which holds an integer that
represents the number of rows in the text area
- readOnly, which holds a Boolean that
indicates whether the text area is protected from user input
- text, which holds a string for display
in the text area
Two functions are available, neither of which returns a value:
- append adds content to the content already
in the text area. The only parameter is the string to be added.
- setRedraw redraws the text area. The
only parameter is a Boolean, which indicates whether or not to redraw
the area.
For information about 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.TextArea;