Spike Baylor
10/22/2018, 11:00 PMValV
10/22/2018, 11:10 PMMutableMap<String, ObservableList<String>>
as a structure for TreeView
nodes, but it was 2-level hierarchy (category/section)ValV
10/22/2018, 11:12 PMpopulate
function returns ObservableList
, nodes, such as sections are added automaticallySpike Baylor
10/22/2018, 11:15 PMValV
10/22/2018, 11:24 PMmutableMap.keys
returns set of strings, thus it does not update category nodes. I think that problem is solvable, but I had not much time to solve it in a better way. Perhaps, if have well-known model like company -> department -> person
, you can make your own classes like data class Department(val persons: ObservableList<Person>)
and Company(val departments: ObservableList<Department>, val persons: ObservableList<Person>)
, then feed listOf(company1, company2).observable()
to populate
functionValV
10/22/2018, 11:27 PMcellFormat
function will extract node names from those Company
, Department
, and Person
classes (when they are passed as nodes)Spike Baylor
10/22/2018, 11:27 PMValV
10/22/2018, 11:58 PMSpike Baylor
10/23/2018, 12:32 AM