ahinchman1 / TornadoFX-DnD-TilesFX

Tornado FX
23 stars 5 forks source link

Fragments V Views #11

Open ahinchman1 opened 6 years ago

ahinchman1 commented 6 years ago

A View has an injectable class for field assignment, but Fragments do not.

At the moment, I'm left with two unsavory choices:

  1. use a fragment to recycle views, but heavy load drag and drop functionality in every instance (and mashing together VC) or
  2. keep the V and C separated and clean but using a view means I cannot recall a scope on init (edited)

I'll let you know what solution I stumble upon, but some thoughts I have, and in no particular ranking of bad to good or the likes, are the following:

ahinchman1 commented 6 years ago

One proposal from @Bekwam: comparing some javafx code to tornadofx... you could also make the single instance selected property part of the view model. A selection on the TableView (master) sets single instance which can be picked up through injection in the details fragment