Interface NavBridge<M,​N extends NavNode<M,​N>>

  • Type Parameters:
    M - Type of model to bridge
    N - Type of nodes of the model
    All Known Implementing Classes:
    NavTreeBridge, NavTreeTableBridge

    public interface NavBridge<M,​N extends NavNode<M,​N>>
    Contract of the bridge used by NavHelper to hold model and ui.
    Since:
    2.1
    Author:
    Tony Chemit - dev@tchemit.fr
    • Method Detail

      • getModel

        M getModel()
      • getRoot

        N getRoot()
      • isLeaf

        boolean isLeaf​(Object node)
      • getChildCount

        int getChildCount​(Object parent)
      • getChild

        N getChild​(Object parent,
                   int index)
      • getIndexOfChild

        int getIndexOfChild​(Object parent,
                            Object child)
      • setModel

        void setModel​(M delegate)
      • setRoot

        void setRoot​(N node)
      • insertNodeInto

        void insertNodeInto​(N newChild,
                            N parent,
                            int index)
      • removeNodeFromParent

        void removeNodeFromParent​(N node)
      • reload

        void reload​(N node)
      • canLoadChild

        boolean canLoadChild​(N node)
      • valueForPathChanged

        void valueForPathChanged​(TreePath path,
                                 Object newValue)
      • nodeStructureChanged

        void nodeStructureChanged​(TreeNode node)
      • nodeChanged

        void nodeChanged​(TreeNode node)
      • nodesChanged

        void nodesChanged​(TreeNode node,
                          int[] childIndices)
      • nodesWereInserted

        void nodesWereInserted​(N parent,
                               int[] indices)
      • nodeWereInserted

        void nodeWereInserted​(N parentNode,
                              int childIndice,
                              N node)
      • nodesWereRemoved

        void nodesWereRemoved​(TreeNode node,
                              int[] childIndices,
                              Object[] removedChildren)
      • notifyNodeInserted

        void notifyNodeInserted​(N node)
        Notifies that the node was inserted. Note: The method recurses on childs (always notify parent before child)
        Parameters:
        node - node inserted
      • notifyChildNodesInserted

        void notifyChildNodesInserted​(N node)
        Notifies that all childs nodes of node were inserted. Note: The method recurses on childs (always notify parent before child)
        Parameters:
        node - node where all childs where inserted