If you create a subclass of TreeItem you can't use the
leaf property.
In the file browser example of TreeItem's javadoc the
isLeaf() method is overriden with an old fashioned boolean.
Why we can't use the existing leaf object?
If you re introduce a variable called leaf of boolean this is
really awkward.
leaf property.
In the file browser example of TreeItem's javadoc the
isLeaf() method is overriden with an old fashioned boolean.
Why we can't use the existing leaf object?
If you re introduce a variable called leaf of boolean this is
really awkward.