I am having this issue where I have a JavaFX Application which uses a Tableview consisting of TableColumns and is styled by a custom css.
Everything is working great, and I can add data into my tables/cells smoothly etc. However, if I want to present the user with only partial data a css solution would be optimal (instead of manipulating the data to fit the users requirements).
I have been looking into standard css and found that the "display: none" would be the optimal solution for hiding selected rows but keeping the data intact, but there seems to be no support of this for JavaFX.
I can't seem to find a good solution, other than manually hacking methods which modify the data of the cells to fit the needs.
I have used the setCellFactory to ex. highlight text or cells in different colors, and this works fine. But no solution for not displaying cells without ruining the overall experience of my application seems to work.
Has anyone had a similar issue and found a practical solution?
If you want to use CSS
Every
Node
has avisibility
css propertyJavaFX CSS reference
So I would try:
But I don't know if it hides whole row or what, if there will be a trouble, you can hid the internal
Label
in each cellEDIT:
And what about this workaround:
for each row or
Label
This "hides" the text but row will stay visible
Not tested, just an idea
EDIT (2):
This can help:
For each cell in row
But this is a part of your own idea