Group

Description

The group is a reusable part of the user interface that can be shared between multiple pages. It can contain various widgets with their validation rules and a specific layout.

Properties

Variables

The semantic candidate expression will have access to two different variables, self computed from the semantic candidate expression of the page and input the input of the view. Using those variables, the semantic candidate expression of the group will compute a new value which will be available under the name self for all the other expressions in the group. If you have used another value for the semantic candidate expression of the group than the one available in the containing page, you will not be able to access directly the value of self of the page. you may be able to compute it back from the value of self of your group. If you do not have any semantic candidate expression specified, it will reuse the value of self of the containing page, just like the page did with the value of self from the view.

The label expression, the precondition expression, the controls, the styles and the validation rules will all have access to the value of self computed from the semantic candidate expression of the group and input, the input of the view.

Create multiple groups from one definition

In a similar fashion to what can be done in the page, a single definition of a group can create multiple groups in the user interface. For that, you just have to use a semantic candidate expression which will return a collection. For additional details regarding this mechanism, have a look at the documentation of the page.

Styles and conditional styles

Another aspect of the influence of Eclipse Sirius over EEF is the introduction of styling. Styles allow you to customize the appearance of an element of the user interface, here the groups, easily. An EEF group style contains the following properties:

On top of regular group style, you have access to conditional styles. A conditional style is a style requiring a precondition in order to be applied. For example, a red style that should only be applied if you have an issue in your data. All those expressions have access to the variables self, computed by the semantic candidate expression of the group, and input, the input of the view.