At the time my TreeItem in TreeTableView looks flat and like this:
//////////////////row//////////////////////////////
for (Entry<String, String> entryRow : dc.getSortedfuncAll().entrySet()) {
root.getChildren().add(new TreeItem<String>(entryRow.getValue()));
}
// ////////////////treetable////////////////////////////
final TreeTableView<String> treeTableView = new TreeTableView<>(root);
- AUF_1086686287581_9999
- AUF_1086686329972_10049
- AUF_1079023138936_6682
- AUF_1087981634453_7022
- AUF_1060589919844_59496
- AUF_1421268568003_1743
- AUF_1422451819445_14260
- AUF_1421268533080_1741
- AUF_1421268719761_1776
- AUF_1421272434570_1781
- AUF_1421268568003_1743
consider having the following relation between them:
it is result of TreeMap<String,ArrayList<String>>
:
{AUF_1060589919844_59496=[AUF_1086686287581_9999,AUF_1086686329972_10049,AUF_1079023138936_6682],
AUF_1087981634453_7022=[AUF_1421268533080_1741, AUF_1421268568003_1743],
AUF_1421268533080_1741=[AUF_1421268719761_1776],
AUF_1421272434570_1781=[AUF_1087981634453_7022],
AUF_1422451819445_14260=[AUF_1421268568003_1743]}
I want to have them hierarchal like this:
- AUF_1060589919844_59496
- AUF_1079023138936_6682
- AUF_1086686287581_9999
- AUF_1086686329972_10049
- AUF_1421272434570_1781
- AUF_1087981634453_7022
- AUF_1421268568003_1743
- AUF_1421268533080_1741
- AUF_1421268719761_1776
- AUF_1087981634453_7022
- AUF_1422451819445_14260
- AUF_1421268568003_1743
where should I try to apply it? (cell Factory?) and can you figure out a method to make the nested relationship?