plebian
11/14/2017, 3:32 AMcarlw
11/14/2017, 4:17 AMcarlw
11/14/2017, 4:18 AMplebian
11/14/2017, 6:09 AMedvin
11/14/2017, 8:34 AMTextInputControl.editableWhen
🙂edvin
11/14/2017, 8:35 AMrowItem
you want?jchildress
11/14/2017, 12:18 PMedvin
11/14/2017, 12:21 PMedvin
11/14/2017, 12:22 PMjchildress
11/14/2017, 12:30 PMnimakro
11/14/2017, 12:33 PMedvin
11/14/2017, 12:35 PMjchildress
11/14/2017, 12:35 PMedvin
11/14/2017, 12:36 PMjchildress
11/14/2017, 12:36 PMaltavir
11/14/2017, 1:10 PMbuildChildren
for VBox
. Here is the code:
bindChildren(controller.devices) { device ->
titledpane(
title = "Device: " + device.name,
collapsible = true,
node = device.getDisplay().getBoardView()
)
}
altavir
11/14/2017, 1:12 PMsetAll
on this devices
list, appropriate node is added not once, but twice and I get exception about adding the same node twice.edvin
11/14/2017, 1:16 PMdevice.displ.boardView
for multiple instances?altavir
11/14/2017, 1:18 PMListConversionListener
, the line list.addAll(change.from, change.addedSubList.map(converter))
is being called multiple times.
I am using setAll on list of size 1 so there should be exactly one element in the response. An I've checked in debugger that my method is called once.altavir
11/14/2017, 1:18 PMjava.lang.IllegalArgumentException: Children: duplicate children added: parent = VBox@5ee2d167
at javafx.scene.Parent$2.onProposedChange(Parent.java:454)
at com.sun.javafx.collections.VetoableListDecorator.addAll(VetoableListDecorator.java:249)
at tornadofx.ListConversionListener.onChanged(Collections.kt:231)
at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
at javafx.collections.ModifiableObservableListBase.setAll(ModifiableObservableListBase.java:90)
at inr.numass.control.BoardController$$special$$inlined$apply$lambda$2.invoke(BoardController.kt:67)
altavir
11/14/2017, 1:19 PMthomasnield
11/14/2017, 1:28 PMaltavir
11/14/2017, 1:30 PMchange.wasAdded()
is called. Maybe something is wrong with gradle cache...edvin
11/14/2017, 1:36 PMaltavir
11/14/2017, 1:39 PMedvin
11/14/2017, 1:57 PMedvin
11/14/2017, 1:57 PMaltavir
11/14/2017, 2:02 PMaltavir
11/14/2017, 2:37 PMbuildChildren
. It works fine. The problem still looks like a compiler bug to me, but I can't understand, what happens. Maybe you should see if similar problem would arise somewhere else.edvin
11/14/2017, 4:51 PM