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

There should be a way to retrrieve TreeView from TreeItem

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:

      Description

      I have several very similar TreeViews in my app.
      I have problems sharing Listeners because I have no way to retrieve the TreeView which originated the event from TreeItem (available inside events).
      I can walk up the TreeItem chain to the root node, but there's no connection to TreeView.
      My current workaround is to store TreeView in root TreeItem Value, but that's not very robust (and I might need to set value even on root TreeItem).

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              mcondareljfx Mauro Condarelli (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: