PamModel
Class DependencyManager

java.lang.Object
  extended by PamModel.DependencyManager

public class DependencyManager
extends java.lang.Object


Field Summary
(package private)  PamModel pamModel
           
 
Constructor Summary
DependencyManager(PamModel pamModel)
           
 
Method Summary
 PamDataBlock checkDependency(java.awt.Frame parentFrame, PamDependent pamDependent)
          Checks through the data model and tries to find an appropriate PamDataBlock.
 PamDataBlock checkDependency(java.awt.Frame parentFrame, PamDependent pamDependent, boolean create)
          Checks through the data model and tries to find an appropriate PamDataBlock.
 PamDataBlock findDependency(PamDependency pamDependency)
          Checks through the data model and tries to find an appropriate PamDataBlock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pamModel

PamModel pamModel
Constructor Detail

DependencyManager

public DependencyManager(PamModel pamModel)
Method Detail

checkDependency

public PamDataBlock checkDependency(java.awt.Frame parentFrame,
                                    PamDependent pamDependent)
Checks through the data model and tries to find an appropriate PamDataBlock. Returns a reference to the datablock if it can find one, null otherwise.

Parameters:
parentComponent -
pamDependent -
Returns:
reference to a PamDataBlock satisfying the dependency

checkDependency

public PamDataBlock checkDependency(java.awt.Frame parentFrame,
                                    PamDependent pamDependent,
                                    boolean create)
Checks through the data model and tries to find an appropriate PamDataBlock. Returns a reference to the datablock if it can find one, null otherwise.

Parameters:
parentComponent -
pamDependent -
create - create set to true if you want checkDependency to automatically create required dependencies.
Returns:
reference to a PamDataBlock satisfying the dependency

findDependency

public PamDataBlock findDependency(PamDependency pamDependency)
Checks through the data model and tries to find an appropriate PamDataBlock. Returns a reference to the datablock if it can find one, null otherwise.

Parameters:
pamDependency -
Returns:
reference to a PamDataBlock satisfying the dependency