Kevin
09/13/2018, 5:28 AMKevin
09/13/2018, 6:46 AMmyList
still has all the same references, so from the observability standpoint it hasn't changed, so I need to tell it to refresh somehow.
var myList = mutableListOf<MutableThing>().observable()
override val root = vbox {
lv = listview(myList)
button {
action {
myList.forEach { mutate(it) }
lv.refresh()
}
}
}
edvin
09/13/2018, 9:36 AMKevin
09/13/2018, 9:45 AMcarlw
09/13/2018, 11:31 AMcarlw
09/13/2018, 1:29 PMgtnarg
09/13/2018, 4:11 PMopenInternalWindow
with modal=true
. Should I expect the code to block in that case?carlw
09/13/2018, 4:19 PMcarlw
09/13/2018, 4:20 PMcarlw
09/13/2018, 4:25 PMcarlw
09/13/2018, 4:25 PMcarlw
09/13/2018, 4:26 PMwineluis
09/14/2018, 9:52 AMwineluis
09/14/2018, 9:53 AMwineluis
09/14/2018, 10:02 AMamanda.hinchman-dominguez
09/14/2018, 2:34 PMwineluis
09/14/2018, 2:54 PMKevin
09/14/2018, 6:55 PMprivate val filteredMessages = SortedFilteredList(controller.messageList)
override val root = vbox {
listview(controller.messageList) {
cellFormat {
graphic = MessageCell(it).root
}
}
textfield(controller.searchTerm) {
filteredMessages.filterWhen(textProperty()) { query, item ->
item.message.contains(query, true)
}
}
}
I dunno what I'm doing wrong here, I can set a break point and see that the boolean check is behaving like I expect, but the listview
isn't updating.Ruckus
09/14/2018, 7:06 PMMessageCell(it).root
looks a little suspicious. Have you seen ListCellFragment
?Kevin
09/14/2018, 7:22 PMNico Smeenk
09/14/2018, 8:59 PMNico Smeenk
09/14/2018, 9:07 PMstringBinding(contact.firstName, contact.lastName) { "${this.value} ${contact.lastName.value}" }
carlw
09/14/2018, 9:32 PMcarlw
09/14/2018, 9:32 PMNico Smeenk
09/14/2018, 9:36 PMcarlw
09/14/2018, 9:37 PMNico Smeenk
09/14/2018, 9:37 PMNico Smeenk
09/14/2018, 9:39 PMNico Smeenk
09/14/2018, 9:47 PMNico Smeenk
09/14/2018, 9:47 PM