[jruby-user] jrubyfx: communication between javafx.application and controller
"ptetinha ." <[email protected]> Mon, 1 Dec 2014 11:14:16 +0100
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CABEyK6Xbw12dwqrXJ2PomLgDGdaYdLfHoTwDOk5i_ey7L2Kb_A@mail.gmail.com> |
Hi, I'm working on a project, where you have the following workflow: there is a scene similar with a login page. after the user "login", he fetch some objects from the db and should iterate through them, rendering it always in the same view. After he clicked on "next" he should render a new object. Look that I intentionally decided to avoid the DSL and I'm using the "load_into" method, because I have to add some nodes and controll dynamically in my controller#initialize method. I have a gist, here https://gist.github.com/vpereira/b2c7d252a55a260e38fb My questions are: is that right? Can I keep iterating on a callback as I'm doing or as soon as I call MyController.load_into, it will start in another thread and it's gone? if its wrong, what would be the right pattern to implement it ?