medi.swing.tree
Class MediTreeNodeLinker

java.lang.Object
  |
  +--medi.swing.tree.MediTreeNodeLinker

public class MediTreeNodeLinker
extends java.lang.Object

It is a class containing only static methods, to be used to link MediTreeNode's between themselves.


Constructor Summary
MediTreeNodeLinker()
          Creates a new instance of MediTreeNodeLinker
 
Method Summary
static void link(MediTreeNode father, MediTreeNode son)
          Links two nodes.
static void setProvider(Provider pPrv)
          Sets the provider to use.
static void unlink(MediTreeNode father, MediTreeNode son)
          Removes a link between two nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediTreeNodeLinker

public MediTreeNodeLinker()
Creates a new instance of MediTreeNodeLinker

Method Detail

setProvider

public static void setProvider(Provider pPrv)
Sets the provider to use.

Parameters:
pPrv - The provider to use.

link

public static void link(MediTreeNode father,
                        MediTreeNode son)
                 throws DbException
Links two nodes.

Parameters:
father - The node to attach the son into.
son - The node to be pasted.
Throws:
DbException - If something goes wrong.

unlink

public static void unlink(MediTreeNode father,
                          MediTreeNode son)
                   throws DbException
Removes a link between two nodes.

Parameters:
father - The node from which the son is going to be removed.
son - The node to be removed from the father.
Throws:
DbException - If something goes wrong.