msgField com.ibm.egl.rui.widgets.TextField;
msgField is the name of the field that you are creating, and com.ibm.egl.rui.widgets.TextField specifies the model that the new field is based on. When you drag a TextField widget from the palette and assign a name to it, EGL writes code that is similar to this declaration.
import com.ibm.egl.rui.widgets.*;
uidField TextField{};
If you have the import statement in your code, EGL also omits the qualifiers for the widget declarations that it generates.
function logon(e Event in)
In this example, e is an arbitrary name for an Event type variable, and in indicates that the function reads the parameter for input only.
onClick ::= functionName
onClick = [functionName] // does not work in RUIHandler
In this task, you will use the EGL editor to automatically create a stub function, which contains no executable code, and then bind that function to a widget.
The following demonstration shows the steps in this task:
To bind a function to a widget: