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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8u5
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Environment:

      Linux/Windows/MacOS Java8u5

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Imported: