Applying the pattern

 

Model before applying the pattern

Here we have the case of an applet with graphic components.

 

Figure 142. Initial model

 

 

Operating mode

The pattern can be run from an attribute or an association.

 

Figure 143. Calling the pattern

 

 

Selecting events

A dialog box appears listing the events available on the attribute's or association's class.  You should simply select those which interest you.

 

Figure 144. Dialog box for selecting events to listen to

 

 

The ... field or button

is used to ...

Available events

give the list of events available on the attribute's or association's class.

Selected events

display the list of events currently selected.

Add

add the overscored elements in the list of available events in the list of selected events.

Remove

delete the overscored events from the list of selected events.

OK

run the application of the pattern with the selected events.

Cancel

stop the processing.

 

Note:      The events proposed are those which correspond to the event classes present in the model.  They have either been reversed, imported or created, for example, using the sending events pattern.