[Review request] Adding pre-built cells and cell factories to JavaFX
Richard Bair
richard.bair at oracle.com
Mon May 14 13:18:48 PDT 2012
That seems pretty straightforward to me too.
On May 14, 2012, at 11:14 AM, Greg Brown wrote:
>> Also, since it looks like some of the APIs take property objects, we'll probably need to modify FXMLLoader. FXML doesn't currently provide a way to get a reference to a property model - we'll need to add a new keyword and/or a new resolution operator to support this
>
> Actually, this probably won't be necessary. Instead, we can simply allow BeanAdapter to refer to a property model by key. For example:
>
> <Label fx:id="label" text="Hello"/>
>
> <fx:reference value="label.text"/> <!-- refers to the value of the Label's "text" property -->
> <fx:reference value="label.textProperty"/> <!-- refers to the property object returned by Label#textProperty() -->
>
> The same would apply to attribute values. "$label.text" would refer to the value of the "text" property, and "$label.textProperty" to the property object itself. I think this would be more intuitive anyways, and no new FXML syntax would be required.
>
> G
More information about the openjfx-dev
mailing list