bj0
08/28/2018, 5:08 PMvm.statusProperty.onChange { <http://logger.info|logger.info> { "prop change:$it" } }
binding.onChange { <http://logger.info|logger.info> { "binding change: $it" } }
bj0
08/28/2018, 5:08 PMcarlw
08/28/2018, 5:08 PMseiv
08/28/2018, 5:14 PMbutton("Save") {
enableWhen(controller.selectedPerson.dirty)
setOnAction {
controller.selectedPerson.commit()
}
}
seiv
08/28/2018, 5:15 PMbj0
08/28/2018, 5:21 PMerror {
to label and error {
in the Stylesheet
it stops workingbj0
08/28/2018, 5:22 PMclear
clears out the label
class that was there originallycarlw
08/28/2018, 5:23 PMcarlw
08/28/2018, 5:24 PMcarlw
08/28/2018, 5:30 PMbj0
08/28/2018, 5:31 PMnonNullObjectBinding
is supposed to dobj0
08/28/2018, 5:33 PMcarlw
08/28/2018, 5:35 PMcarlw
08/28/2018, 5:35 PMcarlw
08/28/2018, 5:35 PMbj0
08/28/2018, 5:39 PMchickenfresh
08/28/2018, 9:02 PMfirstPos
could be a problem?chickenfresh
08/28/2018, 9:03 PMchickenfresh
08/28/2018, 9:27 PMtext = null
to graphic = text("")
carlw
08/28/2018, 9:32 PMcarlw
08/28/2018, 9:33 PMchickenfresh
08/28/2018, 9:34 PMtext=null
and userData = null
for now, would it cause any problems? I think they’re nulls alreadychickenfresh
08/28/2018, 9:35 PMgraphic
was missedchickenfresh
08/28/2018, 9:35 PMcarlw
08/28/2018, 9:44 PMchickenfresh
08/28/2018, 10:00 PMbj0
08/28/2018, 10:29 PMbindClass
should probably store a reference somewhere to prevent garbage collection. this would make it work the same way as other binding calls in the DSL:
text(vm.isActiveProperty.stringBinding { (it == true) "Stop" else "Start" })
the dynamically created binding stays alive in this casechickenfresh
08/28/2018, 11:21 PMpike
08/29/2018, 12:48 AMpike
08/29/2018, 12:54 AMResponseModel: JsonModel {
monthlySalesProperty = SimpleListProperty<DailyCategoryModel>()
}
DailyCategoryModel {
categoriesProperty = SimpleListProperty<CategoryModel>()
}
CategoryModel {
categoryProperty = SimpleStringProperty()
valueProperty = SimpleIntegerProperty()
}
tableview(model.monthlySales) {
column<DailyCategoryModel, Number>("Total", {it.value.categoriesProperty.filter{ it.categoryProperty == "Total"}.last{it.value}
}