What would be the strategy for my next requirement...
# tornadofx
s
What would be the strategy for my next requirement? I have created a filenode class that reads the file system (by getting children). I have a treeview that shows the file structure, by setting root. The file name is generated by the filenode toString(). All good. I then stuck this into a Fragment, because I need to use this in multiple places. HOWEVER, I need to enable or disable showing the file extension. Is the solution to add a boolean to every filenode (this seems incredibly wasteful and dumb). Find someway to bind a SimpleBoolean to trigger the state of the toString or is this where the model is supposed to handle the solution?