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

There should be a way to retrrieve TreeView from TreeItem

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Incomplete
    • Icon: P4 P4
    • None
    • None
    • javafx

      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).

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

              Created:
              Updated:
              Resolved:
              Imported: