Interface RefreshableTreeModel<E>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<E> findNodesByData​(java.lang.Object data)
      Gets all nodes related to specified data.
      void refreshChildren​(E node, java.util.List<E> children)
      Sets new children nodes of specified parent node and refreshes all data related to them.
    • Method Detail

      • refreshChildren

        void refreshChildren​(E node,
                             java.util.List<E> children)
        Sets new children nodes of specified parent node and refreshes all data related to them.
        Parameters:
        node - parent node
        children - new children nodes
      • findNodesByData

        java.util.List<E> findNodesByData​(java.lang.Object data)
        Gets all nodes related to specified data.

        In case of dynamic trees, method should return only those nodes that are already known and avoid traversing through whole tree to gather all related nodes.

        Parameters:
        data - node data
        Returns:
        list of known nodes that are related to data