开发者

How does the bind operator work in JavaFX?

How is the bind operator implemented in JavaFX? What happens behind the scenes? Does every variable in JavaFX implement some kind of obser开发者_如何转开发ver API so that listeners can attach to it or is it a trick in the VM?


It's definitely not a trick in the VM. For some parts of the bind functionality the JavaFX complier simply generates code and some of the code are calls to a runtime component called Location. Location maintains dependencies and variable invalidation and binds. You can browse the sources on kenai if you like. Looking through de-compiled javafx classes might help your understanding too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜