thomasnield
09/09/2016, 2:06 AMthomasnield
09/09/2016, 2:06 AMthomasnield
09/09/2016, 2:19 AMmodel.dirtyProperties.onChangedObservable().map { it.any { it == model.name } }
to determine if a specific property was dirty. Although it wasn't difficult since I obsess over Rx to JavaFX patterns, it might be considered boilerplate by others. I think this was discussed before between you and @Ruckus , but I can't think of a streamlined way to add a "Dirty Property" to a specific Property
without inflicting even more overhead on the ViewModel
. I guess that's when tools like Rx can come in handy.ron
09/09/2016, 5:09 AMedvin
09/09/2016, 6:37 AMedvin
09/09/2016, 6:37 AMedvin
09/09/2016, 6:49 AMBooleanBinding
you can listen to for a specific model property like this: model.dirtyStateFor(ClientModel::name)
. This should clean up your use case a bit - will you document in the guide then I'll do the wiki? 🙂edvin
09/09/2016, 6:50 AMedvin
09/09/2016, 6:54 AMedvin
09/09/2016, 6:54 AMedvin
09/09/2016, 6:56 AMthomasnield
09/09/2016, 11:28 AMRuckus
09/09/2016, 4:54 PMedvin
09/09/2016, 6:18 PMmikehearn
09/09/2016, 6:43 PMmikehearn
09/09/2016, 6:43 PMedvin
09/09/2016, 6:57 PMmikehearn
09/09/2016, 7:56 PMedvin
09/09/2016, 7:59 PMedvin
09/09/2016, 8:19 PMedvin
09/09/2016, 8:21 PMedvin
09/09/2016, 8:22 PMedvin
09/10/2016, 7:23 AMRuckus
09/10/2016, 4:11 PMedvin
09/10/2016, 4:18 PMRuckus
09/11/2016, 4:44 AMSimpleObjectProperty<Date?>
. That code isn't necessary in the sense that SimpleObjectProperty<Date?>
is technically no different from SimpleObjectProperty<Date>
. Even the var date by dateProperty
would be of type Date?
in both cases, and the dateProperty.value
is Date!
in both cases.Ruckus
09/11/2016, 4:51 AMType?
, but I don't know what the impact will be. It's a change from T::class.javaPrimitiveType ?: T::class
to Class.forName(T::class.jvmName)
.Ruckus
09/11/2016, 5:11 AMProperty<Date?>
and Property<Date>
even if one doesn't exist.Ruckus
09/11/2016, 5:15 AMbind
function you defined on classes that have a textProperty
, but it could mean we would have to make sure we are supporting it in other places as well, both current and future.