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

Region and Pane layout managers

Region and Pane support the whole range of styles and effects. They are used as a basis for almost all JavaFX UI components.

The only difference between them is an access level to their children's list.

Pane gives the public access to the getChildren() method. So, it's used as an ancestor to layout managers and controls which API allows the manipulating of children.

Region, on the other hand, doesn't allow changing its children list. getChildren() is a private method, so the only way to access them is Region.getChildrenUnmodifiable(), which doesn't allow you to change the list. This approach is used when a component is not meant to have new children. For example, all Controls and Charts extend Region.

主站蜘蛛池模板: 象州县| 库尔勒市| 浠水县| 麻栗坡县| 仙居县| 平邑县| 军事| 余干县| 通道| 安岳县| 德化县| 盐池县| 渑池县| 高碑店市| 金昌市| 资溪县| 新龙县| 娱乐| 宝清县| 仁化县| 青河县| 化州市| 晋江市| 彭州市| 长丰县| 信宜市| 阳朔县| 古浪县| 江都市| 广丰县| 内黄县| 湘乡市| 三河市| 仁布县| 五家渠市| 黄石市| 金秀| 巴南区| 南丹县| 盐边县| 开平市|