Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091706

[TreeView] TreeItem leaf property can't be accessed by subclasses

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u5
    • javafx
    • Linux/Windows/MacOS Java8u5

      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.

            Unassigned Unassigned
            duke J. Duke
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Imported: