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

TreeView - Load on demand support

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx
    • Windows Vista

      The TreeView loads all children recursivly. It is not possible to implement load-on-demand as it is possible for the TableView. It is also a memory problem if all children are loaded - and if you have many elements!

      Example: Database table with millions of records, self joined

      We create a tree with the hierarchically representation of the records. We have a custom model which reads a resultset but only needed rows, not all because it is possible that the statement is not very fast.

      If the tree loads all children recursivly, then we get an out of memory exception or the tree is very slow....

      It would be better to load children when expanding an item and best if not all children are loaded at once (should work like the TableView)


      Maybe there is a solution for above use case?

        1. DummyLoadOnDemandSequence.java
          3 kB
          René Jahn
        2. HelloTreeViewFileSystem.java
          3 kB
          Jonathan Giles
        3. TreeApp.java
          3 kB
          René Jahn

            jgiles Jonathan Giles
            rjahnjfx René Jahn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: