Closed pixelzoom closed 3 years ago
I have reworked the property to now store the scene model, and the view now sets the visible scene view to the one that has the selected model (as suggested in the first solution). I'm closing this issue, but feel free to reopen if there's more to do.
In NLDExploreModel, you have:
And then in NLDExploreScreenView, you do this:
But there's really no need for a separate enumeration, you could just use the scene instances as the values for
this.selectedSceneProperty
. In NLDExploreModel:Then either add a
this.model
field to each *SceneView subclass and do this in NLDExploreScreenView:Or pass
model.selectedSceneProperty
to the SceneView classes, and make each SceneView responsible for setting its own visibility. For example, inTemperatureSceneView
: