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

TreeItem's leaf property and setter should be protected not private

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • javafx
    • jdk8 ea

      TreeItem's leafProperty and setLeaf methods should be protected and not private. There is no way to inform the UI that the leaf property has changed because there is no way to change the leaf property's value.

      Overriding isLeaf is insufficient to allow async code to run or to allow an update to the property. In other words, its a property, but there's no way for a programmer to change the value. Subclasses should be able to change the leaf's value directly just like all other properties in this class that affect the visual representation.

            Unassigned Unassigned
            mappddeevjfx Mr. Appddeevv (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported: