EGLProperty identifies functions that get and set the EGL field values. The annotation is useful when you create a widget by authoring a handler, stereotype RUIWidget.
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 { @EGLProperty{ getMethod = getUpper, setMethod = setUpper };
UpperLimit INT { @EGLProperty{} };
Record EGLProperty type Annotation { targets = [ElementKind.FieldMbr], validationProxy = "org.eclipse.edt.compiler.binding.annotationType.EGLPropertyAnnotationTypeBinding" } getMethod FunctionMemberRef; setMethod FunctionMemberRef; 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 EGLProperty is available for external types; for example, for external-type widgets. For details, see Property annotation.
Target | Issue |
---|---|
Java | Not in use. |
JavaScript | No issues. |