Okay, after thinking about it more, maybe this is ...
# tornadofx
s
Okay, after thinking about it more, maybe this is actually the best way to do this?
I guess the only thing I'm not quite sure about here is how I would then inject the model elsewhere if I need to update labels containing the device name.
Nevermind, I think getting the model will be fine as everything that needs to access it will be instantiated within the same view (and I can just get the scope from there). Still wondering if I'm going about this in the right way, however!
c
i think every app needs the EventBus. Regarding Views, Fragments, ViewModels, and Scopes, there are tactical opportunities for sharing among closely-related items. However, the EventBus will be the more general case. if you look at my example, posting the event also let's it interact with the propertly-less TableColumn titles.
I've opted for a Controller which is a clearinghouse for all the data in the app. Reminds me of a React Store if you do any web programming