سؤال

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