Extending Builders: Layout Builders

Tom Eugelink tbee at tbee.org
Thu Nov 29 11:02:35 PST 2012


> And I have a working proposal for the constraints-for-multiple-different-layout-managers in the JFXtras versions: each layout holds the contraints in a WeakHashmap<Node, Constaint>. As soon as a Node is no longer referenced, all its constraints are cleared. And this has another advantage: you can have different constaints; so a node can be left aligned in one layout and right aligned in the other.

Naturally this weak reference is only used in the multiple layout use case. Normally the constraint is removed immediately when the node is removed from the children.

Tom


More information about the openjfx-dev mailing list