The checkbox can be used to easily display and edit a boolean property. The properties available on this widget are very similar to the ones available on a text widget. On top of the common properties of all widgets (identifier, labelExpression, helpExpression, isEnabledExpression, propertyValidationRules), it has the following properties:
newValue
. The variable
newValue
is a
java.lang.Boolean
. This expression does not have to return anything.
In order to display in the user interface a checkbox with the value of an EAttribute with the eType EBoolean (i.e. the property abstract of an EObject), you can create a checkbox widget with the following properties:
aql:'Abstract:'
aql:self.abstract
aql:self.eSet('abstract', newValue)
EEF does not provide a default interpreter but you can easily configure EEF to be used with the AQL interpreter. In the integration of EEF with the AQL interpreter, you can register additional services, written in Java, in which you can expose to AQL new operations. The operation
eSet(java.lang.String, java.lang.Object)
used in the example does not exist in AQL. You would have to create it yourself.