문제

My problem is as follows: I need to represent data in a tableView but I need them to be grouped, sort of. Let's suppose there is a list of playlists which contain songs, so I want to display in a column theirs name, path in another and so on. Also, I want to be able to display each playlist's songs in the same manner underneath. It's something very similar to what treeTableView from JavaFX 8 does but I can't use it as I need that arrow for expanding the root item in a separate column where for the root item there will be that arrow and for the child items - a number corresponding to song's position.

Any help highly appreciated.

도움이 되었습니까?

해결책

Look at the TreeTableView treeColumnProperty. Using that property you may display arrow in the column you want. To show numbers corresponding to the song position you may use TableRow setGraphic() method.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top