bj0
08/28/2018, 5:05 PMbindClass
which I thought does it for you. Something like this:
val binding = nonNullObjectBinding(vm.statusProperty) {
<http://logger.info|logger.info> { "binding change ,$value" }
when (value) {
is ProxyStatus.Error -> Styles.error
ProxyStatus.Started -> Styles.active
else -> Stylesheet.label
}
}
bindClass(binding)