When you make a connection in the Composition Editor, you
define the interaction between components. For example, if you
want a data value to change when an event occurs, you would make
an event-to-attribute connection. The following table summarizes
the types of connections that the Composition Editor provides.
The return value is supplied by the connection's actionResult
event.
Table 2. Connection Type Summary
| If you want to... | Use this connection type | Color | Does connection have a return value? |
|---|---|---|---|
| Cause one data value to change another | attribute-to-attribute | Dark blue | No |
| Change a data value whenever an event occurs | event-to-attribute | Dark green | Yes |
| Call a public behavior whenever an event occurs | event-to-action | Dark green | Yes |
| Call a private behavior whenever an event occurs | event-to-member function | Dark green | Yes |
| Call a public behavior whenever a data value changes | attribute-to-action | Dark green | Yes |
| Call a private behavior whenever a data value changes | attribute-to-member function | Dark green | Yes |
| Call customized code whenever a data value changes or an event occurs | custom logic | Light blue | Yes |
| Supply a value to a parameter | parameter | Violet | No |
Attribute-to-Attribute
Connections
Attribute-to-Action Connections
Event-to-Attribute Connections
Event-to-Action Connections
Member Function Connections
Custom Logic Connections
Parameter Connections
The Source and Target of a
Connection
Making Connections in
the Composition Editor
VisualAge User Interface
Parts
