sfxcode / sapphire-core

Scala - JavaFX Application Framework (CDI, Binding, Expressions)
https://sfxcode.github.io/sapphire-javafx
Apache License 2.0
8 stars 1 forks source link

Question: How to bind to form? #1

Closed mmoyles87 closed 9 years ago

mmoyles87 commented 9 years ago

I saw in the description that you could bind to a form. I see in this example IssueTrackingLiteController.scala you are binding to ui.detailPane. Could that be used to then get a bunch of child elements?

sfxcode commented 9 years ago

The binding is done by the FXBeanAdapter. The ui.detailPane is used for lookup of elements to bind. The detail pane is the root node for this lookup. After that you can bind any sub elements with an identifier.

Example can be found in the sapphire extension demo. This project is work in progress, but can be used as blueprint for a sapphire-core application.

Greetings,

Tom