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

Working with the Property API

In addition to the regular getters and setters, JavaFX provides a Property API to almost all its classes' fields.

For example, there are the following methods to work with the Stage title: 

String getTitle();              //getter
void setTitle(String title); //setter
StringProperty titleProperty(); //property access

Technically, getters and setters are not required, and the Property value can be used all the time. 

The Property class has the following two important APIs—Observable and Binding.

主站蜘蛛池模板: 特克斯县| 柘城县| 昌吉市| 云浮市| 曲靖市| 庄浪县| 东山县| 亳州市| 乡宁县| 读书| 基隆市| 赤水市| 南康市| 林西县| 当雄县| 巴东县| 闸北区| 于田县| 鄂州市| 塘沽区| 贵溪市| 眉山市| 浦北县| 赣榆县| 钟祥市| 汕头市| 舞阳县| 邢台县| 翁牛特旗| 锦屏县| 徐水县| 永泰县| 阿城市| 武穴市| 麻江县| 潮安县| 吴旗县| 金华市| 大新县| 南岸区| 荆州市|