FXML expression binding scope

Werner Lehmann lehmann at media-interactive.de
Mon May 21 07:26:13 PDT 2012


Hi,

I am using the following fxml to bind a label's managed property to its 
visible property:

<Label fx:id="label" text="more" managed="${label.visible}"/>

It would be nice if the following would work also...

<Label fx:id="label" text="more" managed="${visible}"/>

...so that I don't have to repeat the "local" fx:id (and specify one in 
the first place). Any thoughts about this?

Also, what does "${visible}" actually bind to?

Rgds
Werner


More information about the openjfx-dev mailing list