Previous | Next |
The Bean Tester lets you bind a property of one bean to another property in another bean. For example, you could bind the foreground color property of one bean to the background color property of another bean, so that changes are propagated across one or more beans. These beans can be of the same type, or of different types, as long as the property has the same type of value.
You can bind properties in Layout mode or in Visual Connect mode.
To bind a property of one bean to another bean in Layout mode:
To bind a property of one bean to another bean in Visual Connect mode:
Choose the source property and the target property and press the Apply button to bind the property.
Note: In Visual Connect mode, you can move any of the objects without affecting the underlying layout.
Once the connection is made, the Tester displays a wire showing you the beans you bound together. The source and target properties are joined by two dashes (--), indicating that this is a property binding. For example, in this figure, the foreground property of one button is bound to the background property of a second button:
The property binding occurs immediately. You can now modify the property value of the source bean and the change is propagated.
Previous | Next |
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.