Property identifies functions that get and set the EGL field values in an external type; for example, in an external type that implements a widget or provides access to a Java class.
eglx.lang
If you declare an UpperLimit field for use by EGL developers, you can specify the declaration as follows to indicate use of functions that you coded:
UpperLimit INT { @Property{ getMethod = getUpper, setMethod = setUpper };
UpperLimit INT { @Property{} };
Record Property type Annotation{ targets = [ElementKind.FieldMbr] } getMethod String; setMethod String; end
To indicate that a field is read only or write only, you can specify only one of the two annotation fields. If the application tries to read or write to an application field for which the read or write is not supported, an error occurs during compilation.
An annotation that is equivalent to Property is available for widgets that are implemented as handlers, stereotype RUIWidget. For details, see EGLProperty.
Target | Issue |
---|---|
Java | No issues. |
JavaScript | No issues. |