In: Computer Science
What is property binding in JavaFX?
Property binding: The property binding in JavaFX permits you to coordinate the value of two properties so that if one of the properties changes, then the value of the other property is updated automatically.
Two types of binding are:
Unidirectional binding: With unidirectional binding, the binding occurs in only one direction. For example, if property X is bounded to property Y, then the value of property X changes when property Y changes.
Bidirectional binding: With this binding, the two properties X and Y, values are coordinated so that if either of the property changes, the other property is automatically changed.