carlw
10/10/2016, 12:41 PMcarlw
10/10/2016, 12:41 PMcarlw
10/10/2016, 12:42 PMcarlw
10/10/2016, 12:43 PMcarlw
10/10/2016, 12:44 PMcarlw
10/10/2016, 12:45 PMthomasnield
10/10/2016, 2:03 PMthomasnield
10/10/2016, 2:03 PMedvin
10/10/2016, 2:03 PMedvin
10/10/2016, 2:10 PMonChange
inside of onChange
with listCells, since they are reused, this makes total sense. Move item.completedProperty.onChange
to completed.selectedProperty().onChange
outside of the itemProperty.onChange
(just do it once per fragment in init).edvin
10/10/2016, 2:10 PMcarlw
10/10/2016, 2:13 PMedvin
10/10/2016, 2:15 PMedvin
10/10/2016, 2:15 PMron
10/10/2016, 2:17 PMron
10/10/2016, 2:17 PMedvin
10/10/2016, 2:22 PMcarlw
10/10/2016, 2:25 PMedvin
10/10/2016, 2:28 PMcompleted
which is is a CheckBox within the Fragment. So if you add an event handler to that CheckBox in init, you only do it once per Fragment. That's what I meant 🙂edvin
10/10/2016, 2:29 PMcompleted
in TodoItemFragment
right?carlw
10/10/2016, 2:30 PMedvin
10/10/2016, 2:31 PMcarlw
10/10/2016, 2:31 PMedvin
10/10/2016, 2:34 PMcarlw
10/10/2016, 2:41 PMedvin
10/10/2016, 2:47 PMcarlw
10/10/2016, 3:16 PM