December 2017
Intermediate to advanced
260 pages
7h 34m
English
JavaFX has a special type called Property. It maintains a value internally and notifies listeners of its changes. It is unique to JavaFX because it supports binding operations and will notify the UI when it changes.
Let's look at the following example, where we will define a JavaFX property of type String and delegate the getters and setters directly from the property:
class Meaning { val wordProperty = SimpleStringProperty() var word by wordProperty }
Read now
Unlock full access