Class TreeViewWrapper<T>

  • Type Parameters:
    T - Element type of the treeview

    public class TreeViewWrapper<T>
    extends java.lang.Object
    Reflective solution to know if a cell in a TreeView is visible or not, to prevent confusing scrolling. Works under Java 8, 9, 10. Under Java 9+, requires the "--add-opens javafx.controls/javafx.scene.control.skin=ALL-UNNAMED" VM option.
    Since:
    6.4.0
    Author:
    Clément Fournier
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeViewWrapper​(javafx.scene.control.TreeView<T> wrapped)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isIndexVisible​(int index)
      Returns true if the item at the given index is visible in the TreeView.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreeViewWrapper

        public TreeViewWrapper​(javafx.scene.control.TreeView<T> wrapped)
    • Method Detail

      • isIndexVisible

        public boolean isIndexVisible​(int index)
        Returns true if the item at the given index is visible in the TreeView.