官术网_书友最值得收藏!

Binding blocks setters

Once a property is bound, you can't set it directly. The following code will throw RuntimeExceptionLabel.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.

主站蜘蛛池模板: 英吉沙县| 海淀区| 原阳县| 乌苏市| 彭水| 井研县| 明光市| 若尔盖县| 阳谷县| 深州市| 五华县| 泽库县| 乌兰浩特市| 修文县| 铜鼓县| 渭南市| 莎车县| 海伦市| 紫阳县| 盘锦市| 淮南市| 诸暨市| 台前县| 福贡县| 岳普湖县| 会宁县| 阜平县| 蒙阴县| 岳阳市| 比如县| 军事| 城固县| 花垣县| 政和县| 诸城市| 南陵县| 台湾省| 巴青县| 万载县| 玛多县| 全南县|