- Mastering JavaFX 10
- Sergey Grinev
- 54字
- 2021-06-25 21:22:00
Binding blocks setters
Once a property is bound, you can't set it directly. The following code will throw RuntimeException: Label.text : A bound value cannot be set. Take a look at the following code snippet:
lblWidth.textProperty().bind(stage.widthProperty().asString());
lblWidth.setText("hi"); // exception
If you want to do it, you need to call unbind() first.
推薦閱讀
- 微商之道
- 物聯(lián)網(wǎng)安全(原書第2版)
- JBoss EAP6 High Availability
- Learning Karaf Cellar
- HTML5 Game development with ImpactJS
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(2021—2023)
- NB-IoT物聯(lián)網(wǎng)技術(shù)解析與案例詳解
- 智慧光網(wǎng)絡(luò):關(guān)鍵技術(shù)、應(yīng)用實踐和未來演進(jìn)
- INSTANT KineticJS Starter
- Echo Quick Start Guide
- Android UI Design
- 大型企業(yè)微服務(wù)架構(gòu)實踐與運營
- NB-IoT原理和優(yōu)化
- 物聯(lián)網(wǎng)導(dǎo)論
- 視聽變革:廣電的新媒體戰(zhàn)略