Dynamically sharing information between UI elements is a big part of an application. We are all used to handling dynamic updates in Java through established means such as listeners or event queues, but JavaFX brought a new option, the Binding API, to directly bind components' properties together.
In this chapter, we will study how the JavaFX Binding API greatly simplifies communication between any JavaFX components—nodes, controls, FX collections, animation, media, and more.
In this chapter, we'll cover the following topics:
- Binding basics and its benefits over regular listeners
- Binding operations
- User-defined or custom bindings
- Binding collections