public class DependencyManager
extends java.lang.Object
Constructor and Description |
---|
DependencyManager(PamModel pamModel) |
Modifier and Type | Method and Description |
---|---|
PamControlledUnit |
checkDependency(java.awt.Frame parentFrame,
PamDependent pamDependent)
Checks through the data model and tries to find an
appropriate PamDataBlock.
|
PamControlledUnit |
checkDependency(java.awt.Frame parentFrame,
PamDependent pamDependent,
boolean create)
Checks through the data model and tries to find an
appropriate PamDataBlock.
|
PamControlledUnit |
findDependency(PamDependency pamDependency)
Checks through the data model and tries to find an
appropriate PamDataBlock.
|
public DependencyManager(PamModel pamModel)
public PamControlledUnit checkDependency(java.awt.Frame parentFrame, PamDependent pamDependent)
parentComponent
- pamDependent
- public PamControlledUnit checkDependency(java.awt.Frame parentFrame, PamDependent pamDependent, boolean create)
parentComponent
- pamDependent
- create
- create set to true if you want checkDependency to automatically
create required dependencies.public PamControlledUnit findDependency(PamDependency pamDependency)
In some rare instances, such as Logger forms the dependence may be on a module rather than a particular type of data, i.e. the forms need the database, but the database produces no data units to check against, so the first test will fail.
pamDependency
-