org.objectweb.jac.aspects.gui
Interface TreeView

All Known Implementing Classes:
TreeModel

public interface TreeView

The GUI terget independant tree view.


Method Summary
 void addNode(AbstractNode parent, AbstractNode child)
          Add a child node to a node
 void nodeChanged(TreeNode node)
          Upcalled when a substance changed for a given node.
 void nodesWereInserted(TreeNode node, int[] indices)
          Upcalled when nodes where inserted in this tree.
 void nodesWereRemoved(TreeNode node, int[] indices, Object[] removedNodes)
          Upcalled when nodes where removed in this tree.
 void setRootNode(AbstractNode root)
          Set the root node of the tree.
 void setSelection(TreePath selectionPath)
          Sets the selected node for this tree.
 

Method Detail

setRootNode

public void setRootNode(AbstractNode root)
Set the root node of the tree.

Parameters:
root - the root node

addNode

public void addNode(AbstractNode parent,
                    AbstractNode child)
Add a child node to a node

Parameters:
parent - the node to add the child node to
child - the node to add

nodeChanged

public void nodeChanged(TreeNode node)
Upcalled when a substance changed for a given node.

Parameters:
node - the node that changed

nodesWereRemoved

public void nodesWereRemoved(TreeNode node,
                             int[] indices,
                             Object[] removedNodes)
Upcalled when nodes where removed in this tree.

Parameters:
node - the parent node from where the nodes were removed
indices - the indices of the removed nodes
removedNodes - the removed nodes

nodesWereInserted

public void nodesWereInserted(TreeNode node,
                              int[] indices)
Upcalled when nodes where inserted in this tree.

Parameters:
node - the parent node from where the nodes were inserted
indices - the indices of the inserted nodes

setSelection

public void setSelection(TreePath selectionPath)
Sets the selected node for this tree.

Parameters:
selectionPath - a tree path indicating the selected node