Attribute-to-attribute connections
Attribute-to-attribute connections tie two data values together so their values are equivalent. The default color of this connection type is blue. A simple example of an attribute-to-attribute connection follows:
1. Place a Text part within the default Window part in the Composition Editor.
2. Connect the object attribute of a Text part to the title attribute of a the Window part.
This causes the window title to be changed to the string typed into the Text part.
For attribute-to-attribute connections, either endpoint can serve as the source or target. The only time it matters which attribute is the source and which is the target for a connection is when the attributes have different initial values. If the source end is not nil, VA Smalltalk resolves the difference by changing the target end of the connection to match the source. If the source end is nil, then the source end of the connection is changed to match the target instead. An attribute-to-attribute connection is initiated from the source part's Connect choice in the pop-up menu and is terminated by selecting the appropriate target part's attribute.
By default, the opposing value of an attribute-to-attribute connection pair will be updated when the value of the other attribute changes. You can restrict the behavior of change for the source or target by altering its editable property within the part's Properties window.
Last modified date: 06/27/2019