Class TreeItemFilter

    • Constructor Detail

      • TreeItemFilter

        public TreeItemFilter​(boolean recursive)
        Instantiates a new tree item filter.
        recursive - whether filter should be applied to child nodes or not. If one of the child nodes is kept in the tree then all its parent nodes will be kept as well.
    • Method Detail

      • isRecursive

        public boolean isRecursive()
        true if filter is recursive, false otherwise.
      • dispose

        public void dispose()
        Disposes this tree item filter.
      • keep

        public abstract boolean keep​(Object element)
        true to keep an element, false to filter it out.