PamModel
Class DependencyManager
java.lang.Object
PamModel.DependencyManager
public class DependencyManager
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pamModel
PamModel pamModel
DependencyManager
public DependencyManager(PamModel pamModel)
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